This week's giveaways are in the MongoDB and Jobs Discussion forums.
We're giving away four copies of Mongo DB Applied Patterns and 4 resume reviews from Five Year Itch and have the authors/reps on-line!
See this thread and this one for details.
The moose likes EJB and other Java EE Technologies and the fly likes TransactionManager within CMT Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply 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: 26138
    
  66

"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: 26138
    
  66

No problem. Thanks for updating the name.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: TransactionManager within CMT
 
Similar Threads
Difference between container managed entity manager & CMT
Login/Auth strategy for J2EE Application
Illegal operation exception while trying rollback..
More on Exceptions !
Exception handling in EJB with Container Managed Transaction using Hibernate