jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacek Skrzypiec" <ja...@learning-media.net>
Subject Re: Testing EJB implementing EJBLocalObject interface with Cactus
Date Wed, 27 Mar 2002 08:24:40 GMT
That is true but it doesn't offer a portable solutions.

At this moment I'm using an reference implementation J2ee and I cannot get
it working.
It works fine if I use remote interfaces.

I thinka portable solutions would required to implements an session based
implementation of TestSuit class.

Rgds,

Jacek
----- Original Message -----
From: "Robertson, Jason" <Jason.Robertson@acs-inc.com>
To: "'Cactus Users List'" <cactus-user@jakarta.apache.org>
Sent: Tuesday, March 26, 2002 5:33 PM
Subject: RE: Testing EJB implementing EJBLocalObject interface with Cactus


> You can access the local interfaces from within a servlet as long as (I
> think) the servlet container and the EJB container are running in the same
> JVM. If it has to jump JVM boundaries then a remote interface is needed.
>
> I'm testing my Entity beans with local interfaces just fine by extending
> ServletTestCase and accessing them in the traditional fashion.
>
> Jason
>
> -----Original Message-----
> From: Jacek Skrzypiec [mailto:jacek@learning-media.net]
> Sent: Tuesday, March 26, 2002 12:20 PM
> To: cactus-user@jakarta.apache.org
> Subject: Testing EJB implementing EJBLocalObject interface with Cactus
>
>
> Dear All,
>
> Is there any support for testing ejb that instead of EJBObject implement
> only EJBLocalObject.
>
> To call a method of an ejb from servlet or JSP, it has to implement remote
> interface (EJBObject, EJBHome).
> If my bean implements local interface I cannot to anything.
>
> I think that the way around it is to use an session bean (extending
> TestCase) that implements the test methods and execute them indirectly
> through another
> object implementing ServletTestCase.
>
> It requires a lot of work.  Is there any better way to achieve it?
>
> I think it would be possible to save time if there was a ejb session bean
> version of TestSuit or JUnit Test Runner
>
> Thanks in advance for any suggestions.
>
> Jacek
>
> --
> To unsubscribe, e-mail:
<mailto:cactus-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:cactus-user-help@jakarta.apache.org>
>
>



--
To unsubscribe, e-mail:   <mailto:cactus-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:cactus-user-help@jakarta.apache.org>


Mime
View raw message