An AccessBean is the implementation in VisualAge for Java of SeshKumar 's ClientViewOfEjb idiom. It basically is a wrapper for an Enterprise Java Bean that implements the methods in the Remote Interface of the EJB as methods of a JavaBean. The methods in the Home Interface become constructors to the class or static members (in the case of findByXXX methods).
It sort of works like this:
public class MyEJBWrapperBean {
private MyEJB ejb; MyEJBWrapperBean(String arg) { // do the initial context lookup // obtain the home (MyEJBWrapperHome) ejb = MyEJBWrapperHome.create(arg); } String doFoo(int arg) { // pass-through method to the underlying ejb String result = null; try { result = ejb.doFoo(arg); } catch (RemoteException e) {} return result; }}
Hopefully you get the picture... You generate these things by selecting an EJB inside VA's EJB Development Environment tab and clicking on "Add-->AccessBean".