Pl. look at the javadocs of TransactionManager and UserTransaction,
which clearly says application developers should use UserTransaction as
opposed to TransactionManager. There is no need to change SJSAS
document. They provide information specific to SJSAS. As I wrote
earlier, java:appserver/TransactionManager is vendor specific. There is
now (since Java EE 5) a new interface called TransactionSynchronization
interface which is available in a standard location. In the early days,
when TransactionSynchronization was absent, we made available
TransactionManager in a well known place so that third-party service
providers could use it. We shall continue to do so in order to allow
legacy integrations to work. Since we do not distinguish between service
providers and application developers, an application developer can still
use that interface (although not recommended).
Thanks,
Sahoo
glassfish_at_javadesktop.org wrote:
> If java:appserver/TransactionManager is not the correct interface for developers to use to get the transaction manager, the documentation should probably be updated to reflect that.
>
> From the SJAS 9.1 Developer Guide linked off the Glassfish documentation page:
>
> TheTransaction Manager, theTransaction Synchronization
> Registry, and UserTransaction
>
> You can access the Application Server transaction manager, a javax.transaction.TransactionManager implementation, using the JNDI subcontext java:comp/TransactionManager or java:appserver/TransactionManager.
>
> You can access the Application Server transaction synchronization registry, a javax.transaction. TransactionSynchronizationRegistry implementation, using the JNDI subcontext java:comp/TransactionSynchronizationRegistry or java:appserver/
> TransactionSynchronizationRegistry.
>
> You can also request injection of a TransactionManager or TransactionSynchronizationRegistry object using the @Resource annotation. Accessing the transaction synchronization registry is recommended.
>
> For details, see Java Specification Request (JSR) 907 (http://www.jcp.org/en/jsr/detail?id=907).
> [Message sent by forum member 'areplogle' (areplogle)]
>
> http://forums.java.net/jive/thread.jspa?messageID=213467
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>