hello
my problem is the following: i want to perform some little loadbalancing
without the loadbalancing tool from orion. the scenario is the following:
the client creates a ejb in the first orion server, and this bean makes a
lookup to another orion server and creates a second bean on the other server.
for now it was impossible to me to create a bean from one orion server into a
other orion server. everytime i make a lookup from a ejb to a bean into a other
orion server it searches the bean in the same orion server instead of searching
the bean into a other orion server.
now the codefragment which creates the initialcontext ( this is part of a
method into the first ejb )
java.util.Hashtable env = new java.util.Hashtable();
env.put
(com.evermind.server.rmi.RMIContext.INITIAL_CONTEXT_FACTORY,"com.evermind.server
.rmi.RMIInitialContextFactory");
env.put
(com.evermind.server.rmi.RMIContext.PROVIDER_URL,"ormi://10.2.0.17/Third");
env.put(com.evermind.server.rmi.RMIContext.SECURITY_PRINCIPAL,"admin");
env.put(com.evermind.server.rmi.RMIContext.SECURITY_CREDENTIALS,"123");
Context ic = new InitialContext(env);
Object Obj = ic.lookup("Third");
now by calling this method i get the following error meassages:
java.lang.NullPointerException: domain was null
at com.evermind._ce._fcc(Unknown Source)
at com.evermind._ce._mr(Unknown Source)
at com.evermind.server.rmi.RMIInitialContextFactory.getInitialContext(Un
known Source)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
68)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246
)
at javax.naming.InitialContext.init(InitialContext.java:222)
at javax.naming.InitialContext.<init>(InitialContext.java:198)
at loadbalancing.FirstBean.createSecondBean(FirstBean.java:36)
at First_StatefulSessionBeanWrapper37.createSecondBean(First_StatefulSes
sionBeanWrapper37.java:88)
at java.lang.reflect.Method.invoke(Native Method)
at com.evermind._dh._gc(Unknown Source)
at com.evermind._if.run(Unknown Source)
i suppose the error domain was null has it's origin in the fact, that the Third
bean i am looking for is not installed in the first orion server, but only in
the second one.
now, what can i do to create a ejb from a ejb which is lokated into a other
orion server like the first one?
thanks, johannes rainer