Hi,
When I include multiple EJBs in the same jar, I will have to include all the
dependent classes of these EJBs into the same jar. If the class files are
not present, the Deployer throws a "NoClassDefFound" exception and fails to
load the jar file. But once the class files are included, the jar file
becomes too huge to deploy. Can you pls suggest an alternative for this? I
tried putting the packages in separate packages in separate jar files and
including them in the classpath, but this didnt work.
Regards,
Madhavi.
> -----Original Message-----
> From: Anil Colin Lobo [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, August 30, 2000 10:25 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Multiple EJBs in single jar
>
> Hi,
> You can have multiple EJBs in the same jar. You can check out the
> deployment descriptor dtd in the EJB 1.1 spec (section 16.5) for more info
> of how to do that. Coming to your questions :
> 1: I feel that the Entity EJbs and the Session Ejb which gives the facade
> for them can be in the same jar file. So you get a jarfile containing a
> particular discrete business logic functionality (or functionalities).
> 2: But, it is easier to maintain and redeploy EJBs if they are seperate
> jars
> during development.
>
> But anyway, its your choice.
> HTH,
> Anil
>
> --------------------------------------------
> Anil Colin Lobo
> Aztec Software, Inc.
> 3211 Scott Blvd., Suite 204
> Santa Clara, California 95054
> Ph: (408) 7483500
> Web: http://www.aztecsoft.com
>
> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of Shiv Kumar
> Sent: Tuesday, August 29, 2000 11:38 PM
> To: [EMAIL PROTECTED]
> Subject: Multiple EJBs in single jar
>
>
> Hi all
>
> I posted this question two days back. I did not get any useful response.
> Forwarding it again..
>
> I have a stateless session bean calling different entity beans. I would
> like
> to
> hear on how to jar all these EJBs.
>
> Basically, I have two choices :-
>
> * Have one separate Jar for each EJB (one session and other entites)
> * Have a single Jar for all EJBs (session and entities)
>
> What is the recommended approach? What is the advantage/disadvantage?
>
> TIA.
> --
> shiv
> [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".