Not sure, but try the new JNDI-listing MBean in the CVS version - it can
list the java:comp/env namespaces of beans, I think.

Tom

On Fri, 2 Mar 2001, Imran wrote:

> Hello ppl
> 
> I'm once again writing on the issue of B2B calls. I have read the
> documentation and followed the instructions exactly the same way. But still
> my B2B call gives me a Naming Exception which is null. As i've done what the
> documentation says i cant find out why this aint working. i'll put up the
> descriptors and the way i'm accessing it below.
> 
> my two Beans are BeanA & BeanB
> BeanA is calling BeanB
> Both Beans are in seperate JAR's.
> 
> ejb-jar.xml of BeanA
> --------------------
> 
> <?xml version="1.0" encoding="Cp1252"?>
> 
> <ejb-jar>
>   <display-name>B2B</display-name>
>   <enterprise-beans>
>     <session>
>       <description>BeanA Description</description>
>       <ejb-name>MyBeanA</ejb-name>
>       <home>BeanAHome</home>
>       <remote>com.foo.bar.BeanA</remote>
>       <ejb-class>com.test.BeanABean</ejb-class>
>       <session-type>Stateless</session-type>
>       <transaction-type>Container</transaction-type>
>       <ejb-ref>
>         <ejb-ref-name>RefBeanB</ejb-ref-name>
>         <ejb-ref-type>Session</ejb-ref-type>
>         <home>com.foo.baz.BeanBHome</home>
>         <remote>com.foo.baz.BeanB</remote>
>       </ejb-ref>
>     </session>
>   </enterprise-beans>
> </ejb-jar>
> 
> 
> jboss.xml of BeanA
> ------------------
> <jboss>
>   <secure>false</secure>
>   <container-configurations />
>   <resource-managers />
>   <enterprise-beans>
>      <session>
>        <ejb-name>BeanA</ejb-name>
>        <jndi-name>beana/BeanA</jndi-name>
>        <ejb-ref>
>         <ejb-ref-name>RefBeanB</ejb-ref-name>
>         <jndi-name>beanb/BeanB</jndi-name>
>        </ejb-ref>
>        <configuration-name></configuration-name>
>      </session>
>   </enterprise-beans>
> </jboss>
> 
> 
> ejb-jar.xml for BeanB
> ---------------------
>     <session>
>       <description>BeanB Description</description>
>       <ejb-name>MyBeanB</ejb-name>
>       <home>com.foo.baz.BeanBHome</home>
>       <remote>com.foo.baz.BeanB</remote>
>       <ejb-class>com.foo.baz.BeanBBean</ejb-class>
>       <session-type>Stateless</session-type>
>       <transaction-type>Container</transaction-type>
>     </session>
> 
> jboss.xml for BeanB
> -------------------
>      <session>
>        <ejb-name>MyBeanB</ejb-name>
>        <jndi-name>beanb/BeanB</jndi-name>
>        <configuration-name></configuration-name>
>      </session>
> 
> 
> The method am calling BeanB from BeanA is by placing this code in my
> BeanABean
> 
>               Context ctx = new InitialContext(props);
>               BeanBHome home =
> (AlgorithmExecutorHome)ctx.lookup("java:comp/env/RefBeanB");
> 
> And When i call the BeanA from my client it throws a nameing exception at
> the point where BeanA is calling BeanB
> it says 'null'
> 
> i even tried giving the jndi-name for the look up of BeanB in BeanA but
> still couldn't find around away to make it happpend.
> would apperciate a quick response on this matter since am stuck here BIG
> TIME.
> Also thnx Ingo and John for the earlier response. Hope to hear from anyone
> SOON.
> 
> TIA & Best Regards
> 
> Imran
> 
> 
> 
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> 
> 

-- 
"If you mess with something for long enough it will break." - Schmidt



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]

Reply via email to