I have problems to configure a project WAR inside a glassfish instance A to access remotely an EJB inside instance B.
Logging results in:
Remote JNDI name used for lookup is 'corbaname:iiop:email@example.com:3700#java:global/Portal-ear/ServiceEJBImpl__3_x_Internal_RemoteBusinessHome__' [Root exception is org.omg.CORBA.BAD_PARAM: BOM: IOP00100009: string_to_object conversion failed due to bad schema specific part in name java:global/Portal-ear/ServiceEJBImpl__3_x_Internal_RemoteBusinessHome__ vmcid: SUN minor code: 9 completed: No]
GLASSFISH-4880 the bug was "fixed" but the solution just reference a Jboss similar solution: http://objectmix.com/java/70356-jndi-jboss-127-0-0-1-1098-problem.html#post259802
Someone could please be more specific on this issue?
I really think just mentioning a Jboss solution is not good at all.
Furthermore, the logging generated by these kind of error do not help too much for users neither for developers as we can verify in
Additionally, actual documentation is poor and has many errors.
In http://download.oracle.com/docs/cd/E19798-01/821-1752/beanv/index.html and http://download.oracle.com/docs/cd/E18930_01/html/821-2418/beans.html the examples presents typo erros resulting in bad-formatted XML.
In reference http://glassfish.java.net/javaee5/ejb/EJB_FAQ.html, the doc looks like a bit clearer. Otherwise, in section "What is the relationship between @EJB and ejb-ref/ejb-local-ref?" it gives hints about the relationship between @EJB and ejb-ref but lets unclear about the relationship with jndi-name inside glassfish-web.xml.
What is preferred to make remote invocation? lookup name inside web.xml or jndi-name inside glassfish-web.xml? What are the differences between these strategies?
I couldn't make work any of these alternatives. It worked for me just specifying mapped-name inside web.xml and referencing the IP 127.0.0.1.
Could someone add comments about which kind of network issues may arise from these configuration?
Could someone at least improve logging to make possible to identify the bugs in each specific environment?