MQ setup in websphere
2012-03-16 20:03
330 查看
1 Run ActiveMQ Server
1.1 Download ActiveMQ 5.4.3 and Extract
http://www.apache.org/dyn/closer.cgi?path=%2Factivemq%2Fapache-activemq%2F5.4.3%2Fapache-activemq-5.4.3-bin.zip1.2 Run the Server
In command line:cd [ActiveMQ_extracted_directory]/bin
activemq
Now the ActiveMQ server is running.
1.3 Monitor Queues and Topics in ActiveMQ AdminConsole
The default URL of ActiveMQ admin console is: http://localhost:8161/admin/2 Configure ActiveMQ as the WebSphere Generic JMSProvider
2.1 Put the Three Attached JAR Files under Directory[WAS6.1_RUNTIME_ROOT]/lib/ext/
2.2 Open WAS Admin Console
2.2.1 Resources àJMSàJMS providersàselect a scopeàNew
Name: ActiveMQmessaging provider (or any other name you want)External initialcontext factory: com.sft.gec.activemq.jndi.ActiveMQWASInitialContextFactory
External providerURL: tcp://localhost:61616
2.2.2 In the page of ActiveMQ messaging provider, click“Custom properties” and add properties as below
Property Name | Property Value |
java.naming.connectionFactoryNames | QueueConnectionFactory |
java.naming.queue.GEC.SLE.EQLQ1 | GEC.SLE.EQLQ1 |
java.naming.queue.GEC.SLE.EQLQ2 | GEC.SLE.EQLQ2 |
java.naming.queue.GEC.SLE.EQLQ3 | GEC.SLE.EQLQ3 |
java.naming.queue.GEC.SLE.EQLREJECT | GEC.SLE.EQLREJECT |
java.naming.queue.SLE.GEC.EQLQ1 | SLE.GEC.EQLQ1 |
java.naming.queue.SLE.GEC.EQLQ2 | SLE.GEC.EQLQ2 |
java.naming.queue.SLE.GEC.EQLQ3 | SLE.GEC.EQLQ3 |
If you want to create a topic, use java.naming.topic.xyz similarly.
If there’re multiple connection factory names, use comma to separatethem.
2.2.3 Back to the page of ActiveMQ messaging provider,click “Queue connection factories” and add the connection factory as below
Name: ActiveMQqueue connection factory (or any other name you want)JNDI name: jms/gecEqlConnectionFactory(this should be consistent with the connection factory JNDI name configured inGEC Spring context file)
External JNDI name:QueueConnectionFactory (this should be consistent with the java.naming.connectionFactoryNamesproperty value you just added for ActiveMQ messaging provider)
2.2.4 Back to the page of ActiveMQ messaging provider,click “Queues” and add queues as below
Name (or any other name you want) | JNDI Name | External JNDI name |
gecEqlQ1In | jms/gecEqlQ1In | GEC.SLE.EQLQ1 |
gecEqlQ2In | jms/gecEqlQ2In | GEC.SLE.EQLQ2 |
gecEqlQ3In | jms/gecEqlQ3In | GEC.SLE.EQLQ3 |
gecEqlQRIn | jms/gecEqlQRIn | GEC.SLE.EQLREJECT |
gecEqlQ1Out | jms/gecEqlQ1Out | SLE.GEC.EQLQ1 |
gecEqlQ2Out | jms/gecEqlQ2Out | SLE.GEC.EQLQ2 |
gecEqlQ3Out | jms/gecEqlQ3Out | SLE.GEC.EQLQ3 |
2.3 Save All the Changes and Restart the Server
After GEC started, in the ActiveMQ admin console, you shouldbe able to see the four inbound queues (Q1, Q2, Q3 and QR) with one consumer oneach. It means that GEC is now listening on the four inbound queues.The outbound queue won’t be visible until GEC sends messagesto it.
相关文章推荐
- How to Setup Replicated LevelDB Persistence in Apache ActiveMQ 5.9--转载
- WebSphere MQ&&Active MQ
- How to Change RabbitMQ Queue Parameters in Production?
- Setup and Deployment in Visual Studio 2010
- Setup the RSS support in outlook 2003
- A Simple MVC Setup In Node.JS
- setup tomcat5 in CentOS
- ActiveMQ in Action(5)
- Enhanced JMS Scheduler in ActiveMQ
- ActiveMQ, Qpid, HornetQ and RabbitMQ in Comparison
- JBoss-BM WebSphere MQ-ActiveMQ
- IBM WebSphere MQ几个特性的应用
- How to Setup a Private Proxy Server on EC2 in Under 10 Minutes
- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-b2PICB/unroll/
- ActiveMQ in Action(3)
- (转)Inno Setup入门(四)——为程序创建桌面快捷方式
- (转)Inno Setup入门(十九)——Inno Setup类参考(5)
- Using the Intel® MPI Library in a server/client setup
- 《RabbitMQ in action》
- Hadoop: Setup Maven project for MapReduce in 5mn