Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB3 Session bean Superclass

 
Vidhya Prabhu
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All!

Could Any1 help me with EJB3 spec 4.6.2:
The session bean class may have superclasses and/or superinterfaces. If the session bean has
superclasses, the business methods, lifecycle callback interceptor methods, the timeout callback
method, the methods of the optional SessionSynchronization interface, the
Init or ejbCreate<METHOD> methods, the Remove methods, and the methods of the
SessionBean interface, may be defined in the session bean class, or in any of its superclasses.
A session bean class must not have a superclass that is itself a session bean class.

The problem is that we are migrating from ejb2 to ejb3 and in our project we have session bean class extending session bean class which violates above spec. Now I am using weblogic 10.3 which shows this error but this works fine with JBoss 4.

Can anyone provide me with a solution? Is it possible in anyway to get methods of sesssion bean class inherited?

Thanks

Vidhya.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic