Hmmm ... according to docs, with Weblogic 8.1, the transaction manager
is bound to "javax.transaction.TransactionManager". So changing below to
<transaction-demarcation mode="global">
<transaction-manager name="jndi">
<param name="jndiEnc"
value="javax.transaction.TransactionManager"/>
</transaction-manager>
</transaction-demarcation>
should do the trick. If not, what exceptions are you getting (if any) ?
Werner
Tejesh Shetty wrote:
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE jdo-conf PUBLIC "-//EXOLAB/Castor JDO Configuration DTD
> Version 1.0//EN"
> "http://castor.org/jdo-conf.dtd">
> <jdo-conf>
> <database name="CoreHub" engine="oracle">
> <jndi name="java:comp/env/jdbc/corehub"/>
> <mapping href="CoreHub.xml"/>
> </database>
> <transaction-demarcation mode="global">
> <transaction-manager name="jndi">
> <!--<param name="jndiEnc"
> value="javax.transaction.TransactionManager"/>-->
> <param name="jndiEnc" value="java:comp/UserTransaction"/>
>
> </transaction-manager>
> </transaction-demarcation>
> </jdo-conf>
>
> Tejesh Shetty | Software Programmer, MortgageHub Inc. | Conshohocken, PA
> | Tel: 610.834.3800 ext 106 | [EMAIL PROTECTED]
>
> -----Original Message-----
> From: Werner Guttmann [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 10, 2006 4:13 PM
> To: [email protected]
> Subject: Re: [castor-user] Castor Weblogic 8.1 transactionManager
> returning null !!!
>
> Hi,
>
> what does your JDO config file look like ?
>
> Regards
> Werner
>
> Tejesh Shetty wrote:
>
>>Hi,
>>
>>
>>
>>I am trying to deploy an application on Weblogic 8.1 using castor
>
> 0.991.
>
>>Looks like EJB deploys well but during login when ejb tries to go get
>>something from database it dies saying unable to get database
>>connection. I did some test method and found out that it's not getting
>>transaction out of TransactionManager and its returning null. I am not
>>sure if jndi is not set up correctly in database.xml. Currently it
>
> goes
>
>>look for "java:com/UserTransaction".I think other options were
>>"javax.transaction.TransactionManager" gives back the same exception.
>>
>>
>>
>>Any help on this will be great.
>>
>>
>>
>>Thanks in advance.
>>
>>
>>
>>
>>
>>**Tejesh Shetty | ****Software Programmer, MortgageHub Inc. |
>>Conshohocken, PA | Tel: 610.834.3800 ext 106 | [EMAIL PROTECTED]
>><mailto:[EMAIL PROTECTED]>m <mailto:[EMAIL PROTECTED]>**
>>
>>
>>
>
>
>
> -------------------------------------------------
> If you wish to unsubscribe from this list, please
> send an empty message to the following address:
>
> [EMAIL PROTECTED]
> -------------------------------------------------
>
>
> -------------------------------------------------
> If you wish to unsubscribe from this list, please
> send an empty message to the following address:
>
> [EMAIL PROTECTED]
> -------------------------------------------------
>
>
-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:
[EMAIL PROTECTED]
-------------------------------------------------