Urgent please help

Hi all,

I have an ear file which is used to connect to remote site using some API and get some records from remote database. When I first run the application in JBOSS it is giving an error saying unable to connect to remote server. But in the second run (I stopped the server and restarted) it is connecting fine.

what can be the reason

Please let me know if you need any further information.

Thanks and regards,

Krishna.

[459 byte] By [Java_Clasicsa] at [2007-9-23]