Hi!
On the SERVER:
Did you change conf/default/jboss.properties to say
java.rmi.server.hostname=your.host.name.here 

?
Ciao, Tobias

Bob Byron wrote:
> 
> I am trying to access jboss residing on a RedHat server from a client
> residing on a windows environment.  I have seen a number of emails on
> the subject in the archives, but have yet to find a solution.  Is
> there any type of HowTo on how to accomplish this?  I have placed the
> following code in my attempt to access the server:
> 
>         Hashtable env = new Hashtable();
>         env.put(Context.INITIAL_CONTEXT_FACTORY,
> "org.jnp.interfaces.NamingContextFactory");
>         env.put(Context.PROVIDER_URL,"192.168.1.1");
>         env.put(Context.URL_PKG_PREFIXES, "org.jboss.naming");
>         try {
> //          Get a naming context
>             InitialContext jndiContext = new InitialContext(env);
>             System.out.println("Got context");
> 
> //          Get a reference to the Interest Bean
>             Object ref  = jndiContext.lookup("interest/Interest");
>             System.out.println("Got reference");
>         } catch(Exception e) {
>             System.out.println(e.toString());
>         }
> 
> OUTPUT:
> vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
> Got context
> 
> javax.naming.CommunicationException [Root exception is
> java.rmi.ConnectException: Connection refused to host: 127.0.0.1;
> nested exception is:
>  java.net.ConnectException: Connection refused: no further
> information]
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> So where did the 127.0.0.1 come from?  I am a total newbie with jboss
> and am trying to figure out what I need to do to get the Interest
> application up and running.
> 
> Thank You for Your Consideration,
> Bob Byron
> RAD Systems, Inc.
> www.radit.com
> (972)516-4256


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to