Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Spring Roo and Google App Engine

  1. #11
    Join Date
    Oct 2005
    Location
    Amsterdam
    Posts
    123

    Default

    @Jpreston... I was wondering how you configured your EntityManagerFactory and more specifically the datasource that that bean requires...
    Hans Westerbeek
    Software Engineer

  2. #12
    Join Date
    Oct 2005
    Location
    Amsterdam
    Posts
    123

    Default

    Nevermind, did it like this:

    Code:
    <bean id="entityManagerFactory" 
    	class="org.springframework.orm.jpa.LocalEntityManagerFactoryBean" lazy-init="true">
    	<property name="persistenceUnitName" value="transactions-optional" />
    </bean>
    <bean name="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
    	<property name="entityManagerFactory" ref="entityManagerFactory" />
    </bean>
    where 'transactions-optional' is the same as the name attribute of the persistence-unit tag in persistence.xml
    Last edited by mirror303; Mar 9th, 2010 at 06:09 PM.
    Hans Westerbeek
    Software Engineer

  3. #13
    Join Date
    Apr 2009
    Posts
    1

    Default Roo + Spring

    Does anybody know if the source code for the expense application demoed at the Google IO is available for download, It would give a lot of insight on how to do roo development og Google App Engine Java.
    Thanks

  4. #14
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    The final version of the expenses application is not available for download as it's a work-in-progress as we improve widgets and features in the GWT 2.1 / Roo 1.1 integration. However, in the Roo 1.1.0.M1 samples directory you will find expenses.roo. This shows you what we used to start building the expenses application and can be executed in Roo just by typing "script expenses.roo" and pressing enter (just be sure you're in an empty directory).
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

  5. #15

    Default

    I have got the 1.1.0M2 version of ROO and successfully ran a simple GWT application. When I tried to move my app to GWT/ROO I realized that roo+ GWT doesnt support parent-child relationship. FWOOOOP!

  6. #16
    Join Date
    Dec 2005
    Posts
    929

    Default

    Please wait for Roo 1.1M3 with GWT 2.1M3 for improvements in relationship handling - by end August
    Alan Stewart
    Spring Roo Committer
    twitter @alankstewart

  7. #17
    Join Date
    Oct 2007
    Posts
    4

    Default

    I'm brand new to ROO. I brought up the expense app using ROO 1.1.0.RC1

    And I made an attempt to change the persistence.xml to use JPA for the entities I'm going to create next (this is where I'm coming from: http://code.google.com/appengine/doc.../usingjpa.html):

    Code:
    <?xml version="1.0" encoding="UTF-8" ?>
    <persistence xmlns="http://java.sun.com/xml/ns/persistence"
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
            http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
    	version="1.0">
    
    	<persistence-unit name="transactions-optional">
    		<provider>org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider</provider>
    		<properties>
    			<property name="datanucleus.NontransactionalRead" value="true" />
    			<property name="datanucleus.NontransactionalWrite" value="true" />
    			<property name="datanucleus.ConnectionURL" value="appengine" />
    		</properties>
    	</persistence-unit>
    </persistence>
    I fired it up in STS 2.5.0.RC1 and it gave me a class not found: org.datanucleus.store.appengine.jpa.DatastorePersi stenceProvider

    I know I'm probably missing a ton of stuff here, but could someone give me a hint on what is need to get it to play nice with the way GAE works today? Or let me know if this isn't supported and I shouldn't bother trying.
    Last edited by donut; Oct 24th, 2010 at 05:03 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •