Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TransactionManager within CMT

 
harry hita
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have a session bean using container manager persistance. is it possible to call the transaction manager and suspend the current transaction and then start a new one?

I would think this is not possible since we are using CMT and the container should be handling all of the transactions...

I am using Websphere...

thanks

harry

ps - if you want to know why i am doing this here is the reason.
I am trying to make a jms call and i need the response... (i'm trying to fake a synchronous call).
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34178
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"hardcore harry",
We're pleased to have you here with us in the EJB forum, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks,
Jeanne
Forum Bartender
 
harry hita
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry about that. i was a little too eager to get the question posted
 
harry hita
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

figured out what i was doing wrong
you can actually do this but when you create the session it has to be outside of the current transaction

so it should be like this
suspend transaction
createsession
send
resume transaction
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34178
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No problem. Thanks for updating the name.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic