Karl-Fredrik Blixt wrote:
>
> Rickard �berg wrote:
> >
> > The TM is available under JNDI (see the JTA spec.). What is not
> > specified is the JNDI-name, but that's not a big problem, and I believe
> > that it is correct not to specify this.
> >
> Why do you think that it should not be specified? If it is the only means by
> which the TM can be found I beleive it should have a standard name for the exact
> purpose described in the question. If not, you will need serverspecific code,
> which is not very nice, and there is even no need to.
Because it is an unnecessary restriction. Different vendors use
different tree structures, and one shouldn't limit in a specification
how the tree should be formed. Also, when you say "serverspecific code",
what do you mean? You're note implying that you're hardcoding JNDI names
in your app, are you?!? ;-)
Break it out into .properties files and this should not be a problem.
But then you should consider when it is appropriate to use the TM
anyway. According to the JTA1.0 spec (p. 9, section 3.2) the TM is
mainly used by the application server. What you refer to is probably the
UserTransaction interface, whose JNDI name is also not specified. But
since the majority of applications will be (guessing here) made by using
automatic transaction demarcation I don't see that as a (big) problem.
And if you need to use client demarcated tx's: make the name
configurable through some text file or whatever.
In short, I don't think this will be a big problem in practice.
/Rickard
ps.
> Polish Tourist Brochure: "As for the tripes serves you at the Hotel Monopol, you
> will be singing its praise to your children as you lie on your deathbed."
Jikes, how many of these do you have?? ;-)
ds.
--
Rickard �berg
@home: +46 13 177937
Email: [EMAIL PROTECTED]
Homepage: http://www-und.ida.liu.se/~ricob684
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".