Java application -  processing files on different unix server

Hi,
I was wondering if it is possible to
a) read a file that is on a different unix server to the one that my java application is on
b) move a file from one directory on the remote unix server to another directory on the remote unix server
Regards,
sabretooth

for (b):
If I were you I would set up a FTP account for your app on the remote unix server. Then I would get my hands on a simple ftp framework
and simply:
Ftp ftp = new Ftp("UNIXHostIP", username, password);
ftp.connect();
ftp.moveRemoteFile("form here","to here");
ftp.disconnect();
some frameworks:
JScape, iNet Factory: com.jscape.inet.ftp.Ftp
/n software, IP*Works: ipworks.Ftp
Enterprise Distributed Technologies, Java FTP Client Library: com.enterprisedt.net.ftp.FTPClient
IBM alphaWorks, FTP Bean Suite: com.ibm.network.ftp.protocol.FTPProtocol
SourceForge, JFtp: net.sf.jftp.net.FtpConnection
The Jakarta Project, Jakarta Commons/Net: org.apache.commons.net.ftp.FTPClient
JavaShop JNetBeans: jshop.jnet.FTPClient
Sun, JDK: sun.net.ftp.FtpClient
Florent Cueto, JavaFTP API: com.cqs.ftp.FTP
Bea Petrovicova, jFTP: cz.dhl.ftp.Ftp
The Globus Project, Java CoG Kit: org.globus.io.ftp.FTPClient
I recomend JScape's INetFactory (Easy to use)
OR the one from Jakarta (Free)
IP*Works (TOP Quality at a price)
Check out http://www.javaworld.com/javaworld/jw-04-2003/jw-0404-ftp.html
for a complete review of all the ftp frameworks
Firewalls?
make a folder that is public on the unix server-ie falls outside the firewall if there is one (fire walls might cause problems for you)
Unless you know the password to get through the Proxy then this should not be a problem.

