This week's book giveaways are in the Cloud/Virtualization and Go forums.
We're giving away four copies each of Cloud Native Transformation: Practical Patterns for Innovation and The Go Workshop and have the authors on-line!
See this thread and this one for details.
Win a copy of Cloud Native Transformation: Practical Patterns for InnovationE this week in the Cloud/Virtualization forum
or The Go Workshop in the Go forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Joe Ess
  • salvin francis

Home local interface allows only one create method ?

 
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
 
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.
 
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.
 
Ranch Hand
Posts: 8934
Firefox Browser Spring Java
  • 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.
 
Does this tiny ad smell okay to you?
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!