I've just got a simple problem. I'm running a Java servlet on the SAP J2EE Engine, which uses the BI Java SDK to connect to a BW system. This works fine if I include all jar files from the SDK in the project classpath via the "add external jar" button.
However, doing so results in a really big ear file (because all the jar files are included in it) which takes some time to deploy therefore.
I tried to follow the guide How_To_BI_Java_SDK_J2EE_App.pdf, telling me that "the BI Java SDK libraries are required to compile this scenario". My question is now, how do I correctly add/reference these jar files so that they won't be included in the ear file which I have to deploy every time I'm changing the source code?
Thank you very much for your help.
the way to go is:
1. Deploy the BI Java SDK as a library on the server. <a href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/2ade3fc6c6ec06e10000000a1550b0/frameset.htm">This</a> docu should give you the basic info about how to do it.
2. Set a reference to this library from the servlet's application. You do that in the application-j2ee-engine.xml. This is the <a href="http://help.sap.com/saphelp_nw04/helpdata/en/53/69662514eb6e46b1eb6e77ae5cf10b/frameset.htm">doc</a> you can refer to.
With this, your servlet should be able to use the BI libs at runtime.
Hope that helps!