"radhikamehta" wrote : hi! I have a standalone java program which tries to lookup a 
sessionbean deployed in jboss3.2.0 in a remote machine.
  | I am using cluster configuration.
  | My java code snippet is:
  | 
  | Properties p = new Properties();
  | p.put (Context.INITIAL_CONTEXT_FACTORY,  "org.jnp.interfaces.NamingContextFactory
  | ");
  | p.put(Context.URL_PKG_PREFIXES, "jboss.naming:org.jnp.interfaces");
  | p.put(Context.PROVIDER_URL, "xxx.xxx.xxx.xxx:1100"); // HA-JNDI port. 
  | Context ctx = new javax.naming.InitialContext(p);
  | Object ref = ctx.lookup("abc");
  | 
  | My problem is that it gives a communication exception  during lookup. 
  | The exception is::
  | 
  | 
  | javax.naming.CommunicationException.  Root exception is java.rmi.RemoteException
  | : Service unavailable.
  |         at org.jboss.ha.framework.interfaces.HARMIClient.invokeRemote(HARMIClien
  | t.java:165)
  |         at org.jboss.ha.framework.interfaces.HARMIClient.invoke(HARMIClient.java
  | :203)
  |         at $Proxy0.lookup(Unknown Source)
  |         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:492)
  |         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471)
  |         at javax.naming.InitialContext.lookup(InitialContext.java:347)             
                                                      
  | 
  | Can someone please help???
  | Thanx in advance
  | Regards,
  | Radhika Mehta







hi 
    can u please help me if u had solved ur problem of HA jndi look up


[EMAIL PROTECTED]
[EMAIL PROTECTED]


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3835061#3835061

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3835061


-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to