jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lybarger <Mark.Lybar...@CBC-Companies.com>
Subject RE: Getting reference to ejb in other container
Date Mon, 27 Oct 2003 13:58:07 GMT
i've resolved this by learning a little about web.xml and the mergewebxml...

> -----Original Message-----
> From: Mark Lybarger 
> Sent: Friday, October 24, 2003 4:14 PM
> To: 'Cactus-User (E-mail)
> Subject: Getting reference to ejb in other container
> 
> 
> Here's my setup.  I have ejb1 that I'm testing with cactus.  
> ejb1 uses ejb2,
> via remote interface, that exists in a separate container.  ejb2, is
> basically a dao, findOrderItemsBy( String ProductCode), etc.  
> To test ejb1,
> I'd like my cactus test use ejb2 to verify the data is 
> actually there.  for
> instance. if i submit an order using ejb1.submitOrder( 
> orderSubmit ), I'd
> like to make sure that the order and the order items exist 
> after submitting
> the order.
> 
> I'm most likely not explaining this very well, but what's the 
> easiest/best
> way to get a handle to ejb2 from my cactus test classes?  ejb1 has the
> JNDI_URL and context factory (needed to get ic from ejb2 
> container) as part
> of its deployment descriptors.  is there some way that i can modify my
> cactified war so that its jndi has this stuff?  Can i specify 
> that stuff via
> the xml that is used for mergewebxml?
> 
> ejb1 has the following in the dd to get its remote bean.  the 
> jndi_url is
> placed in from the ant script to allow varried environments.
> 
>          <env-entry>
>             
> <env-entry-name>cbc.initial.context.factory</env-entry-name>
>             <env-entry-type>java.lang.String</env-entry-type>
>  
> <env-entry-value>weblogic.jndi.WLInitialContextFactory</env-en
> try-value>
>          </env-entry>
>          <env-entry>
>             <env-entry-name>cbc.jndi.url</env-entry-name>
>             <env-entry-type>java.lang.String</env-entry-type>
>             <env-entry-value>@JNDI_URL@</env-entry-value>
>          </env-entry>
> 
> any insights would be most appreciated!!!
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.528 / Virus Database: 324 - Release Date: 10/16/2003
>  
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> 
> 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.528 / Virus Database: 324 - Release Date: 10/16/2003
>  
> 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.528 / Virus Database: 324 - Release Date: 10/16/2003
 


Mime
View raw message