You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by rohiddev <ro...@gmail.com> on 2012/12/01 02:18:44 UTC
Re: websphere MQ
*Messaging in enterprise application needs to work on Webpshere MQ/Tomee
environment. *
For this POC I've written a simple Servlet App to send message.
code:
String MYCF_LOOKUP_NAME = "java:/comp/env/jms/qcf";
String MYQUEUE_LOOKUP_NAME = "java:/comp/env/jms/queue";
ConnectionFactory connectionFactory = null;
Destination dest = null;
Context jndiContext = null;
Connection connection = null;
MessageProducer producer = null;
Session session = null;
MessageConsumer consumer = null;
TextMessage message = null;
try {
jndiContext = new InitialContext();
connectionFactory = (ConnectionFactory)
jndiContext.lookup(MYCF_LOOKUP_NAME);
dest = (Destination) jndiContext.lookup(MYQUEUE_LOOKUP_NAME);
connection = connectionFactory.createConnection();
session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
producer = session.createProducer(dest);
message = session.createTextMessage("Test Message");
producer.send(message);
}
catch( Exception e)
{
e.printStackTrace();
}
finally
{
try {
connection.close();
} catch (JMSException e) {
e.printStackTrace();
}
}
*web.xml*
<resource-ref>
<description>
</description>
<res-ref-name>jms/qcf</res-ref-name>
<res-type>javax.jms.ConnectionFactory</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
<message-destination-ref>
<description>
</description>
<message-destination-ref-name>jms/queue</message-destination-ref-name>
<message-destination-type>javax.jms.Queue</message-destination-type>
<message-destination-usage>ConsumesProduces</message-destination-usage>
<message-destination-link>jms/queue</message-destination-link>
</message-destination-ref>
<message-destination>
<description>
</description>
<message-destination-name>jms/queue</message-destination-name>
</message-destination>
*tomee.xml under META-INF*
<tomee>
<Resource id="jms/queue"
type="javax.jms.Queue"
provider="com.ibm.was.mq.WebsphereMQQueue">
BaseQueueName QUEUE1
BaseQueueManagerName QM_TIERL
</Resource>
<Resource id="jms/qcf"
type="javax.jms.ConnectionFactory"
provider="com.ibm.was.mq.WebsphereMQConnectionFactory">
HostName 10.x.x.x
Port 1414
QueueManager QM_TIERL
Channel SYSTEM.ADMIN.SVRCONN
TransportType CLIENT
UserName xyz
PassWord xyz
</Resource>
</tomee>
I have added wmq.jmsra.rar RAR file to my EAR.
Once this works I was planning to an MDB to consume the message.
--
View this message in context: http://openejb.979440.n4.nabble.com/websphere-MQ-tp4658647p4659036.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: websphere MQ - working sample info
Posted by Jonathan Gallimore <jo...@gmail.com>.
Hi
What version of WebsphereMQ and TomEE are you using? From your output, it
looks like a <Resource> for the Resource Adapter itself is needed:
<Resource id="wmqRA"
class-name="com.ibm.mq.connector.ResourceAdapterImpl">
connectionConcurrency=1
maxConnections=32
logWriterEnabled=true
reconnectionRetryCount=5
reconnectionRetryInterval=300000
startupRetryCount=0
startupRetryInterval=30000
traceEnabled=true
traceLevel=6
threadPoolSize=33
</Resource>
(you'll likely want to change those parameters). Without that, it'll try
starting an embedded ActiveMQ resource adapter, so we should be able to get
you going.
Jon
Can you try adding that and let me know how you get on? I've had success
with Websphere MQ and TomEE in the past
On Tue, Dec 4, 2018 at 5:21 PM dmetta <dh...@gmail.com> wrote:
> Tomee with Websphere MQ.
>
> Can someone help me resolving below issue.
>
> 1. placed all jars files from rar under tomee/lib.
>
> 2. Added the below to conf/tomee.xml
> <Container id="wmq" type="MESSAGE">
> ResourceAdapter=wmqRA
> MessageListenerInterface=javax.jms.MessageListener
> ActivationSpecClass=com.ibm.mq.connector.inbound.ActivationSpecImpl
> </Container>
> <Resource id="wmqRA" type="com.ibm.mq.connector.ResourceAdapterImpl"
> class-name="com.ibm.mq.connector.ResourceAdapterImpl">
> connectionConcurrency=5
> maxConnections=10
> logWriterEnabled=true
> reconnectionRetryCount=5
> reconnectionRetryInterval=300000
> traceEnabled=false
> traceLevel=3
> </Resource>
> <Resource id="qcf" type="javax.jms.ConnectionFactory"
> class-name="com.ibm.mq.connector.outbound.ManagedConnectionFactoryImpl">
> TransactionSupport=none
> ResourceAdapter=wmqRA
> HostName=10.x.y.z
> Port=1414
> QueueManager=QM_TIERL
> Channel=SYSTEM.ADMIN.SVRCONN
> TransportType=Client
> UserName=xyz
> Password=xyz
> </Resource>
> <Resource id="wmq-javax.jms.QueueConnectionFactory"
> type="javax.jms.QueueConnectionFactory"
> class-name="com.ibm.mq
> .connector.outbound.ManagedQueueConnectionFactoryImpl">
> TransactionSupport=none
> ResourceAdapter=wmqRA
> </Resource>
> <Resource id="wmq-javax.jms.TopicConnectionFactory"
> type="javax.jms.TopicConnectionFactory"
> class-name="com.ibm.mq
> .connector.outbound.ManagedTopicConnectionFactoryImpl">
> TransactionSupport=none
> ResourceAdapter=wmqRA
> </Resource>
> <Resource id="queue" type="javax.jms.Queue"
> class-name="com.ibm.mq.connector.outbound.MQQueueProxy">
> arbitraryProperties
> baseQueueManagerName xyz
> baseQueueName xzy
> CCSID=1208
> encoding=NATIVE
> expiry=APP
> failIfQuiesce=true
> persistence=APP
> priority=APP
> readAheadClosePolicy=ALL
> targetClient=JMS
> </Resource>
> <Resource id="wmq-javax.jms.Topic" type="javax.jms.Topic"
> class-name="com.ibm.mq.connector.outbound.MQTopicProxy">
> arbitraryProperties
> baseTopicName
> brokerCCDurSubQueue=SYSTEM.JMS.D.CC.SUBSCRIBER.QUEUE
> brokerDurSubQueue=SYSTEM.JMS.D.SUBSCRIBER.QUEUE
> brokerPubQueue
> brokerPubQueueManager
> brokerVersion=1
> CCSID=1208
> encoding=NATIVE
> expiry=APP
> failIfQuiesce=true
> persistence=APP
> priority=APP
> readAheadClosePolicy=ALL
> targetClient=JMS
> </Resource>
>
> Deployed War file:
> using
> <resource-ref>
> <res-ref-name>myqcf</res-ref-name>
> <res-type>javax.jms.ConnectionFactory</res-type>
> <res-auth>Container</res-auth>
> <res-sharing-scope>Shareable</res-sharing-scope>
> <mapped-name>qcf</mapped-name>
>
> </resource-ref>
> <resource-env-ref>
> <resource-env-ref-name>myqueue</resource-env-ref-name>
>
> <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
> <mapped-name>queue</mapped-name>
>
> </resource-env-ref>
>
> In Controller:
> @Resource(name = "qcf")
> private ConnectionFactory connectionFactory;
>
> @Resource(name = "queue")
> private Queue queue;
>
> The rest was jms code.
> Connection connection = connectionFactory.createConnection();
> Session session = connection.createSession(false,
> QueueSession.AUTO_ACKNOWLEDGE);
> MessageProducer producer = session.createProducer(queue);
> TextMessage message = session.createTextMessage();
> message.setText("test data");
> connection.start();
> producer.send(message);
> session.close();
> connection.close();
>
> To suppress ActiveMQ from getting triggered add
> openejb.offline=true to conf/system.properties
>
> I am receiving below exception
>
> INFO | JMSClient call start .....
> INFO | Connector vm://localhost started
> Dec 04, 2018 1:58:15 PM org.apache.catalina.core.StandardWrapperValve
> invoke
> SEVERE: Servlet.service() for servlet
> [com.mbfs.slr.vds.services.VinServicePortBindingImpl] in context with path
> [/SLRServices] threw exception [Servlet execution threw an exception] with
> root cause
> java.lang.NoSuchMethodError:
>
> org.apache.activemq.ra.ManagedConnectionProxy.<init>(Lorg/apache/activemq/ra/ActiveMQManagedConnection;Ljavax/resource/spi/ConnectionRequestInfo;)V
> at
>
> org.apache.openejb.resource.activemq.jms2.TomEEManagedConnectionProxy.<init>(TomEEManagedConnectionProxy.java:40)
>
>
>
>
> --
> Sent from:
> http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
>
Re: websphere MQ - working sample info
Posted by dmetta <dh...@gmail.com>.
Tomee with Websphere MQ.
Can someone help me resolving below issue.
1. placed all jars files from rar under tomee/lib.
2. Added the below to conf/tomee.xml
<Container id="wmq" type="MESSAGE">
ResourceAdapter=wmqRA
MessageListenerInterface=javax.jms.MessageListener
ActivationSpecClass=com.ibm.mq.connector.inbound.ActivationSpecImpl
</Container>
<Resource id="wmqRA" type="com.ibm.mq.connector.ResourceAdapterImpl"
class-name="com.ibm.mq.connector.ResourceAdapterImpl">
connectionConcurrency=5
maxConnections=10
logWriterEnabled=true
reconnectionRetryCount=5
reconnectionRetryInterval=300000
traceEnabled=false
traceLevel=3
</Resource>
<Resource id="qcf" type="javax.jms.ConnectionFactory"
class-name="com.ibm.mq.connector.outbound.ManagedConnectionFactoryImpl">
TransactionSupport=none
ResourceAdapter=wmqRA
HostName=10.x.y.z
Port=1414
QueueManager=QM_TIERL
Channel=SYSTEM.ADMIN.SVRCONN
TransportType=Client
UserName=xyz
Password=xyz
</Resource>
<Resource id="wmq-javax.jms.QueueConnectionFactory"
type="javax.jms.QueueConnectionFactory"
class-name="com.ibm.mq.connector.outbound.ManagedQueueConnectionFactoryImpl">
TransactionSupport=none
ResourceAdapter=wmqRA
</Resource>
<Resource id="wmq-javax.jms.TopicConnectionFactory"
type="javax.jms.TopicConnectionFactory"
class-name="com.ibm.mq.connector.outbound.ManagedTopicConnectionFactoryImpl">
TransactionSupport=none
ResourceAdapter=wmqRA
</Resource>
<Resource id="queue" type="javax.jms.Queue"
class-name="com.ibm.mq.connector.outbound.MQQueueProxy">
arbitraryProperties
baseQueueManagerName xyz
baseQueueName xzy
CCSID=1208
encoding=NATIVE
expiry=APP
failIfQuiesce=true
persistence=APP
priority=APP
readAheadClosePolicy=ALL
targetClient=JMS
</Resource>
<Resource id="wmq-javax.jms.Topic" type="javax.jms.Topic"
class-name="com.ibm.mq.connector.outbound.MQTopicProxy">
arbitraryProperties
baseTopicName
brokerCCDurSubQueue=SYSTEM.JMS.D.CC.SUBSCRIBER.QUEUE
brokerDurSubQueue=SYSTEM.JMS.D.SUBSCRIBER.QUEUE
brokerPubQueue
brokerPubQueueManager
brokerVersion=1
CCSID=1208
encoding=NATIVE
expiry=APP
failIfQuiesce=true
persistence=APP
priority=APP
readAheadClosePolicy=ALL
targetClient=JMS
</Resource>
Deployed War file:
using
<resource-ref>
<res-ref-name>myqcf</res-ref-name>
<res-type>javax.jms.ConnectionFactory</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
<mapped-name>qcf</mapped-name>
</resource-ref>
<resource-env-ref>
<resource-env-ref-name>myqueue</resource-env-ref-name>
<resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
<mapped-name>queue</mapped-name>
</resource-env-ref>
In Controller:
@Resource(name = "qcf")
private ConnectionFactory connectionFactory;
@Resource(name = "queue")
private Queue queue;
The rest was jms code.
Connection connection = connectionFactory.createConnection();
Session session = connection.createSession(false,
QueueSession.AUTO_ACKNOWLEDGE);
MessageProducer producer = session.createProducer(queue);
TextMessage message = session.createTextMessage();
message.setText("test data");
connection.start();
producer.send(message);
session.close();
connection.close();
To suppress ActiveMQ from getting triggered add
openejb.offline=true to conf/system.properties
I am receiving below exception
INFO | JMSClient call start .....
INFO | Connector vm://localhost started
Dec 04, 2018 1:58:15 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet
[com.mbfs.slr.vds.services.VinServicePortBindingImpl] in context with path
[/SLRServices] threw exception [Servlet execution threw an exception] with
root cause
java.lang.NoSuchMethodError:
org.apache.activemq.ra.ManagedConnectionProxy.<init>(Lorg/apache/activemq/ra/ActiveMQManagedConnection;Ljavax/resource/spi/ConnectionRequestInfo;)V
at
org.apache.openejb.resource.activemq.jms2.TomEEManagedConnectionProxy.<init>(TomEEManagedConnectionProxy.java:40)
--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
Re: websphere MQ - working sample info
Posted by rohiddev <ro...@gmail.com>.
I was able to get this working with help from David.
1. placed all jars files from rar under tomee/lib.
*2. Added the below to conf/tomee.xml *
<Container id="wmq" type="MESSAGE">
ResourceAdapter=wmqRA
MessageListenerInterface=javax.jms.MessageListener
ActivationSpecClass=com.ibm.mq.connector.inbound.ActivationSpecImpl
</Container>
<Resource id="wmqRA" type="com.ibm.mq.connector.ResourceAdapterImpl"
class-name="com.ibm.mq.connector.ResourceAdapterImpl">
connectionConcurrency=5
maxConnections=10
logWriterEnabled=true
reconnectionRetryCount=5
reconnectionRetryInterval=300000
traceEnabled=false
traceLevel=3
</Resource>
<Resource id="qcf" type="javax.jms.ConnectionFactory"
class-name="com.ibm.mq.connector.outbound.ManagedConnectionFactoryImpl">
TransactionSupport=none
ResourceAdapter=wmqRA
HostName=10.x.y.z
Port=1414
QueueManager=QM_TIERL
Channel=SYSTEM.ADMIN.SVRCONN
TransportType=Client
UserName=xyz
Password=xyz
</Resource>
<Resource id="wmq-javax.jms.QueueConnectionFactory"
type="javax.jms.QueueConnectionFactory"
class-name="com.ibm.mq.connector.outbound.ManagedQueueConnectionFactoryImpl">
TransactionSupport=none
ResourceAdapter=wmqRA
</Resource>
<Resource id="wmq-javax.jms.TopicConnectionFactory"
type="javax.jms.TopicConnectionFactory"
class-name="com.ibm.mq.connector.outbound.ManagedTopicConnectionFactoryImpl">
TransactionSupport=none
ResourceAdapter=wmqRA
</Resource>
<Resource id="queue" type="javax.jms.Queue"
class-name="com.ibm.mq.connector.outbound.MQQueueProxy">
arbitraryProperties
baseQueueManagerName xyz
baseQueueName xzy
CCSID=1208
encoding=NATIVE
expiry=APP
failIfQuiesce=true
persistence=APP
priority=APP
readAheadClosePolicy=ALL
targetClient=JMS
</Resource>
<Resource id="wmq-javax.jms.Topic" type="javax.jms.Topic"
class-name="com.ibm.mq.connector.outbound.MQTopicProxy">
arbitraryProperties
baseTopicName
brokerCCDurSubQueue=SYSTEM.JMS.D.CC.SUBSCRIBER.QUEUE
brokerDurSubQueue=SYSTEM.JMS.D.SUBSCRIBER.QUEUE
brokerPubQueue
brokerPubQueueManager
brokerVersion=1
CCSID=1208
encoding=NATIVE
expiry=APP
failIfQuiesce=true
persistence=APP
priority=APP
readAheadClosePolicy=ALL
targetClient=JMS
</Resource>
Deployed War file:
using
<resource-ref>
<res-ref-name>myqcf</res-ref-name>
<res-type>javax.jms.ConnectionFactory</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
<mapped-name>qcf</mapped-name>
</resource-ref>
<resource-env-ref>
<resource-env-ref-name>myqueue</resource-env-ref-name>
<resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
<mapped-name>queue</mapped-name>
</resource-env-ref>
In Controller:
@Resource(name = "qcf")
private ConnectionFactory connectionFactory;
@Resource(name = "queue")
private Queue queue;
The rest was jms code.
Connection connection = connectionFactory.createConnection();
Session session = connection.createSession(false,
QueueSession.AUTO_ACKNOWLEDGE);
MessageProducer producer = session.createProducer(queue);
TextMessage message = session.createTextMessage();
message.setText("test data");
connection.start();
producer.send(message);
session.close();
connection.close();
Rohid
--
View this message in context: http://openejb.979440.n4.nabble.com/websphere-MQ-tp4658647p4659149.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: websphere MQ
Posted by Romain Manni-Bucau <rm...@gmail.com>.
<Resource id="Foo" type="javax.jms.ConnectionFactory">
ResourceAdapter = id-of-your-rar
</Resource>
i think the rar is started automatically since it is in your ear so a
name should be printed in the logs
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2012/12/5 rohiddev <ro...@gmail.com>:
> Could you provide me with the information needed in tomee.xml for websphere
> mq.
>
> http://tomee.apache.org/containers-and-resources.html
>
> Declarable in tomee.xml via
> <Resource id="Foo" type="need value of websphere mq">
> </Resource>
>
> <Resource id="Foo" type="javax.jms.ConnectionFactory">
> ResourceAdapter Need value for websphere mq
> </Resource>
>
> websphere mq adapter (name of file = wmq.jmsra.rar, based ra.xml
> <resourceadapter-class>
> com.ibm.mq.connector.ResourceAdapterImpl </resourceadapter-class>
>
> Thanks,
>
>
>
>
>
>
>
> --
> View this message in context: http://openejb.979440.n4.nabble.com/websphere-MQ-tp4658647p4659119.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: websphere MQ
Posted by rohiddev <ro...@gmail.com>.
Could you provide me with the information needed in tomee.xml for websphere
mq.
http://tomee.apache.org/containers-and-resources.html
Declarable in tomee.xml via
<Resource id="Foo" type="need value of websphere mq">
</Resource>
<Resource id="Foo" type="javax.jms.ConnectionFactory">
ResourceAdapter Need value for websphere mq
</Resource>
websphere mq adapter (name of file = wmq.jmsra.rar, based ra.xml
<resourceadapter-class>
com.ibm.mq.connector.ResourceAdapterImpl </resourceadapter-class>
Thanks,
--
View this message in context: http://openejb.979440.n4.nabble.com/websphere-MQ-tp4658647p4659119.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: websphere MQ
Posted by rohiddev <ro...@gmail.com>.
Could you please help me determine values needed for websphere mq needed in
tomee.xml
The file i am using is wmq.jmsra.rar. ra.xml data
<resourceadapter-class>com.ibm.mq.connector.ResourceAdapterImpl
</resourceadapter-class>
Declarable in tomee.xml via
<Resource id="Foo" type="<b>need value for websphere mq*">
</Resource>
<Resource id="Foo" type="javax.jms.ConnectionFactory">
ResourceAdapter *Need value for websphere mq*
</Resource>
--
View this message in context: http://openejb.979440.n4.nabble.com/websphere-MQ-tp4658647p4659120.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: websphere MQ
Posted by rohiddev <ro...@gmail.com>.
*I am able to successfully consume a message in a MDB from websphere Queue.*
Created an EJB project with the below MDB. Added RAR file to EAR project for
this test,
Sample Code:
import java.util.Date;
import javax.ejb.ActivationConfigProperty;
import javax.ejb.MessageDriven;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageListener;
import javax.jms.TextMessage;
@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
@MessageDriven(activationConfig = {
@ActivationConfigProperty(propertyName = "destinationType", propertyValue
= "javax.jms.Queue"),
//
@ActivationConfigProperty(propertyName="messagingType",propertyValue="javax.jms.MessageListener"),
@ActivationConfigProperty(propertyName = "destination",
propertyValue = "QUEUE1"),
// @ActivationConfigProperty(propertyName = "useJNDI", propertyValue
= "true"),
@ActivationConfigProperty(propertyName = "channel", propertyValue =
"SYSTEM.ADMIN.SVRCONN"),
@ActivationConfigProperty(propertyName = "hostName", propertyValue =
"10.x.y.z"),
@ActivationConfigProperty(propertyName = "queueManager",
propertyValue = "QM_TIERL"),
@ActivationConfigProperty(propertyName = "port", propertyValue =
"1414"),
@ActivationConfigProperty(propertyName = "transportType",
propertyValue = "CLIENT"),
@ActivationConfigProperty(propertyName = "username", propertyValue =
"x.y.z"),
@ActivationConfigProperty(propertyName = "password", propertyValue =
"x.y.z")
},
name = "mdbtest"
)
public class mdbtest implements MessageListener {
@Override
public void onMessage(Message message) {
if (message instanceof TextMessage) {
System.out.println("IBM Message Received at: " + new Date().toString());
TextMessage textMessage = (TextMessage) message;
try {
System.out.println("IBM Message Text: " + textMessage.getText());
} catch (JMSException e) {
e.printStackTrace();
}
}
}
}
--
View this message in context: http://openejb.979440.n4.nabble.com/websphere-MQ-tp4658647p4659098.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: websphere MQ
Posted by rohiddev <ro...@gmail.com>.
I tried this using a simple web application. only resources.xml was added
under meta-inf as indicated.
*Message did not go to websphere Queue confirmed using MQExplorer. It seems
to go to ActiveMQ queue.*
The console indicated the below after I tried sending message.
Dec 04, 2012 8:51:29 PM org.apache.activemq.store.kahadb.plist.PListStore
doStart
INFO: PListStore:[C:\eclipsejuno\eclipse\activemq-data\localhost\tmp_storage
] started
Dec 04, 2012 8:51:29 PM org.apache.activemq.broker.BrokerService start
INFO: Using Persistence Adapter:
KahaDBPersistenceAdapter[C:\eclipsejuno\eclipse\activemq-data\localhost\KahaDB]
Dec 04, 2012 8:51:29 PM org.apache.activemq.broker.jmx.ManagementContext$1
run
INFO: JMX consoles can connect to
service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
Dec 04, 2012 8:51:30 PM
org.apache.activemq.store.kahadb.MessageDatabase$Metadata read
INFO: KahaDB is version 4
Dec 04, 2012 8:51:30 PM org.apache.activemq.store.kahadb.MessageDatabase
recover
INFO: Recovering from the journal ...
Dec 04, 2012 8:51:30 PM org.apache.activemq.store.kahadb.MessageDatabase
recover
INFO: Recovery replayed 2 operations from the journal in 0.016 seconds.
Dec 04, 2012 8:51:30 PM org.apache.activemq.broker.BrokerService getBroker
INFO: ActiveMQ 5.6.0 JMS Message Broker (localhost) is starting
Dec 04, 2012 8:51:30 PM org.apache.activemq.broker.BrokerService getBroker
INFO: For help or more information please see: http://activemq.apache.org/
Dec 04, 2012 8:51:30 PM org.apache.activemq.broker.BrokerService start
INFO: ActiveMQ JMS Message Broker (localhost,
ID:PHXJ04968128-2887-1354679448287-0:1) started
Dec 04, 2012 8:51:30 PM org.apache.activemq.broker.TransportConnector start
INFO: Connector vm://localhost Started
Looks like the message went to activeMQ queue.
*Below is the console information from startup. *
Dec 04, 2012 9:08:57 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path: C:\Program
Files\Java\jdk1.7.0_04\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program
Files/Java/jre7/bin/client;C:/Program Files/Java/jre7/bin;C:/Program
Files/Java/jre7/lib/i386;C:\Program Files\Voltage Security\Voltage
SecureFile\;C:\Program Files\CollabNet\Subversion
Client;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\wbem;c:\windows\system32\windowspowershell\v1.0;c:\program
files\windows imaging\;c:\program files\maven-2.2.1\bin;C:\Program
Files\Java\jdk1.7.0_04\bin;c:\temp\jconfig;
c:\jmeter\jakarta-jmeter-2.4\bin;c:\program
files\ibm\gsk8\lib;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLLIB\FUNCTION;C:\PROGRA~1\IBM\SQLLIB\SAMPLES\REPL;C:\Program
Files\Voltage Security\Voltage SecureMail\;C:\Program Files\Common
Files\Voltage Security\;C:\eclipsejuno\eclipse;;.
Dec 04, 2012 9:08:57 PM org.apache.tomcat.util.digester.SetPropertiesRule
begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting
property 'source' to 'org.eclipse.jst.jee.server:App4' did not find a
matching property.
Dec 04, 2012 9:08:58 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Dec 04, 2012 9:08:58 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
SLF4J: The requested version 1.6 by your slf4j binding is not compatible
with [1.5.5, 1.5.6, 1.5.7, 1.5.8]
SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further
details.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in
[jar:file:/C:/tomee1.5/apache-tomee-plus-1.5.0/lib/slf4j-jdk14-1.6.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
[jar:file:/C:/tomee1.5/apache-tomee-plus-1.5.0/lib/slf4j-log4j12-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
explanation.
Dec 04, 2012 9:09:00 PM org.apache.openejb.util.OptionsLog info
INFO: Using
'openejb.jdbc.datasource-creator=org.apache.tomee.jdbc.TomEEDataSourceCreator'
Dec 04, 2012 9:09:00 PM org.apache.openejb.OpenEJB$Instance <init>
INFO:
********************************************************************************
Dec 04, 2012 9:09:00 PM org.apache.openejb.OpenEJB$Instance <init>
INFO: OpenEJB http://openejb.apache.org/
Dec 04, 2012 9:09:00 PM org.apache.openejb.OpenEJB$Instance <init>
INFO: Startup: Tue Dec 04 21:09:00 MST 2012
Dec 04, 2012 9:09:00 PM org.apache.openejb.OpenEJB$Instance <init>
INFO: Copyright 1999-2012 (C) Apache OpenEJB Project, All Rights Reserved.
Dec 04, 2012 9:09:00 PM org.apache.openejb.OpenEJB$Instance <init>
INFO: Version: 4.5.0
Dec 04, 2012 9:09:00 PM org.apache.openejb.OpenEJB$Instance <init>
INFO: Build date: 20120928
Dec 04, 2012 9:09:00 PM org.apache.openejb.OpenEJB$Instance <init>
INFO: Build time: 08:12
Dec 04, 2012 9:09:00 PM org.apache.openejb.OpenEJB$Instance <init>
INFO:
********************************************************************************
Dec 04, 2012 9:09:00 PM org.apache.openejb.OpenEJB$Instance <init>
INFO: openejb.home = C:\tomee1.5\apache-tomee-plus-1.5.0
Dec 04, 2012 9:09:00 PM org.apache.openejb.OpenEJB$Instance <init>
INFO: openejb.base = C:\tomee1.5\apache-tomee-plus-1.5.0
Dec 04, 2012 9:09:00 PM org.apache.openejb.cdi.CdiBuilder initializeOWB
INFO: Created new singletonService
org.apache.openejb.cdi.ThreadSingletonServiceImpl@c82e09
Dec 04, 2012 9:09:00 PM org.apache.openejb.cdi.CdiBuilder initializeOWB
INFO: Succeeded in installing singleton service
Dec 04, 2012 9:09:00 PM org.apache.openejb.config.ConfigurationFactory init
INFO: openejb configuration file is
'C:\tomee1.5\apache-tomee-plus-1.5.0\conf\tomee.xml'
Dec 04, 2012 9:09:00 PM org.apache.openejb.util.OptionsLog info
INFO: Using 'openejb.provider.default=org.apache.tomee'
Dec 04, 2012 9:09:00 PM org.apache.openejb.config.ConfigurationFactory
configureService
INFO: Configuring Service(id=Tomcat Security Service, type=SecurityService,
provider-id=Tomcat Security Service)
Dec 04, 2012 9:09:00 PM org.apache.openejb.config.ConfigurationFactory
configureService
INFO: Configuring Service(id=Default Transaction Manager,
type=TransactionManager, provider-id=Default Transaction Manager)
Dec 04, 2012 9:09:00 PM org.apache.openejb.config.ConfigurationFactory
configureService
INFO: Configuring Service(id=My DataSource, type=Resource,
provider-id=Default JDBC Database)
Dec 04, 2012 9:09:00 PM org.apache.openejb.config.ConfigurationFactory
configureService
INFO: Configuring Service(id=My Unmanaged DataSource, type=Resource,
provider-id=Default JDBC Database)
Dec 04, 2012 9:09:00 PM org.apache.openejb.config.ConfigurationFactory
configureService
INFO: Configuring Service(id=My Singleton Container, type=Container,
provider-id=Default Singleton Container)
Dec 04, 2012 9:09:00 PM org.apache.openejb.config.ConfigurationFactory
configureService
INFO: Configuring Service(id=My Stateful Container, type=Container,
provider-id=Default Stateful Container)
Dec 04, 2012 9:09:00 PM org.apache.openejb.config.ConfigurationFactory
configureService
INFO: Configuring Service(id=My Stateless Container, type=Container,
provider-id=Default Stateless Container)
Dec 04, 2012 9:09:00 PM org.apache.openejb.util.OptionsLog info
INFO: Using 'openejb.system.apps=true'
Dec 04, 2012 9:09:00 PM org.apache.openejb.config.ConfigurationFactory
configureApplication
INFO: Configuring enterprise application: null
Dec 04, 2012 9:09:01 PM org.apache.openejb.config.InitEjbDeployments deploy
INFO: Using openejb.deploymentId.format '{ejbName}'
Dec 04, 2012 9:09:01 PM org.apache.openejb.config.InitEjbDeployments deploy
INFO: Auto-deploying ejb openejb/Deployer:
EjbDeployment(deployment-id=openejb/Deployer)
Dec 04, 2012 9:09:01 PM org.apache.openejb.config.InitEjbDeployments deploy
INFO: Auto-deploying ejb openejb/ConfigurationInfo:
EjbDeployment(deployment-id=openejb/ConfigurationInfo)
Dec 04, 2012 9:09:01 PM org.apache.openejb.config.InitEjbDeployments deploy
INFO: Auto-deploying ejb MEJB: EjbDeployment(deployment-id=MEJB)
Dec 04, 2012 9:09:01 PM org.apache.openejb.config.AppInfoBuilder build
INFO: Enterprise application "openejb" loaded.
Dec 04, 2012 9:09:01 PM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating TransactionManager(id=Default Transaction Manager)
Dec 04, 2012 9:09:01 PM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating SecurityService(id=Tomcat Security Service)
Dec 04, 2012 9:09:01 PM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating Resource(id=My DataSource)
Dec 04, 2012 9:09:01 PM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating Resource(id=My Unmanaged DataSource)
Dec 04, 2012 9:09:01 PM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating Container(id=My Singleton Container)
Dec 04, 2012 9:09:01 PM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating Container(id=My Stateful Container)
Dec 04, 2012 9:09:01 PM org.apache.openejb.core.stateful.SimplePassivater
init
INFO: Using directory C:\DOCUME~1\rdev2\LOCALS~1\Temp for stateful session
passivation
Dec 04, 2012 9:09:01 PM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating Container(id=My Stateless Container)
Dec 04, 2012 9:09:01 PM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Assembling app: openejb
Dec 04, 2012 9:09:02 PM org.apache.openejb.util.OptionsLog info
INFO: Using
'openejb.jndiname.format={deploymentId}{interfaceType.openejbLegacyName}'
Dec 04, 2012 9:09:02 PM org.apache.openejb.assembler.classic.JndiBuilder
bind
INFO: Jndi(name=openejb/DeployerBusinessRemote) -->
Ejb(deployment-id=openejb/Deployer)
Dec 04, 2012 9:09:02 PM org.apache.openejb.assembler.classic.JndiBuilder
bind
INFO:
Jndi(name=global/openejb/openejb/Deployer!org.apache.openejb.assembler.Deployer)
--> Ejb(deployment-id=openejb/Deployer)
Dec 04, 2012 9:09:02 PM org.apache.openejb.assembler.classic.JndiBuilder
bind
INFO: Jndi(name=global/openejb/openejb/Deployer) -->
Ejb(deployment-id=openejb/Deployer)
Dec 04, 2012 9:09:02 PM org.apache.openejb.assembler.classic.JndiBuilder
bind
INFO: Jndi(name=openejb/ConfigurationInfoBusinessRemote) -->
Ejb(deployment-id=openejb/ConfigurationInfo)
Dec 04, 2012 9:09:02 PM org.apache.openejb.assembler.classic.JndiBuilder
bind
INFO:
Jndi(name=global/openejb/openejb/ConfigurationInfo!org.apache.openejb.assembler.classic.cmd.ConfigurationInfo)
--> Ejb(deployment-id=openejb/ConfigurationInfo)
Dec 04, 2012 9:09:02 PM org.apache.openejb.assembler.classic.JndiBuilder
bind
INFO: Jndi(name=global/openejb/openejb/ConfigurationInfo) -->
Ejb(deployment-id=openejb/ConfigurationInfo)
Dec 04, 2012 9:09:02 PM org.apache.openejb.assembler.classic.JndiBuilder
bind
INFO: Jndi(name=MEJB) --> Ejb(deployment-id=MEJB)
Dec 04, 2012 9:09:02 PM org.apache.openejb.assembler.classic.JndiBuilder
bind
INFO: Jndi(name=global/openejb/MEJB!javax.management.j2ee.ManagementHome)
--> Ejb(deployment-id=MEJB)
Dec 04, 2012 9:09:02 PM org.apache.openejb.assembler.classic.JndiBuilder
bind
INFO: Jndi(name=global/openejb/MEJB) --> Ejb(deployment-id=MEJB)
Dec 04, 2012 9:09:02 PM org.apache.openejb.cdi.CdiBuilder initSingleton
INFO: Existing thread singleton service in SystemInstance()
org.apache.openejb.cdi.ThreadSingletonServiceImpl@c82e09
Dec 04, 2012 9:09:02 PM org.apache.openejb.cdi.OpenEJBLifecycle
startApplication
INFO: OpenWebBeans Container is starting...
Dec 04, 2012 9:09:02 PM org.apache.webbeans.plugins.PluginLoader startUp
INFO: Adding OpenWebBeansPlugin : [CdiPlugin]
Dec 04, 2012 9:09:02 PM org.apache.webbeans.plugins.PluginLoader startUp
INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin]
Dec 04, 2012 9:09:02 PM org.apache.openejb.cdi.BeansDeployer
validateInjectionPoints
INFO: All injection points are validated successfully.
Dec 04, 2012 9:09:02 PM org.apache.openejb.cdi.OpenEJBLifecycle
startApplication
INFO: OpenWebBeans Container has started, it took 157 ms.
Dec 04, 2012 9:09:02 PM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Created Ejb(deployment-id=openejb/Deployer, ejb-name=openejb/Deployer,
container=My Stateless Container)
Dec 04, 2012 9:09:02 PM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Created Ejb(deployment-id=MEJB, ejb-name=MEJB, container=My Stateless
Container)
Dec 04, 2012 9:09:02 PM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Created Ejb(deployment-id=openejb/ConfigurationInfo,
ejb-name=openejb/ConfigurationInfo, container=My Stateless Container)
Dec 04, 2012 9:09:02 PM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Started Ejb(deployment-id=openejb/Deployer, ejb-name=openejb/Deployer,
container=My Stateless Container)
Dec 04, 2012 9:09:02 PM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Started Ejb(deployment-id=MEJB, ejb-name=MEJB, container=My Stateless
Container)
Dec 04, 2012 9:09:02 PM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Started Ejb(deployment-id=openejb/ConfigurationInfo,
ejb-name=openejb/ConfigurationInfo, container=My Stateless Container)
Dec 04, 2012 9:09:02 PM org.apache.openejb.assembler.classic.Assembler
deployMBean
INFO: Deployed
MBean(openejb.user.mbeans:application=openejb,group=org.apache.openejb.assembler.monitoring,name=JMXDeployer)
Dec 04, 2012 9:09:02 PM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Deployed Application(path=openejb)
Dec 04, 2012 9:09:02 PM org.apache.openejb.server.ServiceManager initServer
INFO: Creating ServerService(id=cxf)
Dec 04, 2012 9:09:03 PM org.apache.openejb.server.ServiceManager initServer
INFO: Creating ServerService(id=cxf-rs)
Dec 04, 2012 9:09:03 PM org.apache.openejb.server.SimpleServiceManager start
INFO: Starting service cxf
Dec 04, 2012 9:09:03 PM org.apache.openejb.server.SimpleServiceManager start
INFO: Started service cxf
Dec 04, 2012 9:09:03 PM org.apache.openejb.server.SimpleServiceManager start
INFO: Starting service cxf-rs
Dec 04, 2012 9:09:03 PM org.apache.openejb.server.SimpleServiceManager start
INFO: Started service cxf-rs
Dec 04, 2012 9:09:03 PM org.apache.openejb.server.SimpleServiceManager start
INFO: ** Bound Services **
Dec 04, 2012 9:09:03 PM org.apache.openejb.server.SimpleServiceManager
printRow
INFO: NAME IP PORT
Dec 04, 2012 9:09:03 PM org.apache.openejb.server.SimpleServiceManager start
INFO: -------
Dec 04, 2012 9:09:03 PM org.apache.openejb.server.SimpleServiceManager start
INFO: Ready!
Dec 04, 2012 9:09:03 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 6593 ms
Dec 04, 2012 9:09:03 PM
org.apache.tomee.catalina.OpenEJBNamingContextListener bindResource
INFO: Importing a Tomcat Resource with id 'UserDatabase' of type
'org.apache.catalina.UserDatabase'.
Dec 04, 2012 9:09:03 PM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating Resource(id=UserDatabase)
Dec 04, 2012 9:09:03 PM org.apache.catalina.core.StandardService
startInternal
INFO: Starting service Catalina
Dec 04, 2012 9:09:03 PM org.apache.catalina.core.StandardEngine
startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.30
Dec 04, 2012 9:09:03 PM org.apache.tomee.catalina.TomcatWebAppBuilder init
INFO: -------------------------
TomcatWebAppBuilder.init /App4
Dec 04, 2012 9:09:03 PM org.apache.openejb.config.ConfigurationFactory
configureApplication
INFO: Configuring enterprise application:
C:\tomee1.5\apache-tomee-plus-1.5.0\webapps\App4
Dec 04, 2012 9:09:03 PM org.apache.openejb.config.ConfigurationFactory
configureService
INFO: Configuring Service(id=Default JMS Connection Factory, type=Resource,
provider-id=Default JMS Connection Factory)
Dec 04, 2012 9:09:03 PM org.apache.openejb.config.AutoConfig
logAutoCreateResource
INFO: Auto-creating a Resource with id 'Default JMS Connection Factory' of
type 'javax.jms.ConnectionFactory for 'localhost/App4'.
Dec 04, 2012 9:09:03 PM org.apache.openejb.config.ConfigurationFactory
configureService
INFO: Configuring Service(id=Default JMS Resource Adapter, type=Resource,
provider-id=Default JMS Resource Adapter)
Dec 04, 2012 9:09:03 PM org.apache.openejb.config.ConfigurationFactory
configureService
INFO: Configuring Service(id=Default Unmanaged JDBC Database, type=Resource,
provider-id=Default Unmanaged JDBC Database)
Dec 04, 2012 9:09:03 PM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating Resource(id=Default Unmanaged JDBC Database)
Dec 04, 2012 9:09:03 PM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating Resource(id=Default JMS Resource Adapter)
Dec 04, 2012 9:09:04 PM
org.apache.openejb.resource.activemq.ActiveMQ5Factory createBroker
INFO: Using ActiveMQ startup timeout of 10000ms
Dec 04, 2012 9:09:04 PM org.apache.activemq.broker.BrokerService start
INFO: Using Persistence Adapter:
JDBCPersistenceAdapter(org.apache.tomee.jdbc.TomEEDataSourceCreator$TomEEDataSource@39f722{ConnectionPool[defaultAutoCommit=true;
defaultReadOnly=false; defaultTransactionIsolation=-1; defaultCatalog=null;
driverClassName=org.hsqldb.jdbcDriver; maxActive=10; maxIdle=10; minIdle=0;
initialSize=0; maxWait=-1; testOnBorrow=true; testOnReturn=false;
timeBetweenEvictionRunsMillis=-1; numTestsPerEvictionRun=3;
minEvictableIdleTimeMillis=1800000; testWhileIdle=false;
testOnConnect=false; password=; url=jdbc:hsqldb:file:data/hsqldb/hsqldb;
username=sa; validationQuery=; validatorClassName=null;
validationInterval=30000; accessToUnderlyingConnectionAllowed=true;
removeAbandoned=false; removeAbandonedTimeout=60; logAbandoned=false;
connectionProperties=null; initSQL=null;
jdbcInterceptors=StatementCache(max=0); jmxEnabled=true; fairQueue=true;
useEquals=true; abandonWhenPercentageFull=0; maxAge=0; useLock=false;
dataSource=null; dataSourceJNDI=null; suspectTimeout=0;
alternateUsernameAllowed=false; commitOnReturn=false;
rollbackOnReturn=false; useDisposableConnectionFacade=true;
logValidationErrors=false; propagateInterruptState=false; })
log4j:WARN No appenders could be found for logger
(hsqldb.db.HSQLDB3B2F52CFAF.ENGINE).
log4j:WARN Please initialize the log4j system properly.
Dec 04, 2012 9:09:05 PM
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter loadAdapter
INFO: Database adapter driver override recognized for :
[hsql_database_engine_driver] - adapter: class
org.apache.activemq.store.jdbc.adapter.HsqldbJDBCAdapter
Dec 04, 2012 9:09:05 PM
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter loadAdapter
INFO: Database lock driver override not found for :
[hsql_database_engine_driver]. Will use default implementation.
Dec 04, 2012 9:09:05 PM org.apache.activemq.store.jdbc.DefaultDatabaseLocker
start
INFO: Attempting to acquire the exclusive lock to become the Master broker
Dec 04, 2012 9:09:05 PM org.apache.activemq.store.jdbc.DefaultDatabaseLocker
start
INFO: Becoming the master on dataSource:
org.apache.tomee.jdbc.TomEEDataSourceCreator$TomEEDataSource@39f722{ConnectionPool[defaultAutoCommit=true;
defaultReadOnly=false; defaultTransactionIsolation=-1; defaultCatalog=null;
driverClassName=org.hsqldb.jdbcDriver; maxActive=10; maxIdle=10; minIdle=0;
initialSize=0; maxWait=-1; testOnBorrow=true; testOnReturn=false;
timeBetweenEvictionRunsMillis=-1; numTestsPerEvictionRun=3;
minEvictableIdleTimeMillis=1800000; testWhileIdle=false;
testOnConnect=false; password=; url=jdbc:hsqldb:file:data/hsqldb/hsqldb;
username=sa; validationQuery=; validatorClassName=null;
validationInterval=30000; accessToUnderlyingConnectionAllowed=true;
removeAbandoned=false; removeAbandonedTimeout=60; logAbandoned=false;
connectionProperties=null; initSQL=null;
jdbcInterceptors=StatementCache(max=0); jmxEnabled=true; fairQueue=true;
useEquals=true; abandonWhenPercentageFull=0; maxAge=0; useLock=false;
dataSource=null; dataSourceJNDI=null; suspectTimeout=0;
alternateUsernameAllowed=false; commitOnReturn=false;
rollbackOnReturn=false; useDisposableConnectionFacade=true;
logValidationErrors=false; propagateInterruptState=false; }
Dec 04, 2012 9:09:05 PM org.apache.activemq.broker.BrokerService getBroker
INFO: ActiveMQ 5.6.0 JMS Message Broker (localhost) is starting
Dec 04, 2012 9:09:05 PM org.apache.activemq.broker.BrokerService getBroker
INFO: For help or more information please see: http://activemq.apache.org/
Dec 04, 2012 9:09:05 PM
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter log
WARNING: JDBC Failure: incompatible data type in conversion: from SQL type
OTHER to [B, value: instance of org.hsqldb.types.JavaObjectData
java.sql.SQLSyntaxErrorException: incompatible data type in conversion: from
SQL type OTHER to [B, value: instance of org.hsqldb.types.JavaObjectData
at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
at org.hsqldb.jdbc.Util.throwError(Unknown Source)
at org.hsqldb.jdbc.JDBCResultSet.getColumnInType(Unknown Source)
at org.hsqldb.jdbc.JDBCResultSet.getBytes(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.apache.tomcat.jdbc.pool.interceptor.StatementDecoratorInterceptor$ResultSetProxy.invoke(StatementDecoratorInterceptor.java:287)
at $Proxy61.getBytes(Unknown Source)
at
org.apache.activemq.store.jdbc.adapter.BytesJDBCAdapter.getBinaryData(BytesJDBCAdapter.java:39)
at
org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter.doGetMessageById(DefaultJDBCAdapter.java:197)
at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.getLastMessageBrokerSequenceId(JDBCPersistenceAdapter.java:252)
at
org.apache.activemq.broker.region.DestinationFactoryImpl.getLastMessageBrokerSequenceId(DestinationFactoryImpl.java:145)
at
org.apache.activemq.broker.region.RegionBroker.<init>(RegionBroker.java:109)
at
org.apache.activemq.broker.BrokerService.createRegionBroker(BrokerService.java:1999)
at
org.apache.activemq.broker.BrokerService.createRegionBroker(BrokerService.java:1990)
at
org.apache.activemq.broker.BrokerService.createBroker(BrokerService.java:1947)
at
org.apache.activemq.broker.BrokerService.getBroker(BrokerService.java:802)
at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.start(JDBCPersistenceAdapter.java:314)
at org.apache.activemq.broker.BrokerService.start(BrokerService.java:525)
at
org.apache.openejb.resource.activemq.ActiveMQ5Factory$1.run(ActiveMQ5Factory.java:126)
Caused by: org.hsqldb.HsqlException: incompatible data type in conversion:
from SQL type OTHER to [B, value: instance of
org.hsqldb.types.JavaObjectData
at org.hsqldb.error.Error.error(Unknown Source)
at org.hsqldb.error.Error.error(Unknown Source)
... 20 more
Dec 04, 2012 9:09:05 PM org.apache.activemq.broker.BrokerService start
SEVERE: Failed to start ActiveMQ JMS Message Broker (localhost, null).
Reason: java.io.IOException: Failed to get last broker message id:
java.sql.SQLSyntaxErrorException: incompatible data type in conversion: from
SQL type OTHER to [B, value: instance of org.hsqldb.types.JavaObjectData
java.io.IOException: Failed to get last broker message id:
java.sql.SQLSyntaxErrorException: incompatible data type in conversion: from
SQL type OTHER to [B, value: instance of org.hsqldb.types.JavaObjectData
at
org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:33)
at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.getLastMessageBrokerSequenceId(JDBCPersistenceAdapter.java:263)
at
org.apache.activemq.broker.region.DestinationFactoryImpl.getLastMessageBrokerSequenceId(DestinationFactoryImpl.java:145)
at
org.apache.activemq.broker.region.RegionBroker.<init>(RegionBroker.java:109)
at
org.apache.activemq.broker.BrokerService.createRegionBroker(BrokerService.java:1999)
at
org.apache.activemq.broker.BrokerService.createRegionBroker(BrokerService.java:1990)
at
org.apache.activemq.broker.BrokerService.createBroker(BrokerService.java:1947)
at
org.apache.activemq.broker.BrokerService.getBroker(BrokerService.java:802)
at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.start(JDBCPersistenceAdapter.java:314)
at org.apache.activemq.broker.BrokerService.start(BrokerService.java:525)
at
org.apache.openejb.resource.activemq.ActiveMQ5Factory$1.run(ActiveMQ5Factory.java:126)
Caused by: java.sql.SQLSyntaxErrorException: incompatible data type in
conversion: from SQL type OTHER to [B, value: instance of
org.hsqldb.types.JavaObjectData
at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
at org.hsqldb.jdbc.Util.throwError(Unknown Source)
at org.hsqldb.jdbc.JDBCResultSet.getColumnInType(Unknown Source)
at org.hsqldb.jdbc.JDBCResultSet.getBytes(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.apache.tomcat.jdbc.pool.interceptor.StatementDecoratorInterceptor$ResultSetProxy.invoke(StatementDecoratorInterceptor.java:287)
at $Proxy61.getBytes(Unknown Source)
at
org.apache.activemq.store.jdbc.adapter.BytesJDBCAdapter.getBinaryData(BytesJDBCAdapter.java:39)
at
org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter.doGetMessageById(DefaultJDBCAdapter.java:197)
at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.getLastMessageBrokerSequenceId(JDBCPersistenceAdapter.java:252)
... 9 more
Caused by: org.hsqldb.HsqlException: incompatible data type in conversion:
from SQL type OTHER to [B, value: instance of
org.hsqldb.types.JavaObjectData
at org.hsqldb.error.Error.error(Unknown Source)
at org.hsqldb.error.Error.error(Unknown Source)
... 20 more
Dec 04, 2012 9:09:05 PM org.apache.activemq.broker.BrokerService stop
INFO: ActiveMQ Message Broker (localhost, null) is shutting down
Dec 04, 2012 9:09:05 PM org.apache.activemq.broker.TransportConnector stop
INFO: Connector null Stopped
Dec 04, 2012 9:09:05 PM org.apache.activemq.broker.BrokerService stop
INFO: ActiveMQ JMS Message Broker (localhost, null) stopped
Dec 04, 2012 9:09:05 PM
org.apache.openejb.resource.activemq.ActiveMQ5Factory createBroker
SEVERE: ActiveMQ failed to start broker
java.io.IOException: Failed to get last broker message id:
java.sql.SQLSyntaxErrorException: incompatible data type in conversion: from
SQL type OTHER to [B, value: instance of org.hsqldb.types.JavaObjectData
at
org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:33)
at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.getLastMessageBrokerSequenceId(JDBCPersistenceAdapter.java:263)
at
org.apache.activemq.broker.region.DestinationFactoryImpl.getLastMessageBrokerSequenceId(DestinationFactoryImpl.java:145)
at
org.apache.activemq.broker.region.RegionBroker.<init>(RegionBroker.java:109)
at
org.apache.activemq.broker.BrokerService.createRegionBroker(BrokerService.java:1999)
at
org.apache.activemq.broker.BrokerService.createRegionBroker(BrokerService.java:1990)
at
org.apache.activemq.broker.BrokerService.createBroker(BrokerService.java:1947)
at
org.apache.activemq.broker.BrokerService.getBroker(BrokerService.java:802)
at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.start(JDBCPersistenceAdapter.java:314)
at org.apache.activemq.broker.BrokerService.start(BrokerService.java:525)
at
org.apache.openejb.resource.activemq.ActiveMQ5Factory$1.run(ActiveMQ5Factory.java:126)
Caused by: java.sql.SQLSyntaxErrorException: incompatible data type in
conversion: from SQL type OTHER to [B, value: instance of
org.hsqldb.types.JavaObjectData
at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
at org.hsqldb.jdbc.Util.throwError(Unknown Source)
at org.hsqldb.jdbc.JDBCResultSet.getColumnInType(Unknown Source)
at org.hsqldb.jdbc.JDBCResultSet.getBytes(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.apache.tomcat.jdbc.pool.interceptor.StatementDecoratorInterceptor$ResultSetProxy.invoke(StatementDecoratorInterceptor.java:287)
at $Proxy61.getBytes(Unknown Source)
at
org.apache.activemq.store.jdbc.adapter.BytesJDBCAdapter.getBinaryData(BytesJDBCAdapter.java:39)
at
org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter.doGetMessageById(DefaultJDBCAdapter.java:197)
at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.getLastMessageBrokerSequenceId(JDBCPersistenceAdapter.java:252)
... 9 more
Caused by: org.hsqldb.HsqlException: incompatible data type in conversion:
from SQL type OTHER to [B, value: instance of
org.hsqldb.types.JavaObjectData
at org.hsqldb.error.Error.error(Unknown Source)
at org.hsqldb.error.Error.error(Unknown Source)
... 20 more
Dec 04, 2012 9:09:05 PM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating Resource(id=Default JMS Connection Factory)
Dec 04, 2012 9:09:05 PM org.apache.openejb.assembler.classic.Assembler
createResource
INFO: Creating ConnectionManager for Resource(id=Default JMS Connection
Factory)
Dec 04, 2012 9:09:05 PM
org.apache.geronimo.connector.outbound.GenericConnectionManager$InterceptorsImpl
<init>
INFO: No runtime TransactionSupport
Dec 04, 2012 9:09:05 PM org.apache.openejb.config.ConfigurationFactory
configureService
INFO: Configuring Service(id=jms/queue, type=Resource, provider-id=Default
Queue)
Dec 04, 2012 9:09:05 PM org.apache.openejb.config.AutoConfig
logAutoCreateResource
INFO: Auto-creating a Resource with id 'jms/queue' of type 'javax.jms.Queue
for 'localhost/App4'.
Dec 04, 2012 9:09:05 PM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating Resource(id=jms/queue)
Dec 04, 2012 9:09:05 PM org.apache.openejb.config.AppInfoBuilder build
INFO: Enterprise application
"C:\tomee1.5\apache-tomee-plus-1.5.0\webapps\App4" loaded.
Dec 04, 2012 9:09:05 PM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Assembling app: C:\tomee1.5\apache-tomee-plus-1.5.0\webapps\App4
Dec 04, 2012 9:09:05 PM org.apache.openejb.cdi.CdiBuilder initSingleton
INFO: Existing thread singleton service in SystemInstance()
org.apache.openejb.cdi.ThreadSingletonServiceImpl@c82e09
Dec 04, 2012 9:09:05 PM org.apache.openejb.cdi.OpenEJBLifecycle
startApplication
INFO: OpenWebBeans Container is starting...
Dec 04, 2012 9:09:05 PM org.apache.webbeans.plugins.PluginLoader startUp
INFO: Adding OpenWebBeansPlugin : [CdiPlugin]
Dec 04, 2012 9:09:05 PM org.apache.webbeans.plugins.PluginLoader startUp
INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin]
Dec 04, 2012 9:09:05 PM org.apache.openejb.cdi.BeansDeployer
validateInjectionPoints
INFO: All injection points are validated successfully.
Dec 04, 2012 9:09:05 PM org.apache.openejb.cdi.OpenEJBLifecycle
startApplication
INFO: OpenWebBeans Container has started, it took 0 ms.
Dec 04, 2012 9:09:05 PM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Deployed
Application(path=C:\tomee1.5\apache-tomee-plus-1.5.0\webapps\App4)
Dec 04, 2012 9:09:06 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
C:\tomee1.5\apache-tomee-plus-1.5.0\webapps\docs
Dec 04, 2012 9:09:06 PM org.apache.tomee.catalina.TomcatWebAppBuilder init
INFO: -------------------------
TomcatWebAppBuilder.init /docs
Dec 04, 2012 9:09:06 PM org.apache.openejb.config.ConfigurationFactory
configureApplication
INFO: Configuring enterprise application:
C:\tomee1.5\apache-tomee-plus-1.5.0\webapps\docs
Dec 04, 2012 9:09:06 PM org.apache.openejb.config.AppInfoBuilder build
INFO: Enterprise application
"C:\tomee1.5\apache-tomee-plus-1.5.0\webapps\docs" loaded.
Dec 04, 2012 9:09:06 PM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Assembling app: C:\tomee1.5\apache-tomee-plus-1.5.0\webapps\docs
Dec 04, 2012 9:09:06 PM org.apache.openejb.cdi.CdiBuilder initSingleton
INFO: Existing thread singleton service in SystemInstance()
org.apache.openejb.cdi.ThreadSingletonServiceImpl@c82e09
Dec 04, 2012 9:09:06 PM org.apache.openejb.cdi.OpenEJBLifecycle
startApplication
INFO: OpenWebBeans Container is starting...
Dec 04, 2012 9:09:06 PM org.apache.webbeans.plugins.PluginLoader startUp
INFO: Adding OpenWebBeansPlugin : [CdiPlugin]
Dec 04, 2012 9:09:06 PM org.apache.webbeans.plugins.PluginLoader startUp
INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin]
Dec 04, 2012 9:09:06 PM org.apache.openejb.cdi.BeansDeployer
validateInjectionPoints
INFO: All injection points are validated successfully.
Dec 04, 2012 9:09:06 PM org.apache.openejb.cdi.OpenEJBLifecycle
startApplication
INFO: OpenWebBeans Container has started, it took 0 ms.
Dec 04, 2012 9:09:06 PM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Deployed
Application(path=C:\tomee1.5\apache-tomee-plus-1.5.0\webapps\docs)
Dec 04, 2012 9:09:06 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
C:\tomee1.5\apache-tomee-plus-1.5.0\webapps\host-manager
Dec 04, 2012 9:09:06 PM org.apache.tomee.catalina.TomcatWebAppBuilder init
INFO: -------------------------
TomcatWebAppBuilder.init /host-manager
Dec 04, 2012 9:09:07 PM org.apache.openejb.config.ConfigurationFactory
configureApplication
INFO: Configuring enterprise application:
C:\tomee1.5\apache-tomee-plus-1.5.0\webapps\host-manager
Dec 04, 2012 9:09:07 PM org.apache.openejb.config.AppInfoBuilder build
INFO: Enterprise application
"C:\tomee1.5\apache-tomee-plus-1.5.0\webapps\host-manager" loaded.
Dec 04, 2012 9:09:07 PM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Assembling app:
C:\tomee1.5\apache-tomee-plus-1.5.0\webapps\host-manager
Dec 04, 2012 9:09:07 PM org.apache.openejb.cdi.CdiBuilder initSingleton
INFO: Existing thread singleton service in SystemInstance()
org.apache.openejb.cdi.ThreadSingletonServiceImpl@c82e09
Dec 04, 2012 9:09:07 PM org.apache.openejb.cdi.OpenEJBLifecycle
startApplication
INFO: OpenWebBeans Container is starting...
Dec 04, 2012 9:09:07 PM org.apache.webbeans.plugins.PluginLoader startUp
INFO: Adding OpenWebBeansPlugin : [CdiPlugin]
Dec 04, 2012 9:09:07 PM org.apache.webbeans.plugins.PluginLoader startUp
INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin]
Dec 04, 2012 9:09:07 PM org.apache.openejb.cdi.BeansDeployer
validateInjectionPoints
INFO: All injection points are validated successfully.
Dec 04, 2012 9:09:07 PM org.apache.openejb.cdi.OpenEJBLifecycle
startApplication
INFO: OpenWebBeans Container has started, it took 16 ms.
Dec 04, 2012 9:09:07 PM org.apache.tomee.catalina.TomcatWebAppBuilder
deployWebApps
INFO: using context file
C:\tomee1.5\apache-tomee-plus-1.5.0\webapps\host-manager\META-INF\context.xml
Dec 04, 2012 9:09:07 PM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Deployed
Application(path=C:\tomee1.5\apache-tomee-plus-1.5.0\webapps\host-manager)
Dec 04, 2012 9:09:07 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
C:\tomee1.5\apache-tomee-plus-1.5.0\webapps\manager
Dec 04, 2012 9:09:07 PM org.apache.tomee.catalina.TomcatWebAppBuilder init
INFO: -------------------------
TomcatWebAppBuilder.init /manager
Dec 04, 2012 9:09:07 PM org.apache.openejb.config.ConfigurationFactory
configureApplication
INFO: Configuring enterprise application:
C:\tomee1.5\apache-tomee-plus-1.5.0\webapps\manager
Dec 04, 2012 9:09:07 PM org.apache.openejb.config.AppInfoBuilder build
INFO: Enterprise application
"C:\tomee1.5\apache-tomee-plus-1.5.0\webapps\manager" loaded.
Dec 04, 2012 9:09:07 PM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Assembling app: C:\tomee1.5\apache-tomee-plus-1.5.0\webapps\manager
Dec 04, 2012 9:09:07 PM org.apache.openejb.cdi.CdiBuilder initSingleton
INFO: Existing thread singleton service in SystemInstance()
org.apache.openejb.cdi.ThreadSingletonServiceImpl@c82e09
Dec 04, 2012 9:09:07 PM org.apache.openejb.cdi.OpenEJBLifecycle
startApplication
INFO: OpenWebBeans Container is starting...
Dec 04, 2012 9:09:07 PM org.apache.webbeans.plugins.PluginLoader startUp
INFO: Adding OpenWebBeansPlugin : [CdiPlugin]
Dec 04, 2012 9:09:07 PM org.apache.webbeans.plugins.PluginLoader startUp
INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin]
Dec 04, 2012 9:09:07 PM org.apache.openejb.cdi.BeansDeployer
validateInjectionPoints
INFO: All injection points are validated successfully.
Dec 04, 2012 9:09:07 PM org.apache.openejb.cdi.OpenEJBLifecycle
startApplication
INFO: OpenWebBeans Container has started, it took 31 ms.
Dec 04, 2012 9:09:07 PM org.apache.tomee.catalina.TomcatWebAppBuilder
deployWebApps
INFO: using context file
C:\tomee1.5\apache-tomee-plus-1.5.0\webapps\manager\META-INF\context.xml
Dec 04, 2012 9:09:07 PM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Deployed
Application(path=C:\tomee1.5\apache-tomee-plus-1.5.0\webapps\manager)
Dec 04, 2012 9:09:07 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
C:\tomee1.5\apache-tomee-plus-1.5.0\webapps\ROOT
Dec 04, 2012 9:09:07 PM org.apache.tomee.catalina.TomcatWebAppBuilder init
INFO: -------------------------
TomcatWebAppBuilder.init
Dec 04, 2012 9:09:08 PM org.apache.openejb.config.ConfigurationFactory
configureApplication
INFO: Configuring enterprise application:
C:\tomee1.5\apache-tomee-plus-1.5.0\webapps\ROOT
Dec 04, 2012 9:09:08 PM org.apache.openejb.config.AppInfoBuilder build
INFO: Enterprise application
"C:\tomee1.5\apache-tomee-plus-1.5.0\webapps\ROOT" loaded.
Dec 04, 2012 9:09:08 PM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Assembling app: C:\tomee1.5\apache-tomee-plus-1.5.0\webapps\ROOT
Dec 04, 2012 9:09:08 PM org.apache.openejb.cdi.CdiBuilder initSingleton
INFO: Existing thread singleton service in SystemInstance()
org.apache.openejb.cdi.ThreadSingletonServiceImpl@c82e09
Dec 04, 2012 9:09:08 PM org.apache.openejb.cdi.OpenEJBLifecycle
startApplication
INFO: OpenWebBeans Container is starting...
Dec 04, 2012 9:09:08 PM org.apache.webbeans.plugins.PluginLoader startUp
INFO: Adding OpenWebBeansPlugin : [CdiPlugin]
Dec 04, 2012 9:09:08 PM org.apache.webbeans.plugins.PluginLoader startUp
INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin]
Dec 04, 2012 9:09:08 PM org.apache.openejb.cdi.BeansDeployer
validateInjectionPoints
INFO: All injection points are validated successfully.
Dec 04, 2012 9:09:08 PM org.apache.openejb.cdi.OpenEJBLifecycle
startApplication
INFO: OpenWebBeans Container has started, it took 15 ms.
Dec 04, 2012 9:09:08 PM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Deployed
Application(path=C:\tomee1.5\apache-tomee-plus-1.5.0\webapps\ROOT)
Dec 04, 2012 9:09:08 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
C:\tomee1.5\apache-tomee-plus-1.5.0\webapps\tomee
Dec 04, 2012 9:09:08 PM org.apache.tomee.catalina.TomcatWebAppBuilder init
INFO: -------------------------
TomcatWebAppBuilder.init /tomee
Dec 04, 2012 9:09:08 PM org.apache.openejb.config.ConfigurationFactory
configureApplication
INFO: Configuring enterprise application:
C:\tomee1.5\apache-tomee-plus-1.5.0\webapps\tomee
Dec 04, 2012 9:09:08 PM org.apache.openejb.config.AppInfoBuilder build
INFO: Enterprise application
"C:\tomee1.5\apache-tomee-plus-1.5.0\webapps\tomee" loaded.
Dec 04, 2012 9:09:08 PM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Assembling app: C:\tomee1.5\apache-tomee-plus-1.5.0\webapps\tomee
Dec 04, 2012 9:09:08 PM org.apache.openejb.cdi.CdiBuilder initSingleton
INFO: Existing thread singleton service in SystemInstance()
org.apache.openejb.cdi.ThreadSingletonServiceImpl@c82e09
Dec 04, 2012 9:09:08 PM org.apache.openejb.cdi.OpenEJBLifecycle
startApplication
INFO: OpenWebBeans Container is starting...
Dec 04, 2012 9:09:08 PM org.apache.webbeans.plugins.PluginLoader startUp
INFO: Adding OpenWebBeansPlugin : [CdiPlugin]
Dec 04, 2012 9:09:08 PM org.apache.webbeans.plugins.PluginLoader startUp
INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin]
Dec 04, 2012 9:09:08 PM org.apache.openejb.cdi.BeansDeployer
validateInjectionPoints
INFO: All injection points are validated successfully.
Dec 04, 2012 9:09:08 PM org.apache.openejb.cdi.OpenEJBLifecycle
startApplication
INFO: OpenWebBeans Container has started, it took 0 ms.
Dec 04, 2012 9:09:08 PM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Deployed
Application(path=C:\tomee1.5\apache-tomee-plus-1.5.0\webapps\tomee)
Dec 04, 2012 9:09:08 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Dec 04, 2012 9:09:08 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Dec 04, 2012 9:09:08 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5679 ms
start
Dec 04, 2012 9:09:50 PM org.apache.activemq.store.kahadb.plist.PListStore
doStart
INFO: PListStore:[C:\eclipsejuno\eclipse\activemq-data\localhost\tmp_storage
] started
Dec 04, 2012 9:09:50 PM org.apache.activemq.broker.BrokerService start
INFO: Using Persistence Adapter:
KahaDBPersistenceAdapter[C:\eclipsejuno\eclipse\activemq-data\localhost\KahaDB]
Dec 04, 2012 9:09:50 PM org.apache.activemq.broker.jmx.ManagementContext$1
run
INFO: JMX consoles can connect to
service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
Dec 04, 2012 9:09:51 PM
org.apache.activemq.store.kahadb.MessageDatabase$Metadata read
INFO: KahaDB is version 4
Dec 04, 2012 9:09:51 PM org.apache.activemq.store.kahadb.MessageDatabase
recover
INFO: Recovering from the journal ...
Dec 04, 2012 9:09:51 PM org.apache.activemq.store.kahadb.MessageDatabase
recover
INFO: Recovery replayed 2 operations from the journal in 0.015 seconds.
Dec 04, 2012 9:09:51 PM org.apache.activemq.broker.BrokerService getBroker
INFO: ActiveMQ 5.6.0 JMS Message Broker (localhost) is starting
Dec 04, 2012 9:09:51 PM org.apache.activemq.broker.BrokerService getBroker
INFO: For help or more information please see: http://activemq.apache.org/
Dec 04, 2012 9:09:52 PM org.apache.activemq.broker.BrokerService start
INFO: ActiveMQ JMS Message Broker (localhost,
ID:PHXJ04968128-2962-1354680545513-0:1) started
Dec 04, 2012 9:09:52 PM org.apache.activemq.broker.TransportConnector start
INFO: Connector vm://localhost Started
sent message
--
View this message in context: http://openejb.979440.n4.nabble.com/websphere-MQ-tp4658647p4659097.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: websphere MQ
Posted by Romain Manni-Bucau <rm...@gmail.com>.
i don't have mq here but what i'd certainly do:
WEB-INF/resources.xml or WEB-INF/resources.xml (if a war)
<resources>
<Resource id="mqConnectionFactory"
class-name="com.ibm.mq.jms.MQQueueConnectionFactory">
hostName = XXX
port = YYY
...
</Resources>
</resources>
that's for a simple client if i understood
then you'll probably want the rar right but wonder if you couldn't
valid this part first
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2012/12/4 rohiddev <ro...@gmail.com>:
> I am not able to follow you.
>
> Can you please confirm
> setup needed in tomee for webpshere mq
> 1. tomee.xml under webapp/meta-inf (Resources defined for connection
> factory/queue)
> 2. rar file bundled into ear file.
>
> Is there anything else needed.
>
> Your help is much appreciated.
>
>
>
> --
> View this message in context: http://openejb.979440.n4.nabble.com/websphere-MQ-tp4658647p4659089.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: websphere MQ
Posted by rohiddev <ro...@gmail.com>.
I am not able to follow you.
Can you please confirm
setup needed in tomee for webpshere mq
1. tomee.xml under webapp/meta-inf (Resources defined for connection
factory/queue)
2. rar file bundled into ear file.
Is there anything else needed.
Your help is much appreciated.
--
View this message in context: http://openejb.979440.n4.nabble.com/websphere-MQ-tp4658647p4659089.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: websphere MQ
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Whats what i ask ;)
Le 3 déc. 2012 19:10, "rohiddev" <ro...@gmail.com> a écrit :
> Not sure about creating QF in full java. Can you provide snippet code.
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/websphere-MQ-tp4658647p4659060.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Re: websphere MQ
Posted by rohiddev <ro...@gmail.com>.
Not sure about creating QF in full java. Can you provide snippet code.
--
View this message in context: http://openejb.979440.n4.nabble.com/websphere-MQ-tp4658647p4659060.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: websphere MQ
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Do you know how to create the cf in full java?
Le 1 déc. 2012 22:14, "rohiddev" <ro...@gmail.com> a écrit :
> I've added LocalAddress instead of HostName in tomee.xml file and still get
> the same error.
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/websphere-MQ-tp4658647p4659040.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Re: websphere MQ
Posted by rohiddev <ro...@gmail.com>.
I've added LocalAddress instead of HostName in tomee.xml file and still get
the same error.
--
View this message in context: http://openejb.979440.n4.nabble.com/websphere-MQ-tp4658647p4659040.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: websphere MQ
Posted by Romain Manni-Bucau <rm...@gmail.com>.
don't you want LocalAddress instead of HostName?
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2012/12/1 rohiddev <ro...@gmail.com>:
> *Messaging in enterprise application needs to work on Webpshere MQ/Tomee
> environment. *
>
> For this POC I've written a simple Servlet App to send message.
>
> code:
> String MYCF_LOOKUP_NAME = "java:/comp/env/jms/qcf";
> String MYQUEUE_LOOKUP_NAME = "java:/comp/env/jms/queue";
> ConnectionFactory connectionFactory = null;
> Destination dest = null;
> Context jndiContext = null;
> Connection connection = null;
> MessageProducer producer = null;
> Session session = null;
> MessageConsumer consumer = null;
> TextMessage message = null;
>
> try {
> jndiContext = new InitialContext();
> connectionFactory = (ConnectionFactory)
> jndiContext.lookup(MYCF_LOOKUP_NAME);
> dest = (Destination) jndiContext.lookup(MYQUEUE_LOOKUP_NAME);
> connection = connectionFactory.createConnection();
> session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
> producer = session.createProducer(dest);
> message = session.createTextMessage("Test Message");
> producer.send(message);
> }
> catch( Exception e)
> {
> e.printStackTrace();
> }
> finally
> {
> try {
> connection.close();
> } catch (JMSException e) {
>
> e.printStackTrace();
> }
> }
>
> *web.xml*
> <resource-ref>
> <description>
> </description>
> <res-ref-name>jms/qcf</res-ref-name>
> <res-type>javax.jms.ConnectionFactory</res-type>
> <res-auth>Container</res-auth>
> <res-sharing-scope>Shareable</res-sharing-scope>
> </resource-ref>
> <message-destination-ref>
> <description>
> </description>
> <message-destination-ref-name>jms/queue</message-destination-ref-name>
> <message-destination-type>javax.jms.Queue</message-destination-type>
> <message-destination-usage>ConsumesProduces</message-destination-usage>
> <message-destination-link>jms/queue</message-destination-link>
> </message-destination-ref>
> <message-destination>
> <description>
> </description>
> <message-destination-name>jms/queue</message-destination-name>
> </message-destination>
>
> *tomee.xml under META-INF*
> <tomee>
>
> <Resource id="jms/queue"
> type="javax.jms.Queue"
> provider="com.ibm.was.mq.WebsphereMQQueue">
> BaseQueueName QUEUE1
> BaseQueueManagerName QM_TIERL
> </Resource>
>
> <Resource id="jms/qcf"
> type="javax.jms.ConnectionFactory"
> provider="com.ibm.was.mq.WebsphereMQConnectionFactory">
> HostName 10.x.x.x
> Port 1414
> QueueManager QM_TIERL
> Channel SYSTEM.ADMIN.SVRCONN
> TransportType CLIENT
> UserName xyz
> PassWord xyz
> </Resource>
>
> </tomee>
>
> I have added wmq.jmsra.rar RAR file to my EAR.
>
> Once this works I was planning to an MDB to consume the message.
>
>
>
>
> --
> View this message in context: http://openejb.979440.n4.nabble.com/websphere-MQ-tp4658647p4659036.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.