Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: How-to send a non-persistent (BUFFERED) message using JMS?
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
Received on Thu Jun 22 2006 - 02:39:21 CDT
![]() |
![]() |