Hi, Yeah,You are right, I was confusing my self. Thanks Ashwani
Johan Eltes <[EMAIL PROTECTED] To: [EMAIL PROTECTED] ISTA.SE> cc: (bcc: ashwani.kalra/Polaris) Sent by: A Subject: Re: how to access common files in jar from ejb and web mailing list for modules of ear file Enterprise JavaBeans development <[EMAIL PROTECTED] A.SUN.COM> 03/10/2003 04:46 PM Please respond to Johan Eltes hi! It is fine to put the dependent jar (shared jar) in the ear file, to be referenced by multiple module archives, like an ejb-jar and a war. Each j2ee module archive has to reference the dependent jars by their respective manifest files. So the model is that each j2ee archive reference the dependent jar by ClassPath entries in their manifest files - not the other way around. /johan On Mon, 10 Mar 2003 15:37:43 +0530 Ashwani Kalra <[EMAIL PROTECTED]> wrote: > >Hi, >John some time back you told me to put the jar in the >ear. Now how make it >visible to ejb layer and web(war). This is possible if I >make its entry in >manfest file. Other wise how I will do it . let me know ? > > > > > > > > > Johan Eltes > <[EMAIL PROTECTED] To: > [EMAIL PROTECTED] > ISTA.SE> cc: > (bcc: ashwani.kalra/Polaris) > Sent by: A Subject: > Re: how to access common files in jar from ejb and >web > mailing list for modules of > ear file > Enterprise > JavaBeans > development > <[EMAIL PROTECTED] > A.SUN.COM> > > > 03/10/2003 02:13 > PM > Please respond to > Johan Eltes > > > > > > > >Hi! > >What you want to acheive is not J2EE. J2EE leaves you >with >the option that you have got to work. > >/Johan > > > >On Mon, 10 Mar 2003 13:16:03 +0530 > Ashwani Kalra <[EMAIL PROTECTED]> wrote: >> >>hi, >>let me add more info to make my point clear >> >>I have following components at the same level directly >> in my ear file >> >>1. allejbs.jar file (containing all ejbs) >>2. war file (cotaining web components) >>3. common.jar (required by ejb jar and war files) >> >>What currently I am doing is that I am setting the >> following entry in >>manifest file of allejbs.jar and war file >> >>Class-Path: common.jar >> >>But What I want is that I want to specify this at the ear >>file's manifest >>so that I dont have to individually give this entry. But >>this is not >>working. >> >> >>Harpreet this I think doent have to do anything about >> the scope you are >>talking about on WAS I will tell you later that due to >>this ( I am ofcourse >>using module level visibility). I am getting another >>problem. >> >> >> >> >> >> >> >> >> >> Srihari Srinivasan >> <[EMAIL PROTECTED] To: >> [EMAIL PROTECTED] >> ILIPS.COM> cc: >> (bcc: ashwani.kalra/Polaris) >> Sent by: A mailing >> Subject: Re: how to access common files in >>jar from ejb and web >> list for Enterprise >> modules of ear file >> JavaBeans development >> <[EMAIL PROTECTED] >> .COM> >> >> >> 03/10/2003 12:41 PM >> Please respond to >> srihari.srinivasan >> >> >> >> >> >> >> >>Hi >>check out the J2EE spec.............i am referring to >>j2ee-1_4 proposed >>final draft section 8.2 >>************************ >>The following example illustrates a simple use of the >>bundled optional >>package mechanism to reference a library of utility >>classes that are shared >>between enterprise beans in two separate ejb-jar files. >>app1.ear: >>META-INF/application.xml >>ejb1.jar Class-Path: util.jar >>ejb2.jar Class-Path: util.jar >>util.jar >>************************ >> >>looks like u need to specify them separately each >>time!!!! >>hope this helps >> >> > -------------------------------------------------------------------------------------------------------------------------------- > >> >>S Srihari >> >> >> >> >> >> To: >>[EMAIL PROTECTED] >> cc: >> (bcc: Srihari >>Srinivasan/BTC/COMP/PHILIPS) >> Subject: >> how to >>access common files in jar from ejb and web modules of >>ear >> file >> Ashwani Kalra >> <[EMAIL PROTECTED] >> Classification: >> .IN> >> >> Sent by: >> A mailing list for >> Enterprise JavaBeans >> development >> <[EMAIL PROTECTED] >> M> >> >> 03/10/2003 12:11 PM >> Please respond to >> ashwani.kalra >> >> >> >> >> >> >>hi, >> >>I am having some common files in jar file(say common.jar) >>used by ejb and >>web module. >> >>If I try to set the classpath attribute in ear file >>manifest as >> >>1. Class-Path: common.jar >> >>This doesnt work (doesnt pick the classes). >> >>How ever if I individually put the entry 1 in manifest >>files of ejb >>modules and webmodules, then it doesnt give the error. >> >>But I want to use the first method . Is there anything >>wrong. >> >>I am using WAS 4.0.1 for multiplatform. >> >>Regds >>Ashwani >> >>(See attached file: InterScan_Disclaimer.txt) >> >> >> >> >> > > =========================================================================== >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".
This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited. Visit Us at http://www.polaris.co.in