This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JBoss/WildFly and the fly likes Configure a shared library dir in AS7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Configure a shared library dir in AS7" Watch "Configure a shared library dir in AS7" New topic
Author

Configure a shared library dir in AS7

Xolani Nkosi
Ranch Hand

Joined: Apr 29, 2009
Posts: 32
How do you configure a shared library directory in AS7? So that any EAR I deploy will find the contents of that directory on its classpath, if it looks up a properties file or wants to use a class in a jar in the folder? In websphere, it's dead simple, and I was hoping that the contents of $JBOSS_HOME/standalone/lib or $JBOSS_HOME/standalone/lib/ext would automatically be on the classpath, with no joy.

So how's it done? Preferably with as little changes to the EAR as possible, as I'm trying to make an EAR that'll deploy to other app servers too (the question of why so much vendor-specific configuration is needed for what should a standard platform is a question for another day...)

Thanks
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10067
    
163

If you are looking for a portable way of doing this, then the spec recommended way is packaging the libraries within the .ear/lib folder. That should make it available in the classpath of the .ear

[My Blog] [JavaRanch Journal]
Xolani Nkosi
Ranch Hand

Joined: Apr 29, 2009
Posts: 32
Thanks, but that's not that way I want to do things, as it would mean redeploying the EAR every time I want to make a config change to a properties file. Anyone know how to configure a shared library folder in AS7?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10067
    
163

Thanks, but that's not that way I want to do things, as it would mean redeploying the EAR every time I want to make a config change to a properties file.

In that case, you'll have to go with a non-portable approach.

Anyone know how to configure a shared library folder in AS7?


See this http://community.jboss.org/message/615774#615774#615774
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Configure a shared library dir in AS7