You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by Jason Dillon <ja...@planet57.com> on 2007/04/10 23:33:49 UTC

RA properties

I was just looking at:

     http://activemq.apache.org/resource-adapter-properties.html

Which shows a bunch of configuration values for the resource- 
adapter... but then I looked at the META-INF/ra.xml and I only see  
config-property elements for:

  * ServerUrl
  * UserNAme
  * Password
  * Clientid
  * UseInboundSession
  * BrokerXmlConfig

These, which are on the above page, are not actually configurable via  
the RA:

  * AllPrefetchValues
  * DurableTopicPrefetch
  * QueuePrefetch
  * InputStreamPrefetch
  * TopicPrefetch
  * InitialRedeliveryDelay
  * MaximumRedeliveries
  * RedeliveryBackOffMultiplier
  * RedeliveryUseExponentialBackOff

How are these settings supposed to be configured in a RA if there is  
no config-property for them?

Did someone forget to update the ra.xml when these were added... or  
am I missing some important bit about how to configure resource- 
adapters?

--jason

Re: RA properties

Posted by Jason Dillon <ja...@planet57.com>.
On Aug 3, 2007, at 5:16 PM, David Jencks wrote:
>>> Is there any reason why the extra resource adapter configuration
>>> properties are not properly defined?
>>
>> only required properties are required in the xml.
>>
> that's not my understanding of the j2ca spec.  Do you know of a  
> javaee app server that only uses the ra.xml and not a vendor plan?

It was my understanding that the ra.xml should list all of the  
configurable bits, so that information could be presented to the user  
in a generic ra configuration view to tweak all of the goodies.  Not  
sure how one might do that unless the ra.xml defined all of its  
configurable bits.

Is there a reason why you don't want to add them?  Seems like a good  
idea to me to put them in there... but who knows I have been wrong  
before :-P

--jason

Re: RA properties

Posted by David Jencks <da...@yahoo.com>.
On Apr 13, 2007, at 11:47 AM, Hiram Chirino wrote:

> Hi Jason,
>
> On 4/12/07, Jason Dillon <ja...@planet57.com> wrote:
>> I'm confused... why would folks change the ra.xml... this is supposed
>> to define the resource adapter and how it can be configured via
>> vendor configuration files.  I would not expect users to need to
>> change the file bundled in the rar itself.
>>
>
> I can't comment why the J2EE spec choose to recommend folks package
> the component implementation and configuration together in the same
> rar, but in general this problem even applies to J2EE jars.
>
>> Is there any reason why the extra resource adapter configuration
>> properties are not properly defined?
>>
>
> only required properties are required in the xml.
>
that's not my understanding of the j2ca spec.  Do you know of a  
javaee app server that only uses the ra.xml and not a vendor plan?

>> My guess is that many users don't need that extra configuration or
>> are not using standard J2EE configuration (ie. just using spring  
>> etc).
>>
>
> Um. yes.. but still fail to see why it's a bug.  the connector spec
> states that you only need to configured required properties via the
> RA.xml.. and we have done that.
>
Again, that's not what I think it says.  I think the ra.xml is  
supposed to be the description of what you can possibly configure in  
the resource adapter, with descriptions and optional default   
values.  It's the only documentation you should need to produce a  
fully configured plan for a resource adapter instance.

The unusual feature of most ra.xmls in comparison to say a web.xml is  
that you really need specific info about the instance and can't go by  
what a generic ra.xml says, e.g. where is the database you're trying  
to talk to?  with web apps and ejb apps its usually possible to guess  
reasonable defaults.

thanks
david jencks

>> --jason
>>
>>
>> On Apr 12, 2007, at 4:14 PM, Hiram Chirino wrote:
>>
>> > Hi Jason,
>> >
>> > Just because the attribute is not in the xml file does not mean  
>> that
>> > it's not supported.  The ra.xml is SUPPOSED to be customized for  
>> each
>> > deployment.  We just provide a default one to make it easier for
>> > folks.
>> >
>> > On 4/10/07, Jason Dillon <ja...@planet57.com> wrote:
>> >> FYI, I've created an issue for G which lists the missing values  
>> (and
>> >> some which are on the class, but no in the docs):
>> >>
>> >>   * https://issues.apache.org/jira/browse/GERONIMO-3089
>> >>
>> >> And I created an issue for AMQ to the same affect here:
>> >>
>> >>   * http://issues.apache.org/activemq/browse/AMQ-1225
>> >>
>> >> --jason
>> >>
>> >>
>> >> On Apr 10, 2007, at 2:33 PM, Jason Dillon wrote:
>> >>
>> >> > I was just looking at:
>> >> >
>> >> >     http://activemq.apache.org/resource-adapter-properties.html
>> >> >
>> >> > Which shows a bunch of configuration values for the resource-
>> >> > adapter... but then I looked at the META-INF/ra.xml and I  
>> only see
>> >> > config-property elements for:
>> >> >
>> >> >  * ServerUrl
>> >> >  * UserNAme
>> >> >  * Password
>> >> >  * Clientid
>> >> >  * UseInboundSession
>> >> >  * BrokerXmlConfig
>> >> >
>> >> > These, which are on the above page, are not actually  
>> configurable
>> >> > via the RA:
>> >> >
>> >> >  * AllPrefetchValues
>> >> >  * DurableTopicPrefetch
>> >> >  * QueuePrefetch
>> >> >  * InputStreamPrefetch
>> >> >  * TopicPrefetch
>> >> >  * InitialRedeliveryDelay
>> >> >  * MaximumRedeliveries
>> >> >  * RedeliveryBackOffMultiplier
>> >> >  * RedeliveryUseExponentialBackOff
>> >> >
>> >> > How are these settings supposed to be configured in a RA if  
>> there
>> >> > is no config-property for them?
>> >> >
>> >> > Did someone forget to update the ra.xml when these were  
>> added... or
>> >> > am I missing some important bit about how to configure resource-
>> >> > adapters?
>> >> >
>> >> > --jason
>> >>
>> >>
>> >
>> >
>> > --
>> > Regards,
>> > Hiram
>> >
>> > Blog: http://hiramchirino.com
>>
>>
>
>
> -- 
> Regards,
> Hiram
>
> Blog: http://hiramchirino.com


Re: RA properties

Posted by Hiram Chirino <hi...@hiramchirino.com>.
Hi Jason,

On 4/12/07, Jason Dillon <ja...@planet57.com> wrote:
> I'm confused... why would folks change the ra.xml... this is supposed
> to define the resource adapter and how it can be configured via
> vendor configuration files.  I would not expect users to need to
> change the file bundled in the rar itself.
>

I can't comment why the J2EE spec choose to recommend folks package
the component implementation and configuration together in the same
rar, but in general this problem even applies to J2EE jars.

> Is there any reason why the extra resource adapter configuration
> properties are not properly defined?
>

only required properties are required in the xml.

> My guess is that many users don't need that extra configuration or
> are not using standard J2EE configuration (ie. just using spring etc).
>

Um. yes.. but still fail to see why it's a bug.  the connector spec
states that you only need to configured required properties via the
RA.xml.. and we have done that.

