• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

EJB Problem

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what's the different between the EJBS in different "*.jar"s?
why can't i share the class's static properties between EJBs in different "*.jar"s?
 
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
A jar file is just a packaging format for the various ejbs. We just create ejb classes then package them in jars and then we deploy the jar file either directly or by making a new file which is an ear file.
Its as simple as that
 
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Depending on the application server, and how you deploy the EJBs it could be a classloader issue.
Could you provide more details about your problem?
SteveC
 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How should the beans be packaged ? In one JAR or in multiple jars ?
I've seen people put Entity beans in one and Session in another ... Is this for a reason ?

What is best ?
 
sharp shooter, and author
Posts: 1913
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"heilnqing", please could you take a quick look at the naming policy and edit your profile accordingly.
Welcome to JavaRanch, and we hope that you enjoy your stay.
Cheers
Simon
 
sam he
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
when i deployed the "*.jar"s to weblogic ,i can not share the static properties of class in one "* jar" with others.
 
Rahul Mahindrakar
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thats a bit strange sam. I refer to this link
http://edocs.bea.com/wls/docs70/programming/classloading.html#1029830
and the figure 3-1. What i see is that there is a System Classpath classloader
a Ejb Class Loader
and an Web app classloader
The EJB1 and EJB2 are shown as ifthey coexist withing a single class loader so if they share a utility class for example it should be available to both EJB1 and EJB2.
Another question that comes to my mind is that if EJB1 invokes EJB2 which are in different jars then do the EJB1 jar file need to have the EJB2 Home and remote classes.
 
Simon Brown
sharp shooter, and author
Posts: 1913
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here's a great chapter about J2EE Packaging and Deployment that you might find useful.
Simon
p.s. thanks for changing your name
[ July 12, 2002: Message edited by: Simon Brown ]
 
Dave Van Even
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
THanks That really made a difference to me

Dave Van Even
 
Yes, my master! Here is the tiny ad you asked for:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic