Remote JMS

I'm looking for information on having my application (deployed on SAS9.0) access a remote JMS (deployed on jboss-4.2.0.GA AS using jboss-messaging-1.3.0). More specifically, I want my application to publish messages to a topic (I'm not too concerned about subscribing to a topic yet) that's on theremote JMS Host.

I noticed that SAS Admin console has options for adding a remote JMS Host. However, i'm not even sure that this would be needed. My weak attempt at adding a remote host was unsuccessful. I saw warnings in my SAS logs about not being able to send countless ping request to the JMS provider. On the JBoss side of things...I saw the same countless request coming in, but erroring out. (Let me know if you would like to see either of the warnings/errors). So I dont know I did something wrong on the SAS side of things (most likely), if SAS/JBoss arent compatitble (I highly doubt this), or if I installed JBoss messaging incorreclty (I doubt this too; the installation guide was easy to follow and i ran an installation test which passed).

I'm guessing that I have two options available.

1.Configure SAS9.0 to 'talk' to the JBoss server via the remote JMS host. Once this is configured, I'm guessing my application would use a SAS9.0 JNDI resource to obtain a connection to the default JMS host (which in this case would be my remote JMS host that's on the Jboss server) and then publish messages. With this option, my application does not care if the JMS provider is local or remote.

2.Do nothing to SAS9.0 and write code in my application to access a remote JNDI resouces which is on my JBoss server. I dont think this is the best situation because this tightly couples my application to my JMS provider.

Option 1 seems to make the most sense to me. I'd like to have my application on a different physical server than my messaging provider. As far as technology goes, i'd like tonothave jboss and just use SAS, but I'd like to stick with the free technology.

Anyway, i'm not sure how to implement either solution. I'm currently using the Java EE 5 Tutorial to familiarize myself with JMS. This might contain my answer. I figured i'd post here and hope to receive some feedback while I went thru the tutorial.

Anyway, any direction/links/information provided will be great appeciated.

Thanks in advance,

Chris

[2440 byte] By [channegan1a] at [2007-11-27 9:01:24]
# 1

For option 1, you should use your SAS support contact since this is not a JMS issue.

Option 2 does not tightly couple you to a particular vendor's product. If you use the JMS API directly, you can insulate your app from the underlying JMS implementation.

BTW, if you want to take advantage of advanced features, like XA transactions within your SAS environment, then you may have no option other than #1

axlerunnera at 2007-7-12 21:30:57 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...