Hey

Stuart Barlow wrote:
> 
> 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

It is bound to "TransactionManager".

/Rickard

> 
> 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]

-- 
Rickard �berg

@home: +46 13 177937
Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to