How to publish a "SYS.AQ$_JMS_MESSAGE" message to a topic (java)

Hi,
I am trying to publish a message (SYS.AQ$_JMS_MESSAGE) to a topic and address it to only one consumer...
Below is the code I use to try to publish the message :
l_queue = a_session.getQueue("AQADM", "TESTTOPIC");
l_message = l_queue.createMessage();
l_recipients.addElement((Object) new AQAgent(a_destinataire, null, 0));
l_properties = l_message.getMessageProperty();
l_properties.setRecipientList(l_recipients);
l_message.setMessageProperty(l_properties);
l_rawPayload = l_message.getRawPayload();
l_content = "<test>fhsdkfhdskjhfsd</test>".getBytes();
l_rawPayload.setStream(l_content, l_content.length);
l_enqOption = new AQEnqueueOption();
l_msgid = l_queue.enqueue(l_enqOption, l_message);
I get an error while trying to set the payload of the message ...
The object "l_rawPayload" is null ...
Does someone have an idea on how to publish JMS message to a topic and address it to one of the consumers ???
Thanks,
romain.

Brajesh,
The reason I asked that was because I was having
trouble subscribing to the messages using JMS API.
This has since been resolved (it worked when I changed
the driver from oci8 to thin !).
Publishing worked, but subscription did not with oci8.
Anyways, you mentioned that you recommend that Java applications
should use JMS API. If so, when should one use Native Java?
Thanks,
Balaji

