Date: Sat, 09 Jan 1999 11:59:18 +0000 From: Marcel Ruff <mr@neurotec.de> To: java-linux@java.blackdown.org, Richard Jones <rich@annexia.demon.co.uk>, Subject: Java-VisiBroker CORBA on Linux with Blackdown Java 1.16/1.17 Howto Hi, after some mails about VisiBroker, here are some hints how to run VisiBroker on Linux: 1) Everything from VisiBroker runs fine on Linux (pure Java), but not the osagent process which is nativ binary (and not supported on Linux) 2) if you don't use the name server and don't run the gatekeeper, you don't need the osagent and you can use a standalone Linux box. You need then the URL naming scheme, - the server emits his IOR string, the client grabs and narrows it to use it. 3) if you want to start the gatekeeper (or naming service) on Linux, you need to have an osagent running somewhere on the network (on a NT, AIX, Sun or another supported platfom) Specify on your Linuxbox where to find the osagent: a) For example, that's how i start the name server (similar i start my servers) java -DORBagentAddr=192.168.200.8 -DORBagentPort=14000 -DORBservices=CosNaming -DSVCnameroot=CorbaJava -DJDKrenameBug com.visigenic.vbroker.services.CosNaming.ExtFactory CorbaJava nameLog b) Servlets (jserv module with apache): b1) the servlets.default.initArgs can be spcified in the servlet itself like: Properties props = System.getProperties(); props.put( "ORBservices", "CosNaming" ); props.put( "SVCnameroot", "CorbaJava" ); props.put( "ORBagentAddr", "192.168.200.8" ); props.put( "ORBagentPort", "14000" ); System.setProperties( props ); b2) or generally in (for example): cp /usr/local/jserv/servlet.properties /usr/local/apache/etc/servlet.properties: and add a line: servlets.default.initArgs=DefaultTemplDir=/usr/local/apache/share/templates/,ORBagentAddr=192.168.200.8,ORBagentPort=14000,ORBservices=CosNaming,SVCnameroot=CorbaJava You access it then with: Properties props = System.getProperties(); if (conf.getInitParameter("ORBagentAddr") != null) props.put( "ORBagentAddr", conf.getInitParameter("ORBagentAddr")); .... System.setProperties( props ); c) Applets: Without the netscape plugin in the <APPLET> tag: <PARAM name=org.omg.CORBA.ORBClass value=com.visigenic.vbroker.orb.ORB> <PARAM name=ORBServices value=CosNaming> <PARAM name=SVCnameroot value=CorbaJava> <PARAM name=ORBagentAddr value=192.168.200.8> <PARAM name=ORBgatekeeperIOR value=http://192.168.200.8:9090/gatekeeper.txt> When using the activator Java plugin for netscape communicator, use the <EMBED> tag and for example: <EMBED type="application/x-java-applet;version=1.1" width="844" height="468" align="middle" CODE="org.freelancer.fancy.class" CODEBASE="http://192.168.200.8:9090" org.omg.CORBA.ORBClass="com.visigenic.vbroker.orb.ORB" ORBServices="CosNaming" SVCnameroot="CorbaJava" ORBagentAddr="192.168.200.8" LOCdebug="true" <NOEMBED> Hopefully that helps others Marcel Thanks to Richard Jones <rich@annexia.demon.co.uk> Armen Yampolsky <ayampolsky@erols.com> and a third person (Sorry i can't find your email any more) which gave me this answers -- Marcel Ruff ruff@swand.lake.de