This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

multiple proxies and concurrency  RSS feed

 
mark lichtenberg
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an EJB that communicates with a HTTP-enabled application through a proxy. There could be cases where different instances of the EJB would be communicating through different proxy addresses. Currently I set the proxy information via System.setProperty().
I am concerned that multiple instances of my EJB would be stepping on each other since the System.setProperty() sets static jvm-wide values. Is there any way to specify proxy information per URLConnection instance?
Thanks,
-m
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!