Author Message
MichaelDailous_deprecated
Joined: Nov 11, 2013
Messages: 171
Offline
Is it possible to have one PDC enable another plugin? I have a PDC that depends on the Axis2 plugin and would like to enable that plugin automagically.

I've tried both of the following code snippets unsuccessfully [in my PDCConfiguUI.performOk(boolean) method]:

PluggableConnector.enableConnectorForProjects("com.avaya.sce.ws2.connector", new IProject[]{getProject()}, true);

PluggableConnector.getRegisteredConnector("com.avaya.sce.ws2.connector").setState(PluginState.ENABLED);

Michael
RossYakulis
Joined: Nov 6, 2013
Messages: 2652
Offline
PluggableConnector.enableConnectorForProjects(WsPlugin.WSOP_PDC_ID, new IProject[] {project}, true);
MichaelDailous_deprecated
Joined: Nov 11, 2013
Messages: 171
Offline
I was so close. I was using the PluggableConnector.getConnectorId() value instead... thank you!!! :)

Michael
RossYakulis
Joined: Nov 6, 2013
Messages: 2652
Offline
The web service wizard used that code to automatically enable the WS plugin when a wsop is created.
MichaelDailous_deprecated
Joined: Nov 11, 2013
Messages: 171
Offline
Is there a reason to use WsPlugin.WSOP_PDC_ID instead of Ws2Plugin.WSOP2_PDC_ID?
RossYakulis
Joined: Nov 6, 2013
Messages: 2652
Offline
One is Axis 1.4 the other Axis2, I just grabbed the first example I found.
MichaelDailous_deprecated
Joined: Nov 11, 2013
Messages: 171
Offline
Awesome! It works beautifully!!! Thank you. I like the "enable from wizard" design.. I may use it. LOL

Thanks again,
Michael
Go to:   
Mobile view