This content has been marked as final.
Show 4 replies
-
1. Re: Where to put application- AND layer-specific jar-files w
jaikiran Mar 16, 2008 3:21 AM (in response to j0llyr0g3r)Which version of JBoss? In JBoss-4.2.x, you can create a folder named "lib" at the root of the EAR and place your common jar files in that lib folder. These jars will be made available in the classpath of your application.
-
2. Re: Where to put application- AND layer-specific jar-files w
j0llyr0g3r Mar 16, 2008 6:28 AM (in response to j0llyr0g3r)Hi,
Which version of JBoss?
sorry, totally forgot to give this information: Yes, i was referring to Jboss V. 4.2.In JBoss-4.2.x, you can create a folder named "lib" at the root of the EAR and place your common jar files in that lib folder. These jars will be made available in the classpath of your application.
Ah, thanks very much!
One more question regarding this matter:In JBoss-4.2.x, you can create a folder named "lib" at the root of the EAR and place your common jar files in that lib folder. These jars will be made available in the classpath of your application.
Is there a way to let ant do this? I don't see a corresponding parameter in the ant EAR task according to: http://ant.apache.org/manual/CoreTasks/ear.html
I would have expected a lib-parameter or something like that, but i don't see anything that meets the requirements....
And using "include" will not create a lib-directory.
Sure i could do this stuff manually, but is there an "ant-way" to do this? -
3. Re: Where to put application- AND layer-specific jar-files w
peterj Mar 17, 2008 12:54 PM (in response to j0llyr0g3r)I think you are looking for this:
<ear ...> <zipfileset dir="..." prefix="lib"> <include name="activeMQ.jar" /> </zipfileset> </ear>
Personally, I never use the "ear" task to create an ear. Instead I first copy everything that goes into the ear to a directory, then use the jar task to package up that directory. I do it this way because 90% of the time what I want to deploy is the exploded ear directory, not the ear file. -
4. Re: Where to put application- AND layer-specific jar-files w
j0llyr0g3r Mar 19, 2008 8:22 AM (in response to j0llyr0g3r)Thank you very much, Peter, works like a charm...:-)