Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Home local interface allows only one create method ?  RSS feed

 
Catalin Mihalache
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I use JBoss 4.0 and I develop some local session beans that has multiple ejbCreate methods. When I try to deploy on JBoss 4.0, I receive this error message:

Section: 7.10.8
Warning: The local home interface of a stateless session bean must have one create method that takes no arguments.

That message error doesn't apprear if there is only one ejbCreate (with no params) but I receive the same error if I have more that one ejbCreate methods.

Please, help me. Is a bug in JBoss 4.0 or ... is just EJB (and why this behaviour)?

Thanks,
Cata
 
Prakash Dwivedi
Ranch Hand
Posts: 452
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to specs, stateless session bean can have one create method that takes no arguments. so there is no bug in JBoss, thats exactlty the way it should be.
 
Milind V. Kulkarni
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Per EJB Specifications Stateless EJBs can have only one create method. And it can not have any arguments. However, Statful EJBs can have multiple create methods and those including that accept arguments.
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stateless session beans can have only one create method - a noarg method. Stateless session beans are shared among clients so does not make sense to have create methods with arguments.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!