users@glassfish.java.net

Re: JMS how to set maximum number of producers?

From: Sivakumar Thyagarajan <Sivakumar.Thyagarajan_at_Sun.COM>
Date: Tue, 14 Aug 2007 20:03:56 +0530

glassfish_at_javadesktop.org wrote:
> Hi,
>
> How can I set physical destination property like maxNumProducers? I know how to do it through [b]imqadmin[/b] console or with [b]imqcmd[/b]. But than the setting is only valid until i restart the server or restart JMS consumer.
> Is it possible to set this property through API or when creating JMS resource (maybe with jms.resource.property?)??
> I've created jms resource with ant file from Java EE tutorial:

maxNumProducers is a property of the physical destination in the broker and
hence there are multiple ways this can be done
- specifying this as a property while use the broker's administration tools like
imqcmd create dst or imqcmd update dst
http://docs.sun.com/app/docs/doc/819-4467/6n6k98boq?l=en&a=view
http://docs.sun.com/app/docs/doc/819-4467/6n6k98br2?l=en&a=view
Destination property values set via imqcmd create or update dst are valid
throughout the lifecycle of the destination.

- using MQ's JMX provider as shown at
http://docs.sun.com/app/docs/doc/819-7758/6n9mbpmti?a=view

- specifying it as a property while creating the JMS physical destination in
asadmin create-jmsdest

Thanks
--Siva.
>
> <target name="create-topic"
> description="create JMS topic">
> <antcall target="create-jms-resource">
> <param name="jms.restype" value="javax.jms.Topic" />
> <param name="jms.resource.property" value="Name=PhysicalTopic" />
> <param name="jms.resource.name" value="jms/Topic" />
> </antcall>
> </target>
>
> Thanks for help.
>
> Marko
> [Message sent by forum member 'teki' (teki)]
>
> http://forums.java.net/jive/thread.jspa?messageID=230791
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>