Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Configure a shared library dir in AS7

 
Xolani Nkosi
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Xolani Nkosi
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic