[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Changes in our JCA Adapter

clebert.suconic@jboss.com do-not-reply at jboss.com
Fri Apr 24 10:10:57 EDT 2009


There are a couple of Activation properties the user can define, that are just ignored (for "backward compatilibity")

But it happens that this is not really compatible. I would prefer the user having to change its properties to something more suitable that works, than our adaptor pretending it's doing the user asked to be done.


It confused me... and it will certainly confuse the user later.

I would prefer an exception for a non-existent property.

Any thoughts?


Follows the code:



  | /**
  |  * The activation spec
  |  * These properties are set on the MDB ActivactionProperties
  | 
  | ....
  | */
  | public class JBMActivationSpec implements ActivationSpec
  | {
  |    ...
  | 
  | 
  |    <b> This is actual code from JBMActivationSpec: </b>
  | 
  |    //here for backwards compatibilty
  |    public void setUseDLQ(boolean b)
  |    {
  |       
  |    }
  | 
  |    public void setDLQJNDIName(String name)
  |    {
  | 
  |    }
  | 
  |    public void setDLQMaxResent(int maxResent)
  |    {
  | 
  |    }
  | 
  |    public void setProviderAdapterJNDI(String jndi)
  |    {
  | 
  |    }
  | 

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

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



More information about the jboss-dev-forums mailing list