Hello,
I have defined a stateful session bean as follows: NameBean, NameHome,
Name.
Functionality Description: We are tring to simulate the scroll bar
functionality through the session bean. Meaning, if the user enters
some piece of information on the screen, that information is stored as
an object in the session bean. Additional rows of information entered
through the screen are added as objects to the linked list structure in
the session bean. If the user needs to retreive the rows of information
just entered, he/she clicks on the UP/DOWN button on the screen. This
will fetch the objects one by one from the session bean and these will
be displayed on the screen.
The methods defined and implemented in this bean are:
public Object addData (Object obj);
public Object downdata ();
public Object upData ();
addData: adds the object to a linked list in the session bean.
downData: returns the object from the next position in the linked list
structure.
upData: returns the object from the previous position in the linked
list structure.
Compilation of the bean classes was successful. When we try to deploy
the bean, we get the following error message:
addData method was found, but does not have a valid RMI-IIOP method
parameter.
addData method was found, but business method has illegal parameter
values. Business method argument types must be legal type for RMI-IIOP.
To call the bean, we have the following servlet code:
Name name;
NameHome nameHome;
ssmCustomersMainBean ssmCMB = new ssmCustomersMainBean() ;
InitialContext ctx =new InitialContext();
Object objref = ctx.lookup("names");
namehome = (NameHome)PortableRemoteObject.narrow(objref,
NameHome.class);
ssmCMB=getFormData(HttpServletRequest req); // getFormData collects
input data from form and converts it into an object
ssmCMB=(ssmCustomersMainBean)name.addData(ssmCMB);
The EJB is instantiated and called from a servlet. We are deploying the
application under the J2EE reference implementation.
Can anyone please help? Thanks
Sachin
===========================================================================
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".