Question

While using the .Net client TIBCO EMS, How to monitor outgoing messages from my .Net Tibco client?

I'm going to send Application-level, not jms-level, acknowlegements and replies. How can I tell If the application sent them or not? If the client failed to send a message will it throw an exception or store the message to try again later?

Bottom line, Is there any tool enables me to monitor activities(outgoing) from client point of view?

Was it helpful?

Solution

While using the .Net client TIBCO EMS, How to monitor outgoing messages from my .Net Tibco client?

What is it exactly that you want to monitor, is it the actual messages on the bus/EMS or the workings of your client (not including the client libraries)? The first I'll answer below, the second you can handle with regular logging. I suggest log4Net or similar library for that.

I'm going to send Application-level, not jms-level, acknowlegements and replies. How can I tell If the application sent them or not?

I suggest you log this internally just above the client dll level (see next question).

If the client failed to send a message will it throw an exception or store the message to try again later?

Depending on the specific problem the EMS client dlls will either throw an exception or in the case of a lost connection, attempt to reconnect. In the second case the number of attempts depends on how the connection factory is configured (ask your EMS administrator).

The exceptions thrown by the client depend on the problem, they all inherit from TIBCO.EMS.EMSException and they are all listed in your API documentation(!).

Bottom line, Is there any tool enables me to monitor activities(outgoing) from client point of view?

There are several tools that will allow you to monitor the EMS and specific destinations. When monitoring destinations they will most likely use the monitoring topics mentioned by both Anders and c. liau. (a practical example is "$sys.monitor.Q.*.queue.sample"). Subscribing to a monitor topic is like subscribing to any other topic and is possible with the client libraries, you do not need a specific tool for this. You do however need elevated user rights.

It sounds to me like you have not gotten sufficient documentation with your client libraries. Personally I do not see the need for monitoring your destinations from your application, in fact I would strongly question that design. Correct exception handling and internal logging should be sufficient to solve the problem at hand.

OTHER TIPS

The TIBCO ems server comes with a tool called tibemsmonitor which is useful if you have traffic going out on topics.

tibemsmonitor -monitor [-server ] [-user ] [-password ] [-selector ] [-short] [-help] [-helpssl]

Linky: http://tibcoadmin.com/quick-reference/

If you monitor $sys.monitor.> you can get quite a lot of administrative messages, e.g. send/acknowledges etc.

tibemsmonitor TIBCO HAWK Or use an intermediate custom proxy client.. Or at core as network traffic sniffer.. www.sysinternals.com

Try $sys.monitor.> with this tool

https://anderstool.dev.java.net

You can use Gems utility tool for monitoring tibco EMS https://community.tibco.com/wiki/graphical-administration-tool-tibcor-ems-gems

It's pretty good tool for setup and monitoring EMS server. Today's latest version is 5.1 Gems provides the following main features:

  • Server Monitoring. Server state and main statistics are automticaly updated, warning and error limits may be configured. Server generated events are also captured.
  • Server Management. Including, general server configuration, JMS destinations, JNDI factories, users/groups, permissions, bridges,
    routes etc.
  • JMS support. Messages may be sent/received, queues may be browsed and message contents inspected. Selectors and filters may be
    specified.
  • JMS Message Monitoring. Messages may be monitored (snooped) as they pass through the server. Request and reply messages can be
    correlated to provide service response times.
  • JMS Message Management. Eg; purging messages, copy messages from a queue to another queue on a different server.
  • Charting. Server statistics may be charted in real time, data may be saved to CSV files for export to other tools such as Excel.
  • Logging. Server statistics may be logged automatically when warning or error limits are breached.
  • Security. SSL connectivity, view only mode.
  • Customisable display and look and feel.
  • Support for Managing and Monitoring TIBCO SubStation.
  • Support for Monitoring TIBCO EMS Appliance.
  • Support for Migrating to TIBCO EMS Appliance
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top