dcsimg
Any helping class should be deployed with EJB?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Muhammad_Asif
Posted On:   Tuesday, April 17, 2001 05:26 AM

I have an entity bean. It uses a common class used by some other EJBs too.
Now i do not want to deploy this common class with each EJB but put it in some common package accessiable by each EJB.
Doing so, causes error:ClassDefinationNotFound.

Is it not possible to do in this way...and we have to deploy each helping class of EJB alongwith EJB?

Re: Any helping class should be deployed with EJB?

Posted By:   Shaun_Childers  
Posted On:   Tuesday, April 17, 2001 12:56 PM

Simply put the common classes (say they are in a package labeled 'com.company.util') in their own '/classes' directory (or your choice) and then put that directory in your classpath and your problem should go away.

So you would have:

/classes/com/company/util/YourClass.class
About | Sitemap | Contact