• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Doubt about Transaction Attributes

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is my English so poor that nobody can understand my question or just no ideas?
 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:

https://coderanch.com/t/159987/java-EJB-SCBCD/certification/transaction-attributes-compulsory-all-Component
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic