Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: How-to send a non-persistent (BUFFERED) message using JMS?

Re: How-to send a non-persistent (BUFFERED) message using JMS?

From: DA Morgan <damorgan_at_psoug.org>
Date: Fri, 23 Jun 2006 09:32:17 -0700
Message-ID: <1151080337.735632@bubbleator.drizzle.com>


rollinpark wrote:
> DA Morgan wrote:

>> rollinpark wrote:
>>> Hi again,
>>>
>>> I think i figure out the problem with the multi consumer. But now when
>>> I try to run the program I get NullPointerException. Even when I run
>>> the original code by bolek. Is it supposed to be error like this? Any
>>> ideas
>>> Thanks
>>>
>>>
>>> rollinpark wrote:
>>>> Hi
>>>>
>>>> Sorry to interrupt. I am trying to test whether I can enqueue using
>>>> IPMessage type using the same code you all have been discussing. I just
>>>> substituted the setAdtPayload part with ipmessage as below
>>>>
>>>>  IPMessageOld ipmessageold = new IPMessageOld(s5, s6, s8, s7, s9, s10,
>>>> s11, i, s14.toCharArray(), abyte0);
>>>>  ipmessageold.setPayload(CLOB.empty_lob());
>>>>  ipmessageold.setAttachment(BLOB.empty_lob());
>>>> adt_msg.setAdtPayload(ipmessageold);
>>>>
>>>> The result is I got this error
>>>> Exception: oracle.jms.AQjmsException: JMS-130: JMS queue cannot be
>>>> multi-conumer enabled
>>>>
>>>> Any ideas how to solve this. Thanks a lot.
>>>>
>>>> bolek wrote:
>>>>> Actually I'd be looking at aq*java :) but yes, I did study them.
>>>>>
>>>>>
>>>>> DA Morgan wrote:
>>>>>> bolek wrote:
>>>>>>> I'm trying to send a BUFFERED (in Oracle terms) message using JMS. I
>>>>>>> would expect the Oracle implementation of JMS to map the JMS
>>>>>>> non-perisstent delivery mode in the Oracle BUFFERED delivery mode.
>>>>>>> However, try as I might my JMS programs always send messages as
>>>>>>> persistent. Why? Is there any way I can send a BUFFERED AQ message
>>>>>>> using JMS? I can soo easily do that using PL/SQL I'm just trying to
>>>>>>> accomplish the same thing from a different programmatic environment.
>>>>>>> This is on Oracle 10.2.1 jars from 10.2.1 as well.
>>>>>>>
>>>>>> Have you looked at the following?
>>>>>>
>>>>>> $ORACLE_HOME/rdbms/demo/aq*.sql
>>>>>>
>>>>>> There are a number of files with good starting code for AQ and JMS.
>>>>>>
>>>>>> HTH
>>>>>> --
>>>>>> Daniel A. Morgan
>>>>>> University of Washington
>>>>>> damorgan_at_x.washington.edu
>>>>>> (replace x with u to respond)
>>>>>> Puget Sound Oracle Users Group
>>>>>> www.psoug.org
>> Stop TOP POSTING!
>>
>> And no idea without seeing the code but it seems to me the error
>> message says it all: Track it down.
>> --
>> Daniel A. Morgan
>> University of Washington
>> damorgan_at_x.washington.edu
>> (replace x with u to respond)
>> Puget Sound Oracle Users Group
>> www.psoug.org

>
>
> Hi,
>
> Sorry about the top posting thing.
> I just want to know whether it is possible to enable multiple consumer
> on AQ jms using java code. I managed to enqueue to a non multiple
> consumer queue but unable to enqueue for multiple consumer queue.
>
> Thanks

It is. AQ uses a publish/subscribe paradigm. Any number of consumers can subscribe to a message.

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Received on Fri Jun 23 2006 - 11:32:17 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US