Similar Messages

  • How to check a listener in SAP for a TIBCO topic (published message)?

    Hi,
       We are using TIBCO  as the middle ware between SAP and Documentum. For the last few days none of the IDOCs sent from TIBCO are coming into SAP.
    The concerned person from TIBCO team said that, "TIBCO is publishing messages on the topic SPC.All4One.IncomingInvoiceStart.Topic but there is no subscriber available to pick up the messages. Could you please check if SAP is a subscriber for this topic?".
    I am not sure how should we check this.
    Any pointers on this would be greatly appreciated.
    Regards
    Barada

    Hi,
    I never worked on TIBCO. But generally listner settings  will be in the middle ware. You need to check the listener settings in the middleware. SAP will be registered as listener in the middleweare.  Please check.
    Thanks and Regards,

  • How to publish Work Manager 6.0 on SMP3.0 ?

    Hi SCN Community,
    I'm trying to get the Work Manager 6.0 running on SMP 3.0 (running on Linux). Currently the events.log within the Agentry folder states, that the Agentry Server was started. But If I look into the Threads*.log I see there might be a problem and I'm also not able to connect to the server.
    Unfortunately I couldn't find any manual or post where someone described the steps to get a work manager running on SMP 3.0. The SMP 3.0 server manual as well as the SDK manual just describing in general how to publish an application to the SMP 3.0. But for Work Manager, there might be some special things to be done ...
    Any help/hints are welcome!
    Here what I did so far:
    Install SMP 3.0 up to SP02 on Suse SLES 11
    Install SAP JCo 2.1.11 (test successful:  java -jar /DVD_HANA/jco/sapjco.jar -stdout )
    Create a new application in SMP with type Agentry and select security profile default
    Install SMP3.0 SDK SP02 (Agentry)
    Setup Eclispe 4.2.2 with Agentry Plugin 7.0.2
    Import a Work Manager 6.0 from Teamshare
    Export Agentry Project as a production version and point to the Agentry.ini which is in folder /opt/SAP/MobilePlatform3/Server/configuration/com.sap.mobile.platform.server.agentry.application
    Include all jar files to the ZIP file
    Import the ZIP file within Agentry application in SMP 3.0
    Create JavaBE.ini in folder /opt/SAP/MobilePlatform3/Server which is copied from WM6.0 server
    Adjust Agentry.ini in folder /opt/SAP/MobilePlatform3/Server/configuration/com.sap.mobile.platform.server.agentry.application  (see section config files)
    Restart Server
    Config files:
    Agentry.ini
    [Server Administration]
    authenticationCertificateStore=AgentryServer.pfx
    authenticationCertificateStorePassword=Rzdrj~SwixoAqzmbVxgi
    authenticationCertificateStorePasswordEncoded=true
    [System Connections]
    2=ag3httpxmlbe.dll
    1=ag3javabe.dll
    [Configuration]
    apnsCertificateDirectory=apnsCertificates
    apnsCertificatePassword=Rzdrj~SwixoAqzmbVxgi
    apnsCertificatePasswordEncoded=True
    apnsEnabled=True
    applicationGlobalsFile=Globals.ini
    applicationStringsFile=ApplicationText.ini
    clientStringNamesFile=ClientStringNames.ini
    clientStringsFile=ClientText.ini
    developmentServer=False
    enableFailedTransactionLogging=True
    enableOverrideFile=Enables.ini
    enableTransactionFailureHandling=False
    failedTransactionFilenameFormat=%{userid} %{transaction_name} %{date} %{time}-%{count}.xml
    failedTransactionsQueue=FailedTransactionsQueue
    gcmEnabled=True
    gcmServerAuthorizationKey=Authorization:key=AIzaSyDi0qWQEewdbmNSV_o9QNtSQrlxPnBXtBM
    gcmServerLink=https://android.googleapis.com/gcm/send
    imagesPath=Application\Development\Images
    localizationPath=
    localizations=
    overrideInfoTableDirectory=OverrideInfoTable
    overrideTypesFile=OverrideTypes.ini
    postedTransactionDirectory=posted
    postedTransactionFile=%{device}.pli
    scriptsPath=Application\Development\Scripts
    spinDocIniFile=
    threadCount=0
    transmitConfigurationFile=TransmitConfigurations.ini
    trustedCertificateStore=
    updateIdleWait=60
    updatePeriod=60
    urlPath=
    [HTTPXML-2]
    authenticationCertificateStore=MY
    authenticationCertificateStorePassword=
    authenticationCertificateStorePasswordEncoded=False
    autoDequote=True
    baseURL=http://localhost:8282
    basicAuthenticationPassword=
    basicAuthenticationPasswordEncoded=False
    basicAuthenticationUserID=
    constantsFile=httpxml_sd.ini
    enableAuthentication=False
    enablePreviousUserAuthentication=False
    httpConnectTimeout=60
    httpReceiveTimeout=300
    httpResolveTimeout=60
    httpSendTimeout=300
    listenOn=
    name=2
    timeZoneName=
    timeout=300
    trustedCertificateStore=
    useSSL=False
    xmlNamespaces=
    [Java-1]
    classPath=./ini4j.jar;./Agentry-v5.jar;./Z_SAPWM-6.0.0.0.jar;./SAPWM-6.0.0.0.jar;./SAPCommon-130881.jar;
    constantsFile=
    deleteSource=True
    enableAuthentication=True
    enablePreviousUserAuthentication=True
    name=Java-1
    outputDirectory=.
    performCompile=True
    printBusinessLogicStackTrace=False
    printStackTrace=False
    scriptsPath=
    serverClass=com.syclo.agentry.Server
    sourceDirectory=.
    timeZoneName=
    [SpinDoc]
    facePath=sql\custom;sql
    facepath=sql\custom;sql
    [TimeZoneAlias]
    Log files:
    events.log
    02/27/2014 18:51:45, 0,         0,         0, Thr 140352349296384, New files opened events.log, messages.log
    02/27/2014 18:51:45, 0,         0,         2, Thr 140352349296384, Agentry Startup
    02/27/2014 18:51:45, 0,        17,        14, Thr 140352349296384, WebSockets Front End v7.0.2.151
    02/27/2014 18:51:45, 0,         1,         4, Thr 140352349296384, Agentry v7.0.2.151
    02/27/2014 18:51:45, 0,        20,       150, Thr 140352200132352, Loading Production application definitions using file "SAPWM-v1-0-0-app"
    02/27/2014 18:51:45, 0,        20,       152, Thr 140352200132352, Loading Production application definitions for default localization
    02/27/2014 18:52:07, 0,        20,       153, Thr 140352200132352, Finished loading Production application definitions for default localization
    02/27/2014 18:52:07, 0,        20,       151, Thr 140352200132352, Finished loading Production application definitions using file "SAPWM-v1-0-0-app"
    02/27/2014 18:52:08, 0,        24,         4, Thr 140352349296384, Loaded 2 (HTTPXML v7.0.2.151) from ag3httpxmlbe.dll
    02/27/2014 18:52:08, 0,        23,         4, Thr 140352349296384, Loaded Java-1 (Java v7.0.2.151) from ag3javabe.dll
    02/27/2014 18:52:08, 0,        20,         4, Thr 140352349296384, Server v7.0.2.151
    02/27/2014 18:52:08, 0,        17,        10, Thr 140352349296384, WebSockets Front End v7.0.2.151
    02/27/2014 18:52:08, 0,         0,         0, Thr 140352349296384, Old log files moved into /opt/SAP/MobilePlatform3/Server/log/agentry/rolled/2014-02-27-185145
    02/27/2014 18:52:08, 0,         0,        23, Thr 140352349296384, Agentry startup is complete.
    Thread-140352200132352.log
    2014/02/27 18:52:07.310: Opening log file
    2014/02/27 18:52:07.310: + Thread=140352200132352
    2014/02/27 18:52:07.310:   + Server=Agentry
    2014/02/27 18:52:07.310:     + Load Loop=Production
    2014/02/27 18:52:07.310:       + AppIniFile=SAPWM-v1-0-0-app
    2014/02/27 18:52:07.310:         + Module=PM
    2014/02/27 18:52:07.310:           + Service Event=WorkOrderPushHTTPListener
    2014/02/27 18:52:07.310:             Failed to load definition for Service Event 'WorkOrderPushHTTPListener'
    2014/02/27 18:52:07.310:           + Service Event=WorkorderPushByOperationHTTPListener
    2014/02/27 18:52:07.310:             Failed to load definition for Service Event 'WorkorderPushByOperationHTTPListener'
    2014/02/27 18:52:07.311:           + Service Event=WorkorderPushBySubOperationHTTPListener
    2014/02/27 18:52:07.311:             Failed to load definition for Service Event 'WorkorderPushBySubOperationHTTPListener'
    2014/02/27 18:52:07.311:           + Service Event=BDSDocumentPushHTTPListener
    2014/02/27 18:52:07.311:             Failed to load definition for Service Event 'BDSDocumentPushHTTPListener'
    2014/02/27 18:52:07.311:           + Service Event=DMSDocumentPushHTTPListener
    2014/02/27 18:52:07.311:             Failed to load definition for Service Event 'DMSDocumentPushHTTPListener'
    2014/02/27 18:52:07.311:           + Service Event=WorkorderPushByMRSHTTPListener
    2014/02/27 18:52:07.311:             Failed to load definition for Service Event 'WorkorderPushByMRSHTTPListener'
    When trying to connect with the WPF client I get a communication error (14) and nothing is shown in the log files ..
    Best Regards,
    Michel

    Jason,
    deleting the service events was helpful regarding the error shown in the Thread log file. After publishing a new version the server seems to start, but has no activity to SAP. I expected at least an initial logon to the SAP system using the service user.
    Current log files are:
    events.log:
    02/28/2014 06:16:36, 0,         0,         0, Thr 140136552040192, New files opened events.log, messages.log
    02/28/2014 06:16:36, 0,         0,         2, Thr 140136552040192, Agentry Startup
    02/28/2014 06:16:36, 0,        17,        14, Thr 140136552040192, WebSockets Front End v7.0.2.151
    02/28/2014 06:16:36, 0,         1,         4, Thr 140136552040192, Agentry v7.0.2.151
    02/28/2014 06:16:36, 0,        20,       150, Thr 140136413689600, Loading Production application definitions using file "SAPWM-v1-1-0-app"
    02/28/2014 06:16:36, 0,        20,       152, Thr 140136413689600, Loading Production application definitions for default localization
    02/28/2014 06:17:06, 0,        20,       153, Thr 140136413689600, Finished loading Production application definitions for default localization
    02/28/2014 06:17:06, 0,        20,       151, Thr 140136413689600, Finished loading Production application definitions using file "SAPWM-v1-1-0-app"
    02/28/2014 06:17:06, 0,        24,         4, Thr 140136552040192, Loaded HTTP-XML Back End (HTTPXML v7.0.2.151) from ag3httpxmlbe.dll
    02/28/2014 06:17:06, 0,        23,         4, Thr 140136552040192, Loaded Java-1 (Java v7.0.2.151) from ag3javabe.dll
    02/28/2014 06:17:06, 0,        20,         4, Thr 140136552040192, Server v7.0.2.151
    02/28/2014 06:17:07, 0,        17,        10, Thr 140136552040192, WebSockets Front End v7.0.2.151
    02/28/2014 06:17:07, 0,         0,         0, Thr 140136552040192, Old log files moved into /opt/SAP/MobilePlatform3/Server/log/agentry/rolled/2014-02-28-061636
    02/28/2014 06:17:07, 0,         0,        23, Thr 140136552040192, Agentry startup is complete.
    messages.log is empty and Thread*.log doesn't exist anymore.
    Any further idea how to get this up and running?
    Best Regards,
    Michel

  • How to Publish on the Web a PDF document in Reading mode only

    Hello,
    I'm planning to post on my web site my manuscript in PDF format. I would like to make it available in a reading mode only.. I wonder if ADOBE LIVECYCLE Rights Management would allow me to do so in a safe manner. What would be the cost?
    Thanks.
    PATEGA

    Thank you for your reply.
    De : Test Screen Name 
    Envoyé : 15 septembre 2014 05:51
    À : Gaétan Patenaude
    Objet :  How to Publish on the Web a PDF document in Reading mode only
    How to Publish on the Web a PDF document in Reading mode only
    created by Test Screen Name <https://forums.adobe.com/people/TestScreenName>  in Adobe PDF Pack - View the full discussion <https://forums.adobe.com/message/6730511#6730511>

  • How to Publish Pages to WebServer from DreamWeaver

    How to Publish Pages to Webserver from Dreamweaver.. Please
    Advice..
    Kinda forget :(
    Or shall i use FTP software, which one is good?

    Which part of the F1 Help files are you not following?
    Really. It's all
    right there under FTP.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "owaisrauf" <[email protected]> wrote in
    message
    news:ek1npn$pbc$[email protected]..
    > Can you explain me how to do it..
    > I have gone to SITE and then Manage Sites, and then
    clicked New.
    > And put FTP information of the Server.
    > But how shall i transfer files.
    > PLease explain in detail i will appreciate it
    >

  • How to publish PSE slideshow to the web

    I can't seem to figure how to publish the slideshow I created in PSE 7; I have a website, and want to post the show on it. Are my only options to save it as a .wmv file or a .pdf?? I can get the .pdf to publish, but when I try to publish the .wmv to my site, all that pops up is the black Media Viewer box and an error message that says the file cannot be found.
    Any idea what I may be doing wrong?

    The problem is that you are using formats that are not suitable. For some people, a pdf is always going to show as just a download (and that will put plenty of stress on your bandwidth if lots of friends are downloading those slideshows). The WMV file is also not quite the way to do it. The better solution is to create a so-called online album, which is really a flash slideshow, and upload that to the server of your choice.

  • How to publish XML document whose source is stored in clob column

    I have to create simple application:
    in one table are stored some information about XML documents (date of creation, etc.) and the document source itself in one (unfortunatelly clob type) column.
    The point is to anable users finding document(s) and viewing it.
    Using forms I can search and display information about documents. But I have no idea how to publish XML document whose source is stored in clob column.
    I am using Oracle Portal 3.0 on NT.
    Thanks in advance.

    Hi Sergio,
    This link might be helpful:
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/apex/r31/apex31nf/apex31blob.htm
    Also refer the BLOB Download Format Mask :
    {message:id=9716335}
    Here I have given the format mask for APEX 4.0, which will slightly differ for 3.2.1 and proposed changes
    in the format mask are:
    1) Format Mask: DOWNLOAD
    2) Content Disposition: Inline
    This will be achieved with it:
    >
    But now, my user would like to know if it´s possible that APEX application can OPEN some of these files stored on this BLOB column WITHOUT download it.
    My user would like to see a hiperlink (or button) that, if pressed/acessed, can open a new page (or a page inside application) with the document. He doesn´t need to edit this oppened file. He only wants to see it.
    >
    Hope it helps!
    Regards,
    Kiran

  • How to publish policies and resources from Regsitry Console

    How the publish the policies and resources from Registry Console?.This can be done from Business Service Console.
    How we can use policies and resources publish in Regsitry.

    Hi thanks for ur code..
    It will read the error messges in tomcat console which is thrown by the jsp.
    But it wont print the compile time error msgs.
    Error messags are below...
    E:\TestJava\TimeTest.java:10: incompatible types
    found : java.lang.String
    required: int
    int year="2006";
    ^
    1 error
    My Exception is...:java.lang.Exception
    at org.apache.jsp.CompileJava_jsp._jspService(org.apache.jsp.CompileJava
    _jsp:58)
    ie, i am able to print the error msgs in browser starts with "My Exception is...:java.lang.Exception....".
    But
    E:\TestJava\TimeTest.java:10: incompatible types
    found : java.lang.String
    required: int
    int year="2006";
    ^
    1 error
    this error msgs are not printed in the browser...
    Is is possible to print the compile time error in browser using jsp?

  • My iPad screen is stuck on an alert message telling me that I have not backed up to iCloud in 5 weeks. How do I get pass this alert message?

    My iPad screen is stuck on an alert message that is informing me that I have not backed up to iCloud in 5 weeks. How do I get pass this alert message.

    I have been dealing with this problem since upgrading to ios 6.  I have an old ipod touch that is still running ios 5.? that backs up daily with no problem whatsoever.  I have attemped every solution posted on these help boards (i.e. deleting accounts, turning off all apps from back-up, restarting device, changing routers, attempting back-ups through different wifi spots) sometimes one or a combination of these band-aid fixes will work for a day or two, then suddenly the ipad (version 3) will simply stop backing up, and I will spend hours of frustration going through all the tedious fixes.  All the while my old ipod touch running ios 5 backs up daily with no problem whatsoever.  I have called Apple support and they seemed surprised that this is a problem and offer no real solution whatsoever.
    Until Apple gets their head out of the sand on this one, and actually fixes the obvious bug that exists is ios 6 this problem will continue and will not be resolved.

  • How to add new fields in Reduced message ( in BD53 )

    Hi Experts,
    How to add new fields in Reduced message ( in BD53 ), when the required field iis available in Table or Structure and need to be added in BD53 so that we can ALE.
    Thanks,
    Ninad

    Hello,
    I think of something like:
    First, you create extension, with transaction WE30.
    Then, reduce your idoc, your extension should also be proposed.
    Do not forget to add this extension in outbound we82, and/or we57 in inbound, and WE20, and find BTE or exit to populate extension.
    regards.
    F.S.

  • How to publish big size repot by BI Publisher?

    Hi all,
    Our customer wants to know how to publish big size report by BI Publisher.
    Because they have performance problem with Excel Analyzer, which is used for reporting perpose.
    Their existing reports are based on Excel. So, they wants to design and report by Excel Interface.
    I'd like to know how to publish the big size report by BI Publisher?
    We want to know customer case and explain it our customer.
    Thank you,
    Wataru

    Nice document.
    Also if you want to look at it from concurrent program log itself, then:
    In the application developer responsibility
    -> Concurrent
    -> Program
    -> Define
    -> Query for short code
    -> Click on Parameters
    ->Define the following parameter (if not existing)
    Parameter Name=P_DEBUG_FLAG, attach any valueset that is YES_NO valueset.
    Give
    Default value=Y
    Token=DebugFlag
    Save.
    Next time you run the Concurrent Program, the log file contains the sql executions similar to xdo logs.
    By
    Vamsi

  • How to publish crystal report designed using SAP Add-on toolbar

    we have installed the crystal report designer V10 and the SAP add-on on the desktop.
    we have designed a formatted report in crystal report designer using an existing BW report that was created using Bex query designer. After this we saved the crystal report back in BW to a role.
    We have not published the report to crystal enterprise server, since the connection to same is not in place.
    We would like to know how to publish this report in Enterprise portal ?
    Can we bypass publishing the report to crystal enterprise server and publish the report on browser or through EP ?

    hi
    Check on this help page if it can help you
    http://help.sap.com/saphelp_erp2004/helpdata/en/f1/0a569ae09411d2acb90000e829fbfe/frameset.htm
    REgards
    Alain

  • How do I get email and text message notifications when my phone is locked?

    How do I get email and text message banner notifications on my iphone when the phone is locked? When I had iOS 6 I could get notifications with sound and banner. Now that I have iOS7 I can't see notificaitons when the phone is locked.

    See if this support document about Notifications helps. http://support.apple.com/kb/HT3576

  • HT201269 How do I transfer my SMS text messages from one Iphone to another or to my Macbook Pro?

    How do I transfer my SMS text messages from one Iphone to another or to my Macbook Pro?

    Or you can be guided bt this 'officail' Apple support document:
    http://support.apple.com/kb/PH4441
    Ciao.
    Csound 1 greetings:  Nothing wrong with a little plagiarism.

  • TS2755 how do i track the number of messages sent? i am on a limited sms plan so i want to know how many messages was i able to send in a month. is there an (free) app for it??

    how do i track the number of messages sent? i am on a limited sms plan so i want to know how many messages was i able to send in a month. is there an (free) app for it??

    Doubtful unless your carrier has an app that includes the option.
    My carrier has an app that I can check current usage and past usage with a previous bill and pay the bill.

