I am trying to integtrate TOPLink and jBoss so that TOPLink can use
the jBoss server as its external transaction manager and get access to
connection pools defined and controlled by jBoss.
We have to tell TOPLink to use an external transaction manager and then
set the Transaction manager to use.
I was trying to get the TransactionManager from the InitialContext.
I have tried both the strings...
javax.transaction.TransactionManager
java:comp/TransactionManager
Both times I get the complaint...
[Test] (JBossTLPersistenceService): just about to get TransactionManager
[Test] Error loading persistence service. javax.naming.NameNotFoundException:
javax.transaction.Transacti
onManager not bound
[Test] java.lang.NullPointerException
[Test] at
com.peopledoc.persistence.TLPersistenceService.getWriteableSession(TLPersistenceService.java:5
5)
[Test] at
com.peopledoc.components.documentstorage.TestBean.createUser(TestBean.java:27)
[Test] at java.lang.reflect.Method.invoke(Native Method)
at
com.peopledoc.persistence.TLPersistenceService.getWriteableSession(TLPersistenceService.java:5
5)
at
com.peopledoc.components.documentstorage.TestBean.createUser(TestBean.java:27)
at java.lang.reflect.Method.invoke(Native Method)
at
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.
java:286)
at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:82)
at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInter
ceptor.java:73)
at org.jboss.ejb.plugins.TxInterceptor.invoke(TxInterceptor.java:179)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:140)
at
org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:152)
at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:129)
at java.lang.reflect.Method.invoke(Native Method)
Is the TransactionManager class not available to java classes on the
server?
Am I barking up the wrong tree?
Thanks.
---------------------------------------------------------------------------
Stuart Barlow
+44 131 468 8205
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]