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...)
2 answers
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
Comments
Dave Bellagio
May 07 '13, 11:44 p.m.