Hi,

I am trying to directly update a service requisition programatically
from within an OSGi feature installed in the OpenNMS karaf container
without using an external POST to the opennms rest api.
(I want to add a new node to a given requisition).

All of the JSP's which do requisition updates and the OpenNMS
provisioning ReST service code make calls against an interface called

org.opennms.web.svclayer.api.RequisitionAccessService

for example see
opennms-webapp-rest/src/main/java/org/opennms/web/rest/v1/RequisitionNamesRestService.java
or
opennms-webapp/src/main/webapp/admin/discovery/add-specific.jsp

The RequisitionAccessService service is available to classes within the
web app by accessing the spring application context but I cannot find an
easy way to access the same service from within the Karaf container.

Is there an easy way to do this. Am I missing a trick to access the
spring web context from within the Karaf OSGi container?

Any help appreciated.

Thanks

Craig

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-devel mailing list

To *unsubscribe* or change your subscription options, see the bottom of this 
page:
https://lists.sourceforge.net/lists/listinfo/opennms-devel

Reply via email to