|
From: Shashidhar G. M. <Sha...@ar...> - 2009-03-24 10:17:49
|
Thanks Leif...its done -----Original Message----- From: Leif Mortenson [mailto:lei...@ta...] Sent: Tuesday, March 24, 2009 3:33 PM To: wra...@li... Subject: Re: [Wrapper-user] FW: How to configure the jboss.bind.addressusingJava service wrapper Shashidhar, It is done by adding additional app parameters as follows: # Application parameters. Add parameters as needed starting from 1 wrapper.app.parameter.1=org.jboss.Main wrapper.app.parameter.2=-b wrapper.app.parameter.3=0.0.0.0 If you need to be able to pass the "0.0.0.0" parameter in from the command line, you will need to modify the shell scripts and bat files slightly so the wrapper is called as follows: wrapper.exe -c ../conf/wrapper.conf wrapper.app.parameter.3=0.0.0.0 Cheers, Leif 2009/3/24 Shashidhar Gaurav Misra <Sha...@ar...>: > Hi Leif, > > > > Thanks for the reply > > > > The output from the run.sh on running (./run.sh -b 0.0.0.0) > > /usr/java/jdk1.5.0_14/bin/java -Dprogram.name=run.sh -server -Xms128m > -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 > -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true > -Djava.endorsed.dirs=/home/jboss/lib/endorsed -classpath > /home/jboss/bin/run.jar:/usr/java/jdk1.5.0_14/lib/tools.jar org.jboss.Main > -b 0.0.0.0 > > > > So as you can see that -b 0.0.0.0 is passed as a command line option to > org.jboss.Main class. This is something which I don't think we can pass > through wrapper.conf. As whatever we pass in wrapper.conf will be passed as > an option to java and not to org.jboss.Main. > > > > Please suggest. > > Attached is my wrapper.conf. > > > > Shashidhar > > > > > > -----Original Message----- > From: Leif Mortenson [mailto:lei...@ta...] > Sent: Tuesday, March 24, 2009 2:55 PM > To: wra...@li... > Subject: Re: [Wrapper-user] FW: How to configure the jboss.bind.addressusing > Java service wrapper > > > > Shashidhar, > > First you need to see how JBoss's run.sh is converting that parameter > > into the Java command line. You can do this by echoing the output > > from the original run.sh script and running it. > > > > Then take the resulting java command line and modify the wrapper.conf > > file as appropriate. If you get the above and still have questions, > > please post the above java command line along with your existing > > wrapper.conf and I will help you with the changes. > > > > Cheers, > > Leif > > > > 2009/3/24 Shashidhar Gaurav Misra <Sha...@ar...>: > >> > >> > >> Hi, > >> > >> > >> > >> I am using method 1 to integrate my application (Jboss) with Java service > >> wrapper. I believe the wrapper doesn't internally calls the run.sh to >> start > >> the Jboss Server. > >> > >> Now my problem is that I want to configure the jboss.bind.address, I found > >> that it can be configured using the -b option to the Jboss startup script > >> (run.sh). For example, run -b 0.0.0.0 enables jboss to listen for > >> connections on all IP addresses of the machine. > >> > >> > >> > >> How should I pas this option when I am using the Java Service Wrapper? > >> > >> > >> > >> Please suggest. > >> > >> Shashi ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user "DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error,please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus." |