Jules Gosnell wrote: > > I am rewriting my JBoss/Jetty distributable HttSession implementation. > > The spec (J2EE 1.3 & Servlet 2.3) suggests that I should be able to > distribute Objects of types : > > Serializable > EJBObject > EJBHome > Context - java:comp/env > UserTransaction > > I would like to support UserTransactions.
I'm not sure what you want here. UserTransaction is a local, non-serializable object. Distributing a UT does not make sense to me, but it should be possible to look it up in JNDI. > e.g. a client can make a request to begin a transaction on one JBoss > node, then make subsequent failed-over requests to other nodes that are > executed within the same transaction context. If the client is stand-alone (ie in a different VM than the TM), it won't work. This is because the stand-alone client UT support is limited to controlling transactions on one server only (the server that gave you the UT via JNDI). I'm not sure about UT support for same-VM non-ejb clients, would have to check the code. > I'm no transaction guru..... :-( > > The UserTransaction API does not give me access to any unique, > distributed ID (like EJBObject and EJBHome handles etc.) - so if this is > going to happen, it will be via the proprietary interface of the > UserTransaction's implementation. The ID exists, but the JTA standard seems very secretive about it. It is only exposed to xa resources. But I cannot see why you need it here. Are you trying to move an active transaction started by a UT to another server in another VM? That might be possible, if you use the Tyrex TM, and some JBoss-specific API for importing and exporting transaction propagation contexts (TPCs, basically serializable transaction ids). > Questions: > > Is it possible to distribute UserTransactions if all webcontainers are > not sharing the same EJB container (but all EJB containers are sharing > the same DB)? See above. I'm not sure what you mean when you say "distribute UserTransactions". > Or if all webcontainers are sharing the same EJBContainer ? > > Or should I forget supporting this ? > > If possible - how could it best be achieved ? I probably know - only I'm not sure what you try to achieve. Best Regards, Ole Husgaard. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Stuff, things, and much much more. http://thinkgeek.com/sf _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
