If I remember, you are not allowed to have a create method with parameters in
stateless session beans. Only stateful session beans are allowed to pass params
in create method. Try setting it as stateful and see if it works.
Regards,
Vikas Deep Sharma
Greg Robertson <[EMAIL PROTECTED]> on 06/02/2000 12:01:46 PM
Please respond to A mailing list for Enterprise JavaBeans development
<[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc: (bcc: Vikas Deep Sharma/Singapore/Netlife)
Subject: Re: ejbCreate java.lang.NoSuchMethod
I had it set as stateless? Am I missing something here? This bean does not
need to be stateful (eg no need for persistence). What am I not
understanding?
-----Original Message-----
From: Evan Ireland [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 01, 2000 11:32 PM
To: [EMAIL PROTECTED]
Subject: Re: ejbCreate java.lang.NoSuchMethod
Perhaps the RI thinks this session bean is stateless?
Greg Robertson wrote:
>
> I have written a Session Bean xxx that has
>
> public void ejbCreate(Address origin,int npa,int nxx) throws
> CreateException,RemoteException
>
> and the Home
>
> public xxx create(Address origin,int npa,int nxx) throws
> CreateException,RemoteException
>
> Note that there is no
>
> void ejbCreate() //notice no params
>
> If i try and deploy this using sun's RI , i get an error during deploy
that
> says java.lang.NoSuchMethod ejbCreate
>
> If i implement ejbCreate //with no params then it will deploy but it only
> calls the ejbCreate with no parameters. So can anybody help me with this?
>
> thanks in advance. right now i have done a nasty hack of an added
function
> call to work around this.
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
--
____________________________________________________________________________
____
Evan Ireland Sybase EAServer Engineering
[EMAIL PROTECTED]
Wellington, New Zealand +64 4
934-5856
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".