> -----Original Message----- > From: Nathan Coast [mailto:[EMAIL PROTECTED] > Sent: 17 September 2003 08:43 > To: Cactus Users List > Subject: Re: cactus newbie / EJB > > excuse my ignorance, what do the redirectors do? please feel free to > rtfm me and point me to the appropriate docs or examples :)
hehe... RTFM! :-) http://jakarta.apache.org/cactus/how_it_works.html > > Any chance you can send me Siddhartha's code so I can see how a > Redirector would work? It's on the mailing list I believe. However, I'd rather you look at the Cactus source code. It has redirectors for Servlet, Filter and Jsp. Search for the ServletTestRedirector class. > > Would ejb redirectors be anything like > http://sourceforge.net/projects/junitejb/ ? this involves a > TestRunnerEJB deployed into the container (similar approach to the > cactus webapp) and a client that passes the classnames of the tests to > be invoked on the server. Yep! I didn't know about junitejb but I imagine that would be exactly the same (from your description and from the project's description on SF). -Vincent > > Cheers > Nathan > > Vincent Massol wrote: > > Hi Nathan, > > > > > >>-----Original Message----- > >>From: Nathan Coast [mailto:[EMAIL PROTECTED] > >>Sent: 17 September 2003 07:53 > >>To: [EMAIL PROTECTED] > >>Subject: cactus newbie / EJB > >> > >>Hi, > >> > >>just had a quick browse around cactus docs and AFAICT, to test ejbs > >>within a container, you have to create and deploy a cactus webapp that > >>executes the ejb code. Is this correct? Are there alternative ways > > > > of > > > >>executing tests? E.g. from a remote client to some deployed test > > > > cases? > > > > True. This is a current limitation. Please have a look at > > http://cvs.apache.org/viewcvs.cgi/jakarta-cactus/samples/ejb/src/scripts > > /share/build.xml?rev=1.2&content-type=text/vnd.viewcvs-markup to see how > > to do that in an Ant build file. > > > > > >>I followed some cactus-user threads that mentioned an EJB Redirector > >> > > > > http://www.mail-archive.com/[EMAIL PROTECTED]/msg03049.html > > > >>back in February. Has any progress been made with this? > > > > > > Some but not much. Siddhartha sent an EJB redirector proto but as it's > > not against CVS HEAD I could not apply it easily. Also, it wasn't > > finished/working. Having this EJB redirector will be one of our main > > goal for Cactus 1.6 > > > > > >>How yould you > >>execute tests using the redirector? > > > > > > Same as with the other redirector. Actually there will be possibly be > > several redirectors. One SessionBeanRedirector, one > > MessageDrivenBeanRedirector, one EntityBeanRedirector, etc. Cactus > > client-side will transparently connect to it using RMI/IIOP, JMS, etc. > > > > As a user, you'll simply do: > > > > public MyTest extends SessionBeanTestCase > > { > > public void testXXX() > > { > > MyEJB ejb = new MyEJB(); > > ejb.setSessionBeanContext(context);<- provided by > > SessionBeanTestCase > > [...] > > } > > } > > > > -Vincent > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
