How to use tlsv1.2 from Java using openssl1 package in SLES 11 SP4?

I have a java application which makes api calls to an URL which supports communication over tlsv1.2. I wanted to use tls v1.2 for all communications from my application to the URL. I have both openssl and openssl1 installed on my server. But, I wanted to make openssl1 default for my java application to use. How to do that?