开发者

getConnection null in new transaction

开发者 https://www.devze.com 2023-03-07 08:05 出处:网络
I am using Weblogic 11, ejb3.0 I have code which is doing lookup to another deployment in my container remotely.

I am using Weblogic 11, ejb3.0

I have code which is doing lookup to another deployment in my container remotely. everything work fine and I managed to reach to the another deployment. the method which working in the remote deployment open new transaction via the annotation:

@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)

and when it f开发者_如何学Goinish and get back to my deployment I have weird situation which I can get connection from my data source using the method databseDataSource.getConnection(); (It receives null)

I am using XA.

any ideas why?

thanks, ray.


Problem was that we cant open new transaction when combining xa and non xa datasources. I have moved everything to xa and it worked right

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号