activemqactivemq.2283324.n4.nabble.com/.../activemq-jdbc-los… · web view2011-08-11 11:39:04,099...

14
1) We have non expiring messages pending in a number of queues Those queues above are automatically created when consuming messages from virtual topics 2) See activemq.xml for details on the settings 3) Restart activemq service

Upload: others

Post on 29-Jun-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: ActiveMQactivemq.2283324.n4.nabble.com/.../activemq-jdbc-los… · Web view2011-08-11 11:39:04,099 | DEBUG | queue://example.A expiring messages done. | org.apache.activemq.broker.region.Queue

1) We have non expiring messages pending in a number of queues

Those queues above are automatically created when consuming messages from virtual topics

2) See activemq.xml for details on the settings3) Restart activemq service4) Activemq.log content after service is restarted:

Page 2: ActiveMQactivemq.2283324.n4.nabble.com/.../activemq-jdbc-los… · Web view2011-08-11 11:39:04,099 | DEBUG | queue://example.A expiring messages done. | org.apache.activemq.broker.region.Queue

2011-08-11 11:39:04,099 | DEBUG | queue://example.A expiring messages .. | org.apache.activemq.broker.region.Queue | ActiveMQ Broker[localhost] Scheduler2011-08-11 11:39:04,099 | DEBUG | example.A toPageIn: 0, Inflight: 0, pagedInMessages.size 0, enqueueCount: 0, dequeueCount: 0 | org.apache.activemq.broker.region.Queue | ActiveMQ Broker[localhost] Scheduler2011-08-11 11:39:04,099 | DEBUG | queue://example.A expiring messages done. | org.apache.activemq.broker.region.Queue | ActiveMQ Broker[localhost] Scheduler2011-08-11 11:39:04,846 | INFO | ActiveMQ Message Broker (localhost, ID:DWDEV2-PGRITSAI-49922-1313087460182-0:1) is shutting down | org.apache.activemq.broker.BrokerService | ActiveMQ ShutdownHook2011-08-11 11:39:04,846 | INFO | ActiveMQ Message Broker (localhost, ID:DWDEV2-PGRITSAI-49922-1313087460182-0:1) is shutting down | org.apache.activemq.broker.BrokerService | Thread-192011-08-11 11:39:04,846 | DEBUG | Caught exception, must be shutting down: java.lang.IllegalStateException: Shutdown in progress | org.apache.activemq.broker.BrokerService | ActiveMQ ShutdownHook2011-08-11 11:39:04,846 | DEBUG | Caught exception, must be shutting down: java.lang.IllegalStateException: Shutdown in progress | org.apache.activemq.broker.BrokerService | Thread-192011-08-11 11:39:04,847 | INFO | Connector openwire Stopped | org.apache.activemq.broker.TransportConnector | ActiveMQ ShutdownHook2011-08-11 11:39:04,847 | DEBUG | Shutting down VM connectors for broker: localhost | org.apache.activemq.transport.vm.VMTransportFactory | ActiveMQ ShutdownHook2011-08-11 11:39:04,848 | DEBUG | Stopping connection: vm://localhost#0 | org.apache.activemq.broker.TransportConnection | StopAsync:vm://localhost#0-532011-08-11 11:39:04,848 | DEBUG | Stopped transport: vm://localhost#0 | org.apache.activemq.broker.TransportConnection | StopAsync:vm://localhost#0-532011-08-11 11:39:04,849 | DEBUG | Cleaning up connection resources: vm://localhost#0 | org.apache.activemq.broker.TransportConnection | StopAsync:vm://localhost#0-532011-08-11 11:39:04,849 | DEBUG | remove connection id: ID:DWDEV2-PGRITSAI-49922-1313087460182-2:1 | org.apache.activemq.broker.TransportConnection | StopAsync:vm://localhost#0-532011-08-11 11:39:04,849 | DEBUG | localhost removing consumer: ID:DWDEV2-PGRITSAI-49922-1313087460182-2:1:-1:1 for destination: ActiveMQ.Advisory.TempQueue,ActiveMQ.Advisory.TempTopic | org.apache.activemq.broker.region.AbstractRegion | StopAsync:vm://localhost#0-532011-08-11 11:39:04,850 | DEBUG | localhost removing consumer: ID:DWDEV2-PGRITSAI-49922-1313087460182-2:1:1:1 for destination: queue://example.A | org.apache.activemq.broker.region.AbstractRegion | StopAsync:vm://localhost#0-532011-08-11 11:39:04,850 | DEBUG | queue://example.A remove sub: QueueSubscription: consumer=ID:DWDEV2-PGRITSAI-49922-1313087460182-2:1:1:1, destinations=1, dispatched=0, delivered=0, pending=0, lastDeliveredSeqId: 0, dequeues: 0, dispatched: 0, inflight: 0 | org.apache.activemq.broker.region.Queue | StopAsync:vm://localhost#0-532011-08-11 11:39:04,850 | DEBUG | Connection Stopped: vm://localhost#0 | org.apache.activemq.broker.TransportConnection | StopAsync:vm://localhost#0-532011-08-11 11:39:04,850 | INFO | Connector vm://localhost Stopped | org.apache.activemq.broker.TransportConnector | ActiveMQ ShutdownHook2011-08-11 11:39:04,855 | DEBUG | default:memory: usage change from: 4% of available memory, to: 3% of available memory | org.apache.activemq.usage.Usage | ActiveMQ ShutdownHook2011-08-11 11:39:04,855 | DEBUG | default:memory:queue://Consumer.funcTestOne-634486591701624602.VirtualTopic.SM.Company:memory: usage change from: 1% of available memory, to: 0% of available memory | org.apache.activemq.usage.Usage | ActiveMQ ShutdownHook2011-08-11 11:39:04,855 | DEBUG | default:memory: usage change from: 3% of available memory, to: 2% of available memory | org.apache.activemq.usage.Usage | ActiveMQ ShutdownHook2011-08-11 11:39:04,855 | DEBUG | default:memory: usage change from: 2% of available memory, to: 1% of available memory | org.apache.activemq.usage.Usage | ActiveMQ ShutdownHook2011-08-11 11:39:04,855 | DEBUG | default:memory:queue://Consumer.funcTestOne-634486591760480487.VirtualTopic.SM.Company:memory: usage change from: 1% of available memory, to: 0% of available memory | org.apache.activemq.usage.Usage | ActiveMQ ShutdownHook2011-08-11 11:39:04,856 | DEBUG | default:memory: usage change from: 1% of available memory, to: 0% of available memory | org.apache.activemq.usage.Usage | ActiveMQ ShutdownHook2011-08-11 11:39:04,858 | INFO | PListStore:C:\apache-activemq-5.5.0\bin\win32\..\..\data\localhost\tmp_storage stopped | org.apache.activemq.store.kahadb.plist.PListStore | ActiveMQ ShutdownHook2011-08-11 11:39:04,891 | INFO | ActiveMQ JMS Message Broker (localhost, ID:DWDEV2-PGRITSAI-49922-1313087460182-0:1) stopped | org.apache.activemq.broker.BrokerService | ActiveMQ ShutdownHook2011-08-11 11:39:05,950 | DEBUG | Cleaning up expired web clients. | org.apache.activemq.web.MessageListenerServlet | Timer-1

