cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing PI ALERT JMS queue using Hermes tool

0 Kudos

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?focusedCom...

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

Accepted Solutions (0)

Answers (5)

Answers (5)

AndreasJob
Advisor
Advisor
0 Kudos

Another way to retrieve the Alerts is via the web service API "AlertRetrieveAPI_V2".

The WSDL URL is: http(s)://<host>:<port>/AlertRetrieveAPI_V2_Service/AlertRetrieveAPIV2ImplBean?wsdl&mode=ws_policy&style=document


More details are described here:
https://help.sap.com/viewer/bdfc9b7d99b544d8bbda40546b70967a/7.5.16/en-US/9bb8b1b38fc74043a90fbc79d2...

sugata_bagchi2
Active Contributor
0 Kudos
0 Kudos

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

0 Kudos

Hi Manoj,

Thanks for your reply,

I have already added these JAR

screenshot-1.png.

Thanks

manoj_khavatkopp
Active Contributor
0 Kudos

Hi Navneet,

You need to add the below jar files :

Br,

Manoj