Similar Messages

  • Is there a way to view, access and process files on a unix server from APEX

    Hello all,
    We are looking at retrieving (text)documents that are uploaded to a Unix server. The server is seperate from the server that hosts APEX. Would anyone know how to do this or point me to some examples?
    Thanks

    If you  followed the instructions in the manual you would have configured Contacts to sync to an app on your computer such as Outlook or Address Book. Then all you would have to do is set the new phone to sync with the same app on the computer. If you didn't do this you are probably out of luck, although there are some 3rd party apps that can extract data from the backup if it is not encrypted.

  • Call a Java Application from MicroFocus COBOL (in UNIX environment)

    Hello,
    Could you please let me know, how to call a Java application from a MicroFocus COBOL application. If anyone has any code samples, that would be of great help.
    Thanks in advance,
    Tijo.

    You generally can't cause a program to be executed on a different >server. Basic security, you know. Besides this idea of having the Java >application run on a different server wasn't mentioned in your original >post. That leads me to believe we don't have the whole story.So I think you need to step back and find out what are the requirements. For example: Does your program need to start this Java application running, or is it already running and your program needs to connect to it somehow?
    My program has to start a Java class file, meaning that the Micro Focus COBOL module will call the Java class file. Will it be running on the same machine as your program, or on some other machine?
    For both cases, I would like to know the answer.a) Running on the same machine as my program is running.
    b) Running on the different machine.
    And then there are the questions about whether your program needs to have a conversation with the Java application, or whether it just needs to start it and that's all.
    COBOL program has to call a Java class by passing some parameters and Java class in turn process it and return some value back.. Kind of Request and Response model.Plenty of questions to be asked. Go and find out what they are.
    Sorry ... if I am not clear on my questions. Anyhow, thank you very much for providing the information.

  • To read flat file from a unix server

    We need to read a flat file from a Unix server, where our Database is located.
    The location gets created correctly.
    But while we are trying to import files from the location in Design Center , we get an error that "directory does not exists", although the directory has all the permissions.
    Can someone please suggest how should we create the location so as it can read the files.
    Please Reply ASAP......

    We have started Design Center on a local machine(Windows Machine) with uaer as repository owner of the server,
    In the design center we can not sample the file till we import it,
    can you please tell how to sampe the file without importing it.
    Also a location pointing to server location gets easily created on the design center and the file module points to that location only, but when we try to import the file through that location, it says directory does not exists, although oracle user has all the read write permissions on the directory......
    Please help!

  • How to refer to the xml file located on unix server

    I have a xml file which is located on unix server and have a hard time, reverse engg. it .
    if anyone has any knowledge on this , that will be helpful.

    I have application server where my xml is located.e..g /tmp/xyz.xml
    I have designer on my laptop from where i have created a agent which points to my application server.
    I am able to create a data server which does say test successful.
    In model i tried to create new model and trying to reverse engg. the xml now i get following error .
    java.sql.SQLException: Could not generate the DTD because the file could not be created. Verify that you have write permission in the directory.
    if you can point me to documentation which has some information on this will be helpful or any hint..

  • Java application to call BOXI cluster report server

    Dear all,
    We have a BOXI 3.1 cluster consisting of 2 servers, says server1 and server2.
    Which server should the java application call to? server1 or server2? I don't realize there is BOXI cluster common hostname that can be resolved by DNS.
    If the application calls to server1, what if server1 is down?
    Many thanks

    For the Java version of the BusinessObjects Enterprise SDK starting with XI 3.x, CMS members and their "Name Server Port" are persisted by the SDK in the file %HOME%\.businessobjects\clusterinfo.1200.properties file.    This file is read when SessionMgr is instantiated.
    When logon method with a CMS member name/port is invoked, it's looked up to determine what cluster the member belongs to, as recorded in the properties file.  Then a random CMS member from that cluster is selected, and connection is attempted to that CMS Name Server.
    So regardless of what CMS name you enter for the logon, it should at least fail over to a live one.
    The only issue happens if there's no clusterinfo.1200.properties file (i.e., fresh install on the SDK machine) or not accessible (if the process has no rights to access that file).  Then you have to ensure the CMS name you enter is to a live one.    If it's a fresh install and there's sufficient file access, the initial contact with a live CMS Name Service will retrieve all CMS members, and the SDK will update teh properties file.
    So you shouldn't have to worry about which CMS name you specify.
    Sincerely,
    Ted Ueda

  • What should be done in certmap.conf for 2-way SSL support from a standalone Java application to an SSL enabled LDAP Server

    To support certficate based client authentication using 2-way SSL from a standalone java application which uses JNDI and JSSE1.0.2 to connect to an SSL enabled LDAP Server how do we configure the certmap.conf?Is there any additional setup required at the LDAP Server side apart from enablinf SSL with the option"Required Client Authentication" enabled.The 2 way SSL handshake goes through but the access log file (After configuring the certmap.conf for the issuer DN of the client certficate etc..)shows SSL failed to LDAP DN?But inspite of this access log error the Java client does get an SSL Connection object with which it is able to connect to the LDAP.IS the certmap.conf file being looked up by the LDAP Server at all?

    have you out.flush() and out.close() before you call connection.getInputStream()?

  • Application Processes unique across different schemas?

    I have a test and dev schema on the same server. both sets of code are identical in every way. however when i try and call an on demand application process in dev nothing happens. if i try and call an identical on demand application process on test i get the results i was expecting.
    I changed the name of the application process in dev and i can call it ok. i was just wondering if two on demand application processes can have the same name if they are in different schemas? what else could be causing this issue?
    Thanks
    Tom

    Sorry,
    I copied the wrong code:
    function get_select_list_xml(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
    'APPLICATION_PROCESS=CASCADING_SELECT_LIST_D',0);
    get.add('AJAX_ORACLE_JOB_NUM',pThis.value);
    gReturn = get.get('XML');
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option");
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    This application process:
    BEGIN
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Cache-Control: no-cache');
    HTP.p ('Pragma: no-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ('<select>');
    HTP.prn ('<option value="' || 1 || '">' || '- Stream ID -' || '</option>');
    FOR c IN (
    SELECT DISTINCT b1.STREAM_ID empno , b1.STREAM_ID ename
    FROM BILLINGS b1
    WHERE b1.ORACLE_JOB_NUM = TO_NUMBER(:AJAX_ORACLE_JOB_NUM)
    AND b1.STREAM_ID NOT LIKE ('TWS%E')
    AND b1.STREAM_ID NOT LIKE ('%ERR')
    AND (SELECT COUNT(S.BATCH_ID)
    FROM CHANGE_SITES S
    WHERE (regexp_like(UPPER(nvl(:ajax_site,'%')),(select site_expression from print_sites where upper(print_site_desc) = upper(S.SITE)))
    OR S.SITE IS NULL)
    AND S.ORACLE_JOB_NUM = b1.oracle_job_num
    AND S.STREAM_ID = b1.stream_id
    AND S.BATCH_ID = b1.batch_id) > 0
    UNION
    SELECT DISTINCT STREAM_ID empno , STREAM_ID ename
    FROM BILLINGS b2
    WHERE b2.ORACLE_JOB_NUM = TO_NUMBER(:AJAX_ORACLE_JOB_NUM)
    AND b2.STREAM_ID NOT LIKE ('TWS%E')
    AND b2.STREAM_ID NOT LIKE ('%ERR')
    AND (SELECT COUNT(s2.batch_id)
    FROM change_sites s2
    WHERE S2.ORACLE_JOB_NUM = b2.oracle_job_num
    AND s2.STREAM_ID = b2.stream_id
    AND S2.BATCH_ID = b2.batch_id) = 0
    AND (SELECT COUNT(sv.BATCH_ID)
    FROM SITE_VIEW SV
    WHERE (regexp_like(UPPER(nvl(:ajax_site,'%')),(select site_expression from print_sites where upper(print_site_desc) = upper(Sv.SITE)))
    OR SV.SITE IS NULL)
    AND sv.oracle_job_num = b2.oracle_job_num
    AND sv.stream_id = b2.stream_id
    AND sv.batch_id = b2.batch_id) > 0)
    LOOP
    HTP.prn ('<option value="' || c.empno || '">' || c.ename || '</option>');
    END LOOP;
    HTP.prn ('</select>');
    END;

  • Java Application + Uploading Files

    Hey everyone,
    I was wondering what the possibilities were if i wanted to implement a feature
    in my java application to upload an image file and an XML file. Is this possible? Does anyone know more about the subject? Thanks.

    Is your application the client (which will be uploading to some other computer) or is it the server (which will be uploading from some other computer)?

  • Deploy Java Application in E Business Suite Apps Server

    Hi Gurus,
    Is it possible to deploy custom Java application using the bundle E Business Suite Apps Server?
    If yes, can you provide me a reference or a step by step guide that will help me do so.
    Many thanks

    The following metalink notes will helpful for u too
    Java Concurrent Program FAQ [ID 827575.1]
    How To Create a Java Concurrent Program? [ID 827563.1]
    How to register and execute Java Concurrent Program ?in Oracle Applications R11i ? [ID 186301.1]
    Regards
    Mazhar Hussain

  • File transfer from UNIX server to Windows server path

    Hello Experts, (Gud Even Gud Aft & Gud Mor)
    Is there a way to transfer file from UNIX server(Oracle database), to Windows server? All I know if Windows path. I am able to read the file as it is on server, however it does not recognize Windows directory at all.
    If you can share some documents around this to study, I will be grateful.
    Regards,

    34MCA2K2 wrote:
    Is there a way to transfer file from UNIX server(Oracle database), to Windows server? All I know if Windows path. I am able to read the file as it is on server, however it does not recognize Windows directory at all.Yes it is possible. Samba on Unix sharing the directory containing the file. NFS on the Unix server sharing the directory containing the file. FTP server on Unix allowing the file to be read and copied. OpenSSH on the Unix allowing the file to be read and copied via scp (secure copy).
    But seeing as this is an Oracle database forum (not an operating system forum), and the subject matter is the database server languages SQL and PL/SQL, here is a PL/SQL solution.
    Create a table using the BFILE data type for referencing the files on the Unix o/s. Provide a web enabled procedure for downloading the files via HTTP using a web browser. This procedure will look something as follows:
    --// URL example: http://my-server.my-domain.com/MyDAD/MySchemaName.StreamFile?fileID=1234
    create or replace procedure StreamFile( fileID number ) AUTHID DEFINER is
            mimeType        varchar2(48);
            fileName        varchar2(400);
            lobContent      BLOB;
    begin
            --// read the LOB from a table (this example uses the
            --// Apex file uploads table - change it to your own files table)
            select
                    f.filename,
                    f.mime_type,
                    f.blob_content
                            into
                    fileName,
                    mimeType,
                    lobContent
            from    FLOWS_FILES.WWV_FLOW_FILE_OBJECTS$ f
            where   f.id = fileID;
            --// format a basic HTTP header that describes the file stream send
            OWA_UTIL.mime_header( mimeType, FALSE );        -- e.g. text/csv text/plain text/html image/gif
            HTP.p( 'Content-Disposition: attachment; filename='||fileName );
            HTP.p( 'Content-Length: ' || DBMS_LOB.GetLength(lobContent) );
            OWA_UTIL.http_header_close;
            --// now write the BLOB as a mime stream using the Web Procedural Gateway's
            --// doc load API
            WPG_DOCLOAD.download_file( lobContent );
    exception when OTHERS then
            --// Decide what HTML to generate (if at all) if there is a failure
            --// (usually not a good idea to show database errors to the
            --// web browser client as that can provide technical details
            --// that could be useful for exploiting the database)
            HTP.prn( 'StreamFile() failed with '||SQLERRM(SQLCODE) );
    end;
    / On Windows, IE can be used interactively to copy the file across. For automation (via PowerShell or console jobs), use a command like tool like wget* to download the file.
    If you do not want to use SQL or PL/SQL as the file copy mechanism, then please close this thread (mark as answered) and take your question to an appropriate forum.
    <i>* - see http://gnuwin32.sourceforge.net/packages/wget.htm</i>

  • File Transfer From Unix server to Windows Client System Using WebUtil

    Hi all,
    I want to Transfer a File from Unix Server to Window Client System using Webutil. But below mention code is not working.
    DECLARE
         V_Server_Path VARCHAR2(500) := Null;
         V_Client_Path VARCHAR2(500) := Null;
    BEGIN
         V_Server_Path := '/proj/oraapps/viper/dev/reports/cache/Saveauftr.txt';
         V_Client_Path := 'C:\Migration\EU_Applications\Lima\OAS_WorkArea\Client\Saveauftr.txt';
         IF WebUtil_File_Transfer.Is_AS_Readable(V_Server_Path) THEN
         IF WebUtil_File_Transfer.AS_To_Client(V_Client_Path,V_Server_Path) THEN
              Message('Downloading the File ..... .... ... .. .');
              Message('Downloading Was Successfull ...');
              Message('File Transfer from Server Was Successfull ...');
         END IF;
    END IF;
    END;
    Can anyone suggest me,Why the above code is not working and what to do for solve the Problem.
    Regards
    Gany

    Hello,
    You have more chances to get an answer in the Oracle Forms OTN Forum :
    Forms
    Regards

  • Background Job spool / output file in different app server

    We are working with 2 ECC app servers, A and B.
    I've defined in app server A a background job to run an abap report and this report creates and submit 4 other background jobs.
    Each of these 4 jobs is regarding an abap report which outputs a text file in the server.
    The question is, why are the jobs generating the files in different app servers randomically?
    The same file, in the 1st execution was generated in app server A, and without any change was generated in app server B, in the job 2nd execution?
    Thank you!

    Hi,
    You can specify server name whille creating a batch job , so that it gets executed to that server only.
    there is one field (in SM36 during creation or SM37 while modifying batch job) called "Exec Target " , where you can specify server name.
    Hence you can plan to run your some batch jobs on server A or B.
    Regards,
    Rupali

  • Convert an internal table from ABAP to an xml file on the Unix server

    I'm trying to convert an internal table to an xml file.  This file will be downloaded to a unix server.  Can someone help?

    Hello Linda,
    You can combine the code given by Mahalakshmi with something like this:
    CALL FUNCTION 'FILE_GET_NAME'
          EXPORTING
            logical_filename = 'YOUR_LOGICAL_FILE_NAME
            parameter_1      = l_file_name_xml
          IMPORTING
            file_name        = l_file_server
          EXCEPTIONS
            file_not_found   = 1
            OTHERS           = 2.
        IF sy-subrc = 0.
          TRY.
            OPEN DATASET l_file_server FOR OUTPUT. "<IN TEXT MODE> <ENCODING DEFAULT>.
          ENDTRY.
          IF sy-subrc = 0.
          LOOP AT lt_xml INTO ls_xml.
            TRANSFER ls_xml TO l_file_server.
          ENDLOOP.
          CLOSE DATASET l_file_server.
    ENDIF.
    ENDIF.
    You need to have the server path defined (look at the paths with tcode AL11) and the file logical name with tcode FILE
    Best regards,
    Andri

  • How to upgrade to Java JDK 1.7 on Ubuntu Unix Server 12?

    Well, I have just installed Ubuntu Server 12, and, I am trying to get Java JDK 1.7 to run within the unix box, so I took the easy way and it would seem like there is some variant named 'ice tea' which is based on 1.6. When finding (searching) within the file system a file named java exists within /usr/bin, and, this is the bundled version of java, which is not the latest. Is Ubuntu Server still unsupported by Oracle?
    Next I typed in sudo apt-get install jdk and sudo apt-get install java, however, no package is found. Does this mean that I have to install JDK by downloading it through the browser, or can Oracle make this available to apt-get users?
    Unfortunately, Oracle Virtual Box does not seem to have a way to copy and paste the contents of the screen, and it would be impractical to upload a whole snapshot when I just need to demonstrate a subset of what I typed in to my friends here at the forum.
    Edited by: Jon80 on Jul 13, 2012 10:36 AM

    Oracle doesn't need to support anything, other than delivering a Linux build of OpenJDK. How the plethora of different Linux flavors manage the software installation is basically up to the people that manage the distribution.
    And less than 10 seconds glancing at the front page of icedtea indicates that the more recent versions are based on OpenJDK 7. Installation instructions are also there. A quick google for "icedtea ubuntu server" provided me this:
    http://www.stchman.com/essen_pack.html

Maybe you are looking for

  • My MacBook air charger won't charge

    My power cord will not charge despite using both connecters. Appears to be at connection point

  • Website Storage Settings Panel generates script error message

    I am using Chrome, XP sp3 and the latest flash 11.1.102.55 When I click on the Website Storage Settings Panel here: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager07.htm l the panel starts loading but after a few

  • Checking performance on XE, what is the best tools.

    Hi, all I'm trying to see how better to use tuning tools and I'm on XE now. What is the simplest way to start with? I do autotarace for now, which also give me Plan, is it good enough? or Does Expaln Plan shows something else? I also tried to play wi

  • How to view all user tables in a particular user tablespace

    Hi friends, I want view user tables in a particular tablespace. I dont have dba privilages. Its production environment. Plz send me a query for the same. Thanks.

  • After installing Lion, Safari is Not Working

    Problem:     Trying to access my website  http://www.johnrollow.com I get this error message.    Not Found    The requested URL / was not found on this server    Apache Server at www.johnrollow.com Port 80 I get the same error message from  both Safa