• Post Reply Bookmark Topic Watch Topic
  • New Topic

Opening java.net.Socket() in Struts Action?  RSS feed

 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are there restrictions in opening a socket like in
<pre>java.net.Socket so = new java.net.Socket(machine, port);</pre> from a Struts 1.3 action under Servlet 2.4 using IBM's RAD 7.0?

In the same XP Pro machine I can do it, using a stand alone, command line Java program using the same few lines of code as in the action.

Thanks
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not aware of any restriction. Have you tried it?
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh! Absolutely; otherwise I would not have asked.

At first it did not work with outside servers (Socket() inside the action). Now I tried some internal server and it connected. It seems that the enterprise firewall is playing games with me

Thanks,

Tony
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!