• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Please point out mistake while deploying EJB3.1 - No-Interface, 2.1 and 3.1 views together ??

 
Anirudh Gupta
Ranch Hand
Posts: 49
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can an EJB expose a 3.1 Business Component Interface(Remote+Local), a 2.1 Interface(Remote+Local) and a No-Interface view together?

I am having trouble deploying an EJB which exposes all 3 views in Weblogic 12.1.1.

The server keeps throwing an Exception.

My deployed EJB is simple and is as below. The gotToDoOld() method is declared in the 2.1 remote component interface.
The declaration of the Remote interface has been been made in the ejb-jar.xml. The Home interface has been declared
in the bean class also as can be observed in the code below.

Can some one point out the mistake I am making

Exception,


EJB,
 
James Boswell
Bartender
Posts: 1051
5
Chrome Eclipse IDE Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Remove the throws clause here. A RemoteException should only be thrown in a remote interface, not the implementing class.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic