Genesys CTI User Forum > Genesys-related Development

Config server events

(1/3) > >>

genesyslearner:
Hi Experts,

I am trying to subscribe to config server events using Platform SDK (JAVA) so that we could be notified for any changes made to the config server.
I am sure that we need to user register and subscribe method of ConfService but i am struggling to use the register method for client registration.

Below is the code i could write but it is throwing me an error at the first line itself:-
                [color=red][b]confService.register((Subscriber<ConfEvent>));[/b][/color]
NotificationQuery nq = new NotificationQuery();
nq.setTenantDbid(1);
confService.subscribe(nq);

Anys suggestions/pointers will be of great help.

genesyslearner:
Hi Experts,

I was able to sort this issue. As Subscriber<ConfEvent> is an interface, i had to override the in-built methods:-

Please find below the code :-

Subscriber<ConfEvent> ce = new Subscriber<ConfEvent>() {

@Override
public void handle(ConfEvent ce) {
// TODO Auto-generated method stub
System.out.println("Subscribe person object event handler evenet type ::::: " +ce.getEventType());
System.out.println("Subscribe person object event handler object type::::: " +ce.getObjectType());
}

@Override
public Predicate<ConfEvent> getFilter() {
// TODO Auto-generated method stub
return null;
}
};
service.register(ce);
NotificationQuery nq = new NotificationQuery();
nq.setTenantDbid(1);
Subscription ss = service.subscribe(nq);

genesyslearner:
Hi Experts,

I had to restart this post as i need some advanced info related to this similar post.

As of now i am getting Conf Events about :-

1.EventObjectCreated
2.EventObjectUpdated
3.EventObjectDelted

But as per the new requirement i need info on who has changed the object .i.e. username.
I couldn't get any info either from confevents or form Eventhandling methods of confserver.

Please could you suggest any solution.

genesyslearner:
Hi All,

I have been reading lot of documents and doing lot of research on this issue. As per the information i could collect, We need to interface with the Genesys Message Server to track configuration changes. I am able to connect to the Message Server via MessageServerprotocol but still struggling to retrieve log messages.

Looking for help on Log Messages retrieval via message server sdk.

Note:- Auditing is enabled in our environment(GA).

Sorry to bother you all again but wanted to share the latest findings. Please accept my apologies if am being repetitive in this post.

Kubig:
You have to use Configuration Server for tracking Configuration Changes, not Message Server. Message Server serves just like a DB connector for centralized audit log

Navigation

[0] Message Index

[#] Next page

Go to full version