-
1. Re: Newbie: how do i
darranl Aug 18, 2004 4:58 AM (in response to ryan48sg)Which bit don't you understand, I assume that you know how to copy and rename a folder using Windows.
To execute the command 'run -c myconfig' you need to open a command prompt and move the the JBoss bin directory so that you can enter the command. -
2. Re: Newbie: how do i
ryan48sg Aug 19, 2004 12:33 AM (in response to ryan48sg)thanks darranl,
yes, it was the run command i was stuck with. Combination of my stupidity and the file name 'run.bat' led to confusion.
Thanks for the quick reply
Regards -
3. Re: Newbie: how do i
mrobin21 Sep 6, 2004 7:29 PM (in response to ryan48sg)Why don't you use a wrapper to start it as a service?
I use one on my Win2K laptop. Very simple to set up and use, and you can specify command line options like '-c'....
Link:
JAVA Service Wrapper
Here's my wrapper.conf file if it helps. My JDK is installed in C:\j2sdk1.4.2_04, and I run the 'all' config on my PC:
-- FILE SECTION START --
wrapper.java.command=C:\j2sdk1.4.2_04\bin\java
wrapper.java.mainclass=com.silveregg.wrapper.WrapperSimpleApp
wrapper.app.parameter.1=org.jboss.Main
wrapper.app.parameter.2=-c all
wrapper.java.classpath.1=./run.jar
wrapper.java.classpath.2=./wrapper.jar
wrapper.java.classpath.3=C:\j2sdk1.4.2_04\lib\tools.jar
wrapper.java.library.path.1=.
wrapper.port=1777
wrapper.startup.timeout=300
wrapper.ping.timeout=300
wrapper.shutdown.timeout=300
wrapper.disable_shutdown_hook=TRUE
wrapper.request_thread_dump_on_failed_jvm_exit=TRUE
wrapper.ntservice.name=JBoss
wrapper.ntservice.displayname=JBoss Server
wrapper.ntservice.description=JBoss J2EE Server
wrapper.ntservice.starttype=AUTO_START
wrapper.ntservice.interactive=false
wrapper.ntservice.process_priority=NORMAL
-- FILE SECTION END --
Note that you need these files copied into your JBoss bin directory:
wrapper.exe
wrapper.conf
wrapper.dll
Also note that the file above sets the service to AUTO START.
Once you have installed the service you can manage it under windows in exactly the same way as any other Windows service!
Console output from the command is directed to the wrapper.log file in the same directory by default.
Try it out! -
4. Re: Newbie: how do i
vanholy Oct 9, 2004 2:01 PM (in response to ryan48sg)Using wrapper can you see jboss console as usual with runtime output or as a win service you do not see anythig (use log)?
off topic:
is there any way under windows to not use awful shell cmd.exe for navigate in the system by command line?
I' d like to use a shell unix like that remember old actions,
tk bye -
5. Re: Newbie: how do i
mrobin21 Oct 9, 2004 8:05 PM (in response to ryan48sg)The wrapper creates a log file (wrapper.log - but I think the name is configurable) which contains the console output.
Not sure what the problem is using cmd.exe. The idea of wrapper is that you control the service by means of the windows services applet. There is no need for command history.
When you run the wrapper -i command, it doesn't actually run the service - it installs the service into the wndows service manager. Thereafter you control the service in the same way as every other windows service.