Hi,

I am using version 2.1.1 of JOnAS. I can't use
session bean that references an entity bean
because I get a NullPointerException.

Here is a simple example to illustrate my problem:

I want to design a bean that implements
multiple interfaces. Most of the clients
use methods of interface A and a specific service
uses methods of interface B. All the methods of
A are included in B.
Moreover my bean has persistant fields.

My solution was to design an entity bean whose
remote interface inherit from B and to design
a session bean whose remote interface inherit
from A.

My session bean has a reference on the entity
bean's EJBObject. and the create method take the
entity bean's EJBObject.
For each method m of the session bean, we call
the same method on the entity bean's EJBObject.

In a client, I retrieve a reference on the entity bean's
EJBObject (with a finder method) then I construct my
session bean. When I invoke a method an the session
bean, a NullPointerException occures ...

I have found that the reference of the entity bean's EJBObject
is null but why?

Thanks for any suggestion,

Audrey

----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to