views:

144

answers:

2

Hi,

I'm developing j2ee app on glassfish v3 which will remotely call EJB deployed on jboss 5 app server. For this to work, my app has to have jboss client jars in class path. I managed to do this by packaging client jar files with my application, but this expends size by aprox 10mb, thus uploading app becomes an issue.

How can I put these jars elsewhere so that gf picks them up so I dont need to hold them in my app?

A: 

You could put them in the server's classpath if necessary. Go to the domain's lib directory.

Zack
Can I put them in some other dir and then tell gf to look in there?
Marko
A: 

In your Glassfish domain's domain.xml you can use the classpath-suffix attribute of the java-config tag to point to locations that should be part of Glassfish's classpath for that particular domain.

objectified