Get the JMS Queue property in BPEL

Hi,
Does anyone have idea on how to get the value of JMSXDeliveryCount which is a prorerty of JMS queue in BPEL. I want that value in the bpel flow to control the Flow on the basis of it. Plz suggest its urgent.
TIA.
Best Regards,
Amit Jain

Hi,
I have got the solution to above issue.
Once my JMS adapter picks the message, it passed the message to BPEL through mediator.
In Mediator assign, by using $in.property.jca.jms.JMSProperty.JMSXDeliveryCount I got the value.
Thanks & Regards,
Amit Jain

Similar Messages

  • How to read the messages in the JMS Queue using JMX

    Hi,
              I want to read messages in the JMS queue using JMX. I was able to read using QueueBrowser but want to modify priority of the messages using JMX.
              I tried to use JMSDestinationRuntimeMBean but it does not allow us to read messages unless we pass the message Id. Is there any way that I can get all the messages in the queue.
              I am using Weblogic 8.1 SP4
              Can someone please help me in this regard.
              Thanks,
              Kiran.
              Edited by KGudipati at 10/22/2007 1:22 AM

    Hi,
    As far as i know, JMS Object Messages is not supported by XI JMS adapter.
    you need to have the JMS provider to transform the message to bytes messages.
    (Refer to SAP note 856346)

  • How to keep a back up of messages from the JMS queues?

    Hi,
    I need to keep a back up of messages which are coming in the JMS queue before they get consumed. This is for recovery purpose.
    I checked file store option but it doesnt have any time stamp on messages so dont know how to trace back messges if needed from file store.
    Please let me know if you guys have any idea to handle this.
    Thanks in advance
    Bips

    No. Not with Time Machine at least.
    If you tell Time Machine to backup the external then you will have it.
    Or you can manually copy it to another disk for storage outside of Time Capsule/TimeMachine.
    Allan

  • Program to consume the JMS queue

    Hi, I' m new to WebLogic stuff. Got a question over here. There's a JMS queue that we want to have a program (not those built in stuff from weblogic) to see if they re consumed. Similar stuff would be displayed like
              <b>ABCD Queue consumers: 1 / consumers high: 0 ...messages: 10 / messages received: 19........</b>
              as if we get into the console page to check the JMS queues.
              I've got no clues yet. We don't wanna check the number of files from C:\Original and the destination folder C:\Destin......if so, it'd be an easy task but that s not what we wanted....

    As with any WebLogic subsystem, you can get all statistics programmatically using standard JMX mbeans (see the JMX developer guide). The console uses these beans, as does the WLST scripting language. In addition, there are helper methods in the public weblogic.jms.extensions package that simplify access to these beans.
              I think there are various mbean and WLST samples on dev2dev, including one called "JMSStats.java". Note that JMSStats.java, and some other samples were written for versions 8.1 and earlier. They use deprecated methods that don't have access to all runtime statistics for 9.0 and later versions.
              Tom

  • How to add the JMS adapter property in BPEL1.1 version

    Hi,
    I am working on the Jms adapter by using BPEL version1.1 and i am want to add some Jms property to send with Jms message.We have option to add the Jms property in BPEL2.0 version. But i am not able to add Jms property in BPEL version1.1.
    Please help me
    SOA 11g : 11.1.1.5

    Thanks for everyone's replies. I am now able to set the parameters for the sequence file, just that I added a property node for the sequence file path and the sequence before loading the parameters. That did the trick and the rest was easy. Also for Goto, with some digging, I was able to add a custom property step if it fails or passes the step. It works like a charm. I'm attaching a modified version of my code in LV 7.0 format.
    Attachments:
    Dynamic Sequence File-1.vi ‏175 KB

  • How to check the jms Queue is persistance or not in jboss application serve

    hi,
    i am using jboss as application server for jms and database is postgres.For an message store i am using the "*database store*".while starting the jms adding queue it is adding the messages to the jms queue after starting the jms receiver the datas are received sucessfully....afte some 10 to 13 hours i am getting java.lang.OutOfMemoryError in jms..so i checked the postgres table space.Table space is increased gradually...I think that the after receiver received that message the messages are not deleted in the database.how to debugg the the secnario in jboss as wel as in database.....how to chaeck the queue is in persistance or not persistance...
    regards.
    naresh govindaswamy.

    Send a request to the server somehow, so that the server is aware of this. AJAX may be very useful in this if you want to do this asynchronously.
    its very urgently This is irrelevant information. That's your problem. We don't care less or more. Some users here will even refuse to help you if you're putting pressure.

  • Getting the "last modified" property of a file located on HTTP server

    Hello
    I'd like to read a file (on http server) according to his "last modified" time. Can anybody tell me how to get the "last modified" property in a J2ME/CLDC application?
    Thanks in advance

    the file that you want get is in the server?
    you can use java.io.File.lastModified() which in J2SE to get a long num.
    then you can transform long int to orther class that you need ,and do this in server.
    at the end of all you can send this info to J2ME/CLDC app with stream.

  • Checking message in the JMS queue

    Hi there,
    Is there a way to check the message is in the JMS queue? I tried to use the QueueBrowser. However, it always return me an enumeration = null
    when I run the following "QueueBrowser.getEnumeration()". I am using JRun 3.0 application server.
    And by the way, how would to know whether the message has been consumed by the receiver in a point to point model? We could still managed to send out messages even when the receiver client is not started. I understand that the receiver client would be able to receive those messages once they are started as the messages are in the queue. However, what if the queue is destroyed (some catastrophic event happen to the JMS provider) before the receiver client is started?

    I have no problem using the QueueBrowser:
          QueueConnection qc;
          qc = qcf.createQueueConnection();
          QueueSession session;
          session = qc.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
          QueueBrowser browser = session.createBrowser(queue);
          Enumeration enum = browser.getEnumeration();The used JMS provider must support a persistence mode. When the server is restarted and there were messages in the queue, they are restored.
    When receiving messages you can use autoacknowledge mode without transaction which means when receive() is called, the message is deleted from the queue. In transacted mode in addition to receive() you have to call commit() on the session in order to delete the message in the queue.
    When using clientacknowledge you have to call message.acknowlegde() after receive().

  • To get the color View property from a file

    How can get the color view property value of a framemaker file using framemaker API ?

    Hi Asha,
    Color views do not have object handles; rather, they are modified at the color (FO_Color) object level. That is, each color has a property called FP_ColorViewCtl which defines its behavior in each of the six built-in color views. If you want to modify the makeup of a color view, you should modify the colors themselves with respect to the desired view.
    The FP_SpotColorView property only sets the active view... it doesn't modify the view.
    Search the FDK ref for FP_ColorViewCtl and you find an explanation, under the FO_Color object properties.
    Russ

  • How to get an XMLBean off the jms queue

              Hello all,
              I think I can post an XMLBean to a JMS queue, but how to I read it off the JSM
              queue from within a MDB?
              When I cast the message from the onMessage(Message msg) event to my XMLBEan, I
              get a class cast exception.
              I want to post some form data to a MDB to kick off some processes.
              Here is the code that generates the XML bean and posts it to my jms :
              VCALENDARDocument vcaldoc = VCALENDARDocument.Factory.newInstance();
              VCALENDAR vcalendar = vcaldoc.addNewVCALENDAR();
              VEVENT vevent = vcalendar.addNewVevent();
              vcalendar.setProdid(form.getProdid());
              vcalendar.setVersion(form.getVersion());
              vevent.setDtstart(form.getDtstart());
              vevent.setDtend(form.getDtend());
              vevent.setSummary(form.getSummary());
              vevent.setOrganizer(form.getOrganizer());
              appointmentCtrl.sendAppointmentRequest(vcalendar, "12345");
              Here the code in the JMS Control:
              public interface AppointmentCtrl extends JMSControl,com.bea.control.ControlExtension
              * @jc:jms-property key="accountIdentifier" value="{accountID}"
              * @jc:jms-property key="transactionType" value="NOT SUPPORTED"
              public void sendAppointmentRequest(VCALENDAR vcalendar, String accountID);
              static final long serialVersionUID = 1L;
              Here is how I am trying to read it off the queue in my MDB:
              public void onMessage(Message msg)
              VCALENDAR vcalendar = (VCALENDAR)msg;
              System.out.println("Message received");
              System.out.println(vcalendar.getProdid());
              Here the error that i get:
              <Apr 10, 2004 2:02:16 AM CDT> <Warning> <EJB> <BEA-010065> <MessageDrivenBean
              th
              rew an Exception in onMessage(). The exception was:
              java.lang.ClassCastException.
              java.lang.ClassCastException
              at mdb.AppointmentEJB.onMessage(AppointmentEJB.java:24)
              at weblogic.ejb20.internal.MDListener.execute(MDListener.java:382)
              at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.
              java:316)
              at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:281)
              at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2596)
              at weblogic.jms.client.JMSSession.execute(JMSSession.java:2516)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              >
              <Apr 10, 2004 2:02:16 AM CDT> <Warning> <EJB> <BEA-010065> <MessageDrivenBean
              th
              rew an Exception in onMessage(). The exception was:
              java.lang.ClassCastException.
              java.lang.ClassCastException
              at mdb.AppointmentEJB.onMessage(AppointmentEJB.java:24)
              at weblogic.ejb20.internal.MDListener.execute(MDListener.java:382)
              at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.
              java:316)
              at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:281)
              at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2596)
              at weblogic.jms.client.JMSSession.execute(JMSSession.java:2516)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              >
              Any ideas what it should look like?
              Thanks,
              Marc
              

    Hi trevenator, 
    If you are having issues with an iPod touch directing you to connect to iTunes, you may find the following article helpful:
    If you can't update or restore your iPhone, iPad, or iPod touch
    Regards,
    - Brenden

  • Any java API to get the metadata for a deployed bpel process in soa/bpm11g?

    Hi,
    Just wonder if this is possible, that there is some existing java api to retrieve the metadata (containing activities, isSynchrous, version information etc) for a deployed bpel process? If not, is there any other way to achieve this goal ( or example query database table directly)?
    I can only find this link for soa11g java api. I am able to invoke the bpel process using this API(direct binding) from java client.
    http://download.oracle.com/docs/cd/E14571_01/apirefs.1111/e10659/index.html?overview-tree.html
    Any help will be greatly appreciated.
    Thanks,
    Bin

    What I find so far:
    1. can get some process property values from ComponentInstance class, see its api.
    http://download.oracle.com/docs/cd/E14571_01/apirefs.1111/e10659/oracle/soa/management/facade/ComponentInstance.html
    Please refer http://blogs.oracle.com/soabpm/2009/07/soa_suite_11g_api_tricks_part.html of how to get the component instance (contain the bpel process) from a composite object
    2. in dev_soainfra database schema, the CUBE_INSTANCE table contains most of soa bpel components information. The BPM_CUBE_PROCESS table seems to contain only the process defined in a bpm application. This sounds a little confused, if we want to develop a bpel application, should it be put in soa or bpm application and what is the difference?
    Please feel free to correct any mistakes here.

  • Messages not making it to the jms queue...

    We are having an interesting problem. AFter a fresh restart of our instnace, it will process a message fine. but, if we wait a few minutes, try another post, the message doesn't get put ot the queue, and it basically hangs the instance.
              I am not sure how to trouble shoot this since there are no errors sent to the logs. the console will show a stuckthread message eventually.
              I was wondering if anyone could help with what are some potential causes, and if there is anyway to get additional information out of the server. I have turned on the debug and set the level to info, but no additional information is getting generated.
              We've done print outs in the code right up to where the failure occurs.
              I"ve posted the code snippet that is being used. It failes when it gets to the code after GQ 5.
              Any help is appreicated.
              public boolean queueMessage(Serializable messageObj, String queueName)
              throws NamingException, JMSException, ResourceKeeperException, Exception {
              EventLogger.log(Level.DEBUG, "Trying to put a message in the " + queueName + " queue in GenericQueue.queueMessage(): ");
              try {
              if (messageObj != null)
              EventLogger.log(Level.DEBUG, "Serializable messageObj in GenericQueue.queueMessage(): " + messageObj.toString());
              else
              EventLogger.log(Level.DEBUG, "messageObj is not serializable");
              Hashtable ht = null;
              boolean inHash = false;
              //check to see if the queue is in the hashtable
              if (queues.containsKey(queueName)) {
              EventLogger.log(Level.DEBUG, "The Queue was in the hashTable in GenericQueue.queueMessage(): ");
              inHash = true;
              ht = (Hashtable) queues.get(queueName);
              else EventLogger.log(Level.DEBUG,"The Queue was not the hashTable using default values in GenericQueue.queueMessage(): ");
              Context ctx = InitialContext.getInitialContext();
              EventLogger.log(Level.DEBUG, "GQ 1");
              QueueConnectionFactory qconFactory = null;
              EventLogger.log(Level.DEBUG, "GQ 2");
              if (inHash)
              qconFactory = (QueueConnectionFactory) ctx.lookup((String) ht.get("jmsFactory"));
              EventLogger.log(Level.DEBUG, "GQ 3");
              else
              EventLogger.log(Level.DEBUG, "GQ 4");
              qconFactory = (QueueConnectionFactory) ctx.lookup(jmsFactory);
              EventLogger.log(Level.DEBUG, "GQ 5");
              QueueConnection qcon = qconFactory.createQueueConnection();
              EventLogger.log(Level.DEBUG, "GQ 6");
              QueueSession qsession = qcon.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
              EventLogger.log(Level.DEBUG, "GQ 7");
              QueueSender qsender;
              EventLogger.log(Level.DEBUG, "GQ 8");
              Queue queue;
              EventLogger.log(Level.DEBUG, "GQ 9");
              queue = (Queue) ctx.lookup(queueName);

    The "stuck thread" message is likely a good clue. Force a server thread dump when this occurs. Feel free to post the thread dump here.
              Side note: Make sure the "GenericQueue" method doesn't attempt to multi-thread access to any JMS session, consumer, or producer.
              Tom

  • How to get the callback from an asynchronous BPEL?

    Hi, I have deployed an asynchronous BPEL on Oracle Application Server as a Web Service. The BPEL is named CreditRatingBPEL. The input is a social security number (Ssn) and the output is a credit rating.
    Now I have some troubles in consuming BPEL with Axis1.4. I have generated the client stubs by WSDL2Java tools. I have initiated the asynchronous BPEL successfully. Now I want to get the callback from the BPEL, but I don't know how to do it.Here are some Java snippets:
    public static void main(String[] args) throws ServiceException, RemoteException {
    // TODO Auto-generated method stub
    CreditRatingBPEL_Service service = new CreditRatingBPEL_ServiceLocator();
    CreditRatingBPEL_PortType requestPortType = service.getCreditRatingBPELPort();
    CreditRatingBPELProcessRequest request = new CreditRatingBPELProcessRequest();
    request.setSsn("31060931");
    // asynchronous invoke
    requestPortType.initiate(request);
    // how can I get the callback from the web service?
    I will be very appreciated if you can give me some suggestions. Best regards!

    Checkout following link -
    http://www.sapfans.com/sapfans/forum/intface/messages/4289.html
    Cheers
    Sanjeev

  • How to access the JMS queues in the XI J2EE Engine?

    Hi Gurus,
    Can anybody know how to access the jms dead message queues in the WAS J2EE Engine?
    I have read in the SAP documentation that we can use some JMS commands from the telnet. I don't know how to use those commands.
    Can anybody provide a step-by-step process to access these queues?
    Thanks
    Kalyan

    1) Open a command prompt
    2) type
    telnet localhost 50008
    where the port is the same as your http, but with 8 as last digit.
    3) Login
    4) Issue the following set of commands
            jump 0
            add jms
            jms list deadmsgs
    Check by man jms other possible options.
    HTH
    Peter

  • How do I get the DSR state property node to correctly read?

    I can toggle the DTR line high and
    low using a property node for the serial port, modem line settings, DTR line state, and it works fine. However, I cannot get the DSR line to
    read properly. Seems to go to unasserted no matter what the input is (and I've verifed the input). I've turned handshaking on and jumpered DTR to DSR (pin 4 to 6 on DB-9), but the DSR line will not read correctly. I'm using 6.1 with Windows 2000.

    Here's a simple version. Writes and reads to itself fine, and can toggle the DTR high and low. DSR is always unasserted. Thanks for your help.
    Nick
    Attachments:
    CommProgSubset.vi ‏85 KB

Maybe you are looking for