Guest User

Untitled

a guest
Jul 16th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. ...
  2. Properties props = new Properties();
  3. props.add("org.omg.CORBA.ORBInitialHost", httpServletRequest.getParameter("initialHost"));
  4. props.add("org.omg.CORBA.ORBInitialPort", httpServletRequest.getParameter("initialPort"));
  5. ORB orb = ORB.init(null, props);
  6. // do some work with your ORB
  7. ...
  8.  
  9. public void doGet(..) {
  10. String param1 = request.getParameter("param1");
  11. String param2 = request.getParameter("param2");
  12. startCorbaClient(param1, param2);
  13. }
  14.  
  15. java -Dorb.host=xxx.xx.xx.xxx -Dorb.port=1050 application_server_startup.jar
  16.  
  17. orbHost = System.getProperty("orb.host");
  18. orbPort = System.getProperty("orb.port");
Add Comment
Please, Sign In to add comment