On Mon, 17 Jul 2000 13:11:28 +0530, SUDIPTA BHOWMIK
<[EMAIL PROTECTED]> wrote:
>> This is implementation dependent. The only thing you, as a bean
>> developer, care about is that the container should implement the
>> responsibilities defined in the EJB spec.
>
>  I think iam not particularly clear about what specs say about this...
>  But if I can reconstruct the whole EJBObject using the serialized handle
>then its OKAY but if the container needs to keep ceratin issues related to
>handle so that a client reconnecting again (or for that matter the server
>restarting again..) may need to have that info.. that will lead to real
>big overhead for that server for how will the server choose between which
>references are serialized at the Client and which are not..?

This is something that the vendor implementation needs to decide about.
If you really want to dig into one way of solving it, I would suggest
that you download jBoss from jboss.org and read the source. We don't use
physical EJB-objects, and the client stub holds enough information about
the object being used so that it can reconnect if necessary.

>  Consider this problem...
>
>   I am obtaining a ref to home from my client and then calling a
>findByMethod .. at the server side the following methods are called in
>sequence..
>    First an ejbLoad...

This seems wrong. Can you print out the value of
EntityContext.getPrimaryKey() in ejbLoad? This should throw an exception
if you try.

>    then an setEntityContext..

The biggest rule of all when it comes to container callbacks is that
setEntityContext should ALWAYS be called first...

>     Then if i call any other method on the instantiated bean it calls the
>ejbLoad once again..
>
>   What i thought that in order to instantiate a bean setContext should
>have been the first method to be called..
>Iam using weblogic 5

Seems like there's a bug somewhere... but I can't tell for sure without
knowing exactly what your code looks like and what settings you have.
You might want to take this issue to the Weblogic forums
(news://www4.weblogic.com/)

/Rickard

--
Rickard �berg

@home: +46 13 177937
Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com

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