cancel
Showing results for 
Search instead for 
Did you mean: 

Problems while providing Transaction for a method in EJB

Former Member
0 Kudos

Hai All

I need to Know How to provide Transaction to a Method In EJB using netweaver developer studio

and in the transaction properties 1) Required,2) Required new and etc

In which situations which one is used ,

Are there is any example using all these transaction types?

Anybody please help me in this regard

Thanks & Regards

Somaraju

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos
Former Member
0 Kudos

Hai,

your links are well, but I am getting one doubt ,

How we can test this transaction attribute for a method

is working well.

and there is also another doubt to me that is as follows:

There are two methods are there in a session bean named

a(), b()

I am calling method b() in a(),

If a client calls a()(inserting data in database using a entity bean's create method) worked perfectly, but while calling b()(retrieving data using entitybean's finder method), there is an error , in this situation I need to

roll back a()'s work How i can do that

How can we use CMP Transaction attributes on this two methods (a(),b())in this Scenario,

Please help me in this regard

Thanks & Regards

Somaraju

Thanks & Regards

former_member182372
Active Contributor
0 Kudos

Hi Somaraju,

Check Thomas`s nice explanation: and help.sap.com material http://help.sap.com/saphelp_nw04/helpdata/en/70/fcaefeb1bf41088649f4a0dbe618c8/frameset.htm

Best regards, Maksim Rashchynski.