How can I deploy JMS project using IBM MQ into JBoss? - jboss

I created a mini JMS project that can communicate with IBM MQ that's running in a local Docker container. Can this project be deployed in JBoss / Wildfly?
consumer.setMessageListener(new ConsumerMessageListener("Consumer"));
context.start();
System.out.println("Start listening to queue...");
Thread.sleep(300000);
context.close();
recordSuccess();

Related

java.lang.NoSuchMethodError when sending message from WildFly 10 to remote ActiveMQ Artemis

We're working on a JMS based application deployed under WildFly 10. Now we're migrating from the embedded ActiveMQ Artemis server to a standalone one.
The same application server hosts a JBPM instance (version 6.5). When we try to send messages we have this error:
java.lang.NoSuchMethodError: io.netty.util.internal.PlatformDependent.getContextClassLoader()Ljava/lang/ClassLoader.
We think there is a compatibility problem on Netty, so we also tried to install another Netty version on JBoss but it doesn't work and the server doesn't start.
Do you have any suggestions?

Weblogic and Websphere JMS Queue Communication

Currently in Weblogic we are running two applications and communicating through JMS Queue. Now one of the application we are moving to Liberty Server. What are the configuration we need to do for JMS Queue connection between Weblogic and Websphere.
Depending on which JMS Provider are you using, you have several options:
if provider has compatible JMS Resource Adapter (e.g. WebSphere MQ) - you can use that RA together with Liberty jca feature
if provider has a sort of thin client, you can embed that client libraries together with your application, and manually setup connection
if your current provider doesn't support any of above, you can use external JMS server that has compatible JMS RA (for example WebSphere MQ) and integrate it with both WebLogic and Liberty.
Update based on comments
There is no simple way to access Liberty JNDI externally - see this post Connect to Websphere Liberty jmsServer from remote application server
You could try to access embedded JMS via API. It is discussed here: https://www.ibm.com/mysupport/s/question/0D50z000062ktc3CAA/helloworld-jms-client-connecting-to-embedded-liberty-jms-server?language=en_US
But to be honest, if I were you I would either:
use external JMS Provider that is compatible with both runtimes e.g. WebSphere MQ
or rewrite interface between WebLogic and Liberty to REST, so that WebLogic invokes via REST simple application that reads the request and puts it to the queue in embedded Liberty JMS engine to avoid calling JMS engine externally.

Can I host WSO2 CEP on Bluemix?

I want to run my WSO2 CEP on IBM Bluemix. Is it possible to host it as a Liberty application or any other option is available there ?
WSO2 CEP is a Java Web application including Tomcat as application server, so you may have to build it from source and push the war on Bluemix to try it working on liberty application server. Anyway between WSO2 CEP prerequisites there is Java Oracle jdk, and Bluemix is running on IBM jdk, so you could have some other problems.
So maybe it could be better to run it on a (group of) Bluemix Container: these are based on Docker containers, so you could create a custom docker image from the (really) several images available, and then you can push it to a Bluemix container on cloud.
Bluemix/Docker containers are fully portable so you can very easily create your one and take it everywhere and also make it scaling very simply on Bluemix cloud environment.
You can start from here
https://www.ng.bluemix.net/docs/containers/container_index.html
https://docs.docker.com/docker/userguide/

How does MDB on WildFly consume messages from JBOSS 5.1

How to configure MDB on WildFly to read JMS messages from other cluster running JBOSS Messaging on JBOSS 5.1 ?
You should use a JMS bridge : https://docs.jboss.org/author/display/WFLY8/Messaging+configuration#Messagingconfiguration-JMSBridge

WSO2 Decoupling Tomcat and ESB

i m working with WSO2 EBS 4.7.0.
I have some REST services i have to deploy on a tomcat server.
Is it possible to have this configuration?
WSO2 ESB CLUSTER ----> TOMCAT CLUSTER (separate server)---> REST WEBSERVICES
I mean, is it possibile to decouple the tomcat contained by the ESB and locate it on a separate server in clustered mode? How can this be done?
Thanks a lot.
AFAIK, this is not possible. I mean decoupling tomcat from wso2esb. ESB runs on top of tomcat.
Why do you prefer this setup?
You can host your services in WSO2AS.
ESB cluster-->AS clusters