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 and other Java EE Technologies and the fly likes EJB Local Interface Calls and threads ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB Local Interface Calls and threads ?" Watch "EJB Local Interface Calls and threads ?" New topic
Author

EJB Local Interface Calls and threads ?

Jean-Luc Thirion
Greenhorn

Joined: Jan 24, 2008
Posts: 19
Hi,

I always thought that a business method call from a bean A on the local interface of a bean B was done in the same Thread as the execution of the method in B ? Probably that it is so in most server implementations, but is that required by the specification ? I think that the contrary would make server code and transaction management much harder...

Thanks in Advance for your responses...

More over in a previous post in an another topic I posted the way I would implement EJB in order to achieve scalability and fail-over with beans (things I know are NOT guaranteed by the spec). Is that realistic ? (Note: I don't want to implement a Server, just to get an idea of realistic implementations).

Please look here for my previous (maybe stupid) post: http://www.coderanch.com/t/422565/EJB-Other-Java-EE-Technologies/EJB-Tx-Exception-questions#1865164
Reza Rahman
author
Ranch Hand

Joined: Feb 01, 2005
Posts: 580
    
    5
Jean-Luc,

I am interested in developing an EJB 3 implementation as well (time has been my biggest problem for this). If you are serious about this, send me an email at reza_rahman@lycos.com.

Best regards,
Reza


Independent Consultant — Author, EJB 3 in Action — Expert Group Member, Java EE 6 and EJB 3.1
Jean-Luc Thirion
Greenhorn

Joined: Jan 24, 2008
Posts: 19
Reza Rahman wrote:Jean-Luc,

I am interested in developing an EJB 3 implementation as well (time has been my biggest problem for this). If you are serious about this, send me an email at reza_rahman@lycos.com.

Best regards,
Reza


Reza, thanks for your answer but like I said in my first post, I don't want to implement the spec. I just want to get a deep understanding of things and know how it is possible to write efficient implementations of the spec.

If you start an implementation, I will be very interested at looking each piece of code and maybe more. ;)

Best regards,

Jean-Luc
Adrien Ruffie
Ranch Hand

Joined: Jan 14, 2009
Posts: 90
Hello Jean-Luc,

Do you use a specific server ? and EJB3 or 2.1 ?

I think the transaction management refers to the JTA spécification rather than EJB no ?


SCJP 5, SCDJWS 5
http://adrien-ruffie.blogspot.com
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: EJB Local Interface Calls and threads ?