Thanks for your answer !!!

I explain a little bit more :
In fact, my beans are not Book and Library, it is a simple example !

I have a bean named "Share" which is a financial instrument.

The second bean is a "ServiceRegistry", this one read a file and then create
the "Share(s)" beans.

I have create 2 jar because the "ServicesRegistry" can only create the Share
beans after the Share.jar is deployed.
The ServicesRegistry is like a startup class in WebLogic, it must start at
the startup after all the others beans have been deployed.
So, WebSphere and JBoss do not provide this feature, so I have create a
static block that start the ServicesRegistry.

I do not know how to do this !!! It is the only way I have found. I do not
like this, but .... if it is the only solution ???

So, to start the service registry after the others beans, I have create 2
.jar file and deploy the services.jar file at the end.

( I will post the question to '[EMAIL PROTECTED]' too! )

Thanks for your help

Christophe

> -----Original Message-----
> From: Rickard �berg [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, December 19, 2000 3:04 PM
> To:   [EMAIL PROTECTED]
> Subject:      Re: Cannot create Home
>
> Hi!
>
> Christophe Demez wrote:
> > I have 2 EJB, each EJB is in a separate ".jar" file :
> > - Book
> > - BookFactory
> >
> > In the "Library" bean I want to create an instance of a book.
> > I use this code to create the HomeInterface
> >
> >     HomeFactory.lookupHome( ShareHome.class )
> >
> > (The home factory is a pattern to create home, it is not part of EJB
> spec.)
> >
> > When the "Library" bean try to create the Home, I have a
> > NoClassDefFoundError.
>
> You need to include the remote interfaces of the other beans with your
> Library bean. Or make a separate jar with the interfaces that is used by
> both Book and Library beans.
>
> Or package them in one JAR. Why are you using one JAR per bean? They
> seem to be closely related, so why not use one JAR?
>
> > I use the EJBoss 2.0 server.
>
> The name is JBoss.
>
> You may want to try the jboss-user mailing list for JBoss support
> queries (see jboss.org for subscription details).
>
> /Rickard
>
> --
> Rickard �berg
>
> Email: [EMAIL PROTECTED]
>
> ==========================================================================
> =
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff EJB-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to