07 April 2008

NetBeans6.1+EJB3+Struts [PART 4]

You will have something like this (note that the code is folded)

Now Right click the BookCRUDAction and select Enterprise Resources->Call Enterprise Bean.


Click on MyApp-ejb, select BookFacade and click OK.

The following method will be implemented for you:

private BookFacadeLocal lookupBookFacade()

This way you will be able to access your bean from MyApp-war.


Now, open struts-config.xml from Configuration Files directory and insert these lines:

*(somehow i couldnt post these lines in blogger, dunno why...)*

These lines will tie the methods from the Action to struts-config mappings.

No comments: