This error is occuring either because the JNDI lookup for the Transaction Manager is failing, or because the “begin” call on the UserTransaction is failing.  Did you get a stack trace with that exception?  You would need to turn on debug logging for the “Message.*” and “DataService.*” categories (search for level= in WEB-INF/flex/services-config.xml) and that might provide a little more info.

 

FDMS does require a JTA based transaction manager… I could not find the factory_class set on our QA apps but some of the samples we have did have these lines hibernate.cfg:

 

        <!-- Use JRun's JTA support -->

                        <property name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>

                        <property name="transaction.manager_lookup_class">org.hibernate.transaction.JRun4TransactionManagerLookup</property>

 

so that might help. 

 

Jeff

 


From: [email protected] [mailto:[email protected]] On Behalf Of amalabie
Sent: Tuesday, September 19, 2006 4:32 PM
To: [email protected]
Subject: [flexcoders] UserTransaction JNDI syntax for FDS/Hibernate support

 

I'm trying to configure the integrated JRun to use it's built-in
transaction manager with Data Services. I get a "Unable to access
UserTransaction" error. I suspect that I need to specify the JNDI
parameters in jrun-resources.xml. I just need the correct syntax so
that Data Services can work with Hibernate (which apparently will not
work without a Transaction Manager).

Also, what are the entries to make in hibernate.cfg.xml...ie. what are
the values for the property "hibernate.transaction.factory_class" and
property "hibernate.transaction.manager_lookup_class"?

Any examples from anyone who has successfully configured JRun,
Hibernate, FDS with transaction support would be really useful. The
examples I've found don't help me find the solution.

Any help greatly appreciated!
Aubrey

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to