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

Can't get serviceContext (ICommonServiceContext)

Hi,

I need an ICommonServiceContext to call some methods (Query, IAttribute, ...). Unfortunately the following line returns "null"

ICommonServiceContext context = (ICommonServiceContext) repo.getClientLibrary(ICommonServiceContext.class) ;

How can I get/create that context?

Thanks in advance
Kai

0 votes



One answer

Permanent link
Hi Kai

I need an ICommonServiceContext to call some methods (Query,
IAttribute, ...). Unfortunately the following line returns
"null"

ICommonServiceContext context = (ICommonServiceContext)
repo.getClientLibrary(ICommonServiceContext.class) ;

How can I get/create that context?

ICommonServiceContext is an internal implementation detail of the
WorkItem component.

You should use repo.getClientLibrary(IQueryClient.class) or
repo.getClientLibrary(IWorkItemClient.class) to get access to the
IAttribute/Query functionality on the client.

Regards,
Patrick
Jazz Work Item Team

0 votes

Your answer

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
× 11,050

Question asked: May 16 '08, 4:31 p.m.

Question was seen: 9,222 times

Last updated: May 16 '08, 4:31 p.m.

Confirmation Cancel Confirm