• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB Transactions

 
Balaji Mathyam
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have stateful session bean with two methods.I have stated the transaction attribute for the first method as Required and second as NotSupported. The first method(attribute as Required) is calling the second method(Not Supported).The container is not picking up the transaction attribute for the second method as NotSupported.It is picking as Required....
I am using JBOSS 3.0 as my app server.
some of collegues suggested me that all the methods in a bean should have same transaction attributes.(i.e both the methods of the above mentioned bean should be the same either Required or NotSupported). Is this correct??
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Ur collegues are right.

There can be only one transaction context for a session bean at a time.
Hope this helps.
 
Balaji Mathyam
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx for response...
 
benb
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Balaji Mathyam:
The first method(attribute as Required) is calling the second method(Not Supported).

Does your first method directly invoke the second one or does it invoke the second method on the EJBObject ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!