Maybe you are looking for

  • Is there a major flaw with Iphoto in regards to organizing and backing up?

    Is there a major flaw with Iphoto in regards to organizing and backing up? And how should I proceed?? Here is my story. I have moved roughly 15,000 photos from 7 computers (4 PCs and 3 Macs - basically everyone's computer in the family) onto one exte

  • How do I move movies to an external drive?

    I have an external drive and would like to move all of my IMovie projects and event library to it and continue to only use my external drive for them. I am not sure how to do that, Could some one help please? I thank you in advance

  • How can I get rid of error 9705 on iMac with Firefox update, using Musicnotes site

    I have been downloading successfully from musicnotes.com on this computer until the Firefox update. Help from that site took me through a whole process to be able to print out my purchase, which ended in the error message 9705. AppleCare says it is a

  • ReadyNAS Duo and Time Machine

    Since i upgraded my MacBook Pro with the latest OS X 10.6.8 my ReadyNas is no longer visible in Time Machine. In the Finder i see my ReadyNas, but Time Machine does not list the drive for backup. What could be the problem, solution?

  • Standby db ORA-10567:

    Hi, We have data guard setup in 11.2 on aix.We got the following errors in standby db. Media Recovery Log +P10_ARCHGROUP01/P10/arch/arch_1_1763_815128087.arc Media Recovery Log +P10_ARCHGROUP01/P10/arch/arch_1_1764_815128087.arc Mon Jun 03 13:10:49 2