File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes About CMT Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "About CMT Bean" Watch "About CMT Bean" New topic
Author

About CMT Bean

Angelino Dolce
Greenhorn

Joined: Jul 26, 2005
Posts: 24
Hi All!
What succeed if I write:
----------------------------------------------------
<transaction-type>Container</transaction-type>
----------------------------------------------------
but in the assembler portion of ejb-jar.xml do NOT specify anything?
I've seen that the bean compile and run correctlly but... what about
the transactions in methods? The bean's methods run in a transaction?
Thanks in advance.
Nicholas Cheung
Ranch Hand

Joined: Nov 07, 2003
Posts: 4982
When you specified the transaction type as Container, the container will be responsible to handle the transactions for the beans.

Thus, you did not have to do anything special for transactions.

Nick


SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)
sawan parihar
Ranch Hand

Joined: Aug 24, 2004
Posts: 250
Hi,
if you have not specified the transaction attribute in the <assembly-descriptor> part of the ejb-jar.xml most of the container will assign their default transaction attribute. eg weblogic defaults to supports.

For more information search the form and you will get the answers.


Sawan<br />SCJP,SCWCD,SCBCD<br /> <br />Every exit is an entry somewhere.
Angelino Dolce
Greenhorn

Joined: Jul 26, 2005
Posts: 24
Thank's Sawan.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: About CMT Bean