It's all about the answers!

Ask a question

How do I connect to a jazz server using a java application?

emanuele roccotelli (633) | asked Jun 10 '14, 6:42 a.m.
edited Jun 10 '14, 7:02 a.m. by Ralph Schoon (56.6k23642)

I'm trying to get the content of a certain page ( ) 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.

sam detweiler commented Jun 10 '14, 7:48 a.m.

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.

One answer

permanent link
Daniel Garcia (491013) | answered Jun 10 '14, 8:12 a.m.
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:

It allows to retrieve information from Jazz aplications, and explains how to "bridge" the certificate validation.

Hope it helps.

Your answer

Register or to post your answer.