Reading a file which is on different unix box

Hi,
Our project has a requirement to send a file as an attachment in the email to a user. Our application is deployed as an ear in a WAS server (which is a unix box). The interface that actually sends the email is deployed on another unix box. Our application creates a file and saves it on the application unix box. now the email sending interface needs to access this file which is deployed on the application unix box and send it as an attachment.
Can the email sending interface access the file on the application unix box if i send it the path; is it possible since the interface and the attachment file are deployed on diff unix boxes?
Now one can access the application using the url of the form -
http://<box name>:<port>/<context root>/<servelet path>Now suppose while creating the file, i give the input path as
http://<box name>:<port>/<file name>,where will the file be created and if i send this path to the email interface, will it be able to access this file?
Any inputs will be highly appreciated.

You would be better off using an nfs partition. All flavors of unix come with NFS capabilities, so simply let your application "box" share a directory where it writes the files, and let the email "box" mount the directory in order to read the files.

Similar Messages

  • How can I read pdf files from LabVIEW with different versions of Acrobat reader?

    How can I read pdf files from LabVIEW with different versions of Acrobat reader?
    I have made a LabVIEW program where I have possibility to read a PDF document.  When I made this LabVIEW program it was Acrobat Reader 5.0.5 that was installed on the PC. Lather when the Acrobat Reader was upgraded to version 6.0, there was an error when VI tries to launch the LabVIEW program. And Later again when we upgraded to Acrobat Reader 7.0.5 I must again do some changes and rebuild the EXE files again
    It isn't so very big job to do the changes in one single LabVIEW program, but we have built a lot of LabVIEW programs so this take time to due changes every time vi update Acrobat Reader. (We have build EXE files.)
    The job is to right click the ActiveX container and Click "Insert ActiveX Object", then I can brows the computer for the new version of acrobat Reader. After this I must rebuild all the "methods" in the Activex call to make the VI executable again.
    Is there a way to build LabVIEW program so I don't have to do this job every time we update Acrobat Reader?
    This LabVIEW program is written in LabVIEW 6.1, but I se the problem is the same in LabVIEW 8.2.
    Jan Inge Gustavsen
    Attachments:
    Show PDF-file - Adobe Reader 7-0-5 - LV61.vi ‏43 KB
    Read PDF file.jpg ‏201 KB
    Show PDF-file - Adobe Reader 5-0-5 - LV61.vi ‏42 KB

    hi there
    try the vi
    ..vi.lib\platform\browser.llb\Open Acrobat Document.vi
    it uses DDE or the command line to run an external application (e.g. Adobe Acrobat)
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • I want to read a file which is in a zip and this zip file is at ftp site

    i am facing this problem and try to find the solution from last month please help me
    i want to read a file which in ziped and this zip file is at ftp site. and i want to read this file without downloading this zip file to local machine. i have to read it from ftp location only

    You can open an URLConnection to a file on an FTP server (search this forum to find out how). You can get the InputStream from the URLConnection and feed it to ZipInputStream. That should do the job.

  • Problem While reading a file in text mode from Unix in ECC 5.0

    Hi Experts,
    I am working on Unicode Upgrade project of ECC5.0.
    Here i got a problem with reading a file format which it does successfully in 4.6 and not in ECC5.0
    My file format was as follows:
    *4 000001862004060300000010###/#######L##########G/##########G/########
    It was successfully converting corresponding field values in 4.6:
    *4
    00000186
    2004
    06
    03
    00000010
    25
    0
    4
    0
    54.75
    0
    54.75
    0.00
    While i am getting some problem in ECC5.0 during conversion of the above line:
    *4 000001862004060300000010###/#######L##########G/##########G/########
    it was consider in the same # values.
    I have used the following statement to open and read dataset.
    OPEN DATASET i_dsn IN LEGACY TEXT MODE FOR INPUT.
    READ DATASET i_dsn INTO pos_rec.
    Thanks for your help.
    Regards,
    Gopinath Addepalli.

    Hi
          You might be facing this problem because of uni code. So while opening or reading the file, there is a statement call ENCODING. Use that option and keep the code page which you want. Then the problem may be solved.
    Thanks & Regards.
    Harish.

  • Can we read a file which is serialized in MFC using Java

    I have a file in which Serialized data is stored using an MFC application (object of CArchive).
    1. Is it possible to read this file using Java and to retrived the data.
    2. Is yes, which all Java-classes will be needed to explored.
    Thanks
    -Vini

    I have a file in which Serialized data is stored
    using an MFC application (object of CArchive).
    1. Is it possible to read this file using Java and to
    retrived the data.Yes.
    2. Is yes, which all Java-classes will be needed to
    explored. It depends on the data that is being retrieved. You need to read the data using whatever Java classes match. You might want to read the tutorial about this:
    http://java.sun.com/docs/books/tutorial/essential/io/datastreams.html
    >
    Thanks
    -Vini

  • How to read a file which content hindi characters.....

    I m reading a text file which content hindi characters.... but m nt getting the right result. It shows garbage instead of hindi characters.
    plz somebody help me....:(

    You posted this in the XML forum. Is this an XML file you are asking about?
    And we need definitions for some of the terms you used in your original post. You said "it shows garbage". We need to know:
    1. What is the "it" there?
    2. How does it "show" something?
    3. What does the "garbage" look like.
    In future you will find you get better answers if you write better questions.

  • How to read a file which has header and without header

    Hi,
    I have a file to file scenario wherein there are txt files in the source system, some of which has header and some without header.
    How does the sender adapter dynamically identify a file with header and without header.
    I knew that File content Conversion in the sender adapter with "Recordsets per message = 1" can read the header.  But how to handle dynamically.
    Thanks in advance for suggestions and advice.
    Regards.
    Praveen

    Hi,
    Let me give a more clear picture:-
    One of my file which has header and the corresponding values is listed hereunder:
    PERNR;KID;PNALT;NACHN;NAME2;VORNA;TITEL;TITL2 and so on.....
    ;1200;1200;Angus;; and so on.........
    Other file which has no header but only values in it:-
    1200;1200;;Werner;Angus and so on.......
    The structure remains same for all the files.  The only difference is that some of the file has header in it and some without header.  The Message Type is mentioned hereunder:-
    DT_LegacyEmployee (Category - Complex Type)
         Employees (Category - Element, Occurence - 1)
              Employee (Categroy - Element, Type - DT_LegacyEmployee_Row, Occurence - 0...unbounded)
                   PERNR
                   KID
                   PNALT
                   NACHN
                   NAME2 and so on......     
    I read the file in record row.  The file conversion parameters in the file sender adapter are mentioned hereunder:-
    Document Name - MT_LegacyEmployee
    Document Namespace - http://abc.com/xi
    Recordset Name - Employees
    Rescordset Structure - Employee,*
    Recordsets per Message - 1
    Key Field Type - String (Case Sensitive)
    Employee.fieldSeparator - ;
    Employee.endSeparator - 'nl'
    Employee.fieldNames - PERNR,KID,PNALT,NACHN,NAME2,VORNA,TITEL,TITL2 and so on........
    How do we dynamically identify whether the file has header or not.  Even if the file has header or without header, the file needs to be picked and transferred to the target system.  Kindly clarify.
    Regards.
    Praveen

  • How to read a file which as restricted access

    Hi all.
    Lets say I have two users User1 and User2
    I have created a servlet which needs to read a file.
    Lets say the owner of the file is User1.
    So User2 cannot access this file.
    This is on windows platform.
    The problem is that the Servlet cannot know owner of its user.
    Servlet run's as anonymous, so the user as to enter his userName and Password.
    This is fine with me.
    But after this how do I use this to read that file.
    I have no clue on how to use this information to read this file.
    Examples if any will be very helpful.
    Thanks for your help in advance.

    Well, you'd hardly write a servlet that can access any file on your server, not exactly good security. Rather it needs to be confined to specific files or, at least, specific directories. The server can't change it's user identity, so it needs access to all files, but it's easy enough for the serlvet to have some mapping which tells it which files may be server to which users.

  • Read from File which is dynamically updated

    Hello all
    Is there any class for reading from a file which is dynamically updated?and those updates are immediatley reflects in java File object without closing previous and reopen that file again to get the latest updates?
    thanks
    sjafery

    I meant RandomAccessFile

  • Read a file and write in different format

    Hi, I am new to Java, Please help me to do this.
    Just give me a hint as to what I should use to solve the problem below.
    Please suggest me what to do in Java.
    1. Read from a text file that has name in the following format:
    FirstName LastName
    Carol Bender
    Peter Milton
    Harish M. Mondol
    karen J. Funny
    2. Convert that file in the following format:
    Lastname, FirstName
    Bender, Carol
    Milton, Peter
    Mondol, Harish M.
    Program should read the <input-file-name> and
    <output-file-name> from the command promt as a parameter.

    What part are you having trouble with?
    Reading/writing files? http://java.sun.com/docs/books/tutorial/essential/io/Converting after reading? I'd suggest regex. http://java.sun.com/docs/books/tutorial/extra/regex/
    http://www.javaregex.com/I'd suggest using BufferedReader to read a line at a time. Once you've read that line use either String.replaceAll or java.util.regex.Matcher.replaceAll to replace A B with B, A

  • Connection through JDBC to dBase files stored on a different UNIX computer

    I would like to access files created in dBase (*.dbf) format and stored directly on the hard disk of a different or remote UNIX OS platform standalone computer which is not connected to any network through a JDBC driver. I need to do this from my home Windows XP system with J2SDK 1.4.2_19 and Tomcat already installed on it. May I know if there is any driver with this feature and how do I go about establishing connection, please?
    Thank you.

    jwenting wrote:
    jschell wrote:
    Ltbay wrote:
    Thank you very much. I am grateful.So you will be using carrier pigeons?The PPPP (point to point pidgeon protocol) is well documented.
    [http://www.faqs.org/rfcs/rfc1149.html] yes, it exists...
    I do hope anyone reading that, realises that it was an April's fool joke.
    Some of the phrases are quite good however:
    The carriers have an intrinsic collision avoidance system, which increases availability.Except for the occassional magnetic field that allows them to fly face first into glass windows.
    An additional property is built-in worm detection and eradication.Yummy!
    With time, the carriers are self-regenerating.With time? Hell they double yearly, at least!
    Audit trails are automatically generated, and can often be found on logs and cable trays.
    on not in logs and cable trays.

  • How to read PDF files which are made using LiveCycle in VS

    Hello,
    I make some pdf templates using LiveCycle.
    I want to get the value correspond to the field name of PDF files.
    For example, I create the text field which is named "Employee ID".
    and then i wanna get the value using "Employee ID" in VS, especially, VB.NET 2005.
    Is this possible?
    Help me

    Haev a look at buying PDF4NET. This will do everything you require.

  • Commn. between iws and clearcase server on 2 different unix boxes

    Hi,
    I have a requirement. I have iplanet web server on one unix server and a clearcase server on other unix server. Both are on solaris platform.
    I need to design a web page such that, on the page users are supooosed to enter some command and that commands must execute on the clearcase server on the other unix server and get the results back to the web page.
    Before executing the command, the user who logs into the web site must be logged on to the local unix machine where iws resides so that user can do a "rsh" on the remote server. Both the unix servers are connected to NIS.
    Can anyone suggest how to implement this using java or perl technology?
    How to implement remote shell using java? how to make the users login to the local unix server during the login itself without user's notice? this login is needed becasue, clearcase server will autheticate this particular user before executing the command and restricts the commands to execute for this user.Hope my requirement is clear to everyone.
    Thanks in advance,
    Murthy

    On what type of server is your domain controller located? You can use Samba to connect Unix and Windows servers and it may be possible to integrate the Windows server into your domain with it, although I am not a Unix expert by any means. Have a look through these.
    http://www.ibm.com/developerworks/aix/library/au-unixothers/
    http://us1.samba.org/samba/
    Apologies if you are already using Samba.

  • Reading data from a file which is in portal KM

    HI,
    Iam trying read a file which is in portal KM if u have any sample code with u plz share with me

    Haranath,
    check these links
    How to download KM documents using Web Dynpro Java
    Getting an image from KM Documents to be used in Web Dynpro
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/kmc/assigning%2bread%2bauthorization%2bto%2bkm%2bdocuments
    Thanks
    Bala Duvvuri

  • Read a file and maintain a file pointer?

    Hi,
    I need to read a file which has about 1000 records(approx).I need to read 10 records from the beginning of the file and then give the 10 records to a different java process and then continue extracting records for every 10.So how do I save the filepointer and then continue read from the 11th record and then 21st record and so on?
    Remember I don't know the total number of records in the file,but know where exactly I have to extract,I mean the trailer info.
    also, Is there a way to store a file pointer for a particular position in the file and then continue reading the file from the same place by using the saved filepointer?
    any idea?
    also,If I save a filepointer as long value and open the file later using randomaccess file,and seek using this saved long value,will there be any change in the position of the file?will this differ in unix and windows?I mean the file pointer?
    --Robert

    Maybe this will make things clearer. Don't be intimidated, it's not really hardimport java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.Random;
    import java.io.*;
    public class Test extends JFrame {
        static final long RECORD_SIZE = 8;
        RandomAccessFile rf;
        JTextArea jta = new JTextArea();
        JTextField jtf = new JTextField();
        Random r = new Random();
        public Test() {
         try { rf = new RandomAccessFile("rtest.dat", "rw"); }
         catch (FileNotFoundException fnfe) { fnfe.printStackTrace(); System.exit(1); }
         setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         Container content = getContentPane();
         // Set up the GUI
         content.add(new JScrollPane(jta), BorderLayout.CENTER);
         jtf.setPreferredSize(new Dimension(100,20));
         content.add(jtf, BorderLayout.NORTH);
         JPanel buttonPanel = new JPanel();
         content.add(buttonPanel, BorderLayout.SOUTH);
         JButton add10 = new JButton("Add 10");
         buttonPanel.add(add10);
         add10.addActionListener(new ActionListener() {   // Add 10 listener
             public void actionPerformed(ActionEvent ae) {
              try {
                  rf.seek(rf.length());                // seek to end
                  for(int i = 0; i < 10; i++)          // write 10 recs
                       rf.writeDouble(r.nextDouble()*1000000.);
              catch (IOException ioe) { ioe.printStackTrace(); }
              jta.setText("10 records appended");
              showStats();                        // show current statistics
         JButton list10 = new JButton("List Next 10");
         buttonPanel.add(list10);
         list10.addActionListener(new ActionListener() {    // list 10 listener
             public void actionPerformed(ActionEvent ae) {
              jta.setText(null);
              try {
                  for(int i = 0; i < 10; i++) {
                   if (rf.getFilePointer()<rf.length()) {  // if not eof
                       long recNo = rf.getFilePointer()/RECORD_SIZE;
                       jta.append(""+recNo+") "+Double.toString(rf.readDouble())+"\n");
                   } else jta.append("(eof)\n");
              } catch (IOException ioe) { ioe.printStackTrace(); }
              showStats();                        // show current location/size
         JButton random10 = new JButton("List Random 10");
         buttonPanel.add(random10);
         random10.addActionListener(new ActionListener() {   // list 10 random records
             public void actionPerformed(ActionEvent ae) {
              jta.setText(null);
              try {
                  for(int i = 0; i < 10; i++) {
                   // Get a rendom record number
                   int recNo = r.nextInt((int)(rf.getFilePointer()/RECORD_SIZE));
                   // seek to it
                   rf.seek(recNo*RECORD_SIZE);
                   // read record, add to textarea
                   jta.append(""+recNo+") "+Double.toString(rf.readDouble())+"\n");
              } catch (IOException ioe) { ioe.printStackTrace(); }
              showStats();
         buttonPanel.add(random10);
         JButton rewind = new JButton("Rewind");
         buttonPanel.add(rewind);
         rewind.addActionListener(new ActionListener() {  // rewind listener
             public void actionPerformed(ActionEvent ae) {
              jta.setText(null);
              try {
                  rf.seek(0);                     // move to beginning
              } catch (IOException ioe) { ioe.printStackTrace(); }
              jta.setText("Rewound");
              showStats();                    // show size/location
         buttonPanel.add(rewind);
         showStats();
         setSize(600,500);
         show();
        private void showStats() {
         try {
             jtf.setText("Cnt="+(rf.length()/RECORD_SIZE)+
                   ", Cur="+(rf.getFilePointer()/RECORD_SIZE));
         } catch (IOException ioe) { ioe.printStackTrace(); }
        public static void main(String[] args) { new Test(); }
    }

Maybe you are looking for

  • When i connect my iphone4 to itunes to sync it hangs when syncing artwork

    HI I updated my iphone the other day and tried to sync it with my itunes. It now hangs when it comes to the section about syncing artwork with my phone. Can anyone help? Thanks

  • IPhone 5 - iPod App Glitch - Please Help!

    Ok, so when I play music on my iP5, there are many songs that go silent towards the end of the song, yet the track bar still scrolls down to 0 as if the song is still playing. All of my music plays just fine on my iTunes on my PC, as well as my Apple

  • Re: Protecting your system

    Macs are just as vulnerable to SPAM and viruses as PC's, don't kid yourself. I write programs, IT Tech and security is my specialty. Your Mac is not only likely to have SPAM, I'd bet on it. There is only one way to completely safeguard your system, o

  • How to download past Joel Osteen audio podcasts?

    I had my settings wrong so itunes was not automatically downloading the Joel Osteen weekly audio podcasts for the past month or so. Is there a way (that does not involve prayer) to get the podcasts that I missed? I only see the current episode on itu

  • How to make an Event Structure work with a webcam feed?

    Hello, I'm pretty new to LabVIEW, and I really need some help on a school project. In the program, a webcam contantly streams video.  At the same time, I am trying to add an event structure inside of the while loop that contains the webcam informatio