Question

3
Replies
208
Views
ChandeepA Member since 2014 8 posts
Cognizant
Posted: May 15, 2017
Last activity: May 18, 2017
Closed
Solved

Socket Programming in 7.2.2

I am trying to create a simple socket in PRPC by using the following java code in a function rule -

try {

Socket sock = new Socket("www.google.com", 80);
return "success";
} catch (java.io.IOException e) {
return "fail: "+e;
}

I have all the required imports in the library and the function compiles fine. But ultimately i get this exception: fail: java.net.ConnectException: Connection. refused: connect.... Does PRPC not allow creating sockets due to security policies? If so, is there a work around?

Data Integration Java and Activities
Moderation Team has archived post
Share this page LinkedIn