Hi guys,

 

I wrote a little jar file containing a custom implementation of a 
org.opennms.netmgt.provision.ProvisioningAdapter. The custom adapter by itself 
doesn’t do much, it only prints to System.out (I haven’t implemented business 
Logic yet).

I just packaged the thing into a jar and put it in the lib folder of OpenNMS. I 
annotated the class with org.springframework.stereotype.Service.

 

How do I activate this custom ProvisioningAdapter? Do I need some other special 
annotation or need to configure it in XML? 

 

Somebody advised me on the opennmns-discuss list to extend the 
SimpleQueuedProvisioningAdapter instead. I also looked at existing adapter 
implementations and found:

 

o   @EventListener(name="SnmpAssetProvisioningAdapter")

public class SnmpAssetProvisioningAdapter extends 
SimplerQueuedProvisioningAdapter implements InitializingBean {

(not sure what @EventListener does? Javadoc isn’t so helpful for this 
annotation)

 

o   public class PuppetProvisioningAdapter extends 
SimpleQueuedProvisioningAdapter {

 

o   public class DnsProvisioningAdapter extends SimpleQueuedProvisioningAdapter 
implements InitializingBean {

 

I couldn’t find out what causes the ProvisioningAdapter implementation to be 
registered in OpenNMS. Can anyone help?

  

Thanks for your response.

 

Regards,

Nadeem

 

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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