OOTB Email service not working with R6 osgi annotations | Community
Skip to main content
Level 3
Sep 22, 2018 1:45 PM UTC
Solved

OOTB Email service not working with R6 osgi annotations

Hi,

We have used OOTB Email service using R6 osgi annotations.

Currently facing one issue as message gateway service coming null while sending notification using gateway method.

How ever the message Gateway Service reference object is there but not working with Gateway method ?

Couple of other projects which implemented using Felix SCR annotations is working with email service.Do we have any reference implementations using R6 osgi?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Sep 25, 2018 1:46 PM UTC

See this new HELPX Article that shows how to work with with MessageServiceGateway API in 6.4.

There is a video too that shows it all working. Follow this artilce -- 

https://helpx.adobe.com/experience-manager/using/message_service_gateway_api_64.html

12 replies

Level 3
Sep 22, 2018 5:01 PM UTC

Hi Arun,

Used the Osgi annotations only R6 find the below screenshot

Translate
arunpatidar
New Participant
Sep 22, 2018 4:55 PM UTC

Hi,

Check your imports, you should be using osgi annotations to use services instead of Felix.

e.g.

import org.osgi.service.component.annotations.Component;

import org.osgi.service.component.annotations.Reference;

Translate
Arun Patidar