Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB 3.0 - stubs & skeletons?  RSS feed

 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36463
464
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In EJB 1.X/2.X we have an extra step to generate the deployed code. (The _* and EJS* classes for a session bean.)

Is this step gone with EJB 3.0 and annotations. I think it is because I can't find any tutorials that reference it. But I'm not positive - I could just be reading tutorials that assume you know to do that.

[edited to make subject clearer]
[ October 26, 2006: Message edited by: Jeanne Boyarsky ]
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry to interfere, but what are _* and EJS* classes ?
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36463
464
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Satou,
You're not interfering - this is a discussion forum.

When you generate EJB deploy code in WebSphere it creates classes like _SSB and EJSSSB. (SSB = stateless session bean) for the local/remote interfaces, bean, etc. I don't know if this is WebSphere specific. Basically, I mean the results of running the EJB Deploy tool.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean the stubs ? I remember seeing _* when generating client code using Sun's deployertool, but not EJS*.
 
Anjaneyulu Aerrolla
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes the _EJS is WebSphere specific , may be for otehr servers it diffres
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know if this is WebSphere specific


You are right Jeanne, these are Websphere specific classes(stubs). Most of the times i use JBoss and JBoss makes use of dynamic proxies and you wont find similar classes in it.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36463
464
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I meant the stubs. So my question is really:
Are there stubs and skeletons in EJB 3.0?
[ October 26, 2006: Message edited by: Jeanne Boyarsky ]
 
Jon Wetherbee
author
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jeanne-
This really is an implementation detail specific to each vendor. In EJB 3, as in earlier releases, session beans with remote interfaces require remoting code (RMI/IIOP stubs/skeletons), but this can be handled through dynamic proxies. There is certainly no requirement for explicitly generated stub/skeleton classes.

Remote EJB 2.x entity beans had the same issue, but none of this applies to JPA entities, since they are POJOs and not remotable components. They can be serialized and passed between VMs (e.g. application tiers), but do not support the type of remote access that would require stub/skeleton code.

Regards,
Jon
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36463
464
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jon,
Thank you for that explanation. In addition to answering my question, it explains why I was having so much trouble finding a definitive answer in the tutorials.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!