The transaction attribute of MethodA can be set to any of the possible values depending on your requirements.
Absolutely, Darranl !!!!
That depends on what happens in method A !!
Earlier there was only some mathamatical operations happening in the methodA() , that is why we had used a Transaction attribute of "SUPPORTS" .
That seem to work fine in Webogic. But the same does not work without "REQUIRED" in JBOSS 4.0.
Your problem is going to require a full description, what do you mean by 'But the same does not work without "REQUIRED" in JBOSS 4.0.'?
methodA() used to form a dataobjecy and send it to methodB() for updation.
Thus earlier we had transaction attribute of "SUPPORTS" for methodA() and a transaction attribute "REQUIRED" for methodB() . This used to work properly i.e. the database used to get updated when the EJB was deployed in Weblogic.
But when I ddeploy the same in JBOSS it does not work i.e. it does not update the database. This only works when you make the transaction attribute of methodA() also as REQUIRED.
Any clues to this..??