Page 3: ActiveMQactivemq.2283324.n4.nabble.com/.../activemq-jdbc-los… · Web view2011-08-11 11:39:04,099 | DEBUG | queue://example.A expiring messages done. | org.apache.activemq.broker.region.Queue

2011-08-11 11:39:06,180 | INFO | Connector openwire Stopped | org.apache.activemq.broker.TransportConnector | Thread-192011-08-11 11:39:06,181 | INFO | ActiveMQ JMS Message Broker (localhost, ID:DWDEV2-PGRITSAI-49922-1313087460182-0:1) stopped | org.apache.activemq.broker.BrokerService | Thread-192011-08-11 11:39:07,750 | DEBUG | Now attempting to figure out the type of resource: activemq.xml | org.apache.activemq.xbean.XBeanBrokerFactory | WrapperSimpleAppMain2011-08-11 11:39:07,804 | INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@a13f991: startup date [Thu Aug 11 11:39:07 PDT 2011]; root of context hierarchy | org.apache.activemq.xbean.XBeanBrokerFactory$1 | WrapperSimpleAppMain2011-08-11 11:39:08,847 | DEBUG | Bean factory for org.apache.activemq.xbean.XBeanBrokerFactory$1@a13f991: org.springframework.beans.factory.support.DefaultListableBeanFactory@64e265d0: defining beans [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,mssql-ds,derby-ds,org.apache.activemq.xbean.XBeanBrokerService#0,securityLoginService,securityConstraint,securityConstraintMapping,securityHandler,contexts,Server]; root of factory hierarchy | org.apache.activemq.xbean.XBeanBrokerFactory$1 | WrapperSimpleAppMain2011-08-11 11:39:08,917 | DEBUG | Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@28ae4646] | org.apache.activemq.xbean.XBeanBrokerFactory$1 | WrapperSimpleAppMain2011-08-11 11:39:08,920 | DEBUG | Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@68acfc3] | org.apache.activemq.xbean.XBeanBrokerFactory$1 | WrapperSimpleAppMain2011-08-11 11:39:08,934 | INFO | MLog clients using log4j logging. | com.mchange.v2.log.MLog | WrapperSimpleAppMain2011-08-11 11:39:08,971 | INFO | Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10] | com.mchange.v2.c3p0.C3P0Registry | WrapperSimpleAppMain2011-08-11 11:39:08,989 | DEBUG | MBean: com.mchange.v2.c3p0:type=PooledDataSource[2s2zux8h1fnb3bz18e1w7c|45c3e9ba] registered. | com.mchange.v2.c3p0.management.DynamicPooledDataSourceManagerMBean | WrapperSimpleAppMain2011-08-11 11:39:09,086 | WARN | destroyApplicationContextOnStop parameter is deprecated, please use shutdown hooks instead | org.apache.activemq.xbean.XBeanBrokerService | WrapperSimpleAppMain2011-08-11 11:39:09,092 | INFO | PListStore:C:\apache-activemq-5.5.0\bin\win32\..\..\data\localhost\tmp_storage started | org.apache.activemq.store.kahadb.plist.PListStore | WrapperSimpleAppMain2011-08-11 11:39:09,099 | DEBUG | Probably not using JRE 1.4: mx4j.tools.naming.NamingService | org.apache.activemq.broker.jmx.ManagementContext | WrapperSimpleAppMain2011-08-11 11:39:09,113 | DEBUG | Starting JMXConnectorServer... | org.apache.activemq.broker.jmx.ManagementContext | JMX connector2011-08-11 11:39:09,181 | INFO | Using Persistence Adapter: JDBCPersistenceAdapter(org.apache.derby.jdbc.EmbeddedDataSource@4ad61aef) | org.apache.activemq.broker.BrokerService | WrapperSimpleAppMain2011-08-11 11:39:09,203 | INFO | JMX consoles can connect to service:jmx:rmi://localhost:11119/jndi/rmi://localhost:11099/jmxrmi | org.apache.activemq.broker.jmx.ManagementContext | JMX connector2011-08-11 11:39:11,280 | INFO | Database adapter driver override recognized for : [apache_derby_embedded_jdbc_driver] - adapter: class org.apache.activemq.store.jdbc.adapter.DB2JDBCAdapter | org.apache.activemq.store.jdbc.JDBCPersistenceAdapter | WrapperSimpleAppMain2011-08-11 11:39:11,474 | DEBUG | Executing SQL: CREATE TABLE ACTIVEMQ_MSGS(ID BIGINT NOT NULL, CONTAINER VARCHAR(250), MSGID_PROD VARCHAR(250), MSGID_SEQ BIGINT, EXPIRATION BIGINT, MSG BLOB, PRIMARY KEY ( ID ) ) | org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter | WrapperSimpleAppMain2011-08-11 11:39:11,622 | DEBUG | Could not create JDBC tables; The message table already existed. Failure was: CREATE TABLE ACTIVEMQ_MSGS(ID BIGINT NOT NULL, CONTAINER VARCHAR(250), MSGID_PROD VARCHAR(250), MSGID_SEQ BIGINT, EXPIRATION BIGINT, MSG BLOB, PRIMARY KEY ( ID ) ) Message: Table/View 'ACTIVEMQ_MSGS' already exists in Schema 'APP'. SQLState: X0Y32 Vendor code: 20000 | org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter | WrapperSimpleAppMain2011-08-11 11:39:11,623 | DEBUG | Executing SQL: CREATE INDEX ACTIVEMQ_MSGS_MIDX ON ACTIVEMQ_MSGS (MSGID_PROD,MSGID_SEQ) | org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter | WrapperSimpleAppMain2011-08-11 11:39:11,649 | DEBUG | Executing SQL: CREATE INDEX ACTIVEMQ_MSGS_CIDX ON ACTIVEMQ_MSGS (CONTAINER) | org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter | WrapperSimpleAppMain2011-08-11 11:39:11,661 | DEBUG | Executing SQL: CREATE INDEX ACTIVEMQ_MSGS_EIDX ON ACTIVEMQ_MSGS (EXPIRATION) | org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter | WrapperSimpleAppMain2011-08-11 11:39:11,672 | DEBUG | Executing SQL: CREATE TABLE ACTIVEMQ_ACKS(CONTAINER VARCHAR(250) NOT NULL, SUB_DEST VARCHAR(250), CLIENT_ID VARCHAR(250) NOT NULL, SUB_NAME VARCHAR(250) NOT NULL, SELECTOR VARCHAR(250), LAST_ACKED_ID BIGINT, PRIMARY KEY ( CONTAINER, CLIENT_ID, SUB_NAME)) | org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter | WrapperSimpleAppMain

Page 4: ActiveMQactivemq.2283324.n4.nabble.com/.../activemq-jdbc-los… · Web view2011-08-11 11:39:04,099 | DEBUG | queue://example.A expiring messages done. | org.apache.activemq.broker.region.Queue

2011-08-11 11:39:11,758 | DEBUG | Could not create JDBC tables; The message table already existed. Failure was: CREATE TABLE ACTIVEMQ_ACKS(CONTAINER VARCHAR(250) NOT NULL, SUB_DEST VARCHAR(250), CLIENT_ID VARCHAR(250) NOT NULL, SUB_NAME VARCHAR(250) NOT NULL, SELECTOR VARCHAR(250), LAST_ACKED_ID BIGINT, PRIMARY KEY ( CONTAINER, CLIENT_ID, SUB_NAME)) Message: Table/View 'ACTIVEMQ_ACKS' already exists in Schema 'APP'. SQLState: X0Y32 Vendor code: 20000 | org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter | WrapperSimpleAppMain2011-08-11 11:39:11,759 | DEBUG | Executing SQL: CREATE TABLE ACTIVEMQ_LOCK( ID BIGINT NOT NULL, TIME BIGINT, BROKER_NAME VARCHAR(250), PRIMARY KEY (ID) ) | org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter | WrapperSimpleAppMain2011-08-11 11:39:11,890 | DEBUG | Could not create JDBC tables; The message table already existed. Failure was: CREATE TABLE ACTIVEMQ_LOCK( ID BIGINT NOT NULL, TIME BIGINT, BROKER_NAME VARCHAR(250), PRIMARY KEY (ID) ) Message: Table/View 'ACTIVEMQ_LOCK' already exists in Schema 'APP'. SQLState: X0Y32 Vendor code: 20000 | org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter | WrapperSimpleAppMain2011-08-11 11:39:11,890 | DEBUG | Executing SQL: INSERT INTO ACTIVEMQ_LOCK(ID) VALUES (1) | org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter | WrapperSimpleAppMain2011-08-11 11:39:12,049 | DEBUG | Could not create JDBC tables; The message table already existed. Failure was: INSERT INTO ACTIVEMQ_LOCK(ID) VALUES (1) Message: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'SQL110811112506620' defined on 'ACTIVEMQ_LOCK'. SQLState: 23505 Vendor code: 20000 | org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter | WrapperSimpleAppMain2011-08-11 11:39:12,049 | DEBUG | Executing SQL: ALTER TABLE ACTIVEMQ_MSGS ADD PRIORITY BIGINT | org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter | WrapperSimpleAppMain2011-08-11 11:39:12,069 | DEBUG | Could not create JDBC tables; The message table already existed. Failure was: ALTER TABLE ACTIVEMQ_MSGS ADD PRIORITY BIGINT Message: Column 'PRIORITY' already exists in Table/View '"APP"."ACTIVEMQ_MSGS"'. SQLState: X0Y32 Vendor code: 20000 | org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter | WrapperSimpleAppMain2011-08-11 11:39:12,069 | DEBUG | Executing SQL: CREATE INDEX ACTIVEMQ_MSGS_PIDX ON ACTIVEMQ_MSGS (PRIORITY) | org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter | WrapperSimpleAppMain2011-08-11 11:39:12,078 | DEBUG | Executing SQL: ALTER TABLE ACTIVEMQ_ACKS ADD PRIORITY BIGINT DEFAULT 5 NOT NULL | org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter | WrapperSimpleAppMain2011-08-11 11:39:12,091 | DEBUG | Could not create JDBC tables; The message table already existed. Failure was: ALTER TABLE ACTIVEMQ_ACKS ADD PRIORITY BIGINT DEFAULT 5 NOT NULL Message: Column 'PRIORITY' already exists in Table/View '"APP"."ACTIVEMQ_ACKS"'. SQLState: X0Y32 Vendor code: 20000 | org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter | WrapperSimpleAppMain2011-08-11 11:39:12,091 | DEBUG | Executing SQL: ALTER TABLE ACTIVEMQ_ACKS DROP PRIMARY KEY | org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter | WrapperSimpleAppMain2011-08-11 11:39:12,121 | DEBUG | Executing SQL: ALTER TABLE ACTIVEMQ_ACKS ADD PRIMARY KEY (CONTAINER, CLIENT_ID, SUB_NAME, PRIORITY) | org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter | WrapperSimpleAppMain2011-08-11 11:39:12,277 | INFO | Database lock driver override not found for : [apache_derby_embedded_jdbc_driver]. Will use default implementation. | org.apache.activemq.store.jdbc.JDBCPersistenceAdapter | WrapperSimpleAppMain2011-08-11 11:39:12,278 | DEBUG | Using default JDBC Locker: org.apache.activemq.store.jdbc.DefaultDatabaseLocker@399197b | org.apache.activemq.store.jdbc.JDBCPersistenceAdapter | WrapperSimpleAppMain2011-08-11 11:39:12,278 | INFO | Attempting to acquire the exclusive lock to become the Master broker | org.apache.activemq.store.jdbc.DefaultDatabaseLocker | WrapperSimpleAppMain2011-08-11 11:39:12,279 | DEBUG | Locking Query is LOCK TABLE ACTIVEMQ_LOCK IN EXCLUSIVE MODE | org.apache.activemq.store.jdbc.DefaultDatabaseLocker | WrapperSimpleAppMain2011-08-11 11:39:12,289 | INFO | Becoming the master on dataSource: org.apache.derby.jdbc.EmbeddedDataSource@4ad61aef | org.apache.activemq.store.jdbc.DefaultDatabaseLocker | WrapperSimpleAppMain2011-08-11 11:39:12,292 | INFO | ActiveMQ 5.5.0 JMS Message Broker (localhost) is starting | org.apache.activemq.broker.BrokerService | WrapperSimpleAppMain2011-08-11 11:39:12,292 | INFO | For help or more information please see: http://activemq.apache.org/ | org.apache.activemq.broker.BrokerService | WrapperSimpleAppMain2011-08-11 11:39:12,537 | DEBUG | Publishing: null for broker transport URI: null | org.apache.activemq.broker.TransportConnector | WrapperSimpleAppMain2011-08-11 11:39:12,539 | DEBUG | localhost adding destination: topic://ActiveMQ.Advisory.MasterBroker | org.apache.activemq.broker.region.AbstractRegion | WrapperSimpleAppMain2011-08-11 11:39:12,558 | DEBUG | Cleaning up old messages. | org.apache.activemq.store.jdbc.JDBCPersistenceAdapter | WrapperSimpleAppMain2011-08-11 11:39:12,559 | DEBUG | Executing SQL: DELETE FROM ACTIVEMQ_MSGS WHERE ( EXPIRATION<>0 AND EXPIRATION<?) OR (ID <= ( SELECT min(ACTIVEMQ_ACKS.LAST_ACKED_ID) FROM ACTIVEMQ_ACKS WHERE

Page 5: ActiveMQactivemq.2283324.n4.nabble.com/.../activemq-jdbc-los… · Web view2011-08-11 11:39:04,099 | DEBUG | queue://example.A expiring messages done. | org.apache.activemq.broker.region.Queue

ACTIVEMQ_ACKS.CONTAINER=ACTIVEMQ_MSGS.CONTAINER ) ) | org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter | WrapperSimpleAppMain2011-08-11 11:39:12,597 | DEBUG | Deleted 0 old message(s). | org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter | WrapperSimpleAppMain2011-08-11 11:39:12,597 | DEBUG | Executing SQL: DELETE FROM ACTIVEMQ_MSGS WHERE ( EXPIRATION<>0 AND EXPIRATION<?) OR (ID <= ( SELECT min(ACTIVEMQ_ACKS.LAST_ACKED_ID) FROM ACTIVEMQ_ACKS WHERE ACTIVEMQ_ACKS.CONTAINER=ACTIVEMQ_MSGS.CONTAINER AND ACTIVEMQ_ACKS.PRIORITY=ACTIVEMQ_MSGS.PRIORITY ) ) | org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter | WrapperSimpleAppMain