> --jason
>
>
> On Apr 12, 2007, at 4:14 PM, Hiram Chirino wrote:
>
> > Hi Jason,
> >
> > Just because the attribute is not in the xml file does not mean that
> > it's not supported.  The ra.xml is SUPPOSED to be customized for each
> > deployment.  We just provide a default one to make it easier for
> > folks.
> >
> > On 4/10/07, Jason Dillon <ja...@planet57.com> wrote:
> >> FYI, I've created an issue for G which lists the missing values (and
> >> some which are on the class, but no in the docs):
> >>
> >>   * https://issues.apache.org/jira/browse/GERONIMO-3089
> >>
> >> And I created an issue for AMQ to the same affect here:
> >>
> >>   * http://issues.apache.org/activemq/browse/AMQ-1225
> >>
> >> --jason
> >>
> >>
> >> On Apr 10, 2007, at 2:33 PM, Jason Dillon wrote:
> >>
> >> > I was just looking at:
> >> >
> >> >     http://activemq.apache.org/resource-adapter-properties.html
> >> >
> >> > Which shows a bunch of configuration values for the resource-
> >> > adapter... but then I looked at the META-INF/ra.xml and I only see
> >> > config-property elements for:
> >> >
> >> >  * ServerUrl
> >> >  * UserNAme
> >> >  * Password
> >> >  * Clientid
> >> >  * UseInboundSession
> >> >  * BrokerXmlConfig
> >> >
> >> > These, which are on the above page, are not actually configurable
> >> > via the RA:
> >> >
> >> >  * AllPrefetchValues
> >> >  * DurableTopicPrefetch
> >> >  * QueuePrefetch
> >> >  * InputStreamPrefetch
> >> >  * TopicPrefetch
> >> >  * InitialRedeliveryDelay
> >> >  * MaximumRedeliveries
> >> >  * RedeliveryBackOffMultiplier
> >> >  * RedeliveryUseExponentialBackOff
> >> >
> >> > How are these settings supposed to be configured in a RA if there
> >> > is no config-property for them?
> >> >
> >> > Did someone forget to update the ra.xml when these were added... or
> >> > am I missing some important bit about how to configure resource-
> >> > adapters?
> >> >
> >> > --jason
> >>
> >>
> >
> >
> > --
> > Regards,
> > Hiram
> >
> > Blog: http://hiramchirino.com
>
>


-- 
Regards,
Hiram

Blog: http://hiramchirino.com

Re: RA properties

Posted by Jason Dillon <ja...@planet57.com>.
I'm confused... why would folks change the ra.xml... this is supposed  
to define the resource adapter and how it can be configured via  
vendor configuration files.  I would not expect users to need to  
change the file bundled in the rar itself.

Is there any reason why the extra resource adapter configuration  
properties are not properly defined?

My guess is that many users don't need that extra configuration or  
are not using standard J2EE configuration (ie. just using spring etc).

--jason


On Apr 12, 2007, at 4:14 PM, Hiram Chirino wrote:

> Hi Jason,
>
> Just because the attribute is not in the xml file does not mean that
> it's not supported.  The ra.xml is SUPPOSED to be customized for each
> deployment.  We just provide a default one to make it easier for
> folks.
>
> On 4/10/07, Jason Dillon <ja...@planet57.com> wrote:
>> FYI, I've created an issue for G which lists the missing values (and
>> some which are on the class, but no in the docs):
>>
>>   * https://issues.apache.org/jira/browse/GERONIMO-3089
>>
>> And I created an issue for AMQ to the same affect here:
>>
>>   * http://issues.apache.org/activemq/browse/AMQ-1225
>>
>> --jason
>>
>>
>> On Apr 10, 2007, at 2:33 PM, Jason Dillon wrote:
>>
>> > I was just looking at:
>> >
>> >     http://activemq.apache.org/resource-adapter-properties.html
>> >
>> > Which shows a bunch of configuration values for the resource-
>> > adapter... but then I looked at the META-INF/ra.xml and I only see
>> > config-property elements for:
>> >
>> >  * ServerUrl
>> >  * UserNAme
>> >  * Password
>> >  * Clientid
>> >  * UseInboundSession
>> >  * BrokerXmlConfig
>> >
>> > These, which are on the above page, are not actually configurable
>> > via the RA:
>> >
>> >  * AllPrefetchValues
>> >  * DurableTopicPrefetch
>> >  * QueuePrefetch
>> >  * InputStreamPrefetch
>> >  * TopicPrefetch
>> >  * InitialRedeliveryDelay
>> >  * MaximumRedeliveries
>> >  * RedeliveryBackOffMultiplier
>> >  * RedeliveryUseExponentialBackOff
>> >
>> > How are these settings supposed to be configured in a RA if there
>> > is no config-property for them?
>> >
>> > Did someone forget to update the ra.xml when these were added... or
>> > am I missing some important bit about how to configure resource-
>> > adapters?
>> >
>> > --jason
>>
>>
>
>
> -- 
> Regards,
> Hiram
>
> Blog: http://hiramchirino.com


