I try to deploy the same ejb but different ejb-name in my j2EE application.
I use ejb-link to specify my EJB-ref to which ejb

<ejb-ref>
                <ejb-ref-name>MyProduct</ejb-ref-name>
                <ejb-ref-type>Entity</ejb-ref-type>
                <home>ProductHome</home>
                <remote>Product</remote>
                <ejb-link>MyProduct</ejb-link>
        </ejb-ref>
        <ejb-ref>
                <ejb-ref-name>MyProduct2</ejb-ref-name>
                <ejb-ref-type>Entity</ejb-ref-type>
                <home>ProductHome</home>
                <remote>Product</remote>
                <ejb-link>MyProduct2</ejb-link>
        </ejb-ref>

The SPEC says that ejb-link is the ejb-name, but it not works , I still have to 
specify which
ejb-name it really refferce to in the orion-xxx.xml, like 
orion-application-client.xml, for example

<ejb-ref-mapping name="MyProduct" location="MyProduct" />
<ejb-ref-mapping name="MyProduct2" location="MyProduct2" />

the auto-deployment is also very stupid generate 

<ejb-ref-mapping name="MyProduct" location="MyProduct" />
<ejb-ref-mapping name="MyProduct2" location="MyProduct" /> <-- location should be 
"MyProduct2"

I think this is not correct to SPEC.

Regards.,
Jen Hsien Huang 

Reply via email to