Can someone please give me a simple answer to this. I have an EJB deployed on weblogic. Works great. I have a stand alone java client accessing the ejb. That works great too. What I want to do know is run a client from a browser that uses the EJB. I have seen so many different ways of explaining it, it makes me dizzy. I will need to collect two variables from the user. Should I put put the ejb create() code on the JSP? Should I use a servlet, if so for what? Should I simply use an html form and then call a servlet? If someone can simplify this as to what the best practice is for performace and scalablity when doing something like this I would appreciate it. I'm sure I'm not the only one. Cheers, Steve
A lot depends on what the two variables collected..end up doing. Are they parameters for search ...i guess immaterial of what they are, one can use html to collect the parameters and and use a "statelessSessionBean" in jsp to call the right method to process them. Then SSB can then delegate the request to either the appropriate EJB or do the transaction by itself. Without the specifics...cant say much. But i guess this should get you started. Cheers!
Joined: May 23, 2001
thanks, the two parameters (employeeid and doctype) are being used by the ejb to do some table look ups and inserts for a document generation system. I have decided to go with a jsp page that collects the form data from the user and sends it via the query string to a servlet. The servlet will be the controller and do the look up and create() on the ejb. Based on a return value from the ejb, the servlet will generate a pass or fail html page bacj to the user. Round trip completed. Any input appreciated....