Skip to Content
avatar image
Former Member

Accessing PI ALERT JMS queue using Hermes tool

Hi All,

I am working on PI CBAM in PI 7.4 SP11 dual stack. I have done my alert configuration

1. Creating Alert rule at ID by selecting consumer as ALERT-TO-MAIL and have assigned my ICO and configuration scenario to that Alert rule

2. have scheduled AlertConsumerJob at nwa->operation->Jobs

3. Have entered smtp server detail at nwa->java system properties -> services-> java mail client.

4. Have set Monitoring ALERT_IS_ACTIVE=1 & ALERT_TARGET-1 at sxmb_ADM tcode

Please let me know if any other setting is required.

I understood that we do not have Alert inbox for CBAM and the alert message are now handled through PI JMS queue. I would like to access these JMS queue using a Hermes JMS client and following the blog-

https://wiki.scn.sap.com/wiki/display/XI/HowTo%3A+Connect+to+SAP+JMS+Provider+with+HERMES?focusedCommentId=403572077

I have done all the configuration but getting error on step 4-

javax.jms.JMSException: Could not create InitialContext: Exception while trying to get InitialContext. at hermes.JNDIContextFactory.createContext(JNDIContextFactory.java:282) at hermes.browser.components.ContextTreeModelFactory.create(ContextTreeModelFactory.java:58) at hermes.browser.tasks.JNDIBrowseTask.invoke(JNDIBrowseTask.java:59) at hermes.browser.tasks.TaskSupport.run(TaskSupport.java:175) at hermes.browser.tasks.ThreadPool.run(ThreadPool.java:170) at java.lang.Thread.run(Thread.java:745)

Have referred the thread-

https://archive.sap.com/discussions/thread/3695518 but no luck and still i am getting same error.

kindly let me know if I have missed any configuration.

Thanks,

Navneet Sumit

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Oct 11, 2017 at 07:54 AM

    Hi Navneet,

    You need to add the below jar files :

    Br,

    Manoj

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 11, 2017 at 08:43 AM

    Hi Manoj,

    Thanks for your reply,

    I have already added these JAR

    screenshot-1.png.

    Thanks

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 13, 2017 at 08:35 AM

    Hi All,

    Now I am not getting the above error when I changed the port to P4 Port which is 50004.But as per wiki-https://wiki.scn.sap.com/wiki/display/XI/HowTo%3A+Connect+to+SAP+JMS+Provider+with+HERMES?focusedCommentId=403572077

    step 4 will take some time to load data. in my case the process is executing from last 2 days and it is never loading the JMS factory detail.

    I checked the home folder i.e hermes folder under C drive for the log file but no log file is generated there. Any Idea what went wrong here.

    Thanks,

    Navneet

    Add comment
    10|10000 characters needed characters exceeded