users@glassfish.java.net

How to propagate a transaction from EJB to stand alone application?

From: <glassfish_at_javadesktop.org>
Date: Mon, 23 Apr 2007 06:31:52 PDT

Hi,

Here is my problem : From an EJB (Session statefull 3) I try to call a method using RMI. This method is outside the application server in a stand alone application.
When I try to do this, I got a Corba Exception due to I don't have a transaction context.

So I declare the method in my EJB which make the call : @TransactionAttribute(NOT_SUPPORTED)
But this is not a good solution for me, I don't want to change the code in my EJBs I prefer to manage the transaction in my stant alone app.

So my question is :
How to deal with transaction in a stand alone client? Can I declare a new transaction just to satisfy my EJB?

Thank's for your help.
[Message sent by forum member 'nrichand' (nrichand)]

http://forums.java.net/jive/thread.jspa?messageID=213717