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".

Reply via email to