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: https://jazz.net/forums/viewtopic.php?t=22851

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 = "https://192.168.122.101:9443/jazz";


TeamPlatform.startup();
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.