[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: [JBMESSAGING-1367] Create JCA resource adapter for JBM 2

ataylor do-not-reply at jboss.com
Tue Feb 17 14:13:27 EST 2009


he's a summary of what i've found so far.

JBMResourceAdapter:setup(). I'm not sure we need the constructors that use discoveryaddress, discoverygroupname etc. We should always fall back to a default something like this:


  | else
  |       {
  |          HashMap<String, Object> params = new HashMap<String, Object>();
  |          params.put("jbm.remoting.invm.serverid", 0);
  |          factory = new JBossConnectionFactory(new TransportConfiguration("org.jboss.messaging.core.remoting.impl.invm.InVMConnectorFactory", params));
  |       }
  | 

Since we always use the local transport it should always be the invm transport and the default server id is 0.

Things like block on acknowledge should also be supported and if not we gfall back to the defaults in ClientSessionFactoryImpl.

There was a slight issue at JBMMessageHandler line 387 where getTransactionTimeout() was returning null and throwing a NPE. We should change this to Integer and only set the tx timeout if not null.

 

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4210817#4210817

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4210817



More information about the jboss-dev-forums mailing list