[jboss-user] [EJB 3.0] - Re: ClassCastException on Stateless Session Bean

jaikiran do-not-reply at jboss.com
Wed Mar 4 06:27:07 EST 2009


anonymous wrote : the MyStatefulSession.class is packaged in server/MyServer/lib/MyLibrary.jar and in our EAR, too. 

Ideally, nothing from your application should go in the server/< serverName>/lib folder.

The bean interfaces can be packaged in a jar (MyLibrary.jar) and the jar can be placed in the EAR/lib folder. That's it. Now this jar (in the EAR/lib folder) will be available to all the components within the EAR. So your EJBs and the servlets in the WAR (inside this EAR) can use these interfaces.


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214845#4214845

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214845



More information about the jboss-user mailing list