This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile 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: 34084
337
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: 34084
337
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