Hi,

I've been trying to create a Stateless Session Bean that has an ejbCreate method that 
takes some parameters. I'm using JBoss 3.0.8 and was wondering if this is just a 
version limitation or am i doing something wrong.

my code looks something like

  |     public void ejbCreate(String param1, String param2 ) {
  |             this.param1 = param1;
  |             this.param2 = param2;
  |             
  |     }
  | 

When i try to deploy, i get the following

java.lang.NoSuchMethodException: 
org.jboss.ejb.StatelessSessionContainer.createHome(java.lang.String, java.lang.String)

According to the EJB 2.1 Spec (Sec 7.11.3, p110), we should be able to define 
ejbCreate methods in Session Beans that take parameters. Is it just that 3.0.8 is 
based on an older version of the EJB spec that didn't allow ejbCreate methods to take 
arguments?

btw, i have also provided a default ejbCreate method that takes no parameters.

Thanks in advance

Cheers
Prem

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3850592#3850592

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3850592


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to