Registry / messaging / jms
library1.1javamavenunverified

Messaging standard for loosely coupled, reliable, asynchronous communication in Java EE.

<dependency> <groupId>javax.jms</groupId> <artifactId>jms</artifactId> <version>1.1</version> </dependency>
INSTALL
IMPORT
SIG · JMS
J
jms
messagingjavav1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ConnectionFactory
javax.jms.ConnectionFactory

Sends a text message to a JMS queue.

import javax.jms.ConnectionFactory; import javax.jms.Connection; import javax.jms.Session; import javax.jms.MessageProducer; import javax.jms.TextMessage; import javax.jms.Queue; public class Example { public static void main(String[] args) throws Exception { ConnectionFactory factory = new com.sun.messaging.ConnectionFactory(); try (Connection conn = factory.createConnection(); Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE)) { Queue queue = session.createQueue("test"); MessageProducer producer = session.createProducer(queue); TextMessage msg = session.createTextMessage("Hello"); producer.send(msg); } } }
Debug
Known issues
gotchaJMS 1.1 is legacy; consider JMS 2.0 (javax.jms:javax.jms-api:2.0.1) for simplified API.
fix
Use javax.jms:javax.jms-api:2.0.1 or jakarta.jms:jakarta.jms-api:3.0.0.
affects: >=1.1
Upgrade
Version history
1.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
18
OpenAI (training)
1
Resources
jms — mvn dependency:get jms · libregistry