• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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: 8944
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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic