JBoss Community

Adding separately deployed .jar files to other .ear's classpath...

created by Martin Wortner in JBoss AS 7 Development - View the full discussion

Hi,

I have an ear, and inside of this ear I need to have on the classpath some jar's classes to be able to load them via Java ServiceLoader.

I'd like to use the jBoss AS maven plugin for deploying or just directly copy the .ear and jars into deployments folder of jBoss 7 server.

 

Is it possible that the ear will somehow see(be able to load them via ServiceLoader.load(class) call) the jar files??? So the jar files should act like "shared" library.

 

And if it is possible, what exactly happens when I will un(re)deploy these .jars?

 

Thanks for answer in beforehand.

 

regards

 

Martin

!

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community