Solved

JBoss MQ / JNDI

Posted on 2004-09-26
2
665 Views
Last Modified: 2013-11-24
Hi all

Does it possible to use JBossMQ by external JVM? (ie. a Java process that is not deployed in JBoss but it is run as a standalone process)?

How about the JNDI lookup of JBoss by external JVM?

Rgds/Glogin
0
Comment
Question by:glogin
2 Comments
 
LVL 4

Accepted Solution

by:
gdrnec earned 50 total points
ID: 12164555
Absolutely,

A JMS provider like JBossMQ is an enterprise resource and therefore designed to be accessed by external processes.

The general recipe for doing it is to lookup the resource using something like the following:

Context context = javax.naming.InitialContext(Properties props); // props for the JBoss JNDI tree are in the jboss docs
Object queueOrTopic = context.lookup("the name of the queue or topic on the JNDI tree"); // probably something like /jms/yourTopic

Then use PortableRemoteObject to narrow to the specific JMS interface that you require and use the object.

Geoff
0
 

Author Comment

by:glogin
ID: 12165712
That means JBossMQ and JBoss JNDI can be used by external processes.

I ask this question, because some forum said that WebsphereMQ cannot be used by external processes. I just doubt if it is built for the EJB container usage only.

Glogin
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Python Assistance 7 73
thymeleaf natural templating vs JSP 2 69
Where to store the queries for modification of table 4 55
Java SE 8u111  Lot of stuff broke 11 54
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now