|
From: Prasad T. <tir...@ho...> - 2004-06-04 19:51:47
|
Hi Everyone,
Few days back i had posted a question like how to use the following as a
windows service.
vbj -Duser.region=US -Dvbroker.agent.port=14000 com.server.transform.Server.
I could run this as a service now. I want to share the information so that
if anyone wants to run these types as windows service can follow this.
I got some information from Leif Mortenson. I thank him for giving me some
inputs. Well vbj is Visibroker and it is CORBA related. vbj intially sets
parameters and classpaths and than intiates the JVM instance. Inorder to
know what vbj is doing u can debug by putting -VBJdebug option.
I tried this
vbj -VBJDebug -Duser.region=US -Dvbroker.agent.port=14000
com.server.transform.Server
and got the following output
/////////////////////////////////////////////////////////////////////////////////////////////////////////
C:\>vbj -VBJdebug -Duser.region=US -Dvbroker.agent.port=14000
com.bentley.server.transform.Server
JVM:
Loaded JVM dll c:\bes\jdk\jdk1.4.1\jre\bin\client\jvm.dll
JavaVMInitArgs:
version 0x00010002
ignoreUnrecognized is JNI_FALSE
nOptions is 13
option[ 0] = '-Djava.endorsed.dirs=c:\BES\lib\endorsed'
option[ 1] =
'-Djavax.rmi.CORBA.StubClass=com.inprise.vbroker.rmi.CORBA.StubImpl'
option[ 2] =
'-Djavax.rmi.CORBA.UtilClass=com.inprise.vbroker.rmi.CORBA.UtilImpl'
option[ 3] =
'-Djavax.rmi.CORBA.PortableRemoteObjectClass=com.inprise.vbroker.rmi.CORBA.PortableRemoteObjectImpl
option[ 4] = '-Dorg.omg.CORBA.ORBClass=com.inprise.vbroker.orb.ORB'
option[ 5] =
'-Dorg.omg.CORBA.ORBSingletonClass=com.inprise.vbroker.orb.ORBSingleton'
option[ 6] = '-Duser.region=US'
option[ 7] = '-Dvbroker.agent.port=14000'
option[ 8] = '-Dvbroker.orb.admDir=C:\BES\var\servers\OITWXPGB7W241\adm'
option[ 9] =
'-Dborland.enterprise.licenseDir=C:\BES\var\servers\OITWXPGB7W241\adm'
option[10] = '-Dvbroker.orb.procId=5656'
option[11] = '-Dapplication.home=c:\BES'
option[12] =
'-Djava.class.path=.;\edalib.jar;c:\BES\lib\vbejb.jar;c:\BES\lib\vbjorb.jar;c:\Program
Files\FME200
cts\java\fmeobjects.jar;c:\BES\jdk\jdk1.4.1\lib\tools.jar;c:\BES\jdk\jdk1.4.1\jre\lib\rt.jar;c:\BES\jdk\jdk1.4.1\jre
sets.jar;c:\fmeserver;c:\BES\lib\vbejb.jar;c:\BES\lib\asrt.jar;c:\BES\lib\jdsserver.jar;c:\BES\lib\xmlrt.jar;c:\BES\
b.jar;c:\BES\lib;c:\BES\bin;c:\BES\lib\lm.jar;c:\BES\SonicMQ\lib\broker.jar;c:\BES\lib\sonic_Client.jar;c:\BES\lib\s
ar;c:\BES\lib\jsse.jar;c:\BES\lib\jcert.jar;c:\BES\lib\jnet.jar;c:\BES\lib\jaas.jar;c:\BES\lib\vbsec.jar;c:\BES\lib\
.jar;c:\BES\lib\sunjce_provider.jar;c:\BES\lib\local_policy.jar;c:\BES\lib\US_export_policy.jar;c:\BES\lib\tomcat\co
let.jar;.;c:\bes\jdk\jdk1.4.1\lib\tools.jar'
Entry class = com.bentley.server.transform.Server
Stub[repository_id=IDL:com.bentley.common.fme.TransformManager:1.0,key=ServiceId[service=/rmi_transform_poa,id={19
b
[M][I][T][r][a][n][s][f][o][r][m][M][a][n][a][g][e][r]},key_string=%00PMC%00%00%00%04%00%00%00%13/rmi_transform_poa%
00%00%13RMITransformManager],codebase=null] is ready.
////////////////////////////////////////////////////////////////////////////////////////////////////
I set the option[s] parameters in the Additional Parameters in the config
file like
wrapper.java.additional.1= -Djava.endorsed.dirs=c:\BES\lib\endorsed
wrapper.java.additional.2=
-Djavax.rmi.CORBA.StubClass=com.inprise.vbroker.rmi.CORBA.StubImpl
......etc.
and the classpath parameters in the Java Classpath section of the wrapper
config file.
Thats it the rest of the settings is like the normal config settings. Ir
runs fine.
Thanks,
Prasad.
_________________________________________________________________
Think online shopping is cool? Enter the Baazee contest now!
http://server1.msn.co.in/sp04/Baazee/ Win great prizes while you shop!
|