3 Replies Latest reply: Oct 24, 2003 2:51 PM by Francisco Reverbel RSS

Accessing a stateful session bean

jlsredondo Newbie

I'm trying to access a stateful session bean from
a C# client application using Janeva (Borland).
Janeva is basically a CORBA implementation for .Net platform, that allows us to access any CORBA server and
any J2EE 1.3 application server. Therefore, I've registered
my session bean as an iiop-accesible EJB using the following jboss.xml file:
<?xml version="1.0" encoding="UTF-8"?>

<enterprise-beans>

<ejb-name>Interest</ejb-name>
<jndi-name>Interest</jndi-name>
<configuration-name>Standard Stateful SessionBean</configuration-name>
<invoker-bindings>

<invoker-proxy-binding-name>iiop</invoker-proxy-binding-name>

</invoker-bindings>

</enterprise-beans>


Nextly I deploy the session bean and all seems to go well. I browse the Naming service with a generic client
and there is really an object reference bound to the
name "Interest". However if I inspect the object reference I can see that it points to the direction:
0.0.0.0:3528, and, as a result, if i try to use the
object reference i get an exception saying that
it's impossible to contact the host 0.0.0.0.
It seems that the IP direction is not properly configured in the object reference.

I'm using Jboss 3.2.2 with the configuracion "all" and
the jvm 1.4.2_01 from Sun.

Any idea ?

In addition, if a use a jndi name such as "interest/Interest",
only the first token is registered (as a Naming Context)
in the Naming Service; but not the object reference "Interest".

Thanks