FILE 2 PROXY

Hi ,
I HAVE 100 FIELDS AT MY SENDER SIDE.BUT,I NEED TO UPDATE ONLY 20 FILEDS IN SAP AND UPLOAD INTO SAP.DO I NEED TO DECLARE 100 FIELDS AT RECEVIER OR SHOULD I DECLARE 20 FIELDS.DO I NEED TO DO MAPPING,OR SIMPLY WRITE THE CODE IN SERVER PROXY TO UPDATE?
REGARDS,
SOMU

Hi,
First determin wheather the FILE is Flat File or XML file.
If its Flat file then do FCC.
You no need to map all the 100 fields in receiver side...you can igore the rest 80 fields and map 20 fields.
and Update of the records it better and recommanded to write the logic at the Server Proxy.
Thanks
Amaresh

Similar Messages

  • Dynamic Archiving in File-Proxy Interface

    Hi Experts,
    My scenario is File -> Proxy which updates certain data in the target SAP system. The logic in the receiver side is that, if the update fails, then the input file must be placed in Folder A. Else if the update is successful, then the file must be archived to Folder B.
    Has anyone done this before? I know File interface is asynchronous so I'm not sure how to handle such kind of requirement.
    Appreciate any inputs. Thanks!
    Mark

    Hi Mark,
    If  i was you i would use a Async/Sync bridge, in other words a File - Proxy - File scenario (without ccBPM). Check a similar scenario here File-RFC-File(Without BPM) - Process Integration - SCN Wiki
    Im not so sure if the proxy interface supports this bridge, also you can do two scenarios, File - Proxy and Proxy - File, then inside the ECC  the ABAPers should call the second scenario after the update-
    Regards.
    Message was edited by: Iñaki Vila

  • File Proxy Service Problem on errors

    In continuation of this thread...
    File Proxy Service Problem on errors
    We are now facing two problems.
    1.The proxy service is executed twice
    2.File is getting moved to error directory with prefixed file names which we are not able to retrieve and use in the notification email.
    Not sure how to fix :(

    1.The proxy service is executed twice Check if this is due to transaction timeout issue as discussed here. Re: OSB File polling working twice with the same file
    2.File is getting moved to error directory with prefixed file names which we are not able to retrieve and use in the notification email.I am not sure wehther you have any option here. You can check with support. Alternatively can raise notification mail with the timestamp and some file/business identifier from the file. The support person can then open the file from error directory to verify the file/business id in the file or educate the support user that the files will have a prefix

  • OSB 10.3g file proxy and how to process files sequentially

    Hi all,
    I've a folder that contains some files that I need to process sequentially by a file proxy:
    /tmp/osb/msg > ls -l
    -rw-r--r-- 1 weblogic weblogic 904 Jul 22 12:02 yyy_C0001279792949924_20100722_120229_BU.yyy.CH_ASS_xxx.xml
    -rw-r--r-- 1 weblogic weblogic 917 Jul 22 12:02 yyy_C0001279792949955_20100722_120229_BU.yyy.CH_ASS_xxx.xml
    -rw-r--r-- 1 weblogic weblogic 932 Jul 22 12:02 yyy_C0001279792949986_20100722_120229_BU.yyy.CH_ASS_xxx.xml
    -rw-r--r-- 1 weblogic weblogic 858 Jul 22 12:02 yyy_C0001279792950017_20100722_120230_BU.yyy.CH_ASS_xxx.xml
    -rw-r--r-- 1 weblogic weblogic 890 Jul 22 12:02 yyy_C0001279792950033_20100722_120230_BU.yyy.CH_ASS_xxx.xml
    -rw-r--r-- 1 weblogic weblogic 790 Jul 22 12:02 yyy_C0001279792950064_20100722_120230_BU.yyy.CH_ASS_xxx.xml
    -rw-r--r-- 1 weblogic weblogic 844 Jul 22 12:02 yyy_C0001279792950096_20100722_120230_BU.yyy.CH_ASS_xxx.xml
    -rw-r--r-- 1 weblogic weblogic 937 Jul 22 12:02 yyy_C0001279792950111_20100722_120230_BU.yyy.CH_ASS_xxx.xml
    -rw-r--r-- 1 weblogic weblogic 813 Jul 22 12:02 yyy_C0001279792950142_20100722_120230_BU.yyy.CH_ASS_xxx.xml
    -rw-r--r-- 1 weblogic weblogic 963 Jul 22 12:02 yyy_C0001279792950158_20100722_120230_BU.yyy.CH_ASS_xxx.xml
    this is the list of the files sorted alphabetically but also is the list sorted by creation time (each filename (after yyy_C) contains a timestamp and also a date).
    The file proxy is configured as belows:
    Service Type : Any XML Service
    Protocol : file
    Endpoint URI : file:///tmp/osb/msg
    Get All Headers : No
    File Mask : yyy*.xml
    Polling Interval: 30
    Read Limit : 0
    Sort By Arrival : true
    Scan SubDirectories: false
    Pass By Reference : false
    Post Read Action : archive
    Stage Directory : /tmp/osb/stage
    Archive Directory : /tmp/osb/archive
    Error Directory : /tmp/osb/error
    Request encoding : utf-8
    Content Streaming : Disabled
    I used "Sort By Arrival : true" because from doc (http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/httppollertransport/index.html) I read:
    "This parameter indicates the sequence of events raised in the order of the arrival of files. The default value for this parameter is False"
    It is not clear if 'order of the arrival' means by time of the arrival or by 'alphabetical order'.
    I did a test using the above settings but I see from OSB log file that the files are processed neither by time order nor by alphabetical order:
    ####<Jul 22, 2010 12:33:24 PM CEST> <... ExecuteThread: '4' ... <BEA1-07857BB52A53B9043886> <> <1279794804450> ...########## ready to process filename: .../tmp/osb/msg/yyy_C0001279792949955_20100722_120229_BU.yyy.CH_ASS_xxx.xml
    ####<Jul 22, 2010 12:33:24 PM CEST> <... ExecuteThread: '0' ... <BEA1-078F7BB52A53B9043886> <> <1279794804454> ...########## ready to process filename: .../tmp/osb/msg/yyy_C0001279792949924_20100722_120229_BU.yyy.CH_ASS_xxx.xml
    ####<Jul 22, 2010 12:33:24 PM CEST> <... ExecuteThread: '1' ... <BEA1-07907BB52A53B9043886> <> <1279794804457> ...########## ready to process filename: .../tmp/osb/msg/yyy_C0001279792949986_20100722_120229_BU.yyy.CH_ASS_xxx.xml
    ####<Jul 22, 2010 12:33:24 PM CEST> <... ExecuteThread: '0' ... <BEA1-07917BB52A53B9043886> <> <1279794804462> ...########## ready to process filename: .../tmp/osb/msg/yyy_C0001279792950064_20100722_120230_BU.yyy.CH_ASS_xxx.xml
    ####<Jul 22, 2010 12:33:24 PM CEST> <... ExecuteThread: '1' ... <BEA1-07927BB52A53B9043886> <> <1279794804467> ...########## ready to process filename: .../tmp/osb/msg/yyy_C0001279792950017_20100722_120230_BU.yyy.CH_ASS_xxx.xml
    ####<Jul 22, 2010 12:33:24 PM CEST> <... ExecuteThread: '0' ... <BEA1-07937BB52A53B9043886> <> <1279794804607> ...########## ready to process filename: .../tmp/osb/msg/yyy_C0001279792950142_20100722_120230_BU.yyy.CH_ASS_xxx.xml
    ####<Jul 22, 2010 12:33:24 PM CEST> <... ExecuteThread: '4' ... <BEA1-07947BB52A53B9043886> <> <1279794804611> ...########## ready to process filename: .../tmp/osb/msg/yyy_C0001279792950111_20100722_120230_BU.yyy.CH_ASS_xxx.xml
    ####<Jul 22, 2010 12:33:24 PM CEST> <... ExecuteThread: '4' ... <BEA1-07957BB52A53B9043886> <> <1279794804615> ...########## ready to process filename: .../tmp/osb/msg/yyy_C0001279792950096_20100722_120230_BU.yyy.CH_ASS_xxx.xml
    ####<Jul 22, 2010 12:33:24 PM CEST> <... ExecuteThread: '4' ... <BEA1-07967BB52A53B9043886> <> <1279794804618> ...########## ready to process filename: .../tmp/osb/msg/yyy_C0001279792950033_20100722_120230_BU.yyy.CH_ASS_xxx.xml
    ####<Jul 22, 2010 12:33:24 PM CEST> <... ExecuteThread: '1' ... <BEA1-07977BB52A53B9043886> <> <1279794804630> ...########## ready to process filename: .../tmp/osb/msg/yyy_C0001279792950158_20100722_120230_BU.yyy.CH_ASS_xxx.xml
    How could I process files sequentially ?
    I think using also Read Limit = 1 and Polling Interval = 1 sec doesn't work, because
    - if the proxy instance P1 reading file A takes more than 1 sec
    - after 1 sec a second proxy instance P2 starts to process file B
    - but P2 can completes its processing before P1 ...
    What do you suggest to do ?
    Thanks in advance
    ferp

    Hi Anuj,
    even trying with
    - Read Limit 1
    - Polling Interval 1
    - Sort By Arrival true
    I see from OSB log file that the files are processed neither by time order nor by alphabetical order:
    ####<Jul 22, 2010 2:35:56 PM CEST> ... ExecuteThread: '0' ...<BEA1-07F27BB52A53B9043886> <> <1279802156519> .../tmp/osb/msg/yyy_C0001279792949955_20100722_120229_BU.yyy.CH_ASS_xxx.xml
    ####<Jul 22, 2010 2:35:58 PM CEST> ... ExecuteThread: '0' ...<BEA1-07F47BB52A53B9043886> <> <1279802158508> .../tmp/osb/msg/yyy_C0001279792949924_20100722_120229_BU.yyy.CH_ASS_xxx.xml
    ####<Jul 22, 2010 2:36:00 PM CEST> ... ExecuteThread: '1' ...<BEA1-07F67BB52A53B9043886> <> <1279802160525> .../tmp/osb/msg/yyy_C0001279792949986_20100722_120229_BU.yyy.CH_ASS_xxx.xml
    ####<Jul 22, 2010 2:36:02 PM CEST> ... ExecuteThread: '4' ...<BEA1-07F87BB52A53B9043886> <> <1279802162544> .../tmp/osb/msg/yyy_C0001279792950064_20100722_120230_BU.yyy.CH_ASS_xxx.xml
    ####<Jul 22, 2010 2:36:04 PM CEST> ... ExecuteThread: '0' ...<BEA1-07FA7BB52A53B9043886> <> <1279802164564> .../tmp/osb/msg/yyy_C0001279792950017_20100722_120230_BU.yyy.CH_ASS_xxx.xml
    ####<Jul 22, 2010 2:36:06 PM CEST> ... ExecuteThread: '1' ...<BEA1-07FC7BB52A53B9043886> <> <1279802166584> .../tmp/osb/msg/yyy_C0001279792950142_20100722_120230_BU.yyy.CH_ASS_xxx.xml
    ####<Jul 22, 2010 2:36:08 PM CEST> ... ExecuteThread: '0' ...<BEA1-07FE7BB52A53B9043886> <> <1279802168606> .../tmp/osb/msg/yyy_C0001279792950111_20100722_120230_BU.yyy.CH_ASS_xxx.xml
    ####<Jul 22, 2010 2:36:10 PM CEST> ... ExecuteThread: '4' ...<BEA1-08007BB52A53B9043886> <> <1279802170624> .../tmp/osb/msg/yyy_C0001279792950096_20100722_120230_BU.yyy.CH_ASS_xxx.xml
    ####<Jul 22, 2010 2:36:12 PM CEST> ... ExecuteThread: '0' ...<BEA1-08027BB52A53B9043886> <> <1279802172644> .../tmp/osb/msg/yyy_C0001279792950033_20100722_120230_BU.yyy.CH_ASS_xxx.xml
    ####<Jul 22, 2010 2:36:14 PM CEST> ... ExecuteThread: '4' ...<BEA1-08047BB52A53B9043886> <> <1279802174664> .../tmp/osb/msg/yyy_C0001279792950158_20100722_120230_BU.yyy.CH_ASS_xxx.xml
    As said I think that using Read Limit = 1 and Polling Interval = 1 sec doesn't work, because
    - if the proxy instance P1 reading file A takes more than 1 sec for processing the file
    - after 1 sec a second proxy instance P2 starts to process file B
    - but P2 can completes its processing before P1 ...
    Do you know if OSB when polling a file, takes it only when OSB recognizes the file has been written completely ?
    I mean what happens if OSB wakes up while the file producer is still writing the file ?
    Regards
    ferp

  • I want to install CCPL ,but it is not taking PAC file proxy.So please suggest an alternate way to set proxy for this exe file..

    I want to install CCPL ,but it is not taking PAC file proxy.So please suggest an alternate way to set proxy for this exe file..

    That file might have moved to a different location on the server. I think you'll need to check with RefWorks support or your local IT department on why the install page links do not work.

  • OSB File Proxy Error Handling

    Hi,
    I've encountered a strange behaviour in my proxy service.
    Legend:
    FPS -> File-based Proxy Service, reads files from a local directory
    EH -> ErrorHandler of the FPS
    JBS -> JMS-based Business Service, writes to a JMS Queue
    Scenario: FPS reads files and calls JBS to put messages in a queue
    Problem:
    When testing my FPS, when there is an error (for example in the Service Callout to the JBS) I noticed that the system instanciates a new Proxy Service to "retry" the same file. I also noticed that if I place a Reply Action in the of my EH, this retry mechanism doesn't happen.
    What I gather from this is that the file adaptor is somehow transactional, retrying the process (only once) in the event of an error.
    Question:
    Is this the normal behaviour for a file adaptor? If so, how can I configure the number of retries?
    Thanks,
    Adel

    As mentioned before, in the tests I executed I noticed that when there's an error, the system automatically retries the file by creating a new instance of the same Proxy Service.I'm little confused what type of errors you are talking. Under the hood MDB is used (that is the reason you see JMS queues wlsb.internal.transport.task.queue.ftp,wlsb.internal.transport.task.queue.file). Based on you error you can easily figure out what might be the cause. I suspect that to be effect of redelivery-limit=1.
    eg in xbusResources-jms.xml in your domain config
    <queue name="wlsb.internal.transport.task.queue.file">
    <sub-deployment-name>wlsbJMSServer</sub-deployment-name>
    <delivery-failure-params>
    <redelivery-limit>1</redelivery-limit>
    </delivery-failure-params>
    <jndi-name>wlsb.internal.transport.task.queue.file</jndi-name>
    </queue>
    So, what's I'm trying to figure out is if this behaviour is normal? Is this the way OSB implements retry at the Proxy Service level when it's configured with a file-adaptor?Same behavior will also be in FTP/SFTP as with File
    Thanks
    Manoj

  • Doubt with File- Proxy scenario, email to be sent in case of error in Proxy

    Hi,
    We have a scenario File->PI->Proxy.
    There is a requirement to send notification through email to sender if any error occurs in Proxy side.
    I had gone through few links in sdn and found options like usage of Fault message,BPM
    If PI is receiving a fault message from ECC in the Inbound/Sync Proxy interface, how should we proceed further in PI to send email?
    Can anyone suggest the better way to handle this?
    Regards,
    Zameer

    Hi,
    You may want to use Alert functionaliry.
    Option1:
    If any error occured in Proxy  then in error code raise a alert by calling function module 'SALRT_CREATE_API' in the proxy code itself. So alert will automatically send email
    http://help.sap.com/saphelp_nw04/helpdata/en/d0/5e073c8e56f658e10000000a114084/content.htm
    Option 2:
    Create fault message
    refer this
    /people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1

  • File-Proxy (Error while receiving by HTTP )

    Hi All,
    I have a problem in the scenario file to Proxy....which is that after placing a source file successfuly in the source directory.... it is showing an information message in the XML message monitoring(sxmb_moni) like below
    Error while receiving by HTTP (error code: 400, error text: ICM_HTTP_CONNECTION_FAILED)
    Could anybody  explain the problem please????where i need to configure to reslove this.
    Thanks.
    Respond me Imme pls.

    First thing to check is that the adapter_plain service is activated in the transaction SICF. (path: default_host-> sap -> xi -> adapter_plain
    Then check that the http service is running properly (transaction SMICM).
    Also, unless you are connecting to an SAP webAS, you should give a username and password, rather than "Use Logon data fotr SAP System". You could also maintain the URL and authentication data as an sm59 destination and use that in the adapter.
    Please look at these...
    INTEGRATION_DIRECTORY_HMI: Connection fails
    ICM_HTTP_CONNECTION_FAILED
    SAF - ICM_HTTP_CONNECTION_FAILED
    HTTP adapter setup
    Check out this SAP Note- 824554
    Also this links
    ICM_HTTP_CONNECTION_FAILED
    Cache Refresh~
    https://websmp201.sap-ag.de/~sapdownload/011000358700003163902004E/HowTo_handle_XI_30_Caches.pdf
    ICM_HTTP_CONNECTION_FAILED ERROR
    error code: 400, error text: ICM_HTTP_CONNECTION_FAILED
    Error With ABAP Client proxy
    Message not reaching Integration server
    HTTP content sever - error?
    Error in content server configuration
    HTTP Client : Code 110 reason
    RFC: INTEGRATION_DIRECTORY_HMI
    Content server config - error?
    Thanks
    Swarup

  • XI:Concerns regarding CCMS alerts,IDOC,JDBC,FILE,PROXY

    Dear Experts,
    I have some doubts regarding below listed points.Please,help Me to find thesuitable answer for these.
    *1.if multiple messages to be sent(IDOC) through same JDBC adapter,how we'll do it(THROUGH SAME jdbc Aadpter,in same config scenario)?*
    *2.in receiver determination,if we have to send to multiple receivers according to payload content(conditional passing to receiver depends on payload),**how we'll acheive it?*
    *3.what is file content conversion?*
    *4.why proxy is known as adpterless scenario?*
    *5.in case of idoc/proxy why sender side no communication channel but in receiver side we are using communication channel?*
    **6.what is CCMS alert?
    *7.in a file2file scenario,if we want to convert one file content to other file content in a different form(as x->1,y>2),*
    *how we'll acheive it?*
    *7.if lots of data checkings are there in case of SAP R/3,by whcih way we'll go?(idoc/proxy/rfc)
    *8.how we'll decide whether to go for SOAP scenario?*
    *9.what is adapter module?whan we'll go for different adapter modules other than standard?*
    *how we can develop our own adapter modules?*
    *10. how to map one field to other field,when they are present in different noad with respect to source and target strucrture?*
    Eagerly waiting for youyr valuable opinion.
    Regards,
    Rasmiraj Tripathy

    Do a search in SDN first for these questions.
    You will find the answers to the most.
    Else post specific questions

  • IDOC to FIle, Proxy to file not working

    Dear Experts,
    I am new with XI configuration scenarios, that to i am facing problem
    while i was doing with idoc to file and proxy to file not connecting .
    i think what r the prerequisites to scuceed these things.
    I think this would be administration configuration.
    After installation of XI what r the steps have to follow for achiving this.
    Please help me.
    Thaks and Regards
    Ram.

    Hi,
    This will help you
    Client Proxy - /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    Server Proxy - /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies - Activate Proxy
    /people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap
    /people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy - ABAP Proxy
    IDOC to file
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
    Save Idoc to file
    Regards
    Agasthuri Doss

  • Multiple accounting doc in single file - PROXY

    Hi,
    I am reciving multiple accounting doc in single file..
    MT_INPUT
    acc_doc1
    acc_doc2
    I need to send it seperately to PROXY.
    MT_INPUT
    acc_doc1
    MT_INPUT
    acc_doc2
    proxy needs to be called multiple times.....
    how to do this?
    Regards,
    Akshay.

    Hi Akshay,
    Create a 1..n mapping and 1..n interface mapping.
    You will then need to create an enhanced interface determination. (There is a radio button to select 'Enhanced').  The rest of you config will be the same.
    This will split your single message into several messages, which will be processed individually by the receiver proxy.
    Regards,
    Yaghya

  • File-proxy-file

    hi friends,
    scnario is file to proxy and proxy responce to a responce file.
    now is it possibl with out bpm. and i have given a bapi at server side how to make use of it in updating and getting responce..
    Regards
    Vijay

    Hi vijaya,
    I have refered the blog.. i have a doubt in it please clear ..
    This is where a few differences lie, so let me take some time.
    1. The Receiver Determination , Interface Determination will be the same as in HTTP - RFC synch scenario. Create the Sender File Adapter, Receiver RFC Adapter and Receiver File Adapter.
    in this step from filesender to rfc
    and filesender to filereceiver
    rfc to filereceiver
    i need more clear how to createt this objects Receiver Determination and Interface Determination please clarify this two..
    in my case i have 2 Message interface objects..is it enoufgh and required more...
    Regards
    vijay

  • Generic File Proxy

    Hi,
    We have around 10 file to file scenarios from SAP R/3 to external system.All the scenarios are 1 to 1 mapping, no complex mapping is involved.
    For these interfaces i want to created one genric proxy, which will be used by all of them.
    Please anybody can give me an idea, how can i make this work.
    Thanks
    Srinivas

    Hi Srinivas,
    I think its a good idea to do it as this will reduce the number of development  and support time.
    You can follow the following approach:
    1. Make a master structure for the sender file structure. This master structure will include all the fields from sender 10 interfaces.
    2. Similarly create a master structure for reciever interface. Make sure you set the occurence of all the target fields as 0..1 if you set the occurrence 1 then whenver that field is not populated in the target structure; PI mapping will give runtime error.
    3. Do your message mapping as it is.
    3. Create the  ID objects including File sender and reciever as it is. (Configure FCC properly!!)
    Let us know if you face any issue with this approach..

  • File proxy to poll for a dynamic filename

    I have a requirement to move a file from one folder(A) to another(B) but I do not want to move every file thats created/placed in source folder(A). I get the filename thats dynamically created from a JMS queue and want to copy that particular file alone to the destination. Is there is possibility to pass the filename dynamically and call the business service only when this filename is same as the proxyservice has read. Something like $body/*[1]/text() = $inbound/ctx:transport/ctx:request/tp:headers/file:fileName but it does not seem to work.
    Can any one guide me in right direction.

    Hi,
    What adapters do you use? File / FTP? - If yes you cannot pass the filename. Both adapters listen for files in the input folder. They could filter the files which have to be process by input file mask or regexp.
    Another approach is to use JMS adapter and directly dequeue the message and write it to 2 folders using file or ftp adapter
    Regards,

  • Read a file at a fixed time of day using PS in OSB

    I have a proxy service which read a file, now I want to read that file at a fixed time in a day(suppose 12pm every day).
    How do I make the JCA file/proxy configuration?
    Pls suggest!

    Re: How to implement in OSB: Scheduling, Timers and Custom properties
    Regards,
    Anuj

  • Replacing JAR files loaded by custom ClassLoader

    Hi all,
    I am trying to create an auto-updater for a stand alone application, which can look for new versions of relevant jar files on the internet and download them. I have code which will look for newly downloaded versions and can replace the old jar file with the new one (using simple File methods). This works fine for when the application is started initially, but as the application is a server and may not manually be started for a long time, I am trying to force the server to restart and reload with the new code.
    if(newCode.exists()) {
         System.out.println("new code!");
         if(oldCode.exists()) {
              oldCode.delete();
         if(code.exists()) {
              if(! code.renameTo(oldCode)) {
                        throw new IOException("Error backing up code file");
         if(! newCode.renameTo(code)) {
              throw new IOException("Error installing new code file");
    }I have looked around the forums a bit, and have come up with using a ClassLoader based on URLClassLoader:
    class ProxyLoader extends URLClassLoader
         public ProxyLoader(String jarFile) throws MalformedURLException {
              super(new URL[] { (new File(jarFile)).toURL() });
         public Class findClass(String name) throws ClassNotFoundException {
              System.out.println("Finding: " + name);
              return super.findClass(name);
    }This seems to work OK, as all the classes from the jar file are loaded by this classloader.
    I have a method which can create an instance of the class loader, and load the server application.
    private boolean startProxy(int port) {
         try {
              pl = new ProxyLoader("proxy.jar");
              Class ptClass = pl.loadClass("proxy.POPThread");
              pt = ptClass.newInstance();
              Method ptStart = ptClass.getMethod("start", new Class[0]);
              ptStart.invoke(pt, new Object[0]);
              return true;
         } catch(Exception e) {
              return false;
    }I also have a method to shut down the server:
    private boolean stopProxy() {
         try {
              Class ptClass = pl.loadClass("proxy.POPThread");
              Method ptInterrupt = ptClass.getMethod("interrupt", new Class[0]);
              ptInterrupt.invoke(pt, new Object[0]);
              return true;
         } catch(Exception e) {
              return false;
    }These appear to be working fine, the problem I have however is when I try to rename the existing jar file (proxy.jar) in order to replace it with a new one (proxy.new), the renameTo method on the File object fails. I am guessing that is because the proxy.jar file is still in use by the JVM. I have tried setting the classloader var to null, but this doesnt seem to have any effect.
    My main question is how can I 'free' the jar file so that it can be replaced with new code? Is it possible? My only otherway of working around this is to have a variable stored in a file pointing at the 'current' code, but the jar file isn't litterally replaced.
    This is a standalone application, which will probably run in a startup script on a server, so webstart isn't really an option.
    TIA
    iklesteve

    I have found this to be true anytime I try to use the renameTo() API to rename a file with a .jar file extension (regardless of the actual file type - i.e. it could be a text file with .jar appended and it will still fail) in the case where the class making the renameTo() call is loaded from another .jar file.
    I run the same exact code after extracting from the .jar, then the rename to the other .jar file is successful. Also, if I rename the .jar file to a ".ja" file, I can successfully rename the jar file even if the code is running with the context of another .jar file.
    Is this some kind of bogus security measure within the JVM or is it a bug?

Maybe you are looking for

  • Photoshop says it's running in Trial mode.

    Hi there, 10 days ago I purchased the Lightroom+Photoshop package. I went on to install that on my Mac Pro but now everytime I open Photoshop it pops open the Adobe Application Manager who reminds my that there are X days remaining on my Photoshop tr

  • Back up pictures PHOTOS APP

    Hello everyone, So far I haven't had any problem with the"new" Photos App from OS X Yosemite  10.10.3 My only question is  how to back up my pictures and videos from this app? I have read articles about hot to back it up on iCloud and other apple res

  • Oracle 10g will do stats automatically ?

    oracle : 10.2.0.3 os : linux How oracle 10g will gather stats automatically ? How to check whether which scheduler is capturing stats, interval ,last gathered status and also next interval? it will take only system level stats ? also object level sta

  • Sleeves & Case for macbook.

    What is the best Sleeve or Case for macbook?

  • Add a Detail Table Row per master row

    Hi, I am currently working on a requirement for a master detail advanced table. I am trying to add one detail row per master row when the page loads based on the link between the two. I have a master table with 20 records and I need to create 1 detai