Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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:

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?

0 votes


Be the first one to answer this question!

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,952

Question asked: Mar 12 '12, 8:04 p.m.

Question was seen: 3,451 times

Last updated: Mar 12 '12, 8:04 p.m.

Confirmation Cancel Confirm