[jboss-user] [Clustering/JBoss] - Re: JBoss clustering - ejb lookup using HA-JNDI problem

2007-06-01 Thread shribala
Previously, I was not starting the server with run -c all. 
Now it works fine. 

Thanks for your help.


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4050391#4050391

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4050391
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering/JBoss] - Re: JBoss clustering - ejb lookup using HA-JNDI problem

2007-05-29 Thread shribala
Here is the client program for the same..

import javax.naming.Context;
import javax.naming.*;
import javax.rmi.*;
import java.util.*;

import com.arbitron.ppm.ops.sampling.*;

class CalculatorClient {
public static void main(String args[]) throws Exception {
CalculatorClient t = new CalculatorClient();
t.go();
}

public void go() throws Exception {
Context ctx = getContextExternalClient();

CalculatorHome calculatorHome = (CalculatorHome) 
PortableRemoteObject.narrow(ctx.lookup(Calculator), CalculatorHome.class);
Calculator calculator = calculatorHome.create();
String answer = calculator.add(234, 555);
System.out.println(answer : + answer);

}

private Context getContextExternalClient() throws Exception {
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY, 
org.jnp.interfaces.NamingContextFactory);
p.put(Context.PROVIDER_URL, jnp://10.239.20.193:1100);

p.put(Context.URL_PKG_PREFIXES,org.jboss.naming:org.jnp.interfaces);
Context ctx = new InitialContext(p);
return ctx;

}
}

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4049259#4049259

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4049259
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering/JBoss] - Re: JBoss clustering - ejb lookup using HA-JNDI problem

2007-05-29 Thread [EMAIL PROTECTED]
What address are you passing to -b when you start JBoss?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4049346#4049346

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4049346
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user