Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB Container's Job.....  RSS feed

 
Raja Chandrasekaran
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
1. I am just wondering how will the runtime implementing classes (EJBObject class, EJBObject Stub Class, Home class and Home stub class) generated by EJB Container looks like ? Is there any way ???

2. Does the implementing class generated by EJB Container instantiates the bean ? What I mean is does the EJBObject class create Enterprise Bean object and access its methods??

3. How does container know which bean needs to be accessed in its implementing classes?

Thanks.
Raja
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
am just wondering how will the runtime implementing classes (EJBObject class, EJBObject Stub Class, Home class and Home stub class) generated by EJB Container looks like ? Is there any way ???


You could decompile the container generated classes.
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Raja Chandrasekaran:
Hi,
1. I am just wondering how will the runtime implementing classes (EJBObject class, EJBObject Stub Class, Home class and Home stub class) generated by EJB Container looks like ? Is there any way ???

2. Does the implementing class generated by EJB Container instantiates the bean ? What I mean is does the EJBObject class create Enterprise Bean object and access its methods??

3. How does container know which bean needs to be accessed in its implementing classes?

Thanks.
Raja


In this question, i think , you can generate stub class or etc but you should be have knowledge in EJB Container Model and so on....

EJB Container is Level implementation of Developer View.
 
Karthik Guru
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
uhhm, i remeber having tried looking at them and its quite complicated , i mean the generated code.

Weblogic for eg provides you with a "keepgenerated" option while doing a weblogic.appc. You can enable it through the ant task as well.

Looks like JBoss 4.0 uses AOP to do all the interception and not the typical extra generated classes option.

I wonder if looking at their aspects , we would be able to understand such low level stuff a little better :roll:

But then you need to understand AOP for that.
 
Raja Chandrasekaran
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Better to keep my hands away from generated code
Thanks for all your responses....

-Raja
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!