camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Kettelerij <richardkettele...@gmail.com>
Subject Re: Camel APNS issue with IBM Websphere server
Date Wed, 18 Dec 2013 21:47:51 GMT
Workaround is to construct your ApnsServiceBuilder in such a way that it
doesn't use any Sun classes. Example:


String algo = ((Security.getProperty("ssl.KeyManagerFactory.algorithm") ==
null)? "sunx509" : Security.getProperty("ssl.KeyManagerFactory.algorithm"));

ApnsServiceBuilder builder =
new ApnsServiceBuilder().withSSLContext(Utilities.newSSLContext(new
FileInputStream("xxxx"), password, ApnsServiceBuilder.KEYSTORE_TYPE, algo));

And then you can wire this ApnsServiceBuilder in the ApnsComponent is
described on http://camel.apache.org/apns.html. E.g:

ApnsComponent apns = new ApnsComponent();
apns.setApnsService(builder.getApnsService()).




On Wed, Dec 18, 2013 at 9:41 PM, Nital <nital.palkhiwala@gmail.com> wrote:

> but it is issue with camel-apns jar in which APNSServicebuilder use sunX509
> certificate and that IBM does not support . so what is workaround for that
> ?
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Camel-APNS-issue-with-IBM-Websphere-server-tp5745003p5745013.html
> Sent from the Camel Development mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message