Skip to Content
0

Accessing PI ALERT JMS queue using Hermes tool

Oct 11, 2017 at 07:20 AM

88

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Manoj K Oct 11, 2017 at 07:54 AM
0

Hi Navneet,

You need to add the below jar files :

Br,

Manoj


jms.png (30.4 kB)
Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Oct 11, 2017 at 08:43 AM
0

Hi Manoj,

Thanks for your reply,

I have already added these JAR

screenshot-1.png.

Thanks


screenshot-1.png (31.0 kB)
Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Oct 13, 2017 at 08:35 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded