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

Does anybody use Plain java API instead of CURL when doing something from zOS to RTC?

 We're doing some process orchestration from RTC to zOS and we need to update work items status from zOS.
At the moment we're using curl and everything works but we think we loose some time parsing around json with Rexx. So we would like to try to do the same things using plain java api on zOS (they should work...just jar libraries). Does anybody use plain java api in zOS? (We're on RTC 2.0.0.2 iFix 6...)

0 votes

Comments

I only use Rexx/cURL on z/OS to connect to RTC Work Items or anything else in Jazz through OSLC.   You mention you lose time parsing around json with Rexx, but there is also time spent starting up java that you do not encounter.  So, I guess to get the real truth, you would have to test both solutions side by side.  I've followed this approach as I am assuming that more people on z/OS know Rexx than Java, so, that is what I've done.  I guess I do have more File I/O with Rexx/cURL though.



2 answers

Permanent link
 We tried a simple "copy jar on zOS" approach and we got this error just trying to execute a class to connect to RTC
$ javac -cp .:/u/A060491/plainjava/* Test.java 

$ java -cp .:/u/A060491/plainjava/* Test 

Exception in thread "main" java.lang.ExceptionInInitializerError 

      at java.lang.J9VMInternals.initialize(J9VMInternals.java:227) 

      at com.ibm.team.repository.client.internal.TeamRepository.<init>(TeamRepository.java:412) 

      at com.ibm.team.repository.client.internal.TeamRepositoryService.createSharedTeamRepository(TeamRepositoryService.java:366) 

      at com.ibm.team.repository.client.internal.TeamRepositoryService.getTeamRepository(TeamRepositoryService.java:91) 

      at com.ibm.team.repository.client.internal.TeamRepositoryService.getTeamRepository(TeamRepositoryService.java:110) 

      at Test.main(Test.java:14) 

Caused by: java.lang.IllegalArgumentException: The type name Contributor and the namespace URI com.ibm.team.repository do not resolve to an IItemType. 

      at com.ibm.team.repository.common.internal.querypath.AbstractQueryPathModel$Implementation.getItemType(AbstractQueryPathModel.java:190) 

      at com.ibm.team.repository.common.query.IQuery$Factory.newInstance(IQuery.java:92) 

      at com.ibm.team.repository.client.internal.ContributorManager.createAllContributorsQuery(ContributorManager.java:57) 

      at com.ibm.team.repository.client.internal.ContributorManager.<clinit>(ContributorManager.java:45) 

      at java.lang.J9VMInternals.initializeImpl(Native Method) 

      at java.lang.J9VMInternals.initialize(J9VMInternals.java:205) 

      ... 5 more

0 votes


Permanent link
 There's a work item associated: Defect 121480


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
× 411
× 69
× 17

Question asked: Aug 16 '12, 12:28 p.m.

Question was seen: 5,235 times

Last updated: May 07 '13, 11:44 p.m.

Confirmation Cancel Confirm