[jboss-user] [EJB 3.0] - Question on @Service annotated beans

JonathanDFields do-not-reply at jboss.com
Thu May 15 11:40:10 EDT 2008


Hi,

In the past, I have used plain JMX MBeans  to create my own services, which do things like create threads, access files, etc. These MBeans also do database access using Hibernate, managing their own transactions and sessions.

My question is how do the @Service annotated beans compare to the old "regular" MBeans?

On the one hand, can I still create threads, do file system access, etc, or is this prohibited as for EJBs?

On the other hand, are transactions being managed for the @Service annotated beans, like other EJBs, or do I still need to manage my own transactions and Hibernate sessions (or JPA entity managers).

Thanks,
Jon Fields



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151139#4151139

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151139



More information about the jboss-user mailing list