Skip to Content

Lookup Service channels are not updated

We have build a mapping (it's in several scenarios, in one scenario it's a graphical map where the Lookup service is using in an UDF, in the 2nd scenario it's a java mapping) and we are consuming the Lookup Services (Lookup Service).

Then I made a mistake in the Channel configuration and I have corrected it. But for some reason the change is not been taken into account for the mapping. Looks like the channel is cached somewhere and I have not found the place where I can refresh the cache.

What I have done (and what has not helped):

- Full CPA Cache Refresh
- Checked Cache Notifications
- Redeployed the affected Graphical Map/Java Map (changed comment and activated again).

Has anybody an idea?

Looks like the behavior is not in all systems, because I have spoken to a business partner and he said, he cannot reproduce the problem in his environment.

Regards
Helmut

PS: I am on PI 7.5

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Dec 29, 2017 at 11:24 AM

    Hi Anurag,

    it's in the last example an UDF:

    Channel channel = LookupService.getChannel(System,Channel);
    SystemAccessor accessor = LookupService.getSystemAccessor(channel);
    InputStream inputStream = new ByteArrayInputStream(query.getBytes());
    Payload QueryPayload = LookupService.getXmlPayload(inputStream);
    Payload ResponsePayload = accessor.call(QueryPayload);

    Looks like any change I am doing in a channel is not been used -even if I am deleting the channel and create it with same name newly - it's still using old credentials, URLs, ... Only if I am creating a new channel with a different name - than it's consuming the values of the new channel.

    BR Helmut

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 29, 2017 at 11:48 AM

    Hi Helmut!

    Just for case: did you also try to Stop/Start the channel?

    Regards, Evgeniy.

    Add comment
    10|10000 characters needed characters exceeded

    • A silly question and just in case as I saw that you already refreshed all the caches... did you check the namespace/software component of the mapping?

      You might consider having a look a the traces after the activation of the objects.

      Best regards,

      Ariel Bravo Ayala

  • Dec 29, 2017 at 04:24 PM
    Hello Helmut 
    
    
    Try this
    
    
    Channel channel = LookupService.getChannel(CommunicationComponentString, ChannelString);
    SystemAccessor accessor = LookupService.getSystemAccessor(channel);
    // *** take care with namespaces in varXML
    InputStream inputStream = new ByteArrayInputStream(varXML.getBytes());
    XmlPayload payload = LookupService.getXmlPayload(inputStream);
    SOAPOutPayload = accessor.call(payload);
    InputStream inp = SOAPOutPayload.getContent();
    
    
    
    
    Remeber to change your channel and activate.
    
    
    Add comment
    10|10000 characters needed characters exceeded

  • Dec 29, 2017 at 10:31 AM

    can you mention how do you use the lookup service ?

    Add comment
    10|10000 characters needed characters exceeded