Hi!

look at server.xml config documentation:

<application auto-start="true|false"
deployment-directory="../application-deployments/myapp"
name="anApplication" parent="anotherApplication"
path="../applications/myApplication.ear" />
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

parent - Optional 'parent' application, the default is the global
application. Children see the namespace of it's parent application.
This is used in order to share services such as EJBs among multiple
applications.


/chd
cc East Siberian RailWay


--->> Original Message <<---
From: "Jordi Daroca" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Date: 27 ??????? 2001 ?. 19:27
Subject: reference to a bean of another application


>
> Can a Bean of one application see a Bean of another application??
>
> When I try to do it, i get the error:
>
> javax.naming.NamingException: Error instantiating web-app
JNDI-context:
> No locat
> ion specified and no suitable instance of the type
'ants.aws.Mediator'
> found for
>  the ejb-ref Mediator
>
>
> In the ejb-jar.xml the reference to Mediator is explicited:
>
> <session>
> <display-name>EventManager</display-name>
> <ejb-name>EventManager</ejb-name>
> <home>em.EventManagerHome</home>
> <remote>em.EventManager</remote>
> <ejb-class>em.EventManagerEJB</ejb-class>
> <session-type>Statefull</session-type>
> <transaction-type>Container</transaction-type>
> <ejb-ref>
> <ejb-ref-name>Mediator</ejb-ref-name>
> <ejb-ref-type>Session</ejb-ref-type>
> <home>ants.aws.MediatorHome</home>
> <remote>ants.aws.Mediator</remote>
> <ejb-link>Mediator</ejb-link>
> </ejb-ref>
> </session>
>
> and also in the application-client.xml .
>
> If the modules are packed in only one application there are no
problem.
>
>


Reply via email to