5) Wrapper.log content after restart:

INFO | jvm 1 | 2011/08/11 11:39:04 | INFO | ActiveMQ Message Broker (localhost, ID:DWDEV2-PGRITSAI-49922-1313087460182-0:1) is shutting downINFO | jvm 1 | 2011/08/11 11:39:04 | INFO | ActiveMQ Message Broker (localhost, ID:DWDEV2-PGRITSAI-49922-1313087460182-0:1) is shutting downINFO | jvm 1 | 2011/08/11 11:39:04 | INFO | Connector openwire StoppedINFO | jvm 1 | 2011/08/11 11:39:04 | INFO | Connector vm://localhost StoppedINFO | jvm 1 | 2011/08/11 11:39:04 | INFO | PListStore:C:\apache-activemq-5.5.0\bin\win32\..\..\data\localhost\tmp_storage stoppedINFO | jvm 1 | 2011/08/11 11:39:04 | INFO | ActiveMQ JMS Message Broker (localhost, ID:DWDEV2-PGRITSAI-49922-1313087460182-0:1) stoppedINFO | jvm 1 | 2011/08/11 11:39:06 | INFO | Connector openwire StoppedINFO | jvm 1 | 2011/08/11 11:39:06 | INFO | ActiveMQ JMS Message Broker (localhost, ID:DWDEV2-PGRITSAI-49922-1313087460182-0:1) stoppedSTATUS | wrapper | 2011/08/11 11:39:06 | <-- Wrapper StoppedSTATUS | wrapper | 2011/08/11 11:39:07 | --> Wrapper Started as ServiceSTATUS | wrapper | 2011/08/11 11:39:07 | Launching a JVM...INFO | jvm 1 | 2011/08/11 11:39:07 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.orgINFO | jvm 1 | 2011/08/11 11:39:07 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.INFO | jvm 1 | 2011/08/11 11:39:07 | INFO | jvm 1 | 2011/08/11 11:39:07 | INFO | jvm 1 | 2011/08/11 11:39:07 | WARNING - Unable to load the Wrapper's native library 'wrapper.dll'.INFO | jvm 1 | 2011/08/11 11:39:07 | The file is located on the path at the following location butINFO | jvm 1 | 2011/08/11 11:39:07 | could not be loaded:INFO | jvm 1 | 2011/08/11 11:39:07 | C:\apache-activemq-5.5.0\bin\win32\..\..\bin\win32\wrapper.dllINFO | jvm 1 | 2011/08/11 11:39:07 | Please verify that the file is readable by the current userINFO | jvm 1 | 2011/08/11 11:39:07 | and that the file has not been corrupted in any way.INFO | jvm 1 | 2011/08/11 11:39:07 | One common cause of this problem is running a 32-bit versionINFO | jvm 1 | 2011/08/11 11:39:07 | of the Wrapper with a 64-bit version of Java, or vica versa.INFO | jvm 1 | 2011/08/11 11:39:07 | This is a 64-bit JVM.INFO | jvm 1 | 2011/08/11 11:39:07 | Reported cause:INFO | jvm 1 | 2011/08/11 11:39:07 | C:\apache-activemq-5.5.0\bin\win32\wrapper.dll: Can't find dependent librariesINFO | jvm 1 | 2011/08/11 11:39:07 | System signals will not be handled correctly.INFO | jvm 1 | 2011/08/11 11:39:07 | INFO | jvm 1 | 2011/08/11 11:39:07 | Java Runtime: Sun Microsystems Inc. 1.6.0_26 C:\Program Files\Java\jdk1.6.0_26\jreINFO | jvm 1 | 2011/08/11 11:39:07 | Heap sizes: current=94016k free=89098k max=466048kINFO | jvm 1 | 2011/08/11 11:39:07 | JVM args: -Dactivemq.home=C:\apache-activemq-5.5.0\bin\win32\..\.. -Dactivemq.base=C:\apache-activemq-5.5.0\bin\win32\..\.. -Djavax.net.ssl.keyStorePassword=password -Djavax.net.ssl.trustStorePassword=password -Djavax.net.ssl.keyStore=C:\apache-activemq-5.5.0\bin\win32\..\../conf/broker.ks -Djavax.net.ssl.trustStore=C:\apache-activemq-5.5.0\bin\win32\..\../conf/broker.ts -Dcom.sun.management.jmxremote -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Djava.util.logging.config.file=logging.properties -Djava.io.tmpdir=C:\apache-activemq-5.5.0\bin\win32\..\../temp -Xmx512m -Djava.library.path=C:\apache-activemq-5.5.0\bin\win32\..\../bin/win32 -Dwrapper.key=F7NE2Rs10Q4IRqC5 -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=6104 -Dwrapper.version=3.2.3 -Dwrapper.native_library=wrapper -Dwrapper.service=TRUE -Dwrapper.cpu.timeout=10 -Dwrapper.jvmid=1INFO | jvm 1 | 2011/08/11 11:39:07 | ACTIVEMQ_HOME: C:\apache-activemq-5.5.0\bin\win32\..\..INFO | jvm 1 | 2011/08/11 11:39:07 | ACTIVEMQ_BASE: C:\apache-activemq-5.5.0\bin\win32\..\..

