Are there any other steps I need to do to make a class in one jar visiable to a class in another jar.
If I put BrokerTrade.class into the BrokerEJB.jar I solve the problem, but what I want to find out is how classes from one jar can interact with classes from another jar.
Joined: Jun 29, 2002
Solved the problem in my BrokerEJB.jar under the META-INF directory I need to add the classpath TradeJar.jar to the Manifest.mf
I thought you only needed to add it under the .EAR META-INF, but if a class in one jar is calling a class in another jar then you need to add that jar to the first classes Jar classpath which is the Manifest.mf file.
Exactly. If it is in the same ear, you would use your application.xml to set the "modules". so a module would point to a jar file. In this case the Ear file does not need the information in the META-INF file.