Filip
Filip

Reputation: 443

Use external jars in EJB (JBoss)

I want to use two external jars from EJB:

  1. jar #1 - all interfaces of the EJB (home, remote etc)
  2. jar #2 - some types which I use inside my EJB

What should I do to achieve this? If I put this jars inside ear it doesn't work, and JBoss throws NoClassFoundException

Upvotes: 0

Views: 795

Answers (1)

Yishai
Yishai

Reputation: 91931

you need to include them in a lib directory under the ear:

 yourapp.ear
   ->lib
       ->jar1.jar
       ->jar2.jar

Upvotes: 3

Related Questions