Creating IChangeEventService on the client side
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:
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?
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?