Re: RA properties

Posted by Hiram Chirino <hi...@hiramchirino.com>.
Hi Jason,

Just because the attribute is not in the xml file does not mean that
it's not supported.  The ra.xml is SUPPOSED to be customized for each
deployment.  We just provide a default one to make it easier for
folks.

On 4/10/07, Jason Dillon <ja...@planet57.com> wrote:
> FYI, I've created an issue for G which lists the missing values (and
> some which are on the class, but no in the docs):
>
>   * https://issues.apache.org/jira/browse/GERONIMO-3089
>
> And I created an issue for AMQ to the same affect here:
>
>   * http://issues.apache.org/activemq/browse/AMQ-1225
>
> --jason
>
>
> On Apr 10, 2007, at 2:33 PM, Jason Dillon wrote:
>
> > I was just looking at:
> >
> >     http://activemq.apache.org/resource-adapter-properties.html
> >
> > Which shows a bunch of configuration values for the resource-
> > adapter... but then I looked at the META-INF/ra.xml and I only see
> > config-property elements for:
> >
> >  * ServerUrl
> >  * UserNAme
> >  * Password
> >  * Clientid
> >  * UseInboundSession
> >  * BrokerXmlConfig
> >
> > These, which are on the above page, are not actually configurable
> > via the RA:
> >
> >  * AllPrefetchValues
> >  * DurableTopicPrefetch
> >  * QueuePrefetch
> >  * InputStreamPrefetch
> >  * TopicPrefetch
> >  * InitialRedeliveryDelay
> >  * MaximumRedeliveries
> >  * RedeliveryBackOffMultiplier
> >  * RedeliveryUseExponentialBackOff
> >
> > How are these settings supposed to be configured in a RA if there
> > is no config-property for them?
> >
> > Did someone forget to update the ra.xml when these were added... or
> > am I missing some important bit about how to configure resource-
> > adapters?
> >
> > --jason
>
>


-- 
Regards,
Hiram

Blog: http://hiramchirino.com

Re: RA properties

Posted by Jason Dillon <ja...@planet57.com>.
FYI, I've created an issue for G which lists the missing values (and  
some which are on the class, but no in the docs):

  * https://issues.apache.org/jira/browse/GERONIMO-3089

And I created an issue for AMQ to the same affect here:

  * http://issues.apache.org/activemq/browse/AMQ-1225

--jason


On Apr 10, 2007, at 2:33 PM, Jason Dillon wrote:

> I was just looking at:
>
>     http://activemq.apache.org/resource-adapter-properties.html
>
> Which shows a bunch of configuration values for the resource- 
> adapter... but then I looked at the META-INF/ra.xml and I only see  
> config-property elements for:
>
>  * ServerUrl
>  * UserNAme
>  * Password
>  * Clientid
>  * UseInboundSession
>  * BrokerXmlConfig
>
> These, which are on the above page, are not actually configurable  
> via the RA:
>
>  * AllPrefetchValues
>  * DurableTopicPrefetch
>  * QueuePrefetch
>  * InputStreamPrefetch
>  * TopicPrefetch
>  * InitialRedeliveryDelay
>  * MaximumRedeliveries
>  * RedeliveryBackOffMultiplier
>  * RedeliveryUseExponentialBackOff
>
> How are these settings supposed to be configured in a RA if there  
> is no config-property for them?
>
> Did someone forget to update the ra.xml when these were added... or  
> am I missing some important bit about how to configure resource- 
> adapters?
>
> --jason