Questions tagged [jms2]

Version 2 of the Java Messaging Service and component of JAVA EE 7. The biggest new feature of JMS 2.0 is a new API that makes JMS much easier to use, especially in a Java EE application.

enter link description here

JMS is the Java standard for accessing enterprise messaging systems. This session introduces JMS 2.0 (JSR 343), the first update in more than a decade and easily the longest-awaited component of the forthcoming Java EE 7 standard. The biggest new feature of JMS 2.0 is a new API that makes JMS much easier to use, especially in a Java EE application. JMS 2.0 also provides API features to support greater scalability as well as additional messaging features and a long list of minor enhancements and clarifications. With JMS 2.0 final with Java EE 7, now is an ideal time to find out more about it.

18 questions
7
votes
1 answer

how do I use Artemis with Camel Java DSL using the camel-jms component?

Right now I'm using JMS 2.0 with Artemis 1.2.0 on a Java EE 7 application and I would like to do some integration tasks with Camel. Right now checking the camel-jms documentation, there is no mention whatsoever on how to use the generic camel JMS…
Raul G
  • 473
  • 1
  • 6
  • 18
7
votes
2 answers

Why JMS Session Object is not thread safe?

Why are JMS specs designed in the way so that Session Object cannot be used by concurrent threads when Connection object from which Sessions are created are thread safe(Shared by thread)?
Aniket Thakur
  • 66,731
  • 38
  • 279
  • 289
4
votes
1 answer

JMS message selector on Object message

I working on liberty 18.0.0.2 with JavaEE 8 . I created Custom jms object message like this : public class MyTextMessage implements Serializable { private String text; private String destination; private LocalDateTime dateTime; …
mah454
  • 1,571
  • 15
  • 38
3
votes
1 answer

In JMS 2.0 factory.createContext() is throwing AbstractMethodError

I am using ActiveMq as provider and JMS 2.0 API. The second line is throwing AbstractMethodError, how to fix it? 1. ConnectionFactory factory = new ActiveMQConnectionFactory(ActiveMQConnection.DEFAULT_BROKER_URL); 2. JMSContext context =…
ramanKC
  • 197
  • 1
  • 3
  • 16
3
votes
1 answer

what are the jboss-client.jar maven dependencies?

I'm building a JMS Topic application with maven. I'm using wildfly 9 (and JMS 2.0) and I need to use de jboss-client.jar provided by wildfly to make the application work (It's a simple Publisher-subscriber application). Since I'm using maven, I…
André Macedo
  • 187
  • 1
  • 2
  • 9
2
votes
1 answer

JMS 2 MDB listen to multiple queue

I use JavaEE 8 on Liberty 18.0.0.2 . I setup jms activation config like this (server.xml):
mah454
  • 1,571
  • 15
  • 38
2
votes
1 answer

JMS MessageListener not working on Liberty

I working on Liberty 18.0.0.2 with JavaEE 8 full profile . I configured JMS 2 on server.xml with this content : javaee-8.0
mah454
  • 1,571
  • 15
  • 38
2
votes
0 answers

JMS 2 MDB on Wildfly 10 with activeMQ

I am migrating JMS2 MDB jboss6 to wildfly10, Invalid settings: Destination is mandatory. I have done configuration on standalone.xml, and getting following error- subscription is durable then subscription name must be specified. 17:00:29,259 ERROR…
Pavan Patidar
  • 363
  • 1
  • 2
  • 10
1
vote
1 answer

ActiveMQ Artemis 2.10.1 + JMS 2.0 - shared subscription not working

Software: Apache Artemis 2.10.1 TomEE plus 8.0 I have created a topic with 2 consumers. Each consumer has 1 MDB each. I have one main method where I do the configuration and all. Even though I am sending only one message and specified that this…
Tej
  • 21
  • 4
1
vote
2 answers

IBM MQ Message property is null in MDB

I am publishing JMS text message to topic and consumer is able to consumer ( MDB ) the text message. But not able to get Message Object and String property. it is null in MDB consumer side. I have defined MDB in ejb-jar.xml under META-INF folder. I…
Gnana
  • 2,130
  • 5
  • 26
  • 57
1
vote
1 answer

How to create temporary queue and access it in JMS 2

I am working on a JMS client server app where client first send some data to server through a common queue for all clients and server gives respond to it in a temporary queue created by client itself. I googled it but could not find how can I…
Yatin Gaikwad
  • 1,140
  • 1
  • 13
  • 23
1
vote
1 answer

jms 2 shared subscriber

I have been seeing some issues in our application where two instances of the application were receiving the same message even though their consumers were created using createSharedConsumer and had the same subscription name. At first I thought this…
1
vote
0 answers

How to add jms.jar and imq.jar from Maven?

I am following a tutorial about JMS. package org.dedunu.jms.chapter02; import javax.jms.ConnectionFactory; import javax.jms.JMSContext; import javax.jms.Queue; public class JMS2Receiver { public static void main(String[] args) { …
dedunu
  • 172
  • 8
1
vote
1 answer

JMS architecture for group broadcasting

I want to build a broadcasting system. It consists of several groups. Each group has one User who can broadcast a message to the other members of the same group. What is the appropriate JMS architecture for this kind of system? Should I use a topic…
Eng.Fouad
  • 115,165
  • 71
  • 313
  • 417
1
vote
1 answer

Why JMSProducer interface does not extend java.lang.Autocloseable?

As per the JMS specs for classic APIs The Connection, Session, MessageProducer, MessageConsumer and QueueBrowser interfaces have been modified to extend the java.lang.Autocloseable interface. This means that applications can create these objects…
Aniket Thakur
  • 66,731
  • 38
  • 279
  • 289
1
2