FILEPROXY

Hi Team
i am facing some issue in my scenario. In my scenario, i have to pick a file from FTP location and process tht file in PI and after that the proxy does it work, and fater this again i have to place tht file in the FTP location.
My doubt here is shld i create Two Receiver Communication Chhanels or one only???
Please help me out
thank you

As I already explained u two cases -
For first case- u can archive the file in archive folder using archive option in sender file adapter.
For second case:- Once proxy does it work u can call another method from the same inbound proxy which send data to Xi and Xi will put the file with data into that directory. It will be two scenarios one File to Proxy and another Proxy to File.
If u wanted to put the same file in archive directory folder then u have to follow first case which is explained and also provided the link for the same. Reading and archiving process will happen at the sender side simultaneously.
Pls note that R3 will receive the message in proxy structure not in file format.
Hope u understood it correctly n ur all doubts are clear now.
Thnx
chirag
Edited by: Chirag Gohil on Jul 29, 2010 4:57 PM

Similar Messages

  • File upload through BlazeDS remote object?

    Hi,
    After researching file upload options in flex, it seems like the only option is through HTTP service requests, such as:
    private var fileRef:FileReference;
    fileRef.upload(new URLRequest(FILE_UPLOAD_URL));
    Is there any way to use BlazeDS remote objects to upload a file from Flex interface? Perhaps passing in a FileReference object and marshalling it into an equivalent Java object?
    Thanks!

    I know there is a workaround like this. It uses a servlet to upload a file and returns a url. The uploaded file is either stored in session or server file system until the session expires. Use the PropertyProxy to register a custom class which contains this url and convert to java.io.File. It is the limitation of the player. It cannot read the local file system for security reason. There is a sample in blazeds/trunk/qa/apps/qa-regress/WEB-INF/src/blazeds/qa/remotingService/Echo.java
    static
    PropertyProxyRegistry registry = PropertyProxyRegistry.getRegistry();
    PropertyProxy proxy = registry.getProxy(java.io.File.class);
    if (proxy == null)
    registry.register(java.io.File.class, new FileProxy());
    proxy = registry.getProxy(FileReference.class);
    if (proxy == null)
    registry.register(FileReference.class, new FileReferenceProxy());
    Hope it can help

  • UTF8 BOM and iFS problem

    Hi,
    I have two UTF-8 encoded xml files on a Windows 2000 client and are trying to add them to iFS.
    The iFS version is 1.1.9.0.7 running of Oracle 8i version 8.1.7.1.1 on an NT4 SP6. I have set IFS_JAVA_VERSION=1.2 to use the Oracle 8i Apache JDK. The database was created with the utf-8 character set.
    The problem is as follows:
    The two utf-8 encoded files are identical with the exception that one of the files have the utf-8 byte order mark (BOM) EF BB BF whereas the other does not have the BOM.
    When I load the file with the BOM using the filesystem or browser upload, with the parse option, I get the following error:
    Mon Jul 23 15:42:43 GMT+02:00 2001: \public\CV-Bank\Copy of CV_Patrik_Johansson.xml:
    oracle.ifs.common.IfsException: IFS-12608: Error while pre-parsing with the SAXParser: at line (1), column (1): oracle.xml.parser.v2.XMLParseException: Start of root element expected.
    at oracle.ifs.beans.parsers.IfsXmlParser.preParse(IfsXmlParser.java, Compiled Code)
    at oracle.ifs.beans.parsers.IfsXmlParser.getParserName(IfsXmlParser.java:367)
    at oracle.ifs.beans.parsers.IfsXmlParser.parse(IfsXmlParser.java:276)
    at oracle.ifs.beans.parsers.IfsXmlParser.parse(IfsXmlParser.java:214)
    at oracle.ifs.utils.common.ParserHelper.parseExistingDocument(ParserHelper.java:379)
    at oracle.ifs.protocols.ntfs.server.FileProxy.parseFile(FileProxy.java:785)
    at oracle.ifs.protocols.ntfs.server.FileProxy.cleanupFile(FileProxy.java, Compiled Code)
    at oracle.ifs.protocols.ntfs.server.FileProxy.runFileProxy(Native Method)
    at oracle.ifs.protocols.ntfs.server.FileProxy.run(FileProxy.java, Compiled Code)The other problem is that if a UTF-8 encoded file is parsed the charachter set is set to "Western (Windows-1252)". This is true even if "UNICODE (UTF-8)" is explicitly selected in browse upload.
    I have loaded the XDK for PLSQL 9.0.2.0.0A into the database and replaced the original %ORACLE_HOME%\lib\xmlparserv2.jar with the one distributed in this XDK.
    Does anyone have a suggestion what to do?
    Regards,
    Patrik
    null

    Hi SJ,
    There are two final products. That is one is requirement of Oil Cans and other one is requirement of Oil Drums. So, there should be two Finish materials. "Oil Can" and "Oil Drum"
    For Oil you can maintain the Base Unit of Measure as "Litres" and give other unit conversions in both Cans and drum. i.e 1 Can - 5 Litrs and 1 Drum = 200 Litres.
    You always get the requirement of Oil either in Drum or in Cans only !!!
    So, you can generate the Production requirement either in Cans or in Drums. Based on the total requirement of oil either in drums or in cans, you can get the Net requirement in Litres to manufacture.
    > Now i want mentain bom unitwise i e canwise or drumwise.
    you can maintain BOM for each finish materials as per the Base unit of Measure.
    > I want to give requirement in md 61 canwise or drumwise.
    You can generate the requirement for Both Drums and Cans and finally get the net requirement of Oil in Litres.
    > sales order is also to be mentained canwise or drumwise.
    You can have a sale order for either drums or cans or both.
    Hope this clears you !!
    Br,
    Hari.

  • UTF-8 files with BOM chrashes DOMParser?

    Hi.
    We are storing XML-documents in an 8i databse with UTF-8 encoding (in CLOBS).
    Problem: If the Unicode XML-document contains a BOM the oracle.xml.parser.v2.DOMParser's
    parse()-method throws an exception.
    I get the following output when using the ParseXMLFromURL.java class supplied in JDeveloper 3.2 samples directory:
    Sample output >>>>
    System Output: XML parse error in file http://localhost/UTF-8_With_BOM.xml
    System Output: at line 1, character 1
    System Output: Start of root element expected.
    <<<<<<< Sample output
    If I change the XML-file not to include a BOM the parser works fine.
    (I set/unset the BOM using EmEditor from http://www.emurasoft.com/ if you'd like to try for yourselves).
    To me it looks like DOMParser interprets the BOM at the start of the XML-file as XML-content instead of a Unicode signature.
    IE 5.5 can handle both formats, shouldn't DOMParse also be able to handle that?
    Any ideas how I can get DOMParse to work with UTF-8(BOM) XML-files?
    Regards,
    Jan-Erik
    Sample XML:
    <?xml version="1.0" encoding='UTF-8'?>
    <newsdoc>
    <news>
    <newstitle>
    Document contains no BOM
    </newstitle>
    <introduction>
    See http://www.unicode.org/unicode/faq/utf_bom.html for info on BOM
    </introduction>
    </news>
    </newsdoc>
    null

    I have the same problem when trying to store UTF-8 encoded XML files with BOM marks in iFS version 1.1.9.0.7.
    The database is 8.1.7.1.1 created with UTF-8 charset.
    I have loaded the XDK for PLSQL 9.0.2.0.0A into the database and replaced the original %ORACLE_HOME%\lib\xmlparserv2.jar with the one distributed in this XDK.
    I get the following error message:
    Wed Aug 01 10:10:06 GMT+02:00 2001: \public\CV-Bank\CV_Patrik_Johansson_intDTD_BOM.xml:
    oracle.ifs.common.IfsException: IFS-12608: Error while pre-parsing with the SAXParser: at line (1), column (1): oracle.xml.parser.v2.XMLParseException: Start of root element expected.
    at oracle.ifs.beans.parsers.IfsXmlParser.preParse(IfsXmlParser.java, Compiled Code)
    at java.lang.Exception.<init>(Exception.java, Compiled Code)
    at oracle.ifs.common.IfsException.<init>(IfsException.java, Compiled Code)
    at oracle.ifs.common.IfsException.<init>(IfsException.java, Compiled Code)
    at oracle.ifs.beans.parsers.IfsXmlParser.preParse(IfsXmlParser.java, Compiled Code)
    at oracle.ifs.beans.parsers.IfsXmlParser.getParserName(IfsXmlParser.java, Compiled Code)
    at oracle.ifs.beans.parsers.IfsXmlParser.parse(IfsXmlParser.java, Compiled Code)
    at oracle.ifs.beans.parsers.IfsXmlParser.parse(IfsXmlParser.java, Compiled Code)
    at oracle.ifs.utils.common.ParserHelper.parseExistingDocument(ParserHelper.java, Compiled Code)
    at oracle.ifs.protocols.ntfs.server.FileProxy.parseFile(FileProxy.java, Compiled Code)
    at oracle.ifs.protocols.ntfs.server.FileProxy.cleanupFile(FileProxy.java, Compiled Code)
    at oracle.ifs.protocols.ntfs.server.FileProxy.runFileProxy(Native Method)
    at oracle.ifs.protocols.ntfs.server.FileProxy.run(FileProxy.java, Compiled Code)
    This is a serious problem since we use an XML editor that adds BOM's.
    Regards
    Patrik Johansson

  • VersioningError when Using JDBC driver for SQL Server with RMI

    Hi,
    I wrote a simple class for inserting rows into a database. The database is SQL Server 2000, and I am using weblogic's mssqlserver4 driver. The class works fine, but when I try to export the class as a remote object (using Sun's RMI implementation, not Weblogic RMI), I get the following error:
    Exception in thread "main" weblogic.common.internal.VersioningError: No WebLogic packages defined in CLASSPATH at weblogic.common.internal.VersionInfo.<init>(VersionInfo.java:35) at weblogic.version.<clinit>(version.java:18)
    at weblogic.jdbc.common.internal.FileProxy.initFileHandles(FileProxy.java:30) at weblogic.jdbc.mssqlserver4.BaseConnection.prepareConnection(BaseConnection.java:215)
    at weblogic.jdbc.mssqlserver4.Driver.newConnection(Driver.java:34) at weblogic.jdbc.mssqlserver4.ConnectDriver.connect(ConnectDriver.java:151) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:171)
    Can anyone tell me why this happens? What is difference between using the driver standalone and using it with RMI? Does it have anything to do with the fact that I'm using Javasoft RMI and not Weblogic RMI? I'm pretty sure I have the classpaths set up correctly.
    Thanks,
    Bo

    Bo Min Jiang wrote:
    Hi,
    I wrote a simple class for inserting rows into a database. The database is SQL Server 2000, and I am using weblogic's mssqlserver4 driver. The class works fine, but when I try to export the class as a remote object (using Sun's RMI implementation, not Weblogic RMI), I get the following error:
    Exception in thread "main" weblogic.common.internal.VersioningError: No WebLogic packages defined in CLASSPATH at weblogic.common.internal.VersionInfo.<init>(VersionInfo.java:35) at weblogic.version.<clinit>(version.java:18)
    at weblogic.jdbc.common.internal.FileProxy.initFileHandles(FileProxy.java:30) at weblogic.jdbc.mssqlserver4.BaseConnection.prepareConnection(BaseConnection.java:215)
    at weblogic.jdbc.mssqlserver4.Driver.newConnection(Driver.java:34) at weblogic.jdbc.mssqlserver4.ConnectDriver.connect(ConnectDriver.java:151) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:171)
    Can anyone tell me why this happens? What is difference between using the driver standalone and using it with RMI? Does it have anything to do with the fact that I'm using Javasoft RMI and not Weblogic RMI? I'm pretty sure I have the classpaths set up correctly.
    Thanks,
    BoHi. Show me the whole stacktrace of the exception. The issue seems to be the driver licensing
    code, which is looking for the bea.license file, and not finding it. Have your code run a System command
    to find and print out the classpath it thinks is in effect. You will then see if the license file is there.
    Joe

  • Versioning Error with SQL Server JDBC Driver

    Hi,
    I wrote a simple class for inserting rows into a database. The database is SQL Server 2000, and I am using weblogic's mssqlserver4 driver. The class works fine, but when I try to export the class as a remote object (using Sun's RMI implementation, not Weblogic RMI), I get the following error:
    Exception in thread "main" weblogic.common.internal.VersioningError: No WebLogic packages defined in CLASSPATH at weblogic.common.internal.VersionInfo.<init>(VersionInfo.java:35) at weblogic.version.<clinit>(version.java:18)
    at weblogic.jdbc.common.internal.FileProxy.initFileHandles(FileProxy.java:30) at weblogic.jdbc.mssqlserver4.BaseConnection.prepareConnection(BaseConnection.java:215)
    at weblogic.jdbc.mssqlserver4.Driver.newConnection(Driver.java:34) at weblogic.jdbc.mssqlserver4.ConnectDriver.connect(ConnectDriver.java:151) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:171)
    Can anyone tell me why this happens? What is difference between using the driver standalone and using it with RMI? Does it have anything to do with the fact that I'm using Javasoft RMI and not Weblogic RMI? I'm pretty sure I have the classpaths set up correctly.
    Thanks,
    Bo

    You seem to have done everything correctly and diligently. I would ask that you open
    an official support case.

  • Creation of .log files

    When uploading new jsps to the jsp-bin directory the resulting files are all in the format name.jsp.log
    The contents of one of these files is:
    java.lang.ClassCastException
         at oracle.ifs.beans.parsers.ClassSelectionParser.createDocument(ClassSelectionParser.java, Compiled Code)
         at oracle.ifs.beans.parsers.ClassSelectionParser.putPublicObjectWithVersioning(ClassSelectionParser.java, Compiled Code)
         at oracle.ifs.beans.parsers.ClassSelectionParser.parse(ClassSelectionParser.java, Compiled Code)
         at oracle.ifs.utils.common.ParserHelper.parseExistingDocument(ParserHelper.java, Compiled Code)
         at oracle.ifs.protocols.ntfs.server.FileProxy.parseFile(FileProxy.java, Compiled Code)
         at oracle.ifs.protocols.ntfs.server.FileProxy.cleanupFile(FileProxy.java, Compiled Code)
         at oracle.ifs.protocols.ntfs.server.FileProxy.runFileProxy(Native Method)
         at oracle.ifs.protocols.ntfs.server.FileProxy.run(FileProxy.java, Compiled Code)
    Any thoughts would be welcome.

    Hi,
    First of all put an exception block and see what exact exeption it is throwing and then post that exception. You also have to check wheather you have created a directory and it has sufficient privileges.
    create or replace procedure verify as
    declare
    ACTIVITY_FILE UTL_FILE.FILE_TYPE;
    log varchar2(600);
    begin
    ACTIVITY_FILE := UTL_FILE.fopen('/dacscan/Mani',log,'W');
    EXCEPTION
    WHEN others THEN
    DBMS_OUTPUT.PUT_LINE(SQLCODE||SQLERRM);
    end;
    /

  • External DTDs in 1.1

    Can 1.1 on Win2000 Server handler DTD that are external to the xml document? I know it handles local DTDs.
    Here is the decl:
    <!DOCTYPE TRANSCRIPT SYSTEM "\\dga22\DTDs\transcript.dtd">
    Here is the error.
    Thu Mar 08 15:51:40 CST 2001: \Transcription\Inprocess\trans02022001T1.xml:
    oracle.ifs.common.IfsException: IFS-12608: Error while pre-parsing with the SAXParser: at line (2), column (59): Error opening external DTD '\\dga22\DTDs\transcript.dtd'.
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at oracle.ifs.common.IfsException.<init>(Compiled Code)
    at oracle.ifs.common.IfsException.<init>(Compiled Code)
    at oracle.ifs.beans.parsers.IfsXmlParser.preParse(Compiled Code)
    at oracle.ifs.beans.parsers.IfsXmlParser.getParserName(IfsXmlParser.java:367)
    at oracle.ifs.beans.parsers.IfsXmlParser.parse(IfsXmlParser.java:276)
    at oracle.ifs.beans.parsers.IfsXmlParser.parse(IfsXmlParser.java:214)
    at oracle.ifs.utils.common.ParserHelper.parseExistingDocument(ParserHelper.java:379)
    at oracle.ifs.protocols.ntfs.server.FileProxy.parseFile(FileProxy.java:785)
    at oracle.ifs.protocols.ntfs.server.FileProxy.cleanupFile(Compiled Code)
    at oracle.ifs.protocols.ntfs.server.FileProxy.run(Compiled Code)
    null

    I think the DTD has to be stored in the IFS repository or accessed with an HTTP protocol
    null

  • WL6.1 JDBC driver for MSSQL2000:

    This happened when I tried to creating a jdbc connection?
    Mon Mar 18 11:11:09 PST 2002 (util:info:2934): Command Line (<empty>)
    Mon Mar 18 11:11:10 PST 2002 (util:warning:2886): ServerThread.run() caught an e
    xception.
    java.lang.ExceptionInInitializerError: java.lang.NullPointerException
    at weblogic.common.internal.VersionInfo.getLocalWLPackages(VersionInfo.j
    ava:158)
    at weblogic.common.internal.VersionInfo.<init>(VersionInfo.java:31)
    at weblogic.version.<clinit>(version.java:18)
    at weblogic.jdbc.common.internal.FileProxy.initFileHandles(FileProxy.jav
    a:30)
    at weblogic.jdbc.mssqlserver4.BaseConnection.prepareConnection(BaseConne
    ction.java:215)
    at weblogic.jdbc.mssqlserver4.Driver.newConnection(Driver.java:34)
    at weblogic.jdbc.mssqlserver4.ConnectDriver.connect(ConnectDriver.java:1
    51)
    at java.sql.DriverManager.getConnection(DriverManager.java:517)
    at java.sql.DriverManager.getConnection(DriverManager.java:146)
    at ariba.server.jdbcserver.JDBCConnection.connect(JDBCConnection.java:28
    3)
    at ariba.server.jdbcserver.JDBCConnection.<init>(JDBCConnection.java:251
    at ariba.server.jdbcserver.SQLSupport.allocateDatabaseConnection(SQLSupp
    ort.java:94)
    at ariba.server.jdbcserver.JDBCServer.createJDBCConnection(JDBCServer.ja
    va:336)
    at ariba.server.jdbcserver.JDBCServer.createConnectionPool(JDBCServer.ja
    va:268)
    at ariba.base.dbowner.DBOwnerReset.run(DBOwnerReset.java:41)
    at ariba.rpc.server.ServerThread.run(ServerThread.java:448)
    at ariba.server.jdbcserver.JDBCServerThread.run(JDBCServerThread.java:19
    3)
    at java.lang.Thread.run(Thread.java:484)
    Mon Mar 18 11:11:10 PST 2002 (util:info:2935): Server shutting down with exit co
    de: 1. Shutdown message: Internal shutdown Reason: uncaught error()
    [att1.html]

    there is a JRE 1.3 from IBM available for AIX 4.3. As far as I remember, it does not ship with the standard distribution, but is part of something called optional package or so - to get this CD you have to talk to the IBM sales rep.

  • Another Post concerning Error IFS-30002

    If I try to Upload a XML file containing the Attribute declaration below:
    <Attribute>
    <Name>FunctionalityImplementedFixed</Name>
    <DataType>String</DataType>
    <DataLength>512</DataLength>
    </Attribute>
    I get the Error IFS-30002.
    Can someone tell me whats wrong with this declaration. If I comment it, all works fine!
    Are there any Restrictions for the Length of the Attribute Name?
    null

    Reproduced the Problem. It is much easier to debug problems when we have the full stack trace.
    Eg in your case....
    Loading the following Type Definition
    <CLASSOBJECT>
    <NAME>TEST_OBJECT_01</NAME>
    <SUPERCLASS REFTYPE="NAME">DOCUMENT</SUPERCLASS>
    <ATTRIBUTES>
    <Attribute>
    <Name>FunctionalityImplementedFixed</Name>
    <DataType>String</DataType>
    <DataLength>512</DataLength>
    </Attribute>
    </ATTRIBUTES>
    </CLASSOBJECT>
    causes the following error.
    Thu Jul 27 12:16:53 PDT 2000: \Temp\XML Long Attribute Name Definition.xml:
    oracle.ifs.common.IfsException: IFS-30002: Unable to create new LibraryObject
    java.sql.SQLException: ORA-01401: inserted value too large for column
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.sql.SQLException.<init>(SQLException.java:43)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java)
    at oracle.jdbc.oci8.OCIDBAccess.check_error(Compiled Code)
    at oracle.jdbc.oci8.OCIDBAccess.executeFetch(Compiled Code)
    at oracle.jdbc.oci8.OCIDBAccess.parseExecuteFetch(Compiled Code)
    at oracle.jdbc.driver.OracleStatement.executeNonQuery(Compiled Code)
    at oracle.jdbc.driver.OracleStatement.doExecuteOther(Compiled Code)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithBatch(Compiled Code)
    at oracle.jdbc.driver.OracleStatement.doExecute(Compiled Code)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(Compiled Code)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(Compiled Code)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(Compiled Code)
    at oracle.ifs.server.S_LibraryObject.insertRow(Compiled Code)
    at oracle.ifs.server.S_LibraryObject.insertRows(Compiled Code)
    at oracle.ifs.server.OperationState.executeAtomicOperations(Compiled Code)
    at oracle.ifs.server.S_ClassObject.extendedPostInsert(Compiled Code)
    at oracle.ifs.server.S_LibraryObject.postInsert(S_LibraryObject.java:1341)
    at oracle.ifs.server.OperationState.executeAtomicOperations(Compiled Code)
    at oracle.ifs.server.S_LibraryObject.createInstance(S_LibraryObject.java:2348)
    at oracle.ifs.server.S_LibrarySession.newLibraryObject(S_LibrarySession.java:6596)
    at oracle.ifs.server.S_LibrarySession.newSchemaObject(S_LibrarySession.java:6707)
    at oracle.ifs.server.S_LibrarySession.newSchemaObject(S_LibrarySession.java:6689)
    at oracle.ifs.server.S_LibrarySession.DMNewSchemaObject(S_LibrarySession.java:6515)
    at oracle.ifs.beans.LibrarySession.DMNewSchemaObject(LibrarySession.java:6997)
    at oracle.ifs.beans.LibrarySession.NewSchemaObject(LibrarySession.java:4600)
    at oracle.ifs.beans.LibrarySession.createSchemaObject(LibrarySession.java:2584)
    at oracle.ifs.beans.parsers.SimpleXmlParserImpl.createObject(Compiled Code)
    at oracle.ifs.beans.parsers.SimpleXmlParserImpl.createObject(SimpleXmlParserImpl.java:394)
    at oracle.ifs.beans.parsers.SimpleXmlParser.readTopLevelObject(SimpleXmlParser.java:490)
    at oracle.ifs.beans.parsers.SimpleXmlParser.traverseTree(Compiled Code)
    at oracle.ifs.beans.parsers.XmlParser.parse(Compiled Code)
    at ifs.demo.common.xml.NewXmlParser.parse(Compiled Code)
    at oracle.ifs.utils.common.ParserHelper.parseExistingDocument(ParserHelper.java:352)
    at oracle.ifs.protocols.ntfs.server.FileProxy.parseFile(FileProxy.java:744)
    at oracle.ifs.protocols.ntfs.server.FileProxy.closeFile(Compiled Code)
    at oracle.ifs.protocols.ntfs.server.FileProxy.run(Compiled Code)
    I was able to get this information by using SMB / NT File System Driver to load the XML File. When an XML file fails to load under SMB the entire Verbose Stack Trace is dumped into a 'log' file in the same location as the XML was placed.
    In this case changing the Type File so that the DatabaseObjectName tag is used to provide a valid column name fixed the problem.

  • How to list roots?

    try {
    if (MEGA_ROOT.equals(currDirName)) {
    e = FileSystemRegistry.listRoots();
    browser = new List(currDirName, List.IMPLICIT);
    in this code, i used FileSystemRegistry.listRoots() to list all the roots of my mobile. after that i will be able to browse my folders and files of mobile. but now i am trying to browse my accounts folders and files which is in the server. i have done the stub creation of the server side codes. now i am trying to connect using that stub called fileproxy. but how can i list my roots?? what will be the code?? if anyone can, please help and thanks for reading my problem.

    Hello,
    Hope this helps:
    // Set the root file
              String root = "D:\\Temp";
              File f = new File(root);
              // check if directory
              if(f.isDirectory()){
                   // get the list of files from the directory
                   String[] listF = f.list();
                   // print them
                   for(int i=0;i<listF.length;i++){
                        System.out.println(listF);
    Here is the doc for class  [File|http://java.sun.com/j2se/1.5.0/docs/api/]
    Regards,
    David.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for