Page 6: ActiveMQactivemq.2283324.n4.nabble.com/.../activemq-jdbc-los… · Web view2011-08-11 11:39:04,099 | DEBUG | queue://example.A expiring messages done. | org.apache.activemq.broker.region.Queue

INFO | jvm 1 | 2011/08/11 11:39:07 | Loading message broker from: xbean:activemq.xmlINFO | jvm 1 | 2011/08/11 11:39:07 | INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@a13f991: startup date [Thu Aug 11 11:39:07 PDT 2011]; root of context hierarchyINFO | jvm 1 | 2011/08/11 11:39:08 | INFO | MLog clients using log4j logging.INFO | jvm 1 | 2011/08/11 11:39:08 | INFO | Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]INFO | jvm 1 | 2011/08/11 11:39:09 | WARN | destroyApplicationContextOnStop parameter is deprecated, please use shutdown hooks insteadINFO | jvm 1 | 2011/08/11 11:39:09 | INFO | PListStore:C:\apache-activemq-5.5.0\bin\win32\..\..\data\localhost\tmp_storage startedINFO | jvm 1 | 2011/08/11 11:39:09 | INFO | Using Persistence Adapter: JDBCPersistenceAdapter(org.apache.derby.jdbc.EmbeddedDataSource@4ad61aef)INFO | jvm 1 | 2011/08/11 11:39:09 | INFO | JMX consoles can connect to service:jmx:rmi://localhost:11119/jndi/rmi://localhost:11099/jmxrmiINFO | jvm 1 | 2011/08/11 11:39:11 | INFO | Database adapter driver override recognized for : [apache_derby_embedded_jdbc_driver] - adapter: class org.apache.activemq.store.jdbc.adapter.DB2JDBCAdapterINFO | jvm 1 | 2011/08/11 11:39:12 | INFO | Database lock driver override not found for : [apache_derby_embedded_jdbc_driver]. Will use default implementation.INFO | jvm 1 | 2011/08/11 11:39:12 | INFO | Attempting to acquire the exclusive lock to become the Master brokerINFO | jvm 1 | 2011/08/11 11:39:12 | INFO | Becoming the master on dataSource: org.apache.derby.jdbc.EmbeddedDataSource@4ad61aefINFO | jvm 1 | 2011/08/11 11:39:12 | INFO | ActiveMQ 5.5.0 JMS Message Broker (localhost) is startingINFO | jvm 1 | 2011/08/11 11:39:12 | INFO | For help or more information please see: http://activemq.apache.org/INFO | jvm 1 | 2011/08/11 11:39:12 | INFO | Listening for connections at: tcp://DWDEV2-PGRITSAI:61616INFO | jvm 1 | 2011/08/11 11:39:12 | INFO | Connector openwire StartedINFO | jvm 1 | 2011/08/11 11:39:12 | INFO | ActiveMQ JMS Message Broker (localhost, ID:DWDEV2-PGRITSAI-49977-1313087952309-0:1) startedINFO | jvm 1 | 2011/08/11 11:39:12 | INFO | jetty-7.1.6.v20100715INFO | jvm 1 | 2011/08/11 11:39:13 | INFO | ActiveMQ WebConsole initialized.INFO | jvm 1 | 2011/08/11 11:39:13 | INFO | Initializing Spring FrameworkServlet 'dispatcher'INFO | jvm 1 | 2011/08/11 11:39:13 | INFO | ActiveMQ Console at http://0.0.0.0:8161/adminINFO | jvm 1 | 2011/08/11 11:39:13 | INFO | Initializing Spring root WebApplicationContextINFO | jvm 1 | 2011/08/11 11:39:13 | INFO | OSGi environment not detected.INFO | jvm 1 | 2011/08/11 11:39:14 | INFO | Apache Camel 2.7.0 (CamelContext: camel) is startingINFO | jvm 1 | 2011/08/11 11:39:14 | INFO | JMX enabled. Using ManagedManagementStrategy.INFO | jvm 1 | 2011/08/11 11:39:14 | INFO | Loading file META-INF/services/org/apache/camel/TypeConverter to retrieve list of packages, from url: jar:file:/C:/apache-activemq-5.5.0/bin/win32/../../lib/activemq-camel-5.5.0.jar!/META-INF/services/org/apache/camel/TypeConverterINFO | jvm 1 | 2011/08/11 11:39:14 | INFO | Loading file META-INF/services/org/apache/camel/TypeConverter to retrieve list of packages, from url: jar:file:/C:/apache-activemq-5.5.0/bin/win32/../../lib/camel-core-2.7.0.jar!/META-INF/services/org/apache/camel/TypeConverterINFO | jvm 1 | 2011/08/11 11:39:14 | INFO | Loading file META-INF/services/org/apache/camel/TypeConverter to retrieve list of packages, from url: jar:file:/C:/apache-activemq-5.5.0/bin/win32/../../lib/camel-jetty-2.7.0.jar!/META-INF/services/org/apache/camel/TypeConverterINFO | jvm 1 | 2011/08/11 11:39:15 | INFO | Found 5 packages with 16 @Converter classes to loadINFO | jvm 1 | 2011/08/11 11:39:15 | INFO | Loaded 152 type converters in 0.687 secondsINFO | jvm 1 | 2011/08/11 11:39:16 | INFO | Connector vm://localhost StartedINFO | jvm 1 | 2011/08/11 11:39:16 | INFO | Route: route1 started and consuming from: Endpoint[activemq://example.A]INFO | jvm 1 | 2011/08/11 11:39:16 | INFO | Total 1 routes, of which 1 is started.INFO | jvm 1 | 2011/08/11 11:39:16 | INFO | Apache Camel 2.7.0 (CamelContext: camel) started in 1.480 secondsINFO | jvm 1 | 2011/08/11 11:39:17 | INFO | Camel Console at http://0.0.0.0:8161/camelINFO | jvm 1 | 2011/08/11 11:39:17 | INFO | ActiveMQ Web Demos at http://0.0.0.0:8161/demoINFO | jvm 1 | 2011/08/11 11:39:17 | INFO | RESTful file access application at http://0.0.0.0:8161/fileserverINFO | jvm 1 | 2011/08/11 11:39:17 | INFO | Started [email protected]:8161INFO | jvm 1 | 2011/08/11 11:39:17 | org.eclipse.jetty.server.Server@7f8837f1 STOPPEDINFO | jvm 1 | 2011/08/11 11:39:17 | +-HandlerCollection@4810f0a0 startedINFO | jvm 1 | 2011/08/11 11:39:17 | +-ContextHandlerCollection@314585 startedINFO | jvm 1 | 2011/08/11 11:39:17 | +-ConstraintSecurityHandler@58f41393 started

