How do I connect to a jazz server using a java application?
emanuele roccotelli (6●3●3)
| asked Jun 10 '14, 6:42 a.m.
edited Jun 10 '14, 7:02 a.m. by Ralph Schoon (63.6k●3●36●46)
Hello,
I'm trying to get the content of a certain page ( https://remote.server.name:9443/jazz/oslc/queries/_2ss5QGOWEd-QUfQMOwUkEA/rtc_cm:results ) using a java application and print it on screen with a simple println (for later purposes). My first problem is the certificate handling: how do i get a valid certificate? how do i get a connection? and ultimately, how do i get the page's content? I'm new to jazz server and java, so i'd appreciate some help. |
One answer
Hi, Emanuele,
Having no experience in both Jazz and Java can be a handicap for the goal you're trying to reach, but maybe you can get some ideas (and sample source code) from the OSLC Workshop you can find here: https://jazz.net/library/article/635
It allows to retrieve information from Jazz aplications, and explains how to "bridge" the certificate validation.
Hope it helps.
|
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.
Comments
here is some sample java HTTP code that logs on, and requests data (HTTP Get request) in JSON format, and then processes that data
you won't need the LPA project stuff, but everything around it.
https://jazz.net/wiki/bin/view/Main/LPAAPIExampleClient