• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB JAR problem!?

 
tony mao
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi gurus:
I work with EJB for a long time, and find that the classes that the Beans want to use must be contained in the same Bean's jar.Is this right?
And i think that the Bean's JAR should only contain the Bean Classes and nothing else.Should i set the proper classpath when i compile the Bean's Classes and package them?Thus the JAR maybe not contain the No-Bean's Classes.
hope give me some advice 3ks
 
Jun Hong
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
It depends. For example, if you are using WebSphere 3.5, you can put the classes used by a EJB in classpath.
If you are using WebSphere 4.0, which is J2EE 1.1 compatible, everything should be in a .ear file. The classes used by EJB is in this .ear file. The classpath is relative to the root of this .ear file and it is specified in the manfest file.
 
tony mao
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
that is if i modify the dependent classes of the EJB then i will re-package the JAR or EAR file and re-depoly the BEAN?
is that so complex?any ways easily to modify the BEAN's dependent classes ?
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
photonman mao,
It would appear that this is not a real name (photon man?), so please change your display name to your real first name - space - last name.
Thanks,
Tom - moderator of this forum
 
tony mao
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
o,is that need real name?
if so i will change it.
--tony
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!