-
1. Re: Newbie question...
adrian.brock Jan 24, 2003 10:38 AM (in response to mbabauer)You cannot use a local interface remotely.
JBoss implements the remote/local interface
(the EJB Container). This container handles some
of the methods and passes other to your bean.
The bean lives inside the container, the container
implementation creates a remote object for use
by the client.
It is usually a bad idea to directly expose entity
beans to clients.
Each getSomething() and setSomething() results
in a network request and probably a new transaction.
This is very slow.
These books are probably what you are looking for?
http://www.theserverside.com/books/EJBDesignPatterns/index.jsp
http://www.theserverside.com/resources/bitterEJBreview.jsp
Regards,
Adrian -
2. Re: Newbie question...
hammerchampy Jan 24, 2003 10:48 AM (in response to mbabauer)Hello. I had the same problem when I began to study J2EE.
For me, in this case, if you're managing an account, usign an EntityBean like AccountBean, and you wish to obtain a Collection, or vector of accounts, it's better to do it, in the AccountBean, and not in the CustomerBean. The way to do it is receiving in your AccountBean a parameter, like the Id, or number of the customer.
Good luck. -
3. Re: Newbie question...
mbabauer Jan 24, 2003 2:28 PM (in response to mbabauer)Thanks guys/gals...you gave me a great place to start.