Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt about Transaction Attributes

 
Wladimir Babitzki
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is my English so poor that nobody can understand my question or just no ideas?
 
Vagner Freitas
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Wladimir Babitzki
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic