Quantcast

Re: [activemq-dev] [PATCH] module web: WebClient

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [activemq-dev] [PATCH] module web: WebClient

jstrachan
Patch applied, many thanks.


On 8 Jun 2005, at 09:44, Stephane Bailliez wrote:

> WebClient raises a NPE if you do not send a message before trying  
> to consume them as the jms session is not initialized (via  
> getSession).
>
>
>
> Index: WebClient.java
> ===================================================================
> --- WebClient.java    (revision 268)
> +++ WebClient.java    (working copy)
> @@ -196,7 +196,7 @@
>          if (destination instanceof Topic) {
>              MessageConsumer consumer = (MessageConsumer)  
> topicConsumers.get(destination);
>              if (consumer == null) {
> -                consumer = session.createConsumer(destination);
> +                consumer = getSession().createConsumer(destination);
>                  topicConsumers.put(destination, consumer);
>              }
>              return consumer;
>


James
-------
http://radio.weblogs.com/0112098/

Loading...