Page 7: ActiveMQactivemq.2283324.n4.nabble.com/.../activemq-jdbc-los… · Web view2011-08-11 11:39:04,099 | DEBUG | queue://example.A expiring messages done. | org.apache.activemq.broker.region.Queue

INFO | jvm 1 | 2011/08/11 11:39:17 | +-HandlerCollection@5170a650 startedINFO | jvm 1 | 2011/08/11 11:39:17 | +-WebAppContext@5025bd56@5025bd56/admin,file:/C:/apache-activemq-5.5.0/webapps/admin/ startedINFO | jvm 1 | 2011/08/11 11:39:17 | | +-SessionHandler@1ad8e902 startedINFO | jvm 1 | 2011/08/11 11:39:17 | | +-ConstraintSecurityHandler@5631db04 startedINFO | jvm 1 | 2011/08/11 11:39:17 | | +-ServletHandler@16a99013 startedINFO | jvm 1 | 2011/08/11 11:39:17 | | +-[/*]/[]==0=>sitemesh{}INFO | jvm 1 | 2011/08/11 11:39:17 | | +-[/*]/[]==0=>spring{}INFO | jvm 1 | 2011/08/11 11:39:17 | | +-[*.jsp]/[]==0=>session{}INFO | jvm 1 | 2011/08/11 11:39:17 | | +-[/*]/[]==0=>spring-rq{}INFO | jvm 1 | 2011/08/11 11:39:17 | | +-[*.action]/[]==0=>audit{}INFO | jvm 1 | 2011/08/11 11:39:17 | | +-[/]=>default{maxCacheSize=256000000, dirAllowed=true, gzip=true, maxCachedFileSize=10000000, redirectWelcome=false, cacheType=both, acceptRanges=true, welcomeServlets=false, aliases=false, useFileMappedBuffer=true, maxCachedFiles=1000}INFO | jvm 1 | 2011/08/11 11:39:17 | | +-[*.jsp, *.jspf, *.jspx, *.xsp, *.JSP, *.JSPF, *.JSPX, *.XSP]=>jsp{logVerbosityLevel=DEBUG, fork=false, xpoweredBy=false, scratchdir=C:\apache-activemq-5.5.0\temp\Jetty_0_0_0_0_8161_admin__admin__9l5s6p\jsp}INFO | jvm 1 | 2011/08/11 11:39:17 | | +-[/ajax/*]=>AjaxServlet{}INFO | jvm 1 | 2011/08/11 11:39:17 | | +-[/send/*]=>SendServlet{}INFO | jvm 1 | 2011/08/11 11:39:17 | | +-[/queueBrowse/*]=>QueueBrowseServlet{}INFO | jvm 1 | 2011/08/11 11:39:17 | | +-[*.action]=>dispatcher{}INFO | jvm 1 | 2011/08/11 11:39:17 | | +-[*.jsp]=>jsp{logVerbosityLevel=DEBUG, fork=false, xpoweredBy=false, scratchdir=C:\apache-activemq-5.5.0\temp\Jetty_0_0_0_0_8161_admin__admin__9l5s6p\jsp}INFO | jvm 1 | 2011/08/11 11:39:17 | | +=roles=[]INFO | jvm 1 | 2011/08/11 11:39:17 | | +=/={TRACE={RoleInfo,F,C[]}}INFO | jvm 1 | 2011/08/11 11:39:17 | +-WebAppContext@30db95a1@30db95a1/camel,file:/C:/apache-activemq-5.5.0/webapps/camel/ startedINFO | jvm 1 | 2011/08/11 11:39:17 | | +-SessionHandler@7cfae78f startedINFO | jvm 1 | 2011/08/11 11:39:17 | | +-ConstraintSecurityHandler@12a4ed99 startedINFO | jvm 1 | 2011/08/11 11:39:17 | | +-ServletHandler@3c789d63 startedINFO | jvm 1 | 2011/08/11 11:39:17 | | +-[/*]/[]==0=>sitemesh{}INFO | jvm 1 | 2011/08/11 11:39:17 | | +-[/*]/[]==0=>Jersey Filter{com.sun.jersey.config.feature.Redirect=true, com.sun.jersey.config.property.WebPageContentRegex=/(images|css|js)/.*, com.sun.jersey.config.feature.ImplicitViewables=true, com.sun.jersey.config.property.packages=org.apache.camel.web, com.sun.jersey.config.property.WadlResourceUri=/api, com.sun.jersey.config.property.resourceConfigClass=org.apache.camel.web.util.CamelResourceConfig}INFO | jvm 1 | 2011/08/11 11:39:17 | | +-[/]=>default{maxCacheSize=256000000, dirAllowed=true, gzip=true, maxCachedFileSize=10000000, redirectWelcome=false, cacheType=both, acceptRanges=true, welcomeServlets=false, aliases=false, useFileMappedBuffer=true, maxCachedFiles=1000}INFO | jvm 1 | 2011/08/11 11:39:17 | | +-[*.jsp, *.jspf, *.jspx, *.xsp, *.JSP, *.JSPF, *.JSPX, *.XSP]=>jsp{logVerbosityLevel=DEBUG, fork=false, xpoweredBy=false, scratchdir=C:\apache-activemq-5.5.0\temp\Jetty_0_0_0_0_8161_camel__camel__.3v7y27\jsp}INFO | jvm 1 | 2011/08/11 11:39:17 | | +-[*.jsp]=>jsp{logVerbosityLevel=DEBUG, fork=false, xpoweredBy=false, scratchdir=C:\apache-activemq-5.5.0\temp\Jetty_0_0_0_0_8161_camel__camel__.3v7y27\jsp}INFO | jvm 1 | 2011/08/11 11:39:17 | | +=roles=[]INFO | jvm 1 | 2011/08/11 11:39:17 | | +=/={TRACE={RoleInfo,F,C[]}}INFO | jvm 1 | 2011/08/11 11:39:17 | +-WebAppContext@69a18ee2@69a18ee2/demo,file:/C:/apache-activemq-5.5.0/webapps/demo/ startedINFO | jvm 1 | 2011/08/11 11:39:17 | | +-SessionHandler@491ca69d startedINFO | jvm 1 | 2011/08/11 11:39:17 | | +-ConstraintSecurityHandler@72945e31 startedINFO | jvm 1 | 2011/08/11 11:39:17 | | +-ServletHandler@77feb2ea startedINFO | jvm 1 | 2011/08/11 11:39:17 | | +-[/*]/[]==0=>session{}INFO | jvm 1 | 2011/08/11 11:39:17 | | +-[/]=>default{maxCacheSize=256000000, dirAllowed=true, gzip=true, maxCachedFileSize=10000000, redirectWelcome=false, cacheType=both, acceptRanges=true, welcomeServlets=false, aliases=false, useFileMappedBuffer=true, maxCachedFiles=1000}INFO | jvm 1 | 2011/08/11 11:39:17 | | +-[*.jsp, *.jspf, *.jspx, *.xsp, *.JSP, *.JSPF, *.JSPX, *.XSP]=>jsp{logVerbosityLevel=DEBUG, fork=false, xpoweredBy=false, scratchdir=C:\apache-activemq-5.5.0\temp\Jetty_0_0_0_0_8161_demo__demo__uj3swb\jsp}

Page 8: ActiveMQactivemq.2283324.n4.nabble.com/.../activemq-jdbc-los… · Web view2011-08-11 11:39:04,099 | DEBUG | queue://example.A expiring messages done. | org.apache.activemq.broker.region.Queue

INFO | jvm 1 | 2011/08/11 11:39:17 | | +-[/amq/*]=>AjaxServlet{}INFO | jvm 1 | 2011/08/11 11:39:17 | | +-[/message/*]=>MessageServlet{}INFO | jvm 1 | 2011/08/11 11:39:17 | | +-[/queueBrowse/*]=>QueueBrowseServlet{}INFO | jvm 1 | 2011/08/11 11:39:17 | | +-[/portfolioPublish]=>PortfolioPublishServlet{}INFO | jvm 1 | 2011/08/11 11:39:17 | | +=roles=[]INFO | jvm 1 | 2011/08/11 11:39:17 | | +=/={TRACE={RoleInfo,F,C[]}}INFO | jvm 1 | 2011/08/11 11:39:17 | +-WebAppContext@2a47b35d@2a47b35d/fileserver,file:/C:/apache-activemq-5.5.0/webapps/fileserver/ startedINFO | jvm 1 | 2011/08/11 11:39:17 | | +-SessionHandler@7935c7b0 startedINFO | jvm 1 | 2011/08/11 11:39:17 | | +-ConstraintSecurityHandler@47f07360 startedINFO | jvm 1 | 2011/08/11 11:39:17 | | +-ServletHandler@39c931fb startedINFO | jvm 1 | 2011/08/11 11:39:17 | | +-[/*]/[]==0=>FilenameGuardFilter{}INFO | jvm 1 | 2011/08/11 11:39:17 | | +-[/*]/[]==0=>RestFilter{}INFO | jvm 1 | 2011/08/11 11:39:17 | | +-[/]=>default{maxCacheSize=256000000, dirAllowed=true, gzip=true, maxCachedFileSize=10000000, redirectWelcome=false, cacheType=both, acceptRanges=true, welcomeServlets=false, aliases=false, useFileMappedBuffer=true, maxCachedFiles=1000}INFO | jvm 1 | 2011/08/11 11:39:17 | | +-[*.jsp, *.jspf, *.jspx, *.xsp, *.JSP, *.JSPF, *.JSPX, *.XSP]=>jsp{logVerbosityLevel=DEBUG, fork=false, xpoweredBy=false, scratchdir=C:\apache-activemq-5.5.0\temp\Jetty_0_0_0_0_8161_fileserver__fileserver__rlvn9v\jsp}INFO | jvm 1 | 2011/08/11 11:39:17 | | +-[/*]=>DefaultServlet{}INFO | jvm 1 | 2011/08/11 11:39:17 | | +=roles=[]INFO | jvm 1 | 2011/08/11 11:39:17 | | +=/={TRACE={RoleInfo,F,C[]}}INFO | jvm 1 | 2011/08/11 11:39:17 | +-ResourceHandler@3ab6f7f5 startedINFO | jvm 1 | 2011/08/11 11:39:17 | +-DefaultHandler@425113f0 startedINFO | jvm 1 | 2011/08/11 11:39:17 | +=roles=[admin]INFO | jvm 1 | 2011/08/11 11:39:17 | +=/*={null={RoleInfo[]}}INFO | jvm 1 | 2011/08/11 11:39:18 |

6) Queues and topics after restart:

Page 9: ActiveMQactivemq.2283324.n4.nabble.com/.../activemq-jdbc-los… · Web view2011-08-11 11:39:04,099 | DEBUG | queue://example.A expiring messages done. | org.apache.activemq.broker.region.Queue

7) C# code to create messages:

using Apache.NMS;using Apache.NMS.ActiveMQ;using Apache.NMS.Util;

private IConnection _activeMqConnection;private ISession _activeMqSession;

//initialization of connection and sessionpublic void InitNotifications() { IConnectionFactory factory = new ConnectionFactory(new Uri(_activeMqServiceUrl));

_activeMqConnection = factory.CreateConnection(); _activeMqSession = _activeMqConnection.CreateSession(AcknowledgementMode.Transactional); _activeMqConnection.Start();

_initialized = true; }

//creation of producerprivate IMessageProducer CreateTopicMessageProducer(NotificationTopic topic) { string mqTopicName = string.Format("topic://{0}", ActiveMqTopicNames.TopicNames[topic]); ITopic destination = SessionUtil.GetTopic(_activeMqSession, mqTopicName); var producer = _activeMqSession.CreateProducer(destination);

Page 10: ActiveMQactivemq.2283324.n4.nabble.com/.../activemq-jdbc-los… · Web view2011-08-11 11:39:04,099 | DEBUG | queue://example.A expiring messages done. | org.apache.activemq.broker.region.Queue

producer.DeliveryMode = MsgDeliveryMode.Persistent; return producer; }private static IMessage ComposeNotificationMessage(IMessageProducer messageProducer, NotificationEntry notificationEntry) { IMessage message = messageProducer.CreateTextMessage();

message.NMSDeliveryMode = MsgDeliveryMode.Persistent;

//specify the properties we want to include in message message.Properties[MessageProperty.SmOperation.GetDescription()] = notificationEntry.NotificationOperation.GetDescription();

//[more properties set here]

return message; }

// Sending/enqueuing the messages private void SendNotification(NotificationEntry notificationEntry){

var messageProducer = GetTopicProducer(topic);var message = ComposeNotificationMessage(messageProducer, notificationEntry);messageProducer.Send(message);

}

//Committing the transaction

public void CommitNotifications() {

_activeMqSession.Commit(); }

8) C# code for consumer

public ActiveMqConsumer(NotificationTopic topic, string consumerName, Action<IMessage> processMessage) {

var activeMqUri = new Uri(ActiveMqServiceUrl); _processMessage = processMessage;

_activeMqConsumerTopicName = string.Format(CultureInfo.InvariantCulture, "Consumer.{0}.{1}", consumerName, ActiveMqTopicNames.TopicNames[topic]);

_factory = new ConnectionFactory(activeMqUri); _connection = _factory.CreateConnection(); _connection.Start();

Page 11: ActiveMQactivemq.2283324.n4.nabble.com/.../activemq-jdbc-los… · Web view2011-08-11 11:39:04,099 | DEBUG | queue://example.A expiring messages done. | org.apache.activemq.broker.region.Queue

_session = _connection.CreateSession(); _queue = SessionUtil.GetQueue(_session, _activeMqConsumerTopicName);

_consumer = _session.CreateConsumer(_queue);

_consumer.Listener += ConsumerListener; }