-
1. Re: Class Loading
nickarls Feb 1, 2013 3:48 AM (in response to sammie88)Can the common files be placed in a module which both reference?
-
2. Re: Class Loading
sammie88 Feb 1, 2013 12:06 PM (in response to nickarls)Thanks Nicklas- I was thinking of that too - the new shared module though would just have utility classes - can I still put that jar in the deployment directory even though it is not an EJB, connector,etc ? Is that conventional? Sorry Im new to this..
-
-
4. Re: Class Loading
sammie88 Feb 1, 2013 4:34 PM (in response to sammie88)A module in the deployment folder?
-
5. Re: Class Loading
sfcoy Feb 2, 2013 1:02 AM (in response to sammie88)It doesn't need to be a module. Just place the classes in a jar in the EAR/lib directory and they will automatically be available to all components in the EAR.
This is bog standard JEE packaging.
...
OK, so I read your original post again. If you're not using an EAR then you should consider it. It will make life simpler for you.
{code}EAR/
META-INF/
application.xml
ModuleA.jar
ModuleB.rar
lib/
utilities.jar
{code}
You don't need to add stuff to manifests or anything like that.
-
6. Re: Class Loading
sammie88 Feb 2, 2013 1:08 AM (in response to sfcoy)Ill try to do that. That was one option I was considering. Thanks!