Hi, It's me again.
I've just upgraded to CVS snapshot from 11/6/00 and the
NullPointerException disappears. Great!
But I still don't know whether my pattern
is legal or not.
Thanks.
Alexander Kogan wrote:
>
> Hello,
>
> I have 2 EJB (one statefull "Engine" and
> one stateless "Component"). Engine behaves
> like a client for the component.
>
> "Engine" gets InitialContext, looks up for
> homeInterface, calls create() to create
> a component and finally calls a component
> business method.
>
> In ejb-jar.xml for the "Engine" there is no
> <ejb-ref> for the "Component" because, actually,
> "Components" are "generic" beans with predefined
> business interfaces and create methods. "Component"s
> real home and business interfaces are unknown to
> "Engine".
>
> I'm using java-reflection to obtain a "create" method
> from the "component" homeInterface. But when I invoke
> this create method to obtain a business interface, I'm
> getting:
>
> TRANSACTION ROLLBACK EXCEPTION:null; nested exception is:
> java.lang.NullPointerException
>
> So, my question is:
>
> am I doing ILLEGAL thing or it's a bug/feature of jBoss?
>
> (EJB spec says that I have to use <ejb-ref> and <ejb-link>
> for bean to bean communications)
>
> I'm running jBoss 2.0 BETA-PROD-03 with JDK1.3
>
> Thanks for any suggestions.
>
> Alex.
>
_________________________________________________________
Alexander Kogan Parametric Technology Corporation
[EMAIL PROTECTED] 128 Technology Drive, Waltham MA 02453
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]