on 03-26-2010 8:57 PM
hi Guys,
when I am using following command to create a session
sessionId = sessionManager.createSession(userSessionContext,SessionTypes.USER_SESSION_TYPE,userPassword);
I found that in backend(MDM Console) there are 3 connections created.
Two connections with the name "SAP MDM Java API" and 1 with name "SAP MDM Java API (event dispatcher)".
When I am closing connections with the following command
sessionManager.destroySessions(userSessionContext);
the first 2 are getting closed but the one with name event dispatcher is still active. How to close this connection.
Hi,
Try this to Terminate Event dispatcher session.
EventDispatcherManager.getInstance().terminateEventDispatcher(serverName);
But it is not recommended to terminate Event Dispatcher instance if your code is running on Java Web AS as this may be shared by other threads
Please go through [Java API guide|http://help.sap.com/saphelp_nwmdm71/helpdata/en/72/d36e1ed3ce43028adc851b8fed5668/MDM_Java_Net_API_Guide.pdf] on page no 24 for code sample to terminate Event Dispatcher.
Regards,
Shiv
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Shiv,
I tested this code from standalone program and it worked well, This closed the remaing connection with "event dispatcher" name. But you scared me by putting note NOT recommended for running application in java WS . My live application is running in WS and let me try this in DEV environment and see how this behaves.
Meanwhile can you suggest me is there any safe way to close this dispatcher when we are running application in portal. Thanks
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.