It's all about the answers!

Ask a question

Creating IChangeEventService on the client side

Brian Green (5145) | asked Mar 12 '12, 8:04 p.m.
I previously asked this in another sub-forum:

How do can I create the IChangeEventService object in a client program using the java API? I've tried using the following code, but it doesn't work:

String url = "";

ITeamRepository repo = TeamPlatform.getTeamRepositoryService().getTeamRepository( url );

IChangeEventService changeEventService = (IChangeEventService)repo.getClientLibrary( IChangeEventService.class );

// At this point, changeEventService is null

Do I have to specify any additional configuration or run the program on the same machine as the server to make this work?

Also, the reason why I'm doing this is because I want to programmatically change the author of a commit. Is this even possible?

Be the first one to answer this question!

Register or to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.