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