aspose file tools*
The moose likes JBoss/WildFly and the fly likes Jboss Remote Connection JMS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Jboss Remote Connection JMS" Watch "Jboss Remote Connection JMS" New topic
Author

Jboss Remote Connection JMS

Azrael Noor
Ranch Hand

Joined: Jul 29, 2010
Posts: 378
I am Confused how to make remote connection in jboss even tutorials are not able to help me out.
I am using jboss v4.2 and netbeans.

i kept server publishing program at one PC say : 192.122.1.1 and it's code is here under:
package com;




I am able to send the message.

Now on remote side i have written following MDB, in an EJB Module :




Following XML's i have written on beans side:
for destination



jboss.xml



1) MDB Deployed Fine
2) Message is moving fine

does more settings required in any xml? please tell
Thankyou


Regards
Azrael Noor
Azrael Noor
Ranch Hand

Joined: Jul 29, 2010
Posts: 378
3 Weeks over no improvement
no connection with JMS using Jboss 4.2,

i am fired!!!

voh!!!

the baddest server i have ever seen.
the baddest tutorials i have ever seen on line.

Use Glassfish!!!
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5778
    
    7

Actually, after looking at your post carefully, I have no idea what it is that you are asking. You said that the MDB deployed just fine and that the messages are moving just fine, so I wasn't quite sure what was not working for you.

Also, your post might be an instance of way too much information. The people who help on this forum are very busy (at least I know I am), and I am not about to dig through many lines of code that may of may not have anything to do with the problem. At times is is best to just state exactly what the issue is (that is, you expected one behavior and instead you got something different) and provide the minimum amount of code to illustrate the code that you think is not working correctly.


JBoss In Action
Azrael Noor
Ranch Hand

Joined: Jul 29, 2010
Posts: 378
Already said ----> ""how to make remote connection"""???

MDB working fine for stand alone application but
what more settings required for remote communication in Jboss 4.2.2.

but one thing is sure that JBOSS is not user friendly admin and settings. BAD Server
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9321
    
109

Azrael Noor wrote:Already said ----> ""how to make remote connection"""???

Remote connection to what?

Azrael Noor wrote:
MDB working fine for stand alone application but
what more settings required for remote communication in Jboss 4.2.2.

You'll have to explain what you mean by remote communication. What exactly are you trying?


[My Blog] [JavaRanch Journal]
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5778
    
    7

Are you asking how does a standalone client application send a message to a message queue so that the MDB can read it? If so, the answer is: pretty much the same way as an application deployed to JBoss AS would do it (which you say you already have working). The key steps are:

1) Look up the messaging server and queues via JNDI (config JNDI to look things up in JBoss AS)
2) Create a message and send it to the queue you looked up in step 1.


Here is an example:
http://docs.jboss.org/jbossas/docs/Server_Configuration_Guide/4/html/JMS_Examples-A_Point_To_Point_Example.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jboss Remote Connection JMS
 
Similar Threads
javax.jms.JMSException: Communication exception.
jms pub sub
MDB: Message id is null Error
mdb doesn't catch messages in point2point
MDB onMessage not invoked