I'm trying to get dynamic loading of the interface classes using the
webserver to work also...
Ole, you say that classes in the EJB JAR are not served by the web server?
If this is true (I'll take your word for it), dynamic class loading is only
useful if one
adopts your approach and just put the interface jars in the class path.
Unfortunately, there's no way to add
a JAR to the classpath at runtime (as far as I know), so you would have to
bounce the server
or use a custom class loader.
Also, why is there no "sure way" to differentiate between interface classes
and implementation classes?
Seems to me that you could just check the type of classes in the JAR and
only serve those that are of
type EJBOjbect or EJBHome, which would only be the interface classes.
Am I missing something here?
regards,
Joe Barefoot
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Ole Husgaard
Sent: Wednesday, February 14, 2001 10:37 AM
To: jBoss
Subject: Re: [jBoss-User] DYNAMIC CLASSLOADING
Hi,
Isn't it your EJB home interface that
cannot be found?
This is in your EJB jar, and its
classes are not served by the web
server.
This is similar to when one EJB jar
tries to access classes and defined
in another EJB jar.
Problem is, while it would make
sense to serve the interface classes
(but not implementation classes) of
the EJB jar, there are no sure way
to differentiate what classes are
interface and which are
implementation.
I seperate my EJBs in different jars
for implementation and interface.
EJB implementation jars go to deploy
directory, while interface jars go
in classpath.
Best Regards,
Ole Husgaard.
[EMAIL PROTECTED] wrote:
>
> Hi Tom
>
> I have put a line in the Webserver class to log each time a File (class or
> resource) gets downloaded to the remote client.
> As you can see from the cut&paste below javax.ejb.EJBHome & EJBException
> classes do get downloaded along with a lot of dependant classes.
>
> I think the answer lies in the printout below (or what's NOT in the
> printout). What is essential to instantiate (narrow) a Home interface.
And
> Why does it give a
> NoClassDefFoundError if the Home.class gets downloaded as well as its
> dependant classes.
>
> One curiosity though is that the Home interface seems to be downloaded
> twice????
>
> ///////////////////////////////////////
> // CUT & PASTE
> ///////////////////////////////////////
> [Webserver] Downloading File/Resource jndi.properties
> [Webserver] Downloading File/Resource
> com/argiley/ejb/cmp/contracting/SKILLSHome
> .class
> [Webserver] Downloading File/Resource
> com/argiley/ejb/cmp/contracting/SKILLSHome
> .class
> [Webserver] Downloading File/Resource javax/ejb/EJBHome.class
> [Webserver] Downloading File/Resource javax/ejb/EJBException.class
> [Webserver] Downloading File/Resource javax/ejb/FinderException.class
> [Webserver] Downloading File/Resource
> com/argiley/ejb/cmp/contracting/SKILLSPK.c
> lass
> [Webserver] Downloading File/Resource
> com/argiley/ejb/cmp/contracting/SKILLS.cla
> ss
> [Webserver] Downloading File/Resource javax/ejb/EJBObject.class
> [Webserver] Downloading File/Resource javax/ejb/CreateException.class
> [Webserver] Downloading File/Resource jndi.properties
> [Webserver] Downloading File/Resource jndi.properties
> [Webserver] Downloading File/Resource
> org/jnp/interfaces/NamingContextFactory.cl
> ass
> [Webserver] Downloading File/Resource
> org/jnp/interfaces/NamingContext.class
> [Webserver] Downloading File/Resource
org/jnp/interfaces/NamingParser.class
> [Webserver] Downloading File/Resource
> org/jnp/server/NamingServer_Stub.class
> [Webserver] Downloading File/Resource org/jnp/interfaces/Naming.class
> [Webserver] Downloading File/Resource
> org/jnp/interfaces/NamingEnumerationImpl.c
> lass
> [Webserver] Downloading File/Resource javax/ejb/Handle.class
> [Webserver] Downloading File/Resource javax/ejb/HomeHandle.class
> [Webserver] Downloading File/Resource javax/ejb/EJBMetaData.class
> [Webserver] Downloading File/Resource javax/ejb/RemoveException.class
> [Webserver] Downloading File/Resource
> org/jboss/ejb/plugins/jrmp13/interfaces/Ho
> meProxy.class
> [Webserver] Downloading File/Resource
> org/jboss/ejb/plugins/jrmp/interfaces/Home
> Proxy.class
> [Webserver] Downloading File/Resource
> org/jboss/ejb/plugins/jrmp/interfaces/Gene
> ricProxy.class
> [Webserver] Downloading File/Resource
> javax/transaction/TransactionManager.class
>
> [Webserver] Downloading File/Resource
> org/jboss/ejb/plugins/jrmp/interfaces/Cont
> ainerRemote.class
> [Webserver] Downloading File/Resource
> org/jboss/ejb/plugins/jrmp/server/JRMPCont
> ainerInvoker_Stub.class
> [Webserver] Downloading File/Resource javax/transaction/Transaction.class
> [Webserver] Downloading File/Resource
> org/jboss/ejb/plugins/jrmp/interfaces/EJBM
> etaDataImpl.class
> [Webserver] Downloading File/Resource
> org/jboss/ejb/plugins/jrmp/interfaces/Home
> HandleImpl.class
> ///////////////////////////////////////
> // CUT & PASTE
> ///////////////////////////////////////
>
> Thanx
> Ivanhoe Abrahams
>
> ______________________________________________________________________
> Ernst & Young South Africa - http://www.ey.com/southafrica
>
> WARNING: this e-mail contains confidential information and any
> unauthorised use or interception is illegal.
> If this e-mail is not intended for you, you may not copy, distribute
> or disclose the contents to anyone nor
> take any action in reliance on the content. If you receive this in
> error, please contact the sender and
> delete the material from any computer.
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> List Help?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]