Count Messages in Queue

Hi,
I'm running IMS5.2 and I have a bespoke monitoring system. I want to be able to monitor the size of my queues on my MTAs. So far the only way I've been able to do this is using the following command :-
imsimta cache -view | grep destination | wc -l
However, I was wondering if there was a better way provided by IMS that would allow me to do the same thing. I guess I'm looking for some kind of imsimta command that would provide the same result.
Thanks
Ali

Ali,
How about this:
142# imsimta qm dir | grep '^ *[0-9]' | wc -l
      14I don't know that it's significantly better, but "qm" generates only a single line of output per message whereas "cache" provides like 10/message.
Bill

Similar Messages

  • Configure Monitoring of a MSMQ private queue Messages in Queue counter

    Hi
    I have a workgroup server that is not part of my local domain.
    I have contented the server to my local SCOM 2012 R2 server and it is working fine.
    My SCOM server has MSMQ 6.0 & 6.3  MP's installed.
    On the remote servers I have some MSMQ 6.0 private queues.
    When I am trying to monitor one counter in 1 queue , when the threshold is reached I am getting error message on al the queues.
    On the performance counter tab I have :
    Object: MSMQ Queue
    Counter : Messages In Queue
    Instance :[server name'\private$\error
    There were 1207 messages in this queue .
    I Got about 30 messages and error on all queues.
    What did I do wrong ?
    Itamar
    Itamar

    Hi
    This is the alert email I got :
    Alert: Notification Queue
    Source: maasw1\private$\maas.backend.scheduler.timeoutsdispatcher
    Path: MAASW1.xxx.com
    Last modified by: System
    Last modified time: 2/18/2014 2:45:49 PM Alert description: Instance Computer Queues
    Object MSMQ Queue
    Counter Messages in Queue
    Has a value 19
    At time 2014-02-18T14:45:35.0000000+02:00
    I did not place a monitor on this queue but on 2 other queues.
    one with threshold of 500 and on with 1 .
    I have made some change in the monitor and will test it now.
    Thanks
    Itamar 
    Itamar

  • TTL of message in queue

    Hi all!
    How can I define message time-to-live in queue? I've got some messages in queue with expiraton date by the year 2038.

    1. I've applied patch 116568-53 on my test system.
    2. I've executed patch-config and install-newconfig. Then imsimta chbuild and imsimta cnbuild have been executed.
    3. start-msg
    4. My directory has been updated from cfgdir_diff.ldif and ugdir_diff.ldif.
    5. imta.cnf contain:
    defaults logging notices 1 2 4 7 copywarnpost ......
    ! tcp_local
    tcp_local smtp mx single_sys remotehost inner switchchannel identnonenumeric subdirs 20 maxjobs 7 pool SMTP_POOL maytlsserver maysaslserver sa
    slswitchchannel tcp_auth missingrecipientpolicy 0
    tcp-daemon
    etc.
    6. After that I've sent message on [email protected]
    7. root@sun/opt/SUNWmsgsr/sbin> ./imsimta cache -dump
    channel : tcp_local
    file name : /opt/SUNWmsgsr/data/queue/tcp_local/011/ZXe0j750N0so7.00
    subdirectory : 11
    enqueue time : 22-Sep-2004 16:43:38.00
    last delivery attempt : 22-Sep-2004 17:12:07.00
    processing priority : 3
    destination system : ddddddd.com
    recipient count : 1
    message size : 1 (kbyte)
    owner : mailsrv
    expiration date : 19-Jan-2038 06:14:07.00
    8. qm.maint> his 1
    Message id: 1
    Filename: /opt/SUNWmsgsr/data/queue/tcp_local/011/ZXe0j750N0so7.00
    Transport layer information:
    Envelope From: address: [email protected]
    Envelope To: addresses: [email protected]
    Message delivery history:
    Wed, 22 Sep 2004 16:43:39 +0400 (MSD)
    TCP active open: Failed connect() Error: Connection refused
    Wed, 22 Sep 2004 16:55:23 +0400 (MSD)
    TCP active open: Failed connect() Error: Connection refused
    What does "expiration date" mean ? Why 2038 year ?

  • Dispatcher dies with message dialog queue standstill

    Hi All,
    SAP WAS 6.20 is installed in win2000 server with oracle 9i as the database.
    When trying to start the server with SAP managment console
    messeger and dispatcher comes up fine. But within some seconds dispatcher stops.
    When trying to restart again messeger starts but dispatcher turns yellow with a message "dialog queue standstill" and stops.
    Please see the developer trace below.Need your help to bring the server up.
    Thanks and regards,
    Niranjan
    trc file: "dev_w11", trc level: 1, release: "620"
    ACTIVE TRACE LEVEL           1
    ACTIVE TRACE COMPONENTS      all, M

    B Wed Oct 27 22:37:44 2004
    B  create_con (con_name=R/3)
    B  Loading DB library 'D:\usr\sap\KNW\SYS\exe\run\dboraslib.dll' ...
    B  Library 'D:\usr\sap\KNW\SYS\exe\run\dboraslib.dll' loaded
    B  Version of 'D:\usr\sap\KNW\SYS\exe\run\dboraslib.dll' is "620.02", patchlevel (0.1504)
    B  New connection 0 created
    M  systemid   560 (PC with Windows NT)
    M  relno      6200
    M  patchlevel 0
    M  patchno    1509
    M  intno      20020600
    M  make:      multithreaded, ASCII
    M  pid        1916

    M  ***LOG Q0Q=> tskh_init, WPStart (Workproc11 1916) [dpxxdisp.c   1088]
    I  MtxInit: -2 0 0
    M  DpShMCreate: sizeof(wp_adm)          12920     (760)
    M  DpShMCreate: sizeof(tm_adm)          1692424     (8420)
    M  DpShMCreate: sizeof(wp_ca_adm)          18000     (60)
    M  DpShMCreate: sizeof(appc_ca_adm)     6000     (60)
    M  DpShMCreate: sizeof(comm_adm)          192000     (384)
    M  DpShMCreate: sizeof(wall_adm)          (22440/34344/56/100)
    M  DpShMCreate: SHM_DP_ADM_KEY          (addr: 05CC0040, size: 1979784)
    M  DpShMCreate: allocated sys_adm at 05CC0040
    M  DpShMCreate: allocated wp_adm at 05CC0638
    M  DpShMCreate: allocated tm_adm_list at 05CC38B0
    M  DpShMCreate: allocated tm_adm at 05CC38D8
    M  DpShMCreate: allocated wp_ca_adm at 05E60BE0
    M  DpShMCreate: allocated appc_ca_adm at 05E65230
    M  DpShMCreate: allocated comm_adm_list at 05E669A0
    M  DpShMCreate: allocated comm_adm at 05E669B8
    M  DpShMCreate: allocated ca_info at 05E957B8
    M  DpShMCreate: allocated wall_adm at 05E957C0
    X  EmInit: MmSetImplementation( 2 ).
    X  <ES> client 11 initializing ....
    X  Using implementation std
    M  <EsNT> Memory Reset enabled as NT default
    X  ES initialized.

    M Wed Oct 27 22:37:45 2004
    M  calling db_connect ...
    C  Got ORACLE_HOME=D:\oracle\ora92 from environment

    C Wed Oct 27 22:37:46 2004
    C  Client NLS settings: AMERICAN_AMERICA.WE8DEC
    C  Logon as OPS$-user to get SAPKNW's password
    C  Connecting as /@KNW on connection 0 ...
    C  Attaching to DB Server KNW (con_hdl=0,svchp=081810CC,svrhp=08183334)
    C  Starting user session (con_hdl=0,svchp=081810CC,srvhp=08183334,usrhp=0818BB1C)

    C Wed Oct 27 22:37:47 2004
    C  *** ERROR => OCI-call 'OCISessionBegin' failed: rc = 1033
    [dboci.c      3795]
    C  Detaching from DB Server (con_hdl=0,svchp=081810CC,srvhp=08183334)
    C  *** ERROR => CONNECT failed with sql error '1033'
    [dboci.c      9702]
    C  Try to connect with default password
    C  Connecting as SAPKNW/<pwd>@KNW on connection 0 ...
    C  Attaching to DB Server KNW (con_hdl=0,svchp=081810CC,svrhp=08183334)
    C  Starting user session (con_hdl=0,svchp=081810CC,srvhp=08183334,usrhp=0818BB1C)
    C  *** ERROR => OCI-call 'OCISessionBegin' failed: rc = 1033
    [dboci.c      3795]
    C  Detaching from DB Server (con_hdl=0,svchp=081810CC,srvhp=08183334)
    C  *** ERROR => CONNECT failed with sql error '1033'
    [dboci.c      9702]
    B  ***LOG BV3=> severe db error 1033      ; work process is stopped [dbsh#2 @ 957] [dbsh    0957 ]
    B  ***LOG BY2=> sql error 1033   performing CON [dblink#1 @ 419] [dblink  0419 ]
    B  ***LOG BY0=> ORA-01033: ORACLE initialization or shutdown in progress [dblink#1 @ 419] [dblink  0419 ]
    M  ***LOG R19=> tskh_init, db_connect ( DB-Connect 000256) [thxxhead.c   1199]
    M  in_ThErrHandle: 1
    M  *** ERROR => tskh_init: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c   8787]

    M  Info for wp 11

    M    stat = 4
    M    reqtype = 3
    M    rq_info = 0
    M    act_reqtype = -1
    M    tid = -1
    M    mode = 255
    M    len = -1
    M    rq_id = -1
    M    rq_source = 255
    M    last_tid = 0
    M    last_mode = 0
    M    int_checked_resource(RFC) = 0
    M    ext_checked_resource(RFC) = 0
    M    int_checked_resource(HTTP) = 0
    M    ext_checked_resource(HTTP) = 0
    M    report = >                                        <
    M    action = 0
    M    tab_name = >                              <

    M  *****************************************************************************
    M  *
    M  *  LOCATION    SAP-Server WHPWKNOW_KNW_00 on host WHPWKNOW (wp 11)
    M  *  ERROR       tskh_init: db_connect
    M  *
    M  *  TIME        Wed Oct 27 22:37:47 2004
    M  *  RELEASE     620
    M  *  COMPONENT   Taskhandler
    M  *  VERSION     1
    M  *  RC          13
    M  *  MODULE      thxxhead.c
    M  *  LINE        8932
    M  *  COUNTER     1
    M  *
    M  *****************************************************************************

    M  Entering TH_CALLHOOKS
    M  ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP
    M  *** ERROR => ThrSaveSPAFields: no valid thr_wpadm [thxxrun1.c   672]
    M  *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed [thxxtool3.c  238]
    M  Entering ThSetStatError
    M  Entering ThReadDetachMode
    M  call ThrShutDown (1)...
    M  ***LOG Q02=> wp_halt, WPStop (Workproc11 1916) [dpnttool.c   356]

    Hi,
    check please your konfiguration files (tnsnames.ora, listener.ora, sqlnet.ora). Entries like service or global names should be  the same in tnsnames.ora and listener.ora files.
    In sqlnet.ora you should have the entry<i> SQLNET.AUTHENTICATION_SERVICE = (TNS).</i> You need it for your sap users (<SID>adm and SAPSERVICE<SID>).
    Read please the note: 480266.
    Your environment variables should be set correct. Read please the note 556232 for it (WINDOWS)
    Read also please the notes 35278, 445038 and 400241.
    Best regards
    K.Baran
    Message was edited by: Kutbettin Baran
    Message was edited by: Kutbettin Baran
    Message was edited by: Kutbettin Baran

  • Issue while posting message to queue

    Hi ,
    I am getting following exception while posting message into queue.For every new build I am getting this exception and after 2 or 3 times of restart of corresponding OBPM related weblogic server,Issue is getting resolved
    A component failed while executing activity '/COM/OU/UserlProcess#Default-3.0/ComponentExecution[PreProcessor]' (BP-method preProcessor) over instance '/COM/OU/UserlProcess#Default-3.0/15141/0'.
    Details:
    The task could not be successfully executed.
    Reason: 'fuego.connector.ConnectorException: Connector [MAIN_Q:null:JMS] caused an exception when getting a resource of type [7].
    Detail:Connector [MAIN_Q:null:JMS] caused an exception when getting a resource of type [7].
    Caused by: Connector [MAIN_Q:null:JMS] caused an exception when getting a resource of type [7].
    Detail:Connector [MAIN_Q:null:JMS] caused an exception when getting a resource of type [7].
    Caused by: Connector [MAIN_Q:null:JMS] returned the wrong class [com.tibco.tibjms.naming.TibjmsConnectionFactoryAttributes] for a resource of type [2].
    Detail:Connector [MAIN_Q:null:JMS] returned the wrong class [com.tibco.tibjms.naming.TibjmsConnectionFactoryAttributes] for a resource of type [2].
    fuego.lang.ComponentExecutionException: The task could not be successfully executed.
    Reason: 'fuego.connector.ConnectorException: Connector [MAIN_Q:null:JMS] caused an exception when getting a resource of type [7].
    Detail:Connector [MAIN_Q:null:JMS] caused an exception when getting a resource of type [7].
         at fuego.server.execution.EngineExecutionContext.invokeMethodAsCil(EngineExecutionContext.java:1091)
         at fuego.server.execution.EngineExecutionContext.runCil(EngineExecutionContext.java:1277)
         at fuego.server.execution.microactivity.ComponentExecutionMicroActivity.runCil(ComponentExecutionMicroActivity.java:126)
         at fuego.server.execution.microactivity.ComponentExecutionMicroActivity.execute(ComponentExecutionMicroActivity.java:84)
         at fuego.server.execution.microactivity.MicroActivityEngineExecutionHandler.executeActivity(MicroActivityEngineExecutionHandler.java:57)
         at fuego.server.execution.ImmediateActivity.execute(ImmediateActivity.java:42)
         at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304)
         at fuego.transaction.TransactionAction.startNestedTransaction(TransactionAction.java:527)
         at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:548)
    at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
         at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
         at fuego.server.execution.DefaultEngineExecution.executeAutomaticWork(DefaultEngineExecution.java:62)
         at fuego.server.execution.EngineExecution.executeAutomaticWork(EngineExecution.java:42)
         at fuego.server.execution.ToDoItem.executeAutomaticWork(ToDoItem.java:251)
         at fuego.ejbengine.ItemExecutionBean$1.execute(ItemExecutionBean.java:217)
         at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304)
         at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:470)
         at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551)
         at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
         at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
         at fuego.server.execution.EngineExecution.executeImmediate(EngineExecution.java:66)
         at fuego.ejbengine.ItemExecutionBean.processMessage(ItemExecutionBean.java:203)
         at fuego.ejbengine.ItemExecutionBean.onMessage(ItemExecutionBean.java:115)
         at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
         at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
         at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
         at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4123)
         at weblogic.jms.client.JMSSession.execute(JMSSession.java:4013)
         at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:4541)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:464)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    Caused by: fuego.connector.ConnectorException: Connector [MAIN_Q:null:JMS] caused an exception when getting a resource of type [7].
    Detail:Connector [MAIN_Q:null:JMS] caused an exception when getting a resource of type [7].
    at fuego.connector.ConnectorException.exceptionOnGetResource(ConnectorException.java:95)
         at fuego.connector.ConnectorTransaction.getResource(ConnectorTransaction.java:324)
         at fuego.connector.ConnectorTransaction.getResource(ConnectorTransaction.java:298)
         at fuego.connector.JMSHelper.getSession(JMSHelper.java:75)
         at fuegoblock.msg.DynamicJMS.sendMessage(DynamicJMS.java:145)
         at xobject.Utility.JMSService.writeToAppQueue(JMSService.xcdl:11)
         at xobject.Utility.Notification.sendAuditNotification(Notification.xcdl:19)
         at XXX.ManualProcess.Default_3_0.Instance.CIL_preProcessor(Instance.xcdl:20)
         at XXX.ManualProcess.Default_3_0.Instance.CIL_preProcessor(Instance.xcdl)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at fuego.server.execution.EngineExecutionContext.invokeMethodAsCil(EngineExecutionContext.java:1082)
         ... 31 more
    Please help how can I resolve this issue
    Thanks
    Sailendra

    I am also getting the same issue. Sailendra, did you resolve the issue?
    If not could anyone help us to resolve this issue.
    I am using Tibco JMS for queue and I have set 'ConnectionFactory' as Connection Factory Lookup Name value in the external resourse.
    Thanks in advance.
    Regards,
    Ramanan

  • NOT PRINTING FROM WINDOWS 7 TO MY PHOTOSMART c7180 ALL-IN-ONE (I CAN SEE MESSAGES IN QUEUE)?

    CANNOT PRINTING FROM WINDOWS 7 TO MY PHOTOSMART c7180 ALL-IN-ONE (I CAN SEE MESSAGES IN QUEUE)?

    Hi,
    I think you need to remove the queue. Please try:
        hold down the Windows key and press R.
        from the Run window, type services.msc and hit enter.
        if the machine asks for Admin you have to accept this,
        look down to the print spooler service, right click it and select properties
        click on the Stop button,
        browse to C:\Windows\System32\Spool\printers
        delete the job inside this folder
        reboot the machine
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Get information about Subscribed Consumer and messages in queue

    Hi,
    I use a library that allow to set a set of consumers. They read messages I send. I check if the consumers are subscribed through "Open Message Queue Administration Console". Through Broker->Destinations I found the consumer under the correct destination I find the consumers with the message in queue, state and other information. I would like to obtain these information programmatically.
    Could someone link me an example?
    Thanks, bye bye.

    Hi,
    I'm reading the page but I cannot find the jar file that contains this package:
    import com.sun.messaging.jms.management.server
    and the classes:
    -MQObjectName
    -DestinationAttributes
    -DestinationType
    What is the jar file for the class above?
    Moreover, I cannot find the class:com/sun/messaging/jmq/management/JMXMQAddress
    when I try to use the code I wrote I receive this error:
    >
    java.lang.NoClassDefFoundError: com/sun/messaging/jmq/management/JMXMQAddress
         at com.sun.messaging.AdminConnectionFactory.getJMXServiceURL(AdminConnectionFactory.java:257)
         at com.sun.messaging.AdminConnectionFactory.createConnection(AdminConnectionFactory.java:207)
         at testcase.eventManager.DPCTRMSEVENTMANAGER.message(DPCTRMSEVENTMANAGER.java:123)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
         at org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
         at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
         at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
         at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
         at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:66)
         at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
         at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
         at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
         at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
         at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45)
         at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
    Caused by: java.lang.ClassNotFoundException: com.sun.messaging.jmq.management.JMXMQAddress
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
         ... 23 more
    Where can I found this class?
    Thanks, bye bye.
    Edited by: PiotreUgrumov on May 13, 2010 8:29 AM

  • Net.Msmq Binding Not Picking Up Messages in Queue as soon as the application pool gets recycled

    Hi,
    We are trying to implement a wcf service that exposes a net.msmq endpoint.  We are running windows server 2008 R2/IIS 7.5 running on a DOMAIN mode.
    1. Our service is called service.svc and it is deployed under an application called Test in the default website (application pool running under network service)
    2. The url to reach the service webpage is http://machinename/Test/service.svc.
    3. We created a private queue called Test/service.svc and we configured permissions for network service to full control.
    Now, when the application pool is "alive" the service picks up the messages correctly, but as soon as the application pool gets recycled (because of timeout or any other reason), the service stops picking up the messages, that just sit in the queue until the service starts again by browsing to the service webpage (http://machinename/Test/service.svc)
    I know this is a popular question, but I already tried several solutions with no luck (for example, we triedhttp://keithelder.net/blog/archive/2009/06/03/fix-for-wcf-netmsmqbinding-not-picking-up-messages-in-queue.aspx,http://www.codewrecks.com/blog/index.php/2009/03/17/hosting-a-wcf-service-based-on-msmq-in-iis7/,http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/a1df55c4-e642-442a-9057-f0aec278d10c/ and other ones)
    Any Help?
    If this post is helpful, please mark it as such
    Alessandro Cardoso
    MVP | Microsoft Heroes | MCT
    blog: http://itaustralia.spaces.live.com
    http://cardosoalessandro.spaces.live.com

    Hi Steven,
    I am Alessandro's colleague, I am working with him on these net.msmq issues. 
    Our configuration includes a transactional queue called Test/Service.svc (unauthenticated,
    we shut down all security for the moment...does it matter?) and these attributes on the service:
    [ServiceContract]
    public interface IService
    [OperationContract(IsOneWay=true)]
    void ProcessMyMessage(MyClass parameter);
    [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall, TransactionIsolationLevel = IsolationLevel.Serializable, TransactionTimeout = "00:03:00")]
    public class Service: IService
    [OperationBehavior(TransactionScopeRequired = true, TransactionAutoComplete = true)]
    public void ProcessMyMessage(MyClass parameter)
    //Do some stuff here
    The service is hosted on IIS 7.5 under an application called Test (so that the full http address of the service is http://machine/Test/Service.svc).
    In the configuration (for both client and service) we specified None for the security mode, "true" value in durable and exactlyOnce
    The Net.msmq Listener Adapter windows service is running fine under the Network Service account (the same as our application pool)
    Is there something we are missing?
    Also, can you explain how a transaction not configured properly can create this behaviour? In my understanding the process of delivering a message happens in 3 steps (I remember a nice picture of this the Juval Lowy book):
    1) Transaction 1: client delivers message to local instance of msmq. The transaction rolls back if the message does not get delivered.
    2) Transaction 2: the local instance of msmq delivers the message to the remote (service) instance of msmq. The transaction rolls back if the message does not get delivered.
    3) Transaction 3: wcf activates my service which picks up the message and process it. The transaction rolls back if the service fails to pick up the message or does not complete the transaction (for example, because of an unhandled exception).
    The message gets delivered to the service machine successfully, so I am assuming that steps 1 and 2 are executed correctly. If my service was not configured to handle transaction properly, wcf should still activate it and do something with it. Or at least,
    if it doesn't get activated at all, this should be the case even when the application pool is well alive and awake, because it should be a configuration problem. Instead, the service works great if the appPool is alive and it never gets activated when the
    appPool is sleeping (absolute nothing in the .svclog trace file generated by the service). Am I saying something wrong?

  • Drop messages in queue that have a blank sender

    I'm getting hundreds of messages in the Queue where the From Address is < >. 
    Do I just let these build up or is there a setting somewhere that would just drop the message if it has a blank sender?
    Here is an example of one that I've received;
    Identity: Pebbles\512\21474838371
    Subject: Undeliverable: MUST READ: Vehicle's Below Kelly-Blue-Book*
    Internet Message ID: <[email protected]>
    From Address: <>
    Status: Ready
    Size (KB): 10
    Message Source Name: DSN
    Source IP: 255.255.255.255
    SCL: -1
    Date Received: 5/27/2014 11:51:09 AM
    Expiration Time: 5/29/2014 11:51:09 AM
    Last Error: 400 4.4.7 Message delayed
    Queue ID: Pebbles\512
    Recipients:  [email protected];2;2;[{LRT=};{LED=400 4.4.7 Message delayed};{FQDN=};{IP=}];0;CN=outbound,CN=Connections,CN=Exchange Routing Group (DWBGZMFD01QNBJR),CN=Routing Groups,CN=Exchange Administrative Group (FYDIBOHF23SPDLT)....
    1 email server in domain; Exchange 2013 sp1/Win2012 Standard
    PennyM

    On Exchange 2010 you have antispam agents that can help you discard such messages.
    Sender filtering has a check box called drop messages with blank senders select that and restart the transport service on the servers to get that updated quickly.
    In 2013 server, you have sender filtering as well.

  • Prosecced messages in queue

    Hello!
    Came across puzzle when do dequeue messages:
    We want to dequeue all messages for particular consumer.
    We do dequeue with no_wait, first_message, consumer_name.
    It works all right.
    All messages for specified consumer is dequeued.
    Immediately querying view AQ$QUEUE_T_QUEUE_x - we can see that dequeued messages are in 'PROCESSED' status
    and in 'READY' status in table QUEUE_T_QUEUE_x.
    Wait some Time - query view/table again - and we dont see them any more in the queue.
    Queue retention is set to 25 hours. So messages deleted from queue much more fast.
    The main question is - what does the
    Time between message is in 'PROCESSED' state after dequeue
    and
    time it disappears from queue
    depend on?
    We see different Time on different instances.
    AQ_TM_PROCESSES=10
    We guess that may be it's Queue Monitor that responsible for that?
    Does anybody know what is going on and how to control it?
    Any help is appreciated!
    Thanks in advance!

    Hi maha,
    Yes, queue monitor has responsible for post-process of dequeued messages in queue table.
    In 10gR2, Queue Monitor processes deqeueud messages every 30 seconds.
    If queue retention time are already expired when a queue monitor checks qtable, then a Queue Monitor removes messages from qtable. Otherwise, Queue Monitor update "deq_time" column in qtable. (deq_timestamp column in view is differ from deq_time in qtable.)
    However, I don't know why your messages are removed from qtables even though you set queue retention to 25 hours. And I have no idea to control Queue Monitor cycle, behavior, and so on,

  • JMS adapter transaction. Rollback message to queue.

    Hi all !
    A have question about jms adapter transaction. My composite application has 3 steps : JMS adapter (listener), mediator, WS adapter. JMS adapter listen queue push message to mediator, mediator invoke web service. If ws not available (server down), mediator try recovery 5 times. After 5 times, reject message from queue. I wont rollback message to queue. I saw examples with JMS + BPEL, but it not help me. Anybody can help me.

    Hi,
    You don’t need to catch a mediator fault – you can let it rollback to the JMS Queue and let the Queue do the retries.
    To get the retries working, log in to the weblogic console and navigate to JMS Modules -> Your Module -> Your Queue -> Configuration -> Delivery Failure
    Here you will find options for Redelivery Limit. Set this to the number of retries you need.
    Then navigate to the connection factory you want and set the redelivery delay.
    This should get your desired behaviour, but once the message has failed it will be discarded. If you prefer to put it on an error queue you can create an error queue, and in the original queue’s, goto Delivery Failure, change the expireation policy and set the Error Destination to be your error queue.
    Hope that helps!
    Robert

  • How to send message to Queue using JMS

    Hai Friends,
    I have written one program, which sends one seriablizable object to the queue. At
    queuesender.send(objectmessage) statement
    i am getting the following exception, but message is going to queue. The next statement is not executing. Next statements is simple debug statement.
    i.e.,System.out.println("Message has been send");
    why this is not working let me know plzz
    HERE is EXception
    <May 15, 2006 11:02:46 AM IST> <Alert> <JMS> <BEA-040049> <JMSServer "cgJMSServer" store failure occurred while writing message for queue ACMQueue, java.io.IOException: JMS JDBC store, connection pool = <cgJMSPool-nonXA>, prefix = <weblogic>: flush failed
    java.io.IOException: JMS JDBC store, connection pool = <cgJMSPool-nonXA>, prefix = <weblogic>: SQL exception
    java.sql.SQLException: Connection failure. sendMethodRequest(...).

    Hai Friends,
    Previously i didn't give full stack trace. now i am sending the exact stack trace and little bit code. Plz help me
    CaseQuerySearchResult cqsr = new CaseQuerySearchResult();
    ObjectMessage obj = qsession.createObjectMessage();
    while(rs.next())
         // I am getting 10 fields from DB and setting those values like the following,
         cqsr.children.setLoan(rs.getString(1));
    obj.setObject(cqsr);
    qconnection.start();
    System.out.println("----B4 qsender----");
    qsender.send(obj);
    System.out.println("----After qsender----");
    <May 15, 2006 12:05:47 PM IST> <Alert> <JMS> <BEA-040095> <JMSServer "cgJMSServer". Store I/O failure, java.io.IOException: JMS JDBC store, connection pool = <cgJMSPool-nonXA>, prefix = <weblogic>: ping failed, database not responding
    java.io.IOException: JMS JDBC store, connection pool = <cgJMSPool-nonXA>, prefix = <weblogic>: SQL exception
    java.sql.SQLException: Connection failure. sendMethodRequestNoFlush(...).
    at com.pointbase.dbexcp.dbexcpException.getSQLException(Unknown Source)
    at com.pointbase.net.netJDBCPrimitives.sendMethodRequestPrivate(Unknown Source)
    at com.pointbase.net.netJDBCPrimitives.sendMethodRequestByID(Unknown Source)
    at com.pointbase.net.netJDBCConnection.setAutoCommit(Unknown Source)
    at weblogic.jdbc.wrapper.PoolConnection.setAutoCommit(PoolConnection.java:141)
    at weblogic.jms.store.JDBCIOStream.opendb(JDBCIOStream.java:2205)
    at weblogic.jms.store.JDBCIOStream.ping(JDBCIOStream.java:1286)
    at weblogic.jms.store.StoreRequest.doTheIO(StoreRequest.java:355)
    at weblogic.jms.store.JMSStore.execute(JMSStore.java:493)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    at weblogic.jms.store.JDBCIOStream.throwIOException(JDBCIOStream.java:498)
    at weblogic.jms.store.JDBCIOStream.opendb(JDBCIOStream.java:2287)
    at weblogic.jms.store.JDBCIOStream.ping(JDBCIOStream.java:1286)
    at weblogic.jms.store.StoreRequest.doTheIO(StoreRequest.java:355)
    at weblogic.jms.store.JMSStore.execute(JMSStore.java:493)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    java.io.IOException: JMS JDBC store, connection pool = <cgJMSPool-nonXA>, prefix = <weblogic>: ping failed, database not responding
    java.io.IOException: JMS JDBC store, connection pool = <cgJMSPool-nonXA>, prefix = <weblogic>: SQL exception
    java.sql.SQLException: Connection failure. sendMethodRequestNoFlush(...).
    at com.pointbase.dbexcp.dbexcpException.getSQLException(Unknown Source)
    at com.pointbase.net.netJDBCPrimitives.sendMethodRequestPrivate(Unknown Source)
    at com.pointbase.net.netJDBCPrimitives.sendMethodRequestByID(Unknown Source)
    at com.pointbase.net.netJDBCConnection.setAutoCommit(Unknown Source)
    at weblogic.jdbc.wrapper.PoolConnection.setAutoCommit(PoolConnection.java:141)
    at weblogic.jms.store.JDBCIOStream.opendb(JDBCIOStream.java:2205)
    at weblogic.jms.store.JDBCIOStream.ping(JDBCIOStream.java:1286)
    at weblogic.jms.store.StoreRequest.doTheIO(StoreRequest.java:355)
    at weblogic.jms.store.JMSStore.execute(JMSStore.java:493)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    at weblogic.jms.store.JDBCIOStream.throwIOException(JDBCIOStream.java:498)
    at weblogic.jms.store.JDBCIOStream.opendb(JDBCIOStream.java:2287)
    at weblogic.jms.store.JDBCIOStream.ping(JDBCIOStream.java:1286)
    at weblogic.jms.store.StoreRequest.doTheIO(StoreRequest.java:355)
    at weblogic.jms.store.JMSStore.execute(JMSStore.java:493)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    at weblogic.jms.store.JDBCIOStream.throwIOException(JDBCIOStream.java:498)
    at weblogic.jms.store.JDBCIOStream.ping(JDBCIOStream.java:1318)
    at weblogic.jms.store.StoreRequest.doTheIO(StoreRequest.java:355)
    at weblogic.jms.store.JMSStore.execute(JMSStore.java:493)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)

  • Code to Retrieve the message from Queue in Oracle BPEL

    Actually I am placing the Message into JMS Queue using JMS Adapter.After Placing the message,I need to retrieve the placed message from same queue.
    Right now I am using the Receive Activity and the JMS Adapter to retrieve the message from Queue.But my receive activity is always in the waiting state itself and I am not able to retrieve the message from queue.What might be the issue????
    Can anybody give me a better suggestion so that I can go ahead??
    Thanks in advance for your help.

    Hi Raja,
    Is the process a empty bpel process which is used to get the message from the MQ?
    Regards
    Surya

  • Large Message Payload - Queue selection

    Hi,
        I have one message with payload size around 105MB when I am trying to send through XI this message gets failed in the queue (inbound) of integration engine saying some memory problem to process the message. I have seen the queue it is picking up some XBT09_000 but I want to use the queue XBTL* as this queue is for large messages. The whole thing is that when my message is around 100MB I want it route large message processing queue i.e XBTL*. Is there anyway to do this? Any help on this greatly appreciated.
    Thanks.,
    Daniel.LA

    There is a way to defer large messages from the rest and process them using a job in a specific queue.
    Please check this configuration :
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm</a><a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/14/8024">Message Selection Filter</a>
    in this path:
    Under Runtime - > Integration engin ->
    Prioritized Message Processing
    Queues for Prioritized Message
    Good luck
    Nimrod

  • Record count message

    Hi all,
    I have 2 canvas (1 canvas having database block items ,2nd having control block items & FIND button also in Control block), My requirement is when i select any one of the lov and click on the find button(in 2nd canvas , control block canvas) then it navigates to the database block canvas and displays records, at that time i want to display record count message. for this i add on-count trigger on form level, but not working, Could any one suggest me please.
    declare
      cnt number := 1;
    begin
      go_block('Blockname');
      first_record;
      while :system.last_record = 'FALSE'
      loop
      cnt := cnt + 1;
      next_record;
      end loop;
    message('There are ' || cnt || ' records in this block');
    end;
    Thank You

    994122 wrote:
    declare
      cnt number := 1;
    BEGIN
      IF :SYSTEM.LAST_RECORD='TRUE' THEN
      go_block('HOPE_FORECAST_DATA');
      first_record;
      loop
          cnt := cnt + 1;
              EXIT WHEN :SYSTEM.LAST_RECORD='TRUE';
          next_record;
      end loop;
        FND_MESSAGE.SET_STRING('There are ' || cnt || ' records in this block');
        FND_MESSAGE.SHOW;
    message'There are '||to_char(cnt)||' records in this block'); message(' ',no_acknowledge);
      END if;
    end;

Maybe you are looking for