Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1011587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T09:15:23+00:00 2026-05-16T09:15:23+00:00

I created an application using GWT and support for the Google Datastore but now

  • 0

I created an application using GWT and support for the Google Datastore but now i’m trying to move my application to my own server and i’m also trying to detach my app from Google App Engine and from Datastore.

To be more precise: I want to stop using Google Datastore and start using JDO and Datanucleus but with PostgreSQL (or other relational database). I tried searching in Datanucleus.org but there was no simple tutorial for me to use.

Please, can someone help me?

Thank you very much!
=)

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T09:15:24+00:00Added an answer on May 16, 2026 at 9:15 am

    I’ve discovered how to do it though I think it should be more easy eheheh.
    Here it goes:

    1) First we must setup PostgreSQL server;

    2) Create our web application with webAppCreator (from GWT SDK);

    3) Since we must enhance our domain classes for them to be used by datanucleus and JDO, we have multiple options to do it. I used an Apache Ant task ( from Google App Engine SDK). If we do this we can use the good parts from app engine (simple class enhancement) but our application won’t be tied to the restrictions of App Engine.
    The additions to the build.xml created with webAppCreator:

    <!-- this refers to the location of my Google AppEngine SDK -->
    <property name="sdk.dir" location="C:/Projects/appengine-java-sdk" />
    <import file="${sdk.dir}/config/user/ant-macros.xml" />
    
    <target name="copyjars"
      description="Copies the App Engine JARs to the WAR.">
      <copy
        todir="war/WEB-INF/lib"
        flatten="true">
        <fileset dir="${sdk.dir}/lib/user">
           <include name="**/*.jar" />
        </fileset>
      </copy>
    </target>
    
    <target name="compile" depends="copyjars"
      description="Compiles Java source and copies other source files to the WAR.">
      <mkdir dir="war/WEB-INF/classes" />
      <copy todir="war/WEB-INF/classes">
         <fileset dir="src">
            <exclude name="**/*.java" />
         </fileset>
      </copy>
      <javac
         srcdir="src"
         destdir="war/WEB-INF/classes"
         classpathref="project.class.path"
         debug="on" />
    </target>
    
    <target name="datanucleusenhance" depends="compile"
            description="Performs JDO enhancement on compiled data classes.">
        <enhance_war war="war" />
    </target>
    

    4) Download the PostgreSQL JDBC Driver from the official site;

    5) Download the datanucleus-rdbms.jar file from the official sourceforge page;

    6) Add these jars to the Project Classpath;

    7) Create a file with the following content:

    javax.jdo.PersistenceManagerFactoryClass=org.datanucleus.jdo.JDOPersistenceManagerFactory
    javax.jdo.option.ConnectionDriverName=org.postgres.jdbc.Driver
    javax.jdo.option.ConnectionURL=jdbc:postgres://localhost:5432/myschool
    javax.jdo.option.ConnectionUserName=root
    javax.jdo.option.ConnectionPassword=rootroot
    datanucleus.autoCreateTables=true
    

    8) Create a PersistenceManagerFactory like this:

    File propsFile = new File("Insert the location of the properties file here");
    PersistenceManagerFactory pmf = JDOHelper.getPersistenceManagerFactory(propsFile);
    

    9) Create the domain classes and run the new Ant Target datanucleusenhance;

    10) This will create enhanced classes and the connection with the relational database and also store the information in the PostgreSQL’s tables.

    11) If I’m not mistaken and if I didn’t forget anything than that’s all 🙂

    Thank you for reading the question.
    Please, if you notice anything wrong, can you tell me? It’s my first time here 😛

    ==== Some References ====
    http://code.google.com/intl/en/appengine/docs/java/tools/ant.html#Enhancing_JDO_Classes

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

we are trying to develop a mobile application using GWT 2.4 but now it
I am trying to create a dygraph(using gviz) in a GWT application. The dygraph
I've created an application using the Navigation-based template in Xcode. I've also created a
My company develops a web application (in Java using GWT) that employs the Google
To learn GWT and Google AppEngine (GAE) I'm trying to create a simple application
I am trying to obfuscate my GWT (Vaadin) application using Proguard. Ive never obfuscated
I have a running Java GWT application, that I can compile using Eclipse. Now
I developed an application in a single Eclipse project using the Eclipse-GWT plugin. Now
Hi I have created an ajax application using GWT. And I have created just
I'm trying to create the following layout for a mobile/tablet application using GWT +

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.