[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

JBoss MQ / JNDI

Posted on 2004-09-26
2
Medium Priority
?
689 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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
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…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
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

649 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