Hi!

Nentwig Manfred wrote:
> I must modify and concretize mine asking, sorry:

Ah.. now it's starting to make sense ;-)

> 1.
> We wont to serialize the EJB-Object to the remote client with all its
> attributes.
> If it is not possible to serialize the EJB-Object to the remote client: is
> it possible to transfer all
> attributes (flat copy) to the remote client to reduce network traffic. We
> wont to avoid remote method calls.

First off, don't call it EJBObject as that word has special meaning in
EJB, and is not what you're referring to. "Entity instance" or "Entity
object" is much better.

Anyway, yes you can do that. You will need a separate class to contain
the state for you (unless you're happy with sending Object-arrays..)�.
For example a CustomerBean would have a CustomerData which can be
extracted from the CustomerBean and also be given to a CustomerBean to
set the state.

> 2.
> When the remote client calls a EJB-Object method, is then the EJB-Object
> able to call a remote client method without using RMI? In other words: is
> the relation between the EJB-Object and the remote-client bidirectional or
> unidirectional?

You can send a callback to the client which can be used by the EJB to
invoke the client.

> 3.
> We want to make some methods protected within the scope of the remote
> client.
> Can we make the EJB-Object implementation private in the java package and
> only one interface visible (public) from outside of these package? These
> interface defines the methods which are visible in the remote client scope.

All interfaces must be public. I suggest that you solve this by letting
the public bean change identity to a system identity, and then set the
security of the "private" beans so that only the system identity may
call them.

regards,
  Rickard

--
Rickard �berg

@home: +46 13 177937
Email: [EMAIL PROTECTED]
http://www.dreambean.com
Question reality

===========================================================================
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".

Reply via email to