Help. plsql callback of a jms message. Not working

had examples of AQ working in my 10g r2 database using simple queues.
however my problem is I want to use a jms queue. I can enqueue onto it all the time but it never notifies my subscriber and I am drawing a blank. Can anyone help me? Thanks in advance.
Using the example below the data just sits in the queue for ever.
Here is the example assuming installing into oracle user : demo.
begin
dbms_aqadm.create_queue_table
(Queue_table => 'jms_message'
,Queue_payload_type => 'sys.aq$_jms_message'
,multiple_consumers => true
,comment => 'demo queue table'
dbms_aqadm.create_queue
(queue_name => 'jms_message_request',
queue_table => 'jms_message');
dbms_aqadm.start_queue
(queue_name => 'jms_message_request');
end;
drop table demo_data;
drop sequence s_demo_data_id;
create table demo_data
(id number(10)
,stuff varchar2(2000)
create sequence s_demo_data_id;
create or replace procedure plsql_subscriber
(context raw,
reginfo sys.aq$_reg_info,
descr sys.aq$_descriptor,
payload sys.aq$_jms_message,
payloadl number
) is
dequeue_options dbms_aq.dequeue_options_t;
message_properties dbms_aq.message_properties_t;
message_handle RAW(16);
message sys.aq$_jms_message;
v_stuff demo_data.stuff%type;
begin
dequeue_options.msgid := descr.msg_id;
dequeue_options.consumer_name := descr.consumer_name;
dbms_aq.dequeue(queue_name => 'JMS_MESSAGE_REQUEST',
dequeue_options => dequeue_options,
message_properties => message_properties,
payload => message,
msgid => message_handle);
v_stuff:=
'Type: ' || message.get_type ||
' UserId: ' || message.get_userid ||
' AppId: ' || message.get_appid ||
' GroupId: ' || message.get_groupid ||
' GroupSeq: ' || message.get_groupseq;
insert into demo_data values ( s_demo_data_id.nextval,v_stuff);
commit;
end;
-- ADD plsql SUBSCRIBERS AND REGISTER THE QUEUES
prompt -- create subscriber
declare
o_agent sys.aq$_agent;
begin
o_agent:=new sys.aq$_agent
(name => 'SUBSCRIBER1'
,address => null
,protocol=> null
dbms_aqadm.add_subscriber
(queue_name => 'jms_message_request'
,subscriber => o_agent
,rule => null
end;
declare
t_reg_list sys.aq$_reg_info_list;
o_reg_info sys.aq$_reg_info;
begin
-- note as this is a multi consumer q we need the name to be in the format schema.queue:consumer_name
o_reg_info:=new sys.aq$_reg_info
(name =>'demo.jms_message_request:subscriber1'
,namespace =>dbms_aq.namespace_aq -- ie AQ streams
,callback => 'plsql://demo.plsql_subscriber'
,context => hextoraw('FF')
t_reg_list:=new sys.aq$_reg_info_list();
t_reg_list.extend();
t_reg_list(1):=o_reg_info;
/* -- note this suffers from oracle bug : 'count' is a reserved word and use of such a keyword causes this error
-- when using a procedure call in PL/SQL.
-- This is resolved by the fix for Bug 3966513 which will be in 10g Release 2.
-- see below for fix
dbms_aq.register
(reg_list => t_reg_list
,count => 1);
dbms_aq.register(t_reg_list,1);
commit;
end;
DECLARE
id pls_integer;
agent sys.aq$_agent;
map_message sys.aq$_jms_map_message;
message sys.aq$_jms_message;
enqueue_options sys.dbms_aq.enqueue_options_t;
message_properties sys.dbms_aq.message_properties_t;
msgid raw(16);
BEGIN
agent:= new sys.aq$_agent
(name=>'producer' -- name of the producer
,address=>null -- return address
,protocol=>0 -- 0 default
-- Consturct a empty map message object
map_message := sys.aq$_jms_map_message.construct;
-- Shows how to set the JMS header
map_message.set_replyto(agent);
map_message.set_type('myType');
map_message.set_userid('me');
map_message.set_appid('plsql_enq');
map_message.set_groupid('myGroup');
map_message.set_groupseq(1); -- is this messing it up
-- Shows how to set JMS user properties
id := map_message.clear_body(-1);
map_message.set_string(id, 'STRING', 'Hello World!');
map_message.flush(id);
sys.aq$_jms_map_message.clean_all();
message := sys.aq$_jms_message.construct(map_msg=>map_message);
dbms_aq.enqueue(
queue_name => 'jms_message_request',
enqueue_options => enqueue_options,
message_properties => message_properties,
payload => message,
msgid => msgid);
commit;
end;
/

Update:
If I go to network in the dashboard it DOES see the airport but will not let me connect. I keep getting "connection failed." I know I have the right password ect. but no idea why it will not let me join.
Do I need to get the paperclip out and reset the airport???

Similar Messages

  • JMS messaging not working with LCDS and Fiorano

    Hi there,
    Been struggling at this all day with no luck. I have a finished Flex application which uses JMS messaging, and it has worked just fine on my Tomcat server while using ActiveMQ. As soon as I switched to using the JMS provider Fiorano however, my application can no longer use JMS resources. It fails whenever the application tries to subscribe or publish to a JMS topic. I made all the appropriate JMS related changes to messaging-config.xml.
    In the tomcat log, I turned on LCDS debugging and saw this error whenever a publisher or subscriber was trying to start:
    "JMS invocation caught exception: SECURITY_EXCEPTION :: Security exception occurred while trying to perform operation :: CreateSubscriber failed,creation of Non-durable Subscriber NOT allowed."
    I am passing my JMS security credentials via messaging-config.xml AND even tried doing it via the Flex application (setRemoteCredentials(..)). I know they are correct because I have a working Java application with the exact same credentials and other JMS settings working just fine. It seems only the Flex application fails using the same JMS credentials/settings.
    Is there some other file that needs modification other than messaging-config.xml to get a new JMS provider to work? Any idea what may be going on?
    Thanks!

    A large number of messages, or messages large in size, basically total size of all messages can hang things up.  Back up your messages with a GPStore app.  Erase them.  Lower your message character size.  IF it still continues, its the recipients phone.  Both of you should power down, remove SIM, reinsert, power up.

  • Jms is not working properly in clustered environment

    Hi all,
    i am using the application server oc4j 10.1.3.1.0 enterprise edition . my application is standalone application(thick client)
    we are using the jndi.properties as follows ...
    java.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory
    java.naming.provider.url=opmn:ormi://172.16.1.38:6005:group/Security,opmn:ormi://172.16.1.38:6006:deceval_group/Security
    java.naming.security.principal=oc4juser
    java.naming.security.credentials=oc4juser
    oracle.j2ee.rmi.loadBalance=lookup
    we have two application servers in cluster topology as u can see above we have used one instance from one application server and one from another.
    i have seen that for every instance there one jms server. at runtime it is taking one application servers services
    say opmn port 6005 but when the application is connecting to the another application server say opmn 6006
    here jms is not working properly when i send message
    As we have clustered environment message must be propagated all the applications who use above jndi.properties.
    if i keep use only one application server opmn say
    java.naming.provider.url=opmn:ormi://172.16.1.38:6005:group/Security
    then its is working excellently
    please can u provide any solution ASAP
    thanks in advance
    Manu

    Dear Aravindth
      (.*?) means -> Select all contents from where you start and end,
    For Ex. <month>(.*?)</month> then Select for start <month> and end last </month> tag.
    (?) Match zero or one occurrences. Equivalent to {0,1}.
    (*) Match zero or more occurrences. Equivalent to {0,}.
    (+) Match one or more occurrences. Equivalent to {1,}.
    (.) (Dot). Match any character except newline or another Unicode line terminator.
    (.*?) means -> Zero or more times Match any character except newline or another Unicode line terminator + Match zero or more occurrences. Equivalent to {0,}.+Match zero or one occurrences. Equivalent to {0,1}.
    Could you please refere the below cite :
    http://www.javascriptkit.com/jsref/regexp.shtml
    Thanks & Regards
    T.R.Harihara SudhaN

  • Individual iMessage ok but group message not working

    I am suddenly having problems with iMessage.  I can send individual messages but when I try to send a group message, it just hangs and the message eventually completely disappears from my message history.  This is both for new conversations and existing conversations. It makes no sense.  Help!!!

    CORRECTION:
    Mms is not working despite it being on. Friends ARE NOT receiving group messages and I can't send mms to anyone individually.
    Sorry for the confusion. Confused some details between the old 3GS and this 4S

  • IOS Group Messaging not working when Android phones are involved

    Group Messaging not working for me when there are both Iphones and Androids involved. iPhones still using iOS 7 don't seem to be having problems leading me to believe this is an iOS 8 problem. Is there a workaround for this yet, or is this a legitimate bug fix that Apple will have to address?

    Hey geoff_zen,
    Thanks for the question. After reviewing your post, it sounds like you arr having trouble with group messages. I would recommend that you read this article, it may be able to help you resolve or isolate the issue.
    iOS: Troubleshooting Messages
    To resolve issues with sending and receiving iMessages, follow these steps
    Check iMessage system status for current service issues.
    Go to Settings > Messages > Send & Receive and make sure that you registered iMessage with your phone number or Apple ID and that you selected iMessage for use. If the phone number or Apple ID isn't available for use, troubleshoot iMessage registration.
    Open Safari and navigate to www.apple.com to verify data connectivity. If a data connection isn't available, troubleshoot cellular data or a Wi-Fi connection.
    iMessage over cellular data might not be available while you're on a call. Only 3G and faster GSM networks support simultaneous data and voice calls. Learn which network your phone supports. If your network doesn't support simultaneous data and voice calls, go to Settings > Wi-Fi and turn Wi-Fi on to use iMessage while you're on a call.
    Restart your device.
    Tap Settings > General > Reset > Reset Network Settings on your iPhone.
    If you still can't send or receive an iMessage, follow these steps
    Make sure that the contact trying to message you isn't blocked in Settings > Messages > Blocked.
    Make sure that the contact you're trying to send a message to is registered with iMessage.
    If the issue occurs with a specific contact or contacts, back up or forward important messages and delete your current messaging threads with the contact. Create a new message to the contact and try again.
    If the issue occurs with a specific contact or contacts, delete and recreate the contact in the Contacts app. Create a new message to the newly created contact and try again.
    Back up and restore your device as new.
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • HT4972 I am using iphone 3g and it is having currently IOS 4.1 version,till what IOS version can i upgrade ? please help me many of my apps are not working esp whatsapp.

    am using iphone 3g and it is having currently IOS 4.1 version,till what IOS version can i upgrade ? please help me many of my apps are not working esp whatsapp.

    iOS 4.2.1 is the latest version of iOS for the 3G.
    Facebook and Whatsapp both require 4.3 or higher.
    If you want to use those apps, either use the old version that should be in your iTunes library or upgrade the hardware to a 3GS or newer device.

  • [svn:bz-trunk] 16395: Bug: #2621264 [Regression] Small messages not working with NIO-HTTP endpoints in LCSD/trunk.

    Revision: 16395
    Revision: 16395
    Author:   [email protected]
    Date:     2010-06-02 05:00:56 -0700 (Wed, 02 Jun 2010)
    Log Message:
    Bug: #2621264 Small messages not working with NIO-HTTP endpoints in LCSD/trunk.
    QA: Yes
    Doc: No
    Checkintests: Pass
    Details: This is the BlazeDS side of the fix. This wasn't a regression, it probably never worked correctly. So, in the scenario where there's a Producer and a Consumer, and Producer sends a message for the Consumer, there are 2 messages from the server. The ACK message for Producer's send, and the actual message Consumer receives. I found that the ACK message was in small form, but the actual message was not in streaming messages. This was because we never really tried to convert streamed messages into small messages before.
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/endpoints/BaseStreamingHTTPEndpoint.java
        blazeds/trunk/modules/core/src/flex/messaging/endpoints/StreamingAMFEndpoint.java
        blazeds/trunk/modules/core/src/flex/messaging/endpoints/StreamingHTTPEndpoint.java

  • F4 help on Parameter for ddic domain does not work

    Hello,
    I try:
    Parameters:  pa_waers TYPE WAERS.
    WAERS is a ddic data element for currencies and also a  domain with this name exists. The domain WAERS has a check table TCURC.
    When I press F4 for my field PA_WAERS in the Selection Screen, I assume a value help from the check table TCURC.
    I activated and re-generated my coding (as mentioned in the ABAP-Keyword help for "PARAMETERS") but it still does not work.
    Does anybody has a clue why this does this not work.
    The same thing is for a parameter:
    Parameters ..... type CTU_MODE.
    Domain CTU_MODE has value Fields (A, E, B) but also here on my program no F4 help occurs.
    Thanks in advance
    Stefan Berger

    A value table is assigned to a domain.  It becomes a check table when a foreign key relationship is established for a field in a table.  The field uses the data element and the data element uses the domain.
    For example, if you try:
    PARAMETERS: PA_WAERS TYPE EKKO-WAERS.
    You will get the F4 help you are looking for.  If you use tran SE11 and view EKKO, find field WAERS, use tab Entry Help/check and you will see that table TCURC has been established as a check table.  You can use the foreign key button to see the relationship that has been established between EKKO and TCURC.
    Also, domains cannot be used to type a field.  Your reference to CTU_MODE must be referring to a Data Element.  I tried this in a 4.7 system and the F4 works for me.  What version are you using?

  • Please help me. My YouTube app will not work. Every time I open it says 'cannot connect to youtube'. I have searched for help and tried resetting my settings and rebooting my ipad2 but nothing has solved the issue.

    Please help me. My YouTube app will not work. Every time I open it says 'cannot connect to youtube'. I have searched for help and tried resetting my settings and rebooting my ipad2 but nothing has solved the issue.

    Yes, I am connected to the Internet through my wifi. Everything is working fine with the e  eption of youtube.  I have reset all Internet settings and have tried synching to iTunes followed by rebooting.  This is all the advice I have found although none of it has been helpful.
    Has anyone else encountered this problem?

  • HT5012 Update my iPad to ios7.1 and messaging not working  .......suggestions?

    Updated my iPad Air to ios7.1. Messaging not working. Suggestions????

    What happens when you try? Getting an error message?
    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.) No data/files will be erased. http://support.apple.com/kb/ht1430
     Cheers, Tom

  • I have a 3gen iPod message not working any solutions

    I have a 3 gen iPod messages not working any solution

    Start here:
    iOS: Not responding or does not turn on
    You are not really giving ups much information to provide more detailed advice.

  • Anyone's I Message not working this morning?

    Is your I Message not working this morning?

    I've been using mine all morning.
    https://www.apple.com/support/systemstatus/

  • E7 Nokia Messaging not working after anna update

    hi
    nokia messaging not working after anna update. when i
    -choose provider (hotmail/gmail/yahoo...etc)
    -enter username & password
    -click OK to T&C
    -get error message: "cannot enable this service on the device"
    any ideas?

    I'm having a similar issue. It appears to only impact Hotmail accounts. For me though, this happened without updating the OS. The email client is simply failing to connect to the Hotmail interface. Only two possibilities, either Microsoft changed something on the email gateway or Nokia changed something on their end. Either way, it's not working and has been out of commission for the past week. If this is how corporate friends get along, I'd hate to see what happens in a adversarial relationship.

  • JMS messages not being redelivered correctly ..

    Hi Folks
    I am having this weird problem with JMS using workshop/weblogic 8.1 SP2. I am
    using a JMS control from within my pageflow to post a JMS message to a predefined
    JMS queue (created by workshop for every web project . Mine is called testweb.queue.AsyncDispatcher
    as my web project is called testweb). Since pageflows cannot receive asysnchronus
    callbacks , I have not implemented the callback handler for teh JMS control as
    I just need to be able to post from my Pageflow . So far so good.
    I have an MDB listening to testweb.queue.AsyncDispatcher and that basically tries
    to open a URL connection to a thirdparty web site and if connect is not successful
    it should keep trying after every 10 seconds. I have the MDB throw an EJBException
    (to simulate message redelivery) . The problem is that the message is redelivered
    exactly 8 times and then I get the below message on the console :-
    <May 24, 2004 10:18:00 AM EDT> <Error> <WLW> <F1234PiyushK> <cgServer> <ExecuteThread:
    '14' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-001D75CA6E6EB041A149>
    <000000> <onMessageException: java.lang.Exception: Unexpected message format>
    I also have an MDB listening to the error queue testweb.queue.AsyncDispatcher_error
    but its onMessage is never executed .
    I am stuck on this for the last efw days so appreciate any help. Should I post
    a message to the JMS queue directly from a session bean insetad of from a page
    flow ?
    my JMS queue config parameters are mentioned below :-
    Time To Deliver Delivery 5000
    Delivery Mode Override - No Override
    Expiration Policy - Redirect
    Redelivery Delay Override - 5000
    Redelivery Delay Override - 10
    Error Destination - testweb.queue.AsyncDispatcher_error
    The other parameter values are the default values and I have not changed them

    I am having the same problem with a simple WLI timer channel that posts a string message called myMessage every 20 seconds (what I defined in the WLI console).
    This works like a charm.
    In my process.jpd file, the timer subscription is followed by a JMS control, with a sendTextMessage(myMessage) which sends the message to a queue
    @jc:jms
    send-type="queue" send-jndi-name="JmsTimerProcessWeb.queue.AsyncDispatcher"
    receive-type="queue" receive-jndi-name="NightlySiteProcess.queue.AsyncDispatcher"
    connection-factory-jndi-name="weblogic.jws.jms.QueueConnectionFactory"
    All goes well while sending but the messages tell otherwise:
    === Timer sent message = This is the WLI message
    === JMS sent message = This is the WLI message
    <Aug 24, 2005 1:19:30 PM MDT> <Error> <WLW> <000000> <onMessageException: java.lang.Exception: Unexpected message format>
    What does this mean?
    I tried to add a project with a Message-bean, I cannot get the string message. I tried with an ObjectMessage, the same scenario everytime.
    Any suggestions?

  • JMS message not getting delivered

    I'm trying to create a simple MDB with JDeveloper 10.1.3.2.
    I've tried to configure the sender and receiver to use the embedded OC4J message service.
    The code compiles and runs without any errors but the message doesn't seem to get delivered to the MDB.
    How could I debug message delivery in this case?
    What could be causing the message delivery to fail?
    Here's the code from a session bean that sends the message:
    @Resource(mappedName="jms/Topic/testTCF") private ConnectionFactory connectionFactory;
    @Resource(mappedName="jms/Topic/testTopic") private Topic topic;
    public void sendMessage() {
    try {
    Connection con = connectionFactory.createConnection();
    Session session = con.createSession(true, 0);
    MessageProducer producer = session.createProducer(topic);
    TextMessage msg = session.createTextMessage();
    msg.setText("hello");
    producer.send(msg);
    con.close();
    } catch (JMSException e) { }
    MDB:
    @MessageDriven(activationConfig = {
    @ActivationConfigProperty(propertyName="connectionFactoryJndiName", propertyValue="jms/Topic/testTCF"),
    @ActivationConfigProperty(propertyName="destinationName", propertyValue="jms/Topic/testTopic"),
    @ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Topic")
    public class MessageReceiver1Bean implements MessageListener {
    public void onMessage(Message message) {
    System.out.println("hello");
    Message service configuration:
    <jms-server port="9227">
    <queue location="jms/Queue/testQueue" name="queue"/>
    <queue-connection-factory location="jms/Queue/testQCF"/>
    <topic location="jms/Topic/testTopic" name="topic"/>
    <topic-connection-factory location="jms/Topic/testTCF"/>
    <log><file path="../log/jms.log"/></log>
    </jms-server>

              A few questions to better understand your case,
              1) are you using pub/sub (topics) or ptp (queues) ?
              2) are you producing inside a transaction (either use JTA or jms transacted session)
              3) do you use/set TimeToDeliver parameter ?
              4) when you monitor, do you see your messages under pending count ?
              "Rajiv Kadayam" <[email protected]> wrote:
              >
              >I'm having trouble with the 6.1sp5 version of weblogic specifically with
              >the JMS
              >server not quite notifying my message listeners whenever a new message
              >is received
              >in the queue. I can see the messages via the console by way of clicking
              >"monitor
              >all desitinations". I don't see any exceptions at all. This piece of
              >code does
              >work in Weblogic 7 and it did work on weblogic 6.1sp4. I'm not quite
              >using MDBs
              >and my publishers are CORBA services and there are no EJB components
              >involved.
              >
              >The trouble is there are no exceptions and my message listeners are just
              >waiting.
              >any tips or ideas would be greatly appreciated.
              >
              >thanks
              >rajiv
              

Maybe you are looking for

  • Delivery creation

    Hi Gurus, I facing with a Scenario, where the deliveries are creating early than the delivery date assigned in the schedule lines of sales order. Can you guys let me know the possible reasons why the deliveries are creating early? Example, Order rece

  • Still no full retina support, even with the new CC Apps?

    Hello over there! I just bought the full CC abo, after trying PS and Indesign and becoming a fan of the new workflow, that is possible with the upcoming new CC Apps (Muse, Edge Tools...). Now, after getting things right and downloading the needed App

  • Av cable

    i didnt want to buy an apple av cable because it was too much - £15. so instead i looked on the net and i found a website, it showed how to get a substitute av cable. it said that you can use a av to RCA cable or something from your camera. so i got

  • No credit, Deposit questions?

    Hello I have a few questions if anybody can shed some light or experience.... I'm 20 years old and was planning on selecting Verizon as my first (and hopefully last) cellphone provider. The problem is that I have no credit and was looking to order th

  • Are there 4 or 5 CDs for the CS suite?

    I have CS version 1. It came with 5 CDs: 2 for install and 3 for Extras. However, the 3 Extras are Disk 1, Disk 2, & a duplicate of Disk 2. Should there be a Disk 3 for Extras, or should there actually be only 2 CDs and somehow I got a redundant Disk