开发者

getConnection null in new transaction

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