It is valid. But it's then, up to you, to manually pass all the environment variables, which, at the end, is what the script does for you, together with other helper functionalities.
On Mon, Nov 28, 2016 at 4:24 AM, Tim Bain <tb...@alumni.duke.edu> wrote: > The script is definitely the most common way to start a broker, but if the > other way is no longer valid, we would need to update > https://activemq.apache.org/activemq-command-line-tools-reference.html to > reflect that. But I'm not aware of a reason why it shouldn't be possible > to direct invoke Java as long as you had set everything up to use default > settings and configuration (i.e. you didn't need any of the things the > script does for you). > > On Nov 27, 2016 11:08 AM, "Claus Ibsen" <claus.ib...@gmail.com> wrote: > >> Hi >> >> You start ActiveMQ using the scripts in the bin directory, not using java >> -jar. >> >> See here how to start/stop ActiveMQ >> http://activemq.apache.org/getting-started.html#GettingStarted- >> StartingActiveMQStartingActiveMQ >> >> On Sun, Nov 27, 2016 at 11:09 AM, jang <wlstncjs1...@naver.com> wrote: >> > Hello im a new user of this ActiveMQ >> > >> > im just downloaded it already finished to set JAVA enviorment and MVN >> also >> > >> > but when i start this ActiveMQ by console. >> > >> > it just stop int this moment >> > >> > >> > C:\apache-activemq-5.14.1\bin>java -jar activemq.jar start >> > Java Runtime: Oracle Corporation 1.8.0_111 C:\Program >> > Files\Java\jre1.8.0_111 >> > Heap sizes: current=58880k free=57327k max=859648k >> > JVM args: >> > Extensions classpath: >> > >> > [C:\apache-activemq-5.14.1\lib,C:\apache-activemq-5.14.1\ >> lib\camel,C:\apache-activemq-5.14.1\lib\optional,C:\apache- >> activemq-5.14.1\lib\web,C:\apache-activemq-5.14.1\lib\extra] >> > ACTIVEMQ_HOME: C:\apache-activemq-5.14.1 >> > ACTIVEMQ_BASE: C:\apache-activemq-5.14.1 >> > ACTIVEMQ_CONF: C:\apache-activemq-5.14.1\conf >> > ACTIVEMQ_DATA: C:\apache-activemq-5.14.1\data >> > Loading message broker from: xbean:activemq.xml >> > INFO | Refreshing org.apache.activemq.xbean. >> XBeanBrokerFactory$1@13969fbe: >> > startup date [Sun Nov 27 19:12:49 KST 2016]; root of context hierarchy >> > INFO | Using Persistence Adapter: >> > KahaDBPersistenceAdapter[C:\apache-activemq-5.14.1\data\kahadb] >> > INFO | KahaDB is version 6 >> > INFO | Recovering from the journal @1:95926 >> > INFO | Recovery replayed 31 operations from the journal in 0.102 >> seconds. >> > INFO | PListStore:[C:\apache-activemq-5.14.1\data\ >> localhost\tmp_storage] >> > started >> > INFO | Apache ActiveMQ 5.14.1 (localhost, ID:Jinsu-35083-1480241571128- >> 0:1) >> > is starting >> > INFO | Listening for connections at: >> > tcp://Jinsu:61616?maximumConnections=1000&wireFormat.maxFrameSize= >> 104857600 >> > INFO | Connector openwire started >> > INFO | Listening for connections at: >> > amqp://Jinsu:5672?maximumConnections=1000&wireFormat.maxFrameSize= >> 104857600 >> > INFO | Connector amqp started >> > INFO | Listening for connections at: >> > stomp://Jinsu:61613?maximumConnections=1000&wireFormat.maxFrameSize= >> 104857600 >> > INFO | Connector stomp started >> > INFO | Listening for connections at: >> > mqtt://Jinsu:1883?maximumConnections=1000&wireFormat.maxFrameSize= >> 104857600 >> > INFO | Connector mqtt started >> > WARN | >> > ServletContext@o.e.j.s.ServletContextHandler@60b4beb4{/,null,STARTING} >> has >> > uncovered http methods for path: / >> > INFO | Listening for connections at >> > ws://Jinsu:61614?maximumConnections=1000&wireFormat.maxFrameSize= >> 104857600 >> > INFO | Connector ws started >> > INFO | Apache ActiveMQ 5.14.1 (localhost, ID:Jinsu-35083-1480241571128- >> 0:1) >> > started >> > INFO | For help or more information please see: >> http://activemq.apache.org >> > WARN | Store limit is 102400 mb (current store usage is 0 mb). The data >> > directory: C:\apache-activemq-5.14.1\data\kahadb only has 34602 mb of >> usable >> > space. - resetting to maximum available disk space: 34602 mb >> > WARN | Temporary Store limit is 51200 mb (current store usage is 0 mb). >> The >> > data directory: C:\apache-activemq-5.14.1\data only has 34602 mb of >> usable >> > space. - resetting to maximum available disk space: 34602 mb >> > INFO | No Spring WebApplicationInitializer types detected on classpath >> > INFO | ActiveMQ WebConsole available at http://0.0.0.0:8161/ >> > INFO | ActiveMQ Jolokia REST API available at >> > http://0.0.0.0:8161/api/jolokia/ >> > INFO | Initializing Spring FrameworkServlet 'dispatcher' >> > INFO | No Spring WebApplicationInitializer types detected on classpath >> > INFO | jolokia-agent: Using policy access restrictor >> > classpath:/jolokia-access.xml >> > >> > what should i do for run this ActiveMQ? >> > >> > >> > >> > -- >> > View this message in context: http://activemq.2283324.n4. >> nabble.com/jolokia-agent-Using-policy-access-restrictor-classpath-jolokia- >> access-xml-tp4719506.html >> > Sent from the ActiveMQ - User mailing list archive at Nabble.com. >> >> >> >> -- >> Claus Ibsen >> ----------------- >> http://davsclaus.com @davsclaus >> Camel in Action 2: https://www.manning.com/ibsen2 >>