Coherence Messaging JSP for Status

I built a standalone jsp that can be used to display the current states of the messaging destinations, queues and subscriptions. Figured I would share for anyone who wants it.
<%@ page import="javax.management.MBeanServer,
javax.management.MBeanServerFactory,
javax.management.ObjectName,
java.util.HashSet,
java.util.Iterator,
java.util.Set"%>
<%@page import="com.oracle.coherence.patterns.messaging.MessagingSession"%>
<%@page import="com.oracle.coherence.patterns.messaging.DefaultMessagingSession"%>
<%@page import="com.oracle.coherence.common.identifiers.Identifier"%>
<%@page import="com.tangosol.net.CacheFactory"%>
<%@page import="com.tangosol.net.NamedCache"%>
<%@page import="java.util.Enumeration"%>
<%@page import="com.oracle.coherence.patterns.messaging.Subscriber"%>
<%@page import="com.oracle.coherence.patterns.messaging.Queue"%>
<%@page import="com.oracle.coherence.patterns.messaging.Message"%>
<%@page import="com.oracle.coherence.patterns.messaging.QueueSubscription"%>
<html>
<title>Coherence: JMX Cache Information</title>
<body>
<h3>Queues</h3>
<table>
     <tr>
          <th>Queue Identifier</th>
          <th>Waiting</th>
          <th>Redelivered</th>
               <th>Received</th>
          <th>Delivered</th>
          <th>Subscriber</th>
     </tr>
     <%
     NamedCache messagingDestinations = CacheFactory.getCache("coherence.messagingpattern.destinations");
     out.println("<p>" + messagingDestinations.getCacheName() + " has " + messagingDestinations.size() + " Objects" + "</p>");
     Set<Object> messagingDestinationKeys = messagingDestinations.keySet();
     for (Object messagingDestinationKey : messagingDestinationKeys) {
          Queue q = (Queue)messagingDestinations.get(messagingDestinationKey);
          %>
          <tr>
               <td align="left"><%= q.getName() %></td>
               <td align="right"><%= q.getNumMessagesToDeliver() %></td>
               <td align="right"><%= q.getNumMessagesToRedeliver() %></td>
               <td align="right"><%= q.getNumMessagesReceived() %></td>
               <td align="right"><%= q.getNumMessagesDelivered() %></td>
               <td align="right"><%= q.getNumWaitingSubscriptions() %></td>
          </tr>
          <%
     %>
     </table>
     <hr/>
     <h3>Messages In Queues</h3>
     <table>
     <tr>
          <th>Key</th>
          <th>Queue Identifier</th>
          <th>Message Identifier</th>
               <th>Payload</th>
     </tr>
     <%
     NamedCache messages = CacheFactory.getCache("coherence.messagingpattern.messages");
     out.println("<p>" + messages.getCacheName() + " has " + messages.size() + " Objects" + "</p>");
     Set<Object> messageKeys = messages.keySet();
     for (Object messageKey : messageKeys) {
          Message message = (Message) messages.get(messageKey);
          %>
          <tr>
               <td align="right"><%= message.getKey() %></td>
               <td align="left"><%= message.getDestinationIdentifier() %></td>
               <td align="right"><%= message.getMessageIdentifier() %></td>
               <td align="left"><%= message.getPayload() %></td>
          </tr>
          <%
     %>
     </table>
     <hr/>
     <h3>Queue Subscriber Information</h3>
     <table>
     <tr>
          <th>Name</th>
          <th>Identifier</th>
          <th>Num Messages</th>
          <th>Num Messages Ack</th>
               <th>Num Messages Recv</th>
     </tr>
     <%
     NamedCache subscriptions = CacheFactory.getCache("coherence.messagingpattern.subscriptions");
     out.println("<p>" + subscriptions.getCacheName() + " has " + subscriptions.size() + " Objects" + "</p>");
     Set<Object> subscriptionKeys = subscriptions.keySet();
     for (Object subscriptionKey : subscriptionKeys) {
          QueueSubscription queueSubscription = (QueueSubscription) subscriptions.get(subscriptionKey);
          %>
          <tr>
               <td align="right"><%= queueSubscription.getName() %></td>
               <td align="right"><%= queueSubscription.getIdentifier() %></td>
               <td align="right"><%= queueSubscription.getNumMessages() %></td>
               <td align="right"><%= queueSubscription.getNumMessagesAcknowledged() %></td>
               <td align="right"><%= queueSubscription.getNumMessagesReceived() %></td>
          </tr>
          <%
     %>
     </table>
</body>
</html>
Cheers!

JSPs can do anything that HTML can do. Is there HTML
code for a progress bar? None that I've ever heard
of. Why doesn't the browser itself handle reporting
on the download progress?heres something that might be interesting
http://www.onjava.com/pub/a/onjava/2003/06/11/jsp_progressbars.html

Similar Messages

  • Delete messages stuck in status 12, Recorded for Outbound Processing

    I am on a PI 7.10 SP8 system.  I have 59,000 XML messages showing in status 12 ( Recorded for Outbound Processing) that I would like to just delete or cancel.  These have accumulated over several days of testing interfaces.  If I have to allow them to be processed, that would also work but is not needed.  I have read about 6 different forum threads and tried several things but nothing has worked yet. <br>
      The messages can not be cancelled from SXMB_MONI. <br>
      The queues are no longer showing in SMQ2.   <br>
      I have tried restarting and re-registering the queues. <br>
      I've tried RSXMB_RESTART_MESSAGES and RSXMB_CANCEL_MESSAGES. <br>
      SWPR & SWPC show nothing to restart. <br>
    Any ideas on something else to try? <br>

    Hi,
    You can try to delete or archive mesages. use following links.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/402fae48-0601-0010-3088-85c46a236f50
    Delete Messages SXMB_MONI
    http://help.sap.com/saphelp_nw04/helpdata/en/0e/80553b4d53273de10000000a114084/frameset.htm
    Too many questions on Archive/Delete messages.
    Inder

  • Error message without error status matching

    Hi Gurus,
             I have a error message from process chain as follows:
    Failure Group EREC01 Special FULL - Job 1                                                                                Process Group EREC01 Special FULL - Job 1 Of Type Local Process Chain Has Status Ended with errors (Process Chain Encapsulate EREC01 GRP)                                                                                It is now 21:19:54 on 05/05/2010 (time zone PST)                                                                                Current Process Chain Run: D80JW1WN91Q0OEZ3K0ZGF3MS5 in System BIP (Host biprd03)                                                                               
    but when I get into rspc to check the status for this running, it shows green for status in the log view. why does this error message come up without any error status matching?
    Many thanks

    Hi,
    Please check if your are looking the correct process chain and in correct transaction. you may look at the logs of this process chain in RSPCM and not in RSPC.
    If you can not find this error status message in RSPCM, them check SM37 and SM12 by providing the proper timeinterval for the message you got.
    Regards,
    Pratap Sone

  • Display error message in the status bar during PBO

    Hi All,
    I want to issue an error message on a program's selection-screen.
    The thing is when I issue an error message inside PBO, all the text in the selection-screen are gone and replaced with lines.
    So i displayed the error message in the status bar.
                      MESSAGE S074(Z4) DISPLAY LIKE 'E'.
    But the problem with this is that it will allow to continue data processing.
    What shall I do in order for my error message to behave as an error message and not as a status message?

    Hi,
    Write your message in PAI same as you have done MESSAGE S074(Z4) DISPLAY LIKE 'E'.
    after this use call screen 'your screen no'.
    it will not lock the field.

  • Can´t access my files on Creative Cloud. "Page temporarily unavailable. We will return soon." "We are working quickly to resolve the problem and apologize for the delay. Check back later or visit our website for status updates. In addition, you can get he

    Hello,
    For a few days I have been trying to access my files on Creative Cloud web without success. I´ve got this message only:
    "Page temporarily unavailable. We will return soon."
    "We are working quickly to resolve the problem and apologize for the delay.
    Check back later or visit our website for status updates.
    In addition, you can get help in the forums of the Creative Cloud.
    Thank you for understanding!"
    (I used Google Translate)
    Somebody help?

    You do not need ?&promoid=KRUVP at the end of the url but it should not matter.
    One thing to check is if your hosts file is modified. Open the Command Prompt and type: notepad %systemroot%\system32\drivers\etc\hosts
    This will open a read-only copy of your host file in Notepad. Are there any entries in this file regarding adobe.com?
    The other thing you can do is open the Developer Tools in the Chrome browser. On Windows press Ctrl + Shift to open them. Switch to the Network tab. Reload the page by pressing Ctrl + r. Check for any 4xx or 5xx errors which should be colored red.
    Post screenshots of your results or send me a private forum message with the information.

  • BPM Scenario: Message has error status on outbound side

    Hi All,
            I am doing one BPM scenario. In my scenario i am collecting 12 different type of idocs in BPM and bundling these idocs and sending these to the 12 different files.
            If i send 12 idocs from the R/3 then my scenario is working perfectly fine. If i send less than the 12 idocs that time i am getting the error message as "Message has error status on outbound side" with red flag.
               Can you please explain what minght be the problem. I have already checked in SM58,SMQ1 and SMQ2.
    Thanks & Regards,
    Purushotham

    Hi Nutan,
            I hv configured my scenario as follows
    1. Start
    2. Block ( Deadline and Control step for cancell the process)
       3. Fork(Necessary branches 12)
          4. Loop(12 loops)
              Under loop
              a. Receive Step
              b. Container Operation( For count)
              c. Container Operation(For append)
    5. Fork( Necessary branches 12)
        6. Transformation
        7. Send
    8 Stop
    This is my scenario. In the first Fork step i am checking end condition as total  number of idocs is reached then i am sending all the data to the target system. If the idocs are not reaching with in 1 hour then i am cancelling the process.
            Now can you please tell me what is the problem.
    Thanks & Regards,
    Purushotham

  • XML Messages in "Scheduled" status

    Hi all,
    The case is at ERP side running transaction SXMB_MONI, some XML messages from XI to ERP are found in "Scheduled" status.  Around the same time, siimilar messages using same receiver interface are processed successfully.  When we manual restart the "Scheduled" message, there will be an entry in READY status at inbound queue and we have to unlock the queue.  After that, the message will be processed successfully.
    Here are my questions:
    (1)  Why some messages in "Scheduled" status but similar messages are processed successfully?
    (2)  Is there any alert or notification mechanism that we can setup instead of running transaction SXMB_MONI manually?
    (3)  Is manual restart XML message a proper way to handle those scheduled message?  Any way to automatically handle this message in ERP side?
    Thanks in advance.

    Donald,
    Here are the answers to ur questions.
    (1) Why some messages in "Scheduled" status but similar messages are processed successfully?
    Some times the queues get stuck for various reasons. one msg will cause bottleneck for all other msgs behind it. there is no proper reason why this happens, however if it happens regularly then u will have to give it a thought.
    (2) Is there any alert or notification mechanism that we can setup instead of running transaction SXMB_MONI manually?
    Well, if the msgs r in the scheduled state then NO.
    (3) Is manual restart XML message a proper way to handle those scheduled message? Any way to automatically handle this message in ERP side?
    Manual restart is not the best way to handle msgs bcause you might loose track/ some msgs might error out together causing issues. (that has happend to us). its tough to keep track if that is the case and if its critical from business point of view.
    If it is going out of R/3 then may be you can configure jobs to push the data periodically.
    Regards,
    Pavan

  • Message has error status on outbd side

    Hi,
    I am doing File to IDoc scenario, in SXMB_MONI i am getting the following error "Message has error status on outbd side". I am not using BPM and this interface was working fine earlier .
    Any clues!!!!!!!!!!
    Regards
    Swatantra

    Hi Vijay,
    Cross check whether you have done these:-
    SLD-
    1) Create a Product/Software Component
    2) Technical System pointing to R/3 system
    3) Business System for the above technical system
    In the Repository
    1) Import the Software component created in the sld
    2) Create a namespace,
    3) import the idoc and then create sender data type/message type etc and mapping
    4) Mapping Rules is depends on the requirement
    In the Directory
    1) Create a Scenario /import the business system
    2) Create Receiver/Interface determination
    3) Create communication channels for sender and receiver
    4) Sender Agreeement and Receiver Agreement.
    Then the file adapter configuration is depend on the input file format.
    Also you need to have Logical destionation created in the XI , and the IDX1 entry
    In R/3 Port, Partner profiles etc should be created
    Have a look into this document~
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/877c0d53-0801-0010-3bb0-e38d5ecd352c
    While doing an File -> XI -> IDoc scenario, The Points to noted are:
    1. You don’t need a DT, MT or a message interface for the IDOC as it itself acts as the Message Interface.
    2. You import the IDOC and use the same in your mapping.
    3. In this configuration note that you will need a sender agreement for the file.
    4. In this configuration note that you will also need a receiver agreement for the IDOC.
    For any File -> XI -> IDoc scenario ref:
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
    Hope this helps.
    Regards.
    Praveen

  • Message has error status on outbd. side (error in Moni)

    Hello All,
    Iam doing soap to idoc scenario, the scenario was working fine since long time....but yesterday we had an issue...we can see the message was sucessfully processed in XI monitor and RWB, but idoc not got created in sap ecc system.
    when i checked in moni one column called Outbound status is in error status and the error is message has error status on outbd. side.....i checked the idx1, idx2,sm59......all settings are fine.
    How to reslove the issue, please help me.
    Thanks and regards,
    Chinna

    Hi
    Please check the below  i think your problem will solve
    Hi,
    Check whether IDoc was created:
    1. Execute Transaction WE05; enter correct date/time parameters etc. If IDoc found in failed status, open status records folder and double click on the failed status records to get error message.
    Check Whether IDoc is received by the Receiver:
    2. Execute Transaction WE05; enter correct date/time parameters etc and verify if the IDoc was created or not and if IDoc is in a successful status or not. If the Idoc is in Status-30(Yellow), you can push it again through Transaction BD87.
    3. If the IDoc is located and status is successful but receiver has not received the IDoc, Execute transaction SM58 to determine if IDoc is stuck in the ALE/RFC layer. If entries exist in SM58, look for Message Type
    4. If message type exist and Run the Program "RSARFCEX". If after the RSARFCEX program has ran and IDocs are not in SM58, issue should be solved. Validate in receiving system via WE05 that the IDoc was received or not.
    5. If IDoc is still stuck in SM58, check RFC connection. Go to SE37, enter function module RFC_PING. We need to have access to SM59 to test the RFC Connection.
    6. After an issue has been resolved and/or you need to process an IDoc, besides processing IDocs via programs, you can also process IDocs via Transaction BD87.
    Thanks ,
    Meeravali Dudekula

  • Message determination for 103 mvt type

    Hi all,
       Can any one please tell me the reason for "Incorrectly Processed" message output for 103 movment. We have maintained all the indicators and output tab is getting appeared in the material document, but the status of the message shows "red colour".
        We are not able to understand the reason for the incorrect processing of the message. Whether this is related to the "Print Parameter" which is maintained as Plant / storage location combination.
    thanks & regards
    Chaitanya Rayaprolu

    Hi sir,
    Iam new to SAP but juz giving a try to answer your question. 103 mvt type is for posting to GR blocked stock. ie. no accounting docs are generated. Are you trying to post to blocked stock or GR block stock.
    Pls note that both are different..!!
    Pls excuse me if Iam wrong...
    Thanks & regards,
    ashwin_.

  • Message Monitoring with status delivering

    Hello,
    I have an scenario R/3 (Proxy) -> XI -> File.
    Alls is successful in sxmb_moni, and there is nothing in SMQ1 and SMQ2, but in message monitoring ( adapter engine ) the message appears in status delivering.
    The quality of service is exactly once. I checked the adapter and is in green status and the in the log the last message is Success The message status set to DLNG.
    I've been searching for old messages, but for the same interface all the messages are with status delivering.
    I can't cancel or resend the messages. Then I do the update but after that when I try to resend I obtain the same message "Update the status".
    The adapter is an FTP connection with Connect Mode "Permanently".
    Do you know what could be the problem and how to solve it? All the messages we send are in delivering status.
    Many thanks in advance.
    Regards,
    Xavier.

    Hi Xavier Carbonell ,
    i also faced same problem. In my case some other Communication channels were in error state so all messages are struct in Messaging System, all my messages status went "To be Delivering". Please check all ur Communication channels are in green.
    For futher information check the below link.
    Flat file with two separators
    If it is still not solved then restart J2EE engine.
    Thanks,
    Venkatesh
    Edited by: venkatesh bs on Apr 14, 2008 12:09 PM

  • Java Proxy message in waiting status

    Hi,
       Let me explain my case, In our Integration Scenario we have configured an Inbound Java Proxy as the How to guide (HOW TO WORK WITH JAVA PROXIES) expain, but the proxy doesn't hava code, that is, it have the code by default when its created, and when we register it and the scenario runs, in the message monitoring the status of the message to the JP Business Service is in WAITING status, and in the details it says sometimes that an old reference to another JNDI name of bean is doesn't locate or the message "MessageSpecifier could not be reset".
       Remember, the Imp. class has only the default code and the scenario is JDBC --> XI --> JavaProxy
       Any ideas?

    Hi Hector,
    Status:  WAITING
              The message had been sent and it is failed and is currently waiting for another attempt.
    Solution :
    When the fist attempt to deliver the message has failed (a recoverable exception arose), the message is usually rescheduled and the status is updated to WAITING. As long as the message is in this status, the Messaging System retries to deliver the message according to the configured retry settings (default 3 tries).
    Regards
    Agasthuri Doss

  • How to select the right JSP for a locale

    This may be a very stupid question but someone please help me out. I've
    looked at the JSP spec and the Weblogic documentation and even browsed the
    newsgroup and I still can't figure this out. Perhaps I'm just being dense
    (more than likely).
    What we want to do is support multiple locals from one server. My idea is
    that we'd write the JSP in English then hire translation companies to
    convert the JSP to French,German, Japanese, etc.(We've moved all the java
    code out of the JSPs using taglibs/java beans to make this easier). What
    we'd like to do is have all the languages on the server at once and based on
    the local of the client select the right JSP. We'd still like the URL to
    remain constant. What I can't seem to figure out is how to have one URL
    (like http:/www.myserver.com/example.JSP) and have the server select the
    right real JSP for the local (like example-en.JSP, example-fr.JSP, etc).
    I had hoped I could find a deployment descriptor (J2EE or Weblogic specific)
    directive that mapped a URL to a set of JSP based on locale but I don't see
    one.
    How does one make this happen or is the wrong way to do it". If it the
    "wrong way" what is the right way? Any links or example someone can point
    me to would be great.
    Kent

    We use a Servlet "filter" (not the Servlet 2.3 sense, but a 2.2 servlet that
    does a RequestDispatch.forward())
    This filter selects the most appropriate JSP page (using a similar naming
    convention to the one you indicate), then server-side forwards to it. Works
    quite well.
    j
    "Kent Mitchell" <[email protected]> wrote in message
    news:[email protected]...
    So has anybody come up with other solutions that work better. I was
    thinking about having a "main" jsp that all it did was check the local and
    then forward the request to the right internationalized jsp. So forexample
    I'd have the three files:
    someMain.jsp
    someMain-EN.jsp
    someMain-FR.jsp
    The main check the local and forwards to EN for English and FRfor French.
    etc.. Has anyone done anything like this? Is so what were the pros and
    cons?
    Kent
    "Mettu Kumar" <[email protected]> wrote in message
    news:[email protected]...
    Completely Agree. Once you start using TAG's get Internationalized
    Strings
    tools
    are less useful.
    Kumar.
    Kent Mitchell wrote:
    O.K. but doesn't this sort of make JSP editing tools like dreamweaver
    pretty
    much useless because of all the embedded Java code or and I missing
    something.
    "Mettu Kumar" <[email protected]> wrote in message
    news:[email protected]...
    Kent,
    Most common way of doing this is having one jsp where All the
    Textual
    messages in the page are read from properties file based on Locale.
    Kumar.
    Kent Mitchell wrote:
    This may be a very stupid question but someone please help me out.
    I've
    looked at the JSP spec and the Weblogic documentation and evenbrowsed
    the
    newsgroup and I still can't figure this out. Perhaps I'm just
    being
    dense
    (more than likely).
    What we want to do is support multiple locals from one server. My
    idea
    is
    that we'd write the JSP in English then hire translation companies
    to
    convert the JSP to French,German, Japanese, etc.(We've moved all
    the
    java
    code out of the JSPs using taglibs/java beans to make this
    easier).
    What
    we'd like to do is have all the languages on the server at once
    and
    based on
    the local of the client select the right JSP. We'd still like the
    URL
    to
    remain constant. What I can't seem to figure out is how to have
    one
    URL
    (like http:/www.myserver.com/example.JSP) and have the server
    select
    the
    right real JSP for the local (like example-en.JSP, example-fr.JSP,etc).
    I had hoped I could find a deployment descriptor (J2EE or Weblogicspecific)
    directive that mapped a URL to a set of JSP based on locale but I
    don't
    see
    one.
    How does one make this happen or is the wrong way to do it". If
    it
    the
    "wrong way" what is the right way? Any links or example someone
    can
    point
    me to would be great.
    Kent

  • How can I use 1 JSP for edit/create functionality?

    Hi All,
    Does anybody have an example of using one JSP for both editing and creating an object? I am pretty sure I can handle most of it, but am not sure about how I can specify different messages from the resource bundle (i.e. modifying the screen title for the different uses, "New Campaign" vs. "Edit Campaign").
    My background is in PHP and DHTML (i.e. more front-end) and I'm just starting with Java and JSF. As such, I want to be sure that I'm using appropriate patterns for my programming.
    Thank you in advance for any help,
    Matt

    I make the difference between modifying an existing object and a new one by the ID in the object. Each object has a unique ID in my app assigned by the database. So if the ID is 0, the user is creating a new object, not stored in the DB yet. I store the object to be edited/modified in the session before displaying the page:
    For the title:
    <h:outputText value="Edit Material" rendered="#{sessionScope.selectedMaterial.materialId != 0}"/>
    <h:outputText value="New Material" rendered="#{sessionScope.selectedMaterial.materialId == 0}"/>For the action buttons:
    <h:commandButton value="Update Material" action="#{MaterialControllerBean.updateMaterial}" rendered="#{sessionScope.selectedMaterial.materialId != 0}"/>
    <h:commandButton value="Create Material" action="#{MaterialControllerBean.createMaterial}" rendered="#{sessionScope.selectedMaterial.materialId == 0}"/>

  • What is the logical message type for Inbound Credit Memo (MM)

    Hi Folks,
    What is the logical message type for Inbound Credit Memo (MM)
    Plz explain.
    Thanks,
    Matt

    Hi Mat,
      The logical message types are as follows.
      /DSD/HH_CREDITDATA             DSD Credit Exposure and Credit lLmit
      CREADV                         Credit memo display
      CRESTA                         Copy credit status (DebtorCreditAccount)
      SBINV                          Credit memo procedure with invoice creation
      SBWAP                          SD Credit Memo Procedure with Automatic Postin
    You can search for message types in database table EDMSG.
    Regards,
    Vimal.

Maybe you are looking for

  • How do I access an itunes account from an old computer??

    Please help!! My son has an ipod touch & his itunes account was on my laptop that crashed. He wants to add a gift card to get more ap's, but I can't figure out how to access...

  • Automatic Settlement just after confirmation

    Dear Experts, Please advice how the Process Order got automatically settle once the Process Order confirmation happened, if possible. Because in variant of settlement CNF status of Process Order not exist. Please advice Regards Sumit Kalyan

  • My Trips and Expenses in Travel Management

    Dear All, In My Trips and Expenses under Recommended Actions column, links comes dynamically as Change Travel request,Change Approved Travel Request , Create Expenses. If you want call customized Travel request screen then where I need to change. Tha

  • How to Add meta tag in bsp

    hi experts, we have a bsp page,in which i need to declare meta tags,like in html. but though i delare it,while i debug the code,I can see its not  passing through the meta code. please advise me how to add a meta tag in bsp. <%@page language="abap" %

  • Can anyone explain why all of my Spry Assets on a live website have suddenly stopped working?

    Can anyone explain why all of my Spry Assets on a live website have stopped responding? I have checked that the Spry CSS and JS files are in place. Then checked the files on Dreamweavers live view and they are not working there either. It was fine a