App Connect

App Connect

Join this online user group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Java Library migration for IIB to ACE

    Posted Tue February 14, 2023 10:12 AM

    Hello, I have  a Java library that has deprecated classes and some not found in ACE classpath.

    Is there a simple way to migrate these libraries? Is there a reference page that will show what the deprecated classes have been replaced with?

    Thank you in advance.



    ------------------------------
    Tony Ferlisi
    ------------------------------


  • 2.  RE: Java Library migration for IIB to ACE

    Posted Wed February 15, 2023 03:33 AM

    Hi Tony

    Ace supplied libraries or java core libraries?

    For the ACE java api you can find the info here:

    https://www.ibm.com/docs/en/app-connect/11.0.0?topic=SSTTDS_11.0.0/com.ibm.etools.mft.cmp.doc/index.htm



    ------------------------------
    Regards
    Matthias Blomme
    ------------------------------



  • 3.  RE: Java Library migration for IIB to ACE

    Posted Tue February 21, 2023 08:57 AM

    Hi Matthias,

    I'm not sure on how to replace the following.

    import com.ibm.broker.config.proxy.ConfigurableService;

    private final Map<Object, Object> load( String aCSName, String aQualifier   ) throws ConfigManagerProxyPropertyNotInitializedException, ConfigManagerProxyException, MbUserException {
                  
                ConfigurableService        udcs         = getBrokerProxy().getConfigurableService( USER_DEFINED, aCSName    );
                



    ------------------------------
    Tony Ferlisi
    ------------------------------



  • 4.  RE: Java Library migration for IIB to ACE

    Posted Tue February 21, 2023 09:35 AM
    Edited by Matthias Blomme Tue February 21, 2023 09:35 AM

    @Tony Ferlisi 

    The configurable service doesn't exists anymore (replaced by policies), and the brokerproxy is deprecated.

    In v11 and v12 you don't need the broker proxy to access the policies anymore, you can do it like this:

    MbPolicy mbPol = getPolicy("UserDefined", "PolicyName");
    String policyValue= mbPol.getPropertyValueAsString("propertyFromPolicy");

    https://www.ibm.com/docs/en/app-connect/11.0.0?topic=SSTTDS_11.0.0/com.ibm.etools.mft.plugin.doc/com/ibm/broker/plugin/MbPolicy.htm

    You don't need to initialize the mbproxy, just call the policy directly, remember that the name is different if you use the default policy project or if you use another policy project ({nonDefaultPolicyProject}:PolicyName).



    ------------------------------
    Regards
    Matthias Blomme
    ------------------------------



  • 5.  RE: Java Library migration for IIB to ACE

    Posted Mon November 25, 2024 06:06 AM

    You need to do 2 things in order to handle this issue. First, you need to replace your Configurable Service with a Policy and Second you need to replace the instance of the ConfigManagerProxy.jar Broker class with IntegrationAPI.jar IntegrationNodeProxy class and then call the available methods in it to access the your policy. 

    Let us know if you need further assistance.



    ------------------------------
    Saad Ahmed
    ------------------------------