OSGI Service development
Hi Guys,
I am trying to create a OSGI bundle in CRXDE Lite. I have created a sling servlet in that bundle and it is working fine.
Now i want to create a OSGI Service and use it in the servlet. Can i create the Inteface and implementation class as siblings to sling servlet? If not Should i create a separate bundle for this?
The folder structure i follow is shown below (apologies for the format).
| apps | ||||||||
| /project | ||||||||
| /MyBundle | ||||||||
| /MyBundle.bnd | ||||||||
| src | ||||||||
| main | ||||||||
| java | ||||||||
| com | ||||||||
| test | ||||||||
| Activator.java | ||||||||
| MySlingServlet.java | ||||||||