• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 49
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
Bartender
Posts: 1051
5
Hibernate Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Remove the throws clause here. A RemoteException should only be thrown in a remote interface, not the implementing class.
 
You don't know me, but I've been looking all over the world for. Thanks to the help from this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic