?
Solved

JBoss MQ / JNDI

Posted on 2004-09-26
2
Medium Priority
?
685 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
gdrnec earned 200 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses
Course of the Month13 days, 11 hours left to enroll

800 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