• 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

Home local interface allows only one create method ?

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 452
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic