• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 614
  • Last Modified:

JNLP Database connection


Hello there,

I have my properties file
connectionString=jdbc\:sqlserver\://10.0.0.10\:1433;databaseName\=expPooyesh;user\=test;password\=12345

when i bbundle it with the IP my application works fine.i mean i can connect to the DB.but when i change the IP to the name of the DB which iscalled EEE.i get db connection error.
0
zolf
Asked:
zolf
  • 8
  • 7
1 Solution
 
objectsCommented:
EEE should be the name of the host running the db

whats does this return

ping EEE

0
 
zolfAuthor Commented:
C:\WEB_ROOT>ping EEE

Pinging EEE [10.0.0.10] with 32 bytes of data:

Reply from 10.0.0.10: bytes=32 time<1ms TTL=128
Reply from 10.0.0.10: bytes=32 time<1ms TTL=128
Reply from 10.0.0.10: bytes=32 time<1ms TTL=128
Reply from 10.0.0.10: bytes=32 time<1ms TTL=128

Ping statistics for 10.0.0.10:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:\WEB_ROOT>
0
 
objectsCommented:
the connections being made at the client so you'll need to use a public name, or something you know the client can resolve.


0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
zolfAuthor Commented:

From the cleint computer i cannnot ping EEE.i get a message saying could not find host EEE
on the server i can connect with jnlp with EEE in the properties file.but the client cannot connect.what should i do becasue IP can change but the computer name will not change.what do you suggest.
0
 
objectsCommented:
you need a public name, perhaps have a look at dyndns.org if you don't have your own dns namespace

0
 
zolfAuthor Commented:

objects,but i am using the application on the local netwrok.i mean all the clients computer and the server are in one location.do i still need a dns namespace.
0
 
objectsCommented:
it that case no, just setup a name in your local dns server

0
 
zolfAuthor Commented:

>>it that case no, just setup a name in your local dns server
can you please tell me where and how.my server is Win XP at present

0
 
objectsCommented:
how does your box know how to resolve EEE?

0
 
zolfAuthor Commented:

i dont know.i am using IIS
0
 
zolfAuthor Commented:

i am using IIS 5.1
0
 
objectsCommented:
sounds like you don't currently have any local name server.
In which case individuals are going to have to update there own hosts file.

0
 
zolfAuthor Commented:

can you please give me more information what i need to do on the server and on the client box
0
 
objectsCommented:
don't know sorry, I'm not a windows sysad. We only support Unix and Mac here.

0
 
zolfAuthor Commented:

can you tell  me what do i need to search for.and i will find my way.appreciate your help
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 8
  • 7
Tackle projects and never again get stuck behind a technical roadblock.
Join Now