views:

33

answers:

1

Hello!

I need to use EJB remote calls from my grails application. For this in previouse Servlet application I used client glassfish jar(gf-client.jar) and is's worked.

How I can include gf-client.jar into build path in grails app for call EJB methodth?

thank you.

A: 

Put gf-client.jar into the lib directory of your grails app. Any jar files in the lib directory of your grails app will automatically be included when you run your application as well as be packaged in generated war files.

Jared
It's not so easy! At first - there is using not one jar-file, but it has a lot of dependencies in different directory levels on the same path. And second - if I place all libraries files in lib directory, grails Tomcat plug-in starts compile with errors. Actually, I need place gf-client.jar only in development mode. On real server all libraries are attached to server though catalina.properties
malex