Ning Zhu wrote:
>Hi There,
>
>We are evaluating J2EE 5 for the company and now we are hitting by remote
>EJB access. We have followedd exact steps at the URL:
>
>https://glassfish.dev.java.net/java5ee/ejb/EJB_FAQ.html#StandaloneRemoteEJB
>
>However, at the line
>
>InitialContext ic = new InitialContext();
>
Hi Ning,
Try adding javaee.jar as well. That's an omission in the ejb faq which
we'll fix.
>
>Of the same importance, we are trying to access EJB through a web module.
>Here is the jdni mapping tags in
>
><ejb-ref>
> <ejb-ref-name>dorp.Content</ejb-ref-name>
> <jndi-name>dorp.Content</jndi-name>
></ejb-ref>
>
>
>This works perfect, when we have both EJB and Web component running in the
>same physical server in the same domain.
>
>However, when we try to deploy the Web component onto another server, so we
>try:
>
><ejb-ref>
> <ejb-ref-name>dorp.Content</ejb-ref-name>
> <jndi-name>corbaname:iiop:localhost:3700#dorp.Content</jndi-name>
></ejb-ref>
>
What kind of a Remote EJB is it? EJB 2.1 Home or an EJB 3.0 Remote
Business interface? What host/port is the target server running on? Are
you injecting it or looking it up via java:comp/env? There's no need to
define an ejb-ref if you're also defining an @EJB annotation. Please
post the source code snippet as well. Thanks.
--ken
>
>
>