wood burning stoves 2.0*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Doubt about Transaction Attributes 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 "Doubt about Transaction Attributes" Watch "Doubt about Transaction Attributes" New topic
Author

Doubt about Transaction Attributes

Wladimir Babitzki
Greenhorn

Joined: Apr 27, 2004
Posts: 19
The spec, 17.4.1, says that the transaction attributes must be specified for the particular methods from the bean�s component and home interfaces.

It�s not clear for me, why I can deploy beans on JBoss with the complete empty assembly-descriptor part. I�ve expected some errors about failed attributes during the deployment. But it works and looks so I don�t need any transaction attributes.
Wladimir Babitzki
Greenhorn

Joined: Apr 27, 2004
Posts: 19
Is my English so poor that nobody can understand my question or just no ideas?
Vagner Freitas
Ranch Hand

Joined: Aug 02, 2004
Posts: 85
Hi Wlad!

Don't worry about your English. It is OK.
How did you deploy your beans in JBoss? Did you use any deploy tool?

Vagner


SCJA, SCJP, SCBCD & SCEA (Part I)
Wladimir Babitzki
Greenhorn

Joined: Apr 27, 2004
Posts: 19
Hi Vagner,

Thanks for your response!

As far as I know, there's no deployment tools for JBoss. What I'm doing just create a Jar-File and then copy it to the Deploy Directory. When JBoss finds some new files in his deploy directory, he try to deploy them. JBoss logs some information about the deployment, something likes this:



In the ejb-jar.xml I've used really NO transaction attributes, whereas I've declared a session bean in it. The <I>assembly-descriptor</I> is empty and <I>transaction-type</I> declared CMT.
Wladimir Babitzki
Greenhorn

Joined: Apr 27, 2004
Posts: 19
Now all my doubts are released, if vendors can provide a way to use a default transaction attribute, then it's all possible.

Thanks to the topic:

http://www.coderanch.com/t/159987/java-EJB-SCBCD/certification/transaction-attributes-compulsory-all-Component
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Doubt about Transaction Attributes