Solved

JBoss MQ / JNDI

Posted on 2004-09-26
2
662 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
wordappend challenge 8 85
Unexpected HttpURLConnection connection behavior 2 51
Problem to start Neon 20 54
eclipse formatting 6 41
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

758 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

21 Experts available now in Live!

Get 1:1 Help Now