Menu

#501 Connect to external JMS provider

v3.2
closed
nobody
5
2005-09-04
2004-06-07
No

I had a task to connect one JBoss to another via JMS
through the firewall.
I've discovered 2 problems with it.

First I can't specify JMSConnectionFactory - it
hardcoded
to "org.jnp.interfaces.NamingContextFactory" but
because I have firewall I
need "org.jboss.naming.HttpNamingContextFactory". So
a I've added parameter "Factory"
to "org.jboss.jms.jndi.JMSProviderLoader" MBean.

Second, when connection was established, and I
shutdown and then startup JBoss that acts as JMS
server another server won't to reconnect,
because "JMSContainerInvoker" catch only
JMSException, not NamingException that can happened
because I use "org.jboss.naming.ExternalContext" to
connect to remote JMS. So I've added NamingException
processing to "JMSContainerInvoker".

I include all files that I change to attachment file.
Used JBoss 3.2.3 release.

Discussion

  • Sozonnik Andrew

    Sozonnik Andrew - 2004-06-07

    Changed files.

     
  • Sozonnik Andrew

    Sozonnik Andrew - 2004-06-14

    Logged In: YES
    user_id=429063

    Well, as I can see first problem was solved in 3.2.4 by
    passing Properties to JMSProviderLoader. So only reconnect
    to JMS server in case of NamingException is an issue.

     
  • Scott M Stark

    Scott M Stark - 2005-09-04

    Logged In: YES
    user_id=175228

    All issues have been moved to http://jira.jboss.com. Existing
    issues have been moved. New issues will be closed with this
    canned reponse.

     
  • Scott M Stark

    Scott M Stark - 2005-09-04
    • status: open --> closed
     

Log in to post a comment.