aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes TransactionManager within CMT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "TransactionManager within CMT" Watch "TransactionManager within CMT" New topic
Author

TransactionManager within CMT

harry hita
Greenhorn

Joined: Jan 05, 2005
Posts: 14
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30548
    
152

"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


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
harry hita
Greenhorn

Joined: Jan 05, 2005
Posts: 14
sorry about that. i was a little too eager to get the question posted
harry hita
Greenhorn

Joined: Jan 05, 2005
Posts: 14
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30548
    
152

No problem. Thanks for updating the name.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: TransactionManager within CMT