Changing File Adapter target directory - container bounce required?

I edited USPSshipment.wsdl in the FulfillmentESB project to reflect my desired target directory (/home/oracle/usps_ship instead of C:\temp) and then re-registered the project with ESB.
The registration completed normally, and I verified that the edited USPSshipment.wsdl file exists in the deploy and content directories in the ESB home. Also, checking the WSDL file from the ESB console showed the new value.
However, until I bounced the OC4J_soa container, order submissions continued to use the C:\Temp target. After I bounced the container, the next order submission went to the desired /home/oracle/usps_ship.
What is the expected cacheing behavior here? Is there a programmatic way to clear the cache after an ESB deploy. It is too restrictive if I have to bounce the whole container serving ESB and BPEL (perhaps many processes and ESB adapters) just to make a change in one particular project.
Thanks.

Using the SOA Demo, FulfillementESB project ~
Example: Immediate reflection of change w/o further action
If I change the Shipment router filter criteria (Fulfillment_Shipment.esbsvc) to cut at say $750 instead of $500, then re-register FulfillmentESB with OrderBookingIS, JDeveloper reports:
Registration of Services Successful
Fulfillment Shipment Updates
The next submitted order follows the new criteria (e.g. a $600 order goes out USPS).
Example: Change not reflected in runtime, until OC4J container restarted
If I change the target physical directory of the USPS Shipment file adapter (USPSShipment.wsdl), then re-register FulfillmentESB with OrderBookingIS, JDeveloper reports:
Registration of Services Successful
However, the next submitted orders continue to be written to the previous target physical directory. Checking the value of the re-deployed USPSShipment.wsdl at the ESB host filesystem and through the ESB console shows the updated value, but the old copy is being actually used to process the message.
Restarting the OC4J container, causes the updated USPSShipment.wsdl to be referenced for messages submitted thereafter.
-Todd
Message was edited by:
tbeets

