Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Change partnerLink properties in runtime

757663Mar 30 2012 — edited Feb 26 2020
Hi.

I'm using Oracle SOA Suite 10.1.3.5.

I'm trying to change the wsseUsername and wssePasword properties in my partner link in runtime (changing the bpel.xml) using the following code, without success.

In another project that i worked, using 10.1.3.4, this code works. Do i need to enable something in bpel console to allow this changes to occur ?
try {
    addAuditTrailEntry("Updating ParterLink properties");

    String username = "password";
    String password = "username";

    getLocator()
        .lookupProcess("ProcessBPEL")
        .getDescriptor()
        .getPartnerLinkBindings()
        .getPartnerLinkBinding("PLink1")
        .setPropertyValue("wsseUsername", username);

    getLocator()
        .lookupProcess("ProcessBPEL")
        .getDescriptor()
        .getPartnerLinkBindings()
        .getPartnerLinkBinding("PLink1")
        .setPropertyValue("wssePassword", password);

    getLocator()
        .lookupProcess("ProcessBPEL")
        .getDescriptor()
        .getPartnerLinkBindings()
        .getPartnerLinkBinding("PLink2")
        .setPropertyValue("wsseUsername", username);

    getLocator()
        .lookupProcess("ProcessBPEL")
        .getDescriptor()
        .getPartnerLinkBindings()
        .getPartnerLinkBinding("PLink2")
        .setPropertyValue("wssePassword", password);
} catch(Throwable t) {
    addAuditTrailEntry("ERROR: " + e.getMessage());
} catch(Exception e) {
    addAuditTrailEntry("ERROR: " + e.getMessage());
}
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 27 2012
Added on Mar 30 2012
0 comments
159 views