10 Replies Latest reply: Jul 22, 2011 10:13 AM by 678476 RSS

    Dynamic partnerlink in SOA

    678476
      hi SOA experts,

      This can be a common question for 10g and 11g both.

      In BPEL, we always use static partner link location (eg) file adapter location.

      Is there any ways to make this configurable dynamically. If so, how ?

      Thanks,
      Revathi
        • 1. Re: Dynamic partnerlink in SOA
          NarsingPumandla
          Hi,

          Let's say we are doing File Adapter Outbound Operation. When we configure the File adapter in our composite we give the directory and the file name.
          we can still change these values at runtime based on our requirement i.e., dynamically. Go to the properties of the invoke activity which calls the File Adapter partner link.
          Find the properties jca.file.Directory and jca.file.FileName. For these properties you can assign the values either through variables or through expressions.
          And these values will be overwritten with the values what you give at the configuration of the file adapter.

          Hope this helps...

          Thanks,
          N
          • 2. Re: Dynamic partnerlink in SOA
            678476
            Hi Naresh,

            I am first trying to test your suggestion in 10g.

            I don't see a way to edit these properties at runtime. In BPEL console, i can navigate to descriptor and WSDL tab, but unable to see where to edit based on what you mentioned.

            Please detail on this.

            Regards
            Revathi
            • 3. Re: Dynamic partnerlink in SOA
              678476
              Hi,

              I am able to get this working in 11g.

              properties are at EM (FMW control) and it works if i change at run-time.

              I guess this should be standard property in BPEL, so should work in 10g too ? however i don't see a way to change in BPEL console in 10g.

              Any comments on this ? We are still using 10g in production environment, so this feature will be useful.

              thanks
              Revathi
              • 4. Re: Dynamic partnerlink in SOA
                NarsingPumandla
                Hello Revathi,

                Did u find the properties what i told in the properties of the invoke activity inside the BPEL. That is where we can assign the values to that properties.

                we can still change the properties values in the FMW Console, but that is not our intention right...

                And coming to 10g, i haven't worked on the same in 10g...sorry...

                Thanks,
                N
                • 5. Re: Dynamic partnerlink in SOA
                  Yatan
                  Hi Revati,

                  Just check this,
                  http://yatanveersingh.blogspot.com/2010/10/how-to-dynimically-pass-path-in-file.html

                  -Yatan
                  • 6. Re: Dynamic partnerlink in SOA
                    678476
                    Hi Yatan, I tried the 10g Javastub. It works perfect.

                    I took a note of 11g properties.

                    thanks both.
                    • 7. Re: Dynamic partnerlink in SOA
                      678476
                      Hi Yatan,

                      I have a further question.

                      How do I make file naming dynamic in 10g (In 11g I see the property).

                      Assume I don't need any YYYYMMDD format. It could be a string as simple as POOutputFile

                      thanks,
                      Revathi
                      • 8. Re: Dynamic partnerlink in SOA
                        Yatan
                        Hi Revathi,

                        What name do you want for the file? POOutputFile.xml
                        Oracle has given the option to use time stamp in the end so that no 2 files are ever same to avoid error while writing a file in the same directory.

                        I have not don't this before however if this is present in 11G then it must be possible in 10G too.

                        -Yatan
                        • 9. Re: Dynamic partnerlink in SOA
                          678476
                          Hi Yatan,

                          Let me make my question precisely..

                          In your Java stub, Is there any property for filename ?

                          If that exists, i can pull out and fill as a dynamic varialbe..

                          thanks,
                          Revathi
                          • 10. Re: Dynamic partnerlink in SOA
                            678476
                            Hi Experts,

                            Any updates to the above question ?

                            Thanks
                            Revathi