Hello,
I'm Jaechang.
Now I'm trying to access EJB3.0 via C# clients.
But I'm wondering the default JNDI name which is described on your FAQ page
as a table.
https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html#SessionBeanGlobalJNDINameAssignment
Actually, I have successfully accessed EJB on GlassFish through specified
JNDI name by C# clients.
I used EJB2.x style with Home/Remote interface for accessing EJB on
GlassFish via plain CORBA cilents.
My wondering is that according to the table regarding default JNDI name,
if I don't use 3.0 Remote Business interfaces but use 2.x Home/Remote
interfaces,
the default JNDI name is fully-qualified name of Remote Home interface like
"com.acme.FooHome"
But, in my trial, it doesn't work so that I should specify JNDI name.
This is a part of my test session bean:
package calculator;
import javax.ejb.RemoteHome;
import javax.ejb.Stateless;
@Stateless
@RemoteHome(CalculatorHome.class)
public class CalculatorBean{
public int add(int a, int b) {
return a+b;
}
}
In this code, CaculatorBean doesn't implement CalculatorRemote because
CalculatorHome instantiates CalculatorRemote.
So, due to only using 2.x Home/Remote interfaces,
I thought the default JNDI name is fully-qualified name of Remote Home
interface.(In my case, "calculator.CalculatorHome")
however, It doesn't work.
1) Is there something that I missed to access EJB on GlassFish through
fully-qualified
name of Remote Home interface.
2) I want to know if there is another way to directly access EJB3.0 on
GlassFish by using business interfaces via plain CORBA clients written in
other languages.
3) Can I find if the JNDI names for all deployed EJBs on GlassFish is
registered correctly on the admin console of GlassFish?
I hope to hear from you soon.
Thanks a lot.
BR/
Jaechang Nam