I created an OGI bundle , named :
com.sdl.ws.integration.profserv.webservice.connector.server.external.b eans
I can see the bundle under :
http://localhost:4502/system/console/bundles
Following is my JSP code , using which I am trying to access a bundlecontext
<%@ page import="org.osgi.framework.BundleContext"%>
<%@ page import="org.osgi.framework.FrameworkUtil"%>
<%@ page import="com.sample.osgi.components.FormattingServiceImpl.*"%>
<%@ page import="org.osgi.service.cm.ConfigurationAdmin"%>
<%@ page import="org.osgi.service.cm.Configuration"%>
<%@ page import="org.osgi.service.packageadmin.PackageAdmin"%>
<% BundleContext bundleContext = FrameworkUtil.getBundle(FormattingServiceImpl).getBundleContext(); %>
I am getting the following error : FormattingServiceImpl cannot be resolved , Class name "FormattingServiceImpl" is missing
I tried to use multiple ways to import the jar but nothing is working ,
Here is a structure how my bundle is configured :
I am stuck on the point how to access the bundle context from JSP , does any one has any suggestions / corrections ?