Similar Messages

  • Date and Time in Sender File Adapter Target Directory

    Hi there,
    is there a way of using Date and Time from XI to the Target Directory naming? To use variable substitution some fields of the message had to contain that date and time information, which is not our case.
    For filename you can use "add time stamp" option, but and for target directory?
    Thanks and regards,
    Henrique.

    > <i>Do you have further information on how to perform
    > this with shell commands?</i>
    > >> You need to write a shell script. This script will
    > add the date/time stamp into the folder in the target
    > system. This shell script is executed from the File
    > adapter. So once the file is written into the target
    > directory, then it will rename the directory.
    Hi there, Moorthy
    We've tried to write that shell script that you mentioned, but now we have a few doubts on how to make it create the proper directory.
    In the file adapter, my target directory is "/%var1%/%var2%/", where %var1% and %var2% are variable substitutions, referencing data which comes from the payload. Now, I need the shell script to append "/<Year>/<Month>/" in the target directory. But where to archive the script? If it stays in the root directory, than how to make it create "/<Year>/<Month>/" folders inside a directory which is variable (/%var1%/%var2%/)?
    Is there a way of passing %var1% and %var2% as parameters for the shell script?
    Thanks a lot,
    Henrique.

  • File Adapter: Target directory does not exist

    Hi All,
    Using RFC to File Scenario.
    While processing in File adapter, i get following error for the target directory.
    Delivering the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Target directory '
    *********************\Out' does not exist and cannot be created.
    Although I am able to use the same target directory on my local machine.

    I think FTP user didnt have suffiecinet otherrization to create directory in FTP, check once again Directory format entered is correct.
    if you have phycial access to FTP then create one folder and enter the same in File channel and push one message and let us know the result.
    Regards,
    Raj

  • File in target directory?

    Hi Friends,
    The audit log says that the message is delivered but i cannot find the file in target directory.Does this indicate that the file is picked by the receiver system,if yes then once the file is picked the file is deleted from the target directory?
    Note-The "file construction mode" is set as create.
    Regards,
    Suresh.

    Hi Suresh
    Check for the SXMB_MONI as suggested above if you have success message.
    Moreover
    ,if yes then once the file is picked the file is deleted from the target directory?
    When the audit log says message delivered it will be delivered to target directory.
    Now if your scenario is file to file message can be deleted from source directory and not from target directory.
    Thanks
    Gaurav

  • Reg:File adapter archive Directory

    Dear team,
    Our requirement is to read a csv file from a directory and archive the file in archive folder specified in the file adapter.
    If any exception is caught,then we need to read the archieve file from archive directory rename the archive file with source file name and place it in source directory.
    On the receive activity we are able to get the source file name and source file directory.
    <receive name="Receive1" createInstance="yes"
    variable="Receive1_Read_InputVariable" partnerLink="fileRead"
    portType="ns1:Read_ptt" operation="Read">
    <bpelx:property name="jca.file.FileName" variable="srcFileName"/>
    <bpelx:property name="jca.file.Directory" variable="srcDrFolder"/>
    How to get the archive file name and archive file directory from the receive activity so that we can store in local variables.
    Pls do help.
    Thanks

    Hi,
    Another way you can accomplish your scenario. Instead of deleting or archiving in beginning just move the file from inbound to archive location after business flow completion.
    In case of error, the file will remain at original position as moving operation is at the end.
    First read the file using read operation, then at the end create a file adapter with sync read operation. Change the entries in .jca generated with below sample.
    Sample jca file.
    <endpoint-interaction portType="SynchRead_ptt" operation="SynchRead">
    <interaction-spec className="oracle.tip.adapter.file.outbound.FileIoInteractionSpec">
    <!-- Below properties are dummy except Type , it will be changed in runtime -->
    <property name="SourcePhysicalDirectory"
    value="srcdir"/>
    <property name="SourceFileName" value="abc.txt"/>
    <property name="TargetPhysicalDirectory"
    value="targetdir"/>
    <property name="TargetFileName" value="abc.txt"/>
    <property name="Type" value="MOVE"/>
    </interaction-spec>
    Then,in you bpel flow at the invoke for sync read add these two properties.
    <bpelx:inputProperty name="jca.file.SourceFileName"
    variable="varInputFileName"/>
    <bpelx:inputProperty name="jca.file.TargetFileName"
    variable="varArchiveFileName"/>
    <bpelx:inputProperty name="jca.file.SourceDirectory"
    variable="varInputDirectory"/>
    <bpelx:inputProperty name="jca.file.TargetDirectory"
    variable="varArchiveDirectory"/>
    - It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts).
    Thanks,
    Durga

  • Error: File adapter dynamic directory not safe with subdirectories

    Hi,
    I'm using variable substitution to determine the destination directory for my RFC->File scenario
    In my RFC I have a tag called <PATH> that contains the full target path. If that path doesn't have subdirectories the variable substitution works perfect, for example:
    <PATH>directory1</PATH>
    Then in File adapter I have %var1% with the value of PATH and it works.
    But if I want to add subdirectories on the path, for example <PATH>directory1/subd2/subd5</PATH> the solution doesn't work.
    That's the error that I get:
    Could not process due to error: com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during variable substitution: java.text.ParseException: Security violation encountered during variable substitution: Content of variable var1 is not safe: directory1/subd2/subd5
    How can I access to that directory?

    Hi Marshal,
    From help.sap:
    To disable the check the adapter performs for the element data, set the Disable Security Checks indicator.
    Otherwise, the adapter checks whether the element data contains characters that could lead to security risks in the file system environment. The check includes the characters u201C/u201C, u201C\u201C, and u201C..u201C.
    Carlos

  • File Adapter Source Directory

    I have set up a File Adapter comms channel that should be picking up a file from the XI SAP system directory path F:\usr\sap\temp.
    I place a file in that directory and can see it via SAP transx AL11.
    However my comms channel is not picking up the file so my process does not start.  I had previously been using a FTP File Adapter and that was working fine. So I know my other configuration is correct.  I now needed to testing something use just the plain File Adapter.
    The RunTime Cache has been refreshed and I can see my CC via SXI_CACHE.
    Here is what I have entered into the File Sender Adapter
    Transport Protocol : File
    Message Protocol : File
    Adapter Engine : Integration Server
    Source directory : F:\usr\sap\temp
    File Name         : MYFILE.XML
    Processing Options :
    QAS : EO
    Poll Interval 60s
    Processing Mode : Delete
    Processing Seq : By Name
    File Type : Binary
    Adapter Status : ACTIVE

    Hi
    check the following things
    first select ur message protocol as "NFS". save the changes and activate the channel.
    if still not work go to the communication channel monitoring using the path
    runtime work bench->compnent monitoring->dispaly->adapter ebngine->communication channel monitoring--->enter ur channel name and click on use filer button.
    and check whether the channel is started or stopped.
    if stopped start the channel and the try.
    if u still face the problem please reply me back.
    Thanks
    Rinku

  • XI3.0 - file adapter create directory

    Hi,
    Is there anyway in 3.0 to prevent a receiver file adapter from creating a directory if it does not already exist.  There was a parameter in the J2SE adapter but I do not know if or how this has been implemented in 3.0.
    Regards
    Ian

    Ian,
    SPS 17 introduces a new configuration setting for the receiver file adapter: "Create Target Directory" which does exactly what you want.
    See http://help.sap.com/saphelp_nw04/helpdata/en/57/a21f407b402402e10000000a1550b0/frameset.htm
    Regards,
    Koen

  • Error in sender file adapter: source directory does not exist

    Hi,
    The PI system is 7.11
    I've created sender file adapter with following details:
    Transport Protocol : File System
    Source directory: /interfaces/In
    I checked in AL11 that this path really exists and it does. (I can even see the .txt file that should be processed.)
    But still i get in Communication Channel Monitoring the following error:
    "Configured Source directory "/interfaces/In" does not exist.
    (i also tried to give the source directory as "interfaces/In" and as "//interfaces/In" but still the same error.
    Any suggestions as to what is wrong?
    kr
    Robert

    Actually, Need to use forward slash (/) to separate directory names in accordance with the Java specification.
    But wanted to try if that works..
    Also check directory name , path again as this is case sensitive...
    --Divyesh

  • Empty File at Target Directory

    Hi Experts,
    I am dealing with file to file scenario, where file is being posted to the target directory depending upon the condition, which is mentioned in Java Mapping. The Java Mapping is tested and is successfull. But, the problem is PI is generating file with 1KB (only one space) ain the alternate folder(where it shouldn't go depending upon the condition).
    The folder is having no space constraint and the file size is just 2KB.
    Empty file handling mode has been set to ignore. still its being generated
    Please suggest.
    Thanks & Regards,
    Sushama

    Hi Suraj,
    Here  it goes::
    for(int b=0;b<itemLineList.getLength();b++){
                             Node itemLineDetails = itemLineList.item(b);
                             NodeList itemLineDetailList = itemLineDetails.getChildNodes();
                             for(int c=0;c<itemLineDetailList.getLength();c++){
                                  Node ItemDetailsNode = itemLineDetailList.item(c);
                                  if(ItemDetailsNode.getNodeName().equalsIgnoreCase("MetaData")){
                                            NodeList ItemDetailsList = ItemDetailsNode.getChildNodes();
                                            status = checkIteminMDM(ItemDetailsList.item(1).getTextContent());
                                            if (status){
                                                 getTrace().addInfo("in update");
                                                 populateCreateorUpdateHashMap(ItemDetailsNode,"update");
                                            else{
                                                 getTrace().addInfo("in create");
                                                 populateCreateorUpdateHashMap(ItemDetailsNode,"create");

  • Exception handling in File adapter when directory structure is incorrect

    hi,
    How can exception handling part be done in File adapter in cases where directory structure is incorrect, or directory
    we are referring to is not present.
    thanks
    Yatan

    If you are polling then there will be error message in log files.But i dont think we can do exception handling in such cases.
    Cheers

  • Dynamic file naming when downlaoding the file to target directory

    Dear friend,
    My requirement is in the Adapter type File, File Name has to be dynamically generated. (i.e., each time the file name will be different according to the input name from the IDoc field). Can someone help me in this regard ???
    Thanks in advance,
    Jose Augastine

    Hi,
    The dynamic filename generation concept is as follows.
    In your filename field. just give a variable with % symbols. (eg: %file% ).
    Now, under the option Variable Name Substitution, you can give how the value has to be created.
    It can be your interface name, sender service name, etc or it can be some value dynamically from your payload.
    For the former, your give
    message:interface_name ,etc
    and for the payload part you give,
    Payload: "your element root which u wanna acecss"
    Just check this link out,
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
    And read the contents under variable substitution and it will help you understand the concepts better.
    If you have any clarifications, do get back,
    Regards,
    Bhavesh

  • Changing file name and directory structure for use outside of iPhoto

    Hi,
    I was wondering if its possible to get iPhoto to name the files from my library to reflect the names that I've given the files in iPhoto. I'm thinking along the lines of iTunes, where its possible to chose in the preferences how the files are named, and there is some logical directory structure, such as "Artist/Album/01 - Track 1.mp3". These file names are updated to reflect any changes made in iTunes.
    I've heard the argument that I shouldn't ever want to do anything with the files themselves because iPhoto can do everything I would ever want to do, but I want to organize the files so that not all of my organizational work is lost if I decide to stop using iPhoto and transition to a different system. Any suggestions would be appreciated.
    Thanks,
    Adrian

    Adrian
    No it's not possible.
    You can rename the files before bringing them into iPhoto, you can rename them with the titles on Export (Use the File -> Export command, it gives you the option to use the title and filename) but when it's inside iPhoto you cannot rename the files.
    However, all is not entirely lost. Using Film Rolls (View -> Film Rolls) you can move pics between rolls, name rolls, create rolls and so on, as long as you do this in the iPhoto Window, and these changes will be reflected in the iPhoto Library Folder.
    If at some point you decide to chuck iPhoto then (if the new app won't read iPhoto database files) you can simply export each album you've created to a Folder (using the File -> Export command as I suggest above), this, along with exporting slideshows will preserve your organisational efforts.
    The iTunes database has a rather simple job to do: track a file and it's assorted metadata. iPhoto, on the other hand, tracks a file and it's assorted metadata, plus a Modified version, plus a thumbnail. If you consider what happens when you edit a pic, for instance - Copy Original, perform edit, save modified version, remove Original Thumbnail and then create new one - you can see it's a rather more complex job.
    Finally, the standard warning: It is strongly advised that you do not move, change or in anyway alter things in the iPhoto Library Folder as this can cause the application to fail and even lead to data loss. Any changes you make must be made in the iPhoto Window.
    Need more info? by all means post again.
    Regards
    TD

  • Unable to Receive the File into Target Directory Using FTP

    Hi All,
    Here I Did Simple File-File Scenario With FTP.
    Iam Able to Pick the File From the FTP Location And File has been Deleted From Source Location ( Set the Processing Mode as Delete ).
    Unable to See the Pipeline Steps in Moni, But Able to Se the Success Message With the Inbound Payload only.
    Also chked with the comm. channel of sender and receiver, where the sender shows the message process details but not the receiver comm. channel.
    Regards
    Giri

    You Did the right thing in communication channel that u selected the IS.
    Hi
    Just check out if you sending the correct parameters and also check out the payload you sending and check out in SXMB_MONI for you message that after success wat is the payload and match with your input.
    Rather, for input check, In IR, get the XML data from ur Message Mapping and then save it to your inbox that is input directory.
    Also check out the permission of Output directory and also check the configuration of sender and reciver communication channel.
    Regards
    Aashish Sinha
    PS : reward points if helpful

  • NFS Sender File Adapter Source Directory

    Hello everybody,
    I have the next problem cause company politics I can't put some files that I need in the XI Server, so I sould take them from another server directory, and cause compañy politics too I can't use FTP so I need to use NFS, but I've been reading some threads about it and some of them says I can't do it and some of them says that I can do it and even give come paths, now the file system is in a Unix Server, how can I do this????? should I put the server an path direclty in de cc or should I map the directory and how do I do this, any help would be appreciated, thanks in advance.
    Regards,
    Julio

    Hello Julio,
    If your lacation is as follows:
    server01\path1\path2
    Then put *
    server01\path1\path2* as your source directory.
    Important
    For Linux ensure that the <sid>adm user can access the specific location.
    For Windows ensure that the sapservice<sid> user can access the specific location.  (Will probably have to be on the domain to achieve this).
    Regards,
    Yaghya

Maybe you are looking for