Minor detail: don't forget to call builder.build() before
builder.getApnsService().


On Wed, Dec 18, 2013 at 10:47 PM, Richard Kettelerij <
[email protected]> wrote:

> 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 <[email protected]> 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.
>>
>
>

Reply via email to