Hello

My Client application is built to contact with a Java Server JBoss. I have a
JNDI properties file that is attached with my .jar client
file. The content of this file is as the following:

-----------------------
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url= 192.168.0.30
-----------------------

It can be see that the "url" here (the last line) presents for the IP
address of the server computer. I know that if the server is changed, I have
to change this IP in this file. This is OK when my client application is a
.jar file (so it is easy to change IP address)

The problem here is that if I create a .exe file from this .jar file, it is
hard to change this IP value (jar file is a zip file, so I can change its
content easily). What I really want is how to build my Client application so
that I can change (or set) this IP address when I start run the client
application.

Is there any solution for doing that?

Thank you very much for any help
Hoa




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

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


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to