When it comes to deployment, using the service wrapper may be an issue if the computer doesn't allow services to be setup from the installer. So I'm really looking for an approach that starts the service from the code. I see a lot of people using this MessageBroker class, but I'm not entirely sure what it does. Can it be used to start the service from the code?
Thanks so much! Beeeph Adrian Co wrote: > > Maybe the JAVA_HOME environment variable wasn't set correctly. I'm not > really sure. > > beeeph wrote: >> that's perfect, thank you! >> >> but when i installed it, it didn't work. I'll look into it further, but >> would you have any immediate ideas why this error might be occurring? >> >> STATUS | wrapper | 2008/03/11 20:02:38 | ActiveMQ installed. >> STATUS | wrapper | 2008/03/11 20:06:08 | --> Wrapper Started as Service >> STATUS | wrapper | 2008/03/11 20:06:08 | Launching a JVM... >> FATAL | wrapper | 2008/03/11 20:06:08 | Unable to execute Java command. >> The system cannot find the file specified. (0x2) >> FATAL | wrapper | 2008/03/11 20:06:08 | "%JAVA_HOME%\bin\java" .... >> FATAL | wrapper | 2008/03/11 20:06:08 | Critical error: wait for JVM >> process failed >> DEBUG | wrapper | 2008/03/11 20:13:17 | Working directory set to: . >> STATUS | wrapper | 2008/03/11 20:13:17 | --> Wrapper Started as Service >> DEBUG | wrapper | 2008/03/11 20:13:17 | Using tick timer. >> DEBUG | wrapperp | 2008/03/11 20:13:17 | server listening on port 32000. >> STATUS | wrapper | 2008/03/11 20:13:17 | Launching a JVM... >> DEBUG | wrapper | 2008/03/11 20:13:17 | command: "%JAVA_HOME%\bin\java" >> ...... >> FATAL | wrapper | 2008/03/11 20:13:17 | Unable to execute Java command. >> The system cannot find the file specified. (0x2) >> FATAL | wrapper | 2008/03/11 20:13:17 | "%JAVA_HOME%\bin\java" >> ...... >> FATAL | wrapper | 2008/03/11 20:13:17 | Critical error: wait for JVM >> process failed >> >> >> >> >> Adrian Co wrote: >> >>> How about using the service wrapper? >>> http://activemq.apache.org/java-service-wrapper.html >>> >>> beeeph wrote: >>> >>>> can anyone provide me with some simple c++ code I can use to start the >>>> ActiveMQ service on a windows xp machine? >>>> >>>> Thanks in advance for your help, I really appreciate it! >>>> Beeeph >>>> >>>> >>> >>> >> >> > > > -- View this message in context: http://www.nabble.com/Start-ActiveMQ-programmatically-tp15994303s2354p16036615.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.