Hi!

    I have the following question regarding using XA resources from outside
the application server (I mean, Jonas) scope in distributed transactions.
I've coded some entity beans for an application, but the fact is that we are
in a bit of a hurry right now so some of the database accesses must
currently be made directly through JDBC. Some of these DB accesses must be
done in the same transactions in which proper beans also participate. I'm
using Tomcat with the Struts libraries for the client side. Struts manages
some kind of DataSource but it's only a pooled one and obviously it has no
relation with Jonas transaction manager. Due to the fact that an EJB
container only exports the UserTransaction interface to clients, I see no
way to enlist resources with transactions under the Jonas transaction
manager (so I should use another TM). The easy solution seems to be to use a
DataSource published by Jonas using JNDI. But I think that this could be
very intrusive activity; not only the scenario in which the DataSource I use
from external clients is shared with the Application Server internals (for
example, the DataSource used for manage beans with container managed
persistance), but also exporting a new DataSource only for external clients
seems potentially dangerous to me (at least for performance issues, if not
for functional ones).

See you,
    Carlos


----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to