-
1. Re: Specify absolute path to a jar file in module.xml
jaikiran Sep 26, 2012 1:33 AM (in response to gsinghal)Why do you want to keep that jar outside of the module?
-
2. Re: Specify absolute path to a jar file in module.xml
nickarls Sep 26, 2012 1:42 AM (in response to gsinghal)Never tried but the docs say that "The path of this resource root, relative to the location of the module.xml file". Perhaps some ".." trick might work but not sure if you can get to any path from there.
-
3. Re: Specify absolute path to a jar file in module.xml
gsinghal Sep 26, 2012 9:15 AM (in response to jaikiran)Its a jar file thats delivered by another product so we need to point to that using an absolute path.
-
4. Re: Specify absolute path to a jar file in module.xml
guinotphil Sep 26, 2012 11:42 AM (in response to gsinghal)Can't you just copy the jar file within your module or within your own Nexus repository.
I use different versions and other libraries as modules which as not included on the default AS-7 installation. To easily deploy them to any AS-7 installation, I customised JBoss' Ant files to retrieve the jar from Nexus and re-create the module directory. I think this is better than having your production dependent to an external directory.
-
5. Re: Specify absolute path to a jar file in module.xml
gaoyonglu Feb 27, 2013 3:57 AM (in response to gsinghal)I have one way,that use linux ls -s Soft connection
-
6. Re: Specify absolute path to a jar file in module.xml
gaoyonglu Feb 27, 2013 4:00 AM (in response to guinotphil)you can see https://community.jboss.org/message/799782#799782
if db2 driver update ,I want the jboss no need update module,so I need dependent to an external directory
-
7. Re: Specify absolute path to a jar file in module.xml
zhouyaguo Feb 27, 2013 4:10 AM (in response to jaikiran)jaikiran pai wrote:
Why do you want to keep that jar outside of the module?
There is a case as following:
In our production environment, we install db2 client on every machine. If db2 driver is installed as a module into jboss as 7 , i have to replace the jar when upgrading the db2 client instance, i don't like to do the upgrade in *2* steps.
I set the db2 client jar to classpath in jboss as 5 and it worked fine, but the situation is different in jboss modules in jboss as 7.