OAF: How to read directory in middle tier

Hi,
I have a requirement in OAF wherein I need to display all the files in a directory in middle tier and later on filer if required based in user input. For e.g list all contents of /usr/tmp and then in UI user might enter *.text to filter only .txt files. Basically those files should appear as link which will open the file in OAF page.
One way is to use plsql to read directory.
Can some one provide input how to achieve this.
Thanks in advance.

I'd also be interested in the most elegant way of achieving this.
I don't want the users to be able to specify any folder on the middle tier - but a specific one - I'm assuming it'll be straightforward either way.
Edited by: user8266039 on 24-Aug-2009 05:39

Similar Messages

  • How to install oracle workflow middle tier in 10.2.0.4 64 bits

    Hi all !
    i've installed oracle workflow middle tier several times using oracle 10g companion CD release 1, 32 bits.
    Database has been upgraded to 10gR2 (10.2.0.4) and operating system upgraded to windows 2008 enterprise 64 bits.
    I've downloaded oracle companion CD 10.2.0.4 64 bits but there is no option for installing Oracle Workflow Middle Tier :(
    How should i proceed to install oracle workflow middle tier for 10.2.0.4 in an 64 bits operating system?
    Best Regards
    Rui Madaleno

    Any feedback, please?

  • Reading CSV on middle tier

    I have two applications where I need to read standard comma delimited text data. I would like to bind a VO to a csv as its data source, and am assuming that many have done this before. Is there a 'ready to use' extended class I can use?
    In one app, I only need to read the rows in a table. Period.
    In another I need to write the rows to a 9.2 database.
    Any help, much appreciated.
    -Nat

    Nat,
    By the Middle Tier I assume you mean an EJB bean (Session or Entity).
    Read the J2EE Spec, Chapter 24.1.2, Programming Restrictions regarding File I/O. The spec states "An enterprise bean must not use the java.io package to attempt to access files and directories in the file system." The reason provided by the spec is "The file system API's are not well suited for business components to access data. Business components should use a resource manager API, such as JDBC, to store data."
    My application needs to create database records and corresponding directories in the file system. I have succeeded in doing this by using JNDI File System Service provider as sketched below:
    ***** Session Bean ******
    package myco.i.Demo.ejb;
    import javax.ejb.SessionBean;
    import myco.i.Demo.dao.DocDAO;
    public class DemoFacadeBean implements SessionBean
    { private   DocDAO aDocDao;
    public void ejbCreate()
    {  aDocDao = new DocDAO();  }
    public void addDoc(DocDto theDoc)
    throws DocDAOException
    {  DocDAO.addDoc(theDoc);  }
    ***** DAO Code ******
    package myco.i.Demo.dao;
    import myco.i.Demo.dto.DocDto;
    public class DocDAO {
    private Context fsCtx;
    // Constructor
    public DocDAO()
    super();
         // Set up the initial File System context
         Hashtable env = new Hashtable(11);
         env.put(Context.INITIAL_CONTEXT_FACTORY,
         "com.sun.jndi.fscontext.RefFSContextFactory");
         env.put(Context.PROVIDER_URL, "file : /Demo");
         try { fsCtx = new InitialContext(env); }
         catch {...}
    // Business methods
    public void addDoc(aDoc)
    throws DocDAOException
    Context newDir = fsCtx.createSubcontext(aDoc.getLocation());
    ... JDBC Code to create new database record ...
    To make this work I had to copy the JNDI File System provider classes (fscontext.jar, providerutil.jar)into the JRE (inherently insecure if someone hacks your site). I don't know if this is any better then setting the security on your app server to allow Java.io.* (JNDI has some overhead).
    You can use java.io from within the web container (jsp's/Servelets), but you loose a little bit of transaction processing. I may end up choosing this direction to stay within the spec.
    Hope this helps.
    Jake

  • How to read directory and file

    I am being passed a vector which has information about a file with its directory path.
    I need to read the file and work on it .. how do I get to that..
    Also the vector may have multiple entries and I need to go through all of them..
    How do I go about this..

    <code>
    File file = null;
    String filePath = null;
    BufferedReader br = null;
    String lineRead = null;
    for (int i=0; i<fileV.size(); i++)
    filePath = (String)fileV.get(i);
    file = new File(filePath);
    br = new BufferedReader(new FileReader(file));
    while ((lineRead=br.readLine())!=null)
    //read a line from the file
    boolean b = checkPattern(lineRead);
    if (b)
    someOtherMethod(lineRead);
    br.close();
    </code>

  • Virtual middle tier

    Dear All,
    How can I add Virtual middle tier to an existing EBS .... what are the advantages with this ?.. Do refer me any metalink ids if u have regarding this ?
    Thanks
    Yusuf

    Yusuf,
    Am I correct in assuming that you're interested in using a virtualization product like VMware or Oracle VM to host an new middle tier in your existing EBS installation? If so, here are a few thoughts:
    1) The process for adding a virtual middle tier node is no different from adding a physical server. Once you've created the virtual server, the steps are all the same. I've implemented several test systems where the db tier and a both middle tier servers are all virtual, using a shared applications tier filesystem, following all of the normal install and config documentation for Oracle Apps. As far as I know, Oracle doesn't have any specific documentation addressing the topic of server virtualization.
    2) The main advantage I see to implementing virtual middle tiers for EBS is the same benefit that virtualization offers in other IT services: you have low-to mid-traffic services that would not consume the full resources of a physical server on their own; you want to use the server load-balancing features of the enterpise-class virtualization products like VMware ESX, etc.
    3) Keep in mind that if this is a production system, you have to deploy your services on a supported platform. According to the marketing material, Oracle will support any Oracle product deployed on Oracle VM. I haven't done any research to see if there are exclusions to that policy, and I do not know if they've included VMware in their virtualization support policy or not...my cynical side says probably not. ;-) Prior to the release of Oracle VM, the support policy on virtual servers was effectively "if you can reproduce your virtual server's problem on physical hardware, we can help you; otherwise, you're out of luck."
    Hopefully this isn't too vague!
    Regards,
    John P.

  • How to install Oracle BPEL Process Manager for OracleAS Middle Tier

    hi,
    i need to install BPEL process manager, so i download the following file from otn
    1.soa_windows_x86_101310_disk1
    2.soa_windows_x86_bpel_101310
    here i read the document named b28980.pdf from bpel\doc\pc.1012 to install BPEL PM
    so i start to complete the pre-installation task
    1.installed Oracle database 10g
    2.Run the Integration Repository Creation Assistant on the Database
    3.Install Oracle Application Server 10g Release3 (10.1.3.1.0) and select either the J2EE Server installation type or the J2EE and Web Server installation type. selected J2EE and Web Server installation type
    and installed according to the Oracle application server installation guide.
    installed OracleAS in the path : D:\product\10.1.3.1\OracleAS_1
    4.Install the current release of Oracle BPEL Process Manager for OracleAS Middle Tier
    here they mention to select the J2EE and Web Server installation type because that type is selected in Oracle AS installed in Oracle Application Server
    so i start to install the BPEL PM by selecting the setup.exe-->and shows the location source and destination
    default destination is : D:\product\10.1.3.1\OraBPEL_1 selected next on the screen
    the next screen is select installation type here there are two types named
    1.BPEL process Manager for Developer (371MB)
    2.BPEL process manager for Oracle AS Middle tier (107MB)
    i selected 2.BPEL process manager for Oracle AS Middle tier (107MB) and click next
    pop up window opens with title dependencies
    error:
    BPEL Process manager for oracle AS Middle tier will run on top of a supported Oracle Application Server 10.1.3.1.0 J2EE server and Web Server Or J2EE server instance. this location does not contain this instance. Please select new Oracle home that contains a supported instance.
    so i changed the destination path to : D:\product\10.1.3.1\OracleAS_1\BIN then also i got the same error.
    please any one mention the path for J2EE and Web Server instance for installing the BPEL PM for Oracle AS Middle Tier.
    Thanks in Advance
    Aswath Thaniga

    If you choose the developer version you will be fine.
    If you have installed J2EE and Web Server installation into D:\product\10.1.3.1\OracleAS_1 then this is the location you install your BPEL PM into, not D:\product\10.1.3.1\OraBPEL_1 or D:\product\10.1.3.1\OracleAS_1\BIN.
    D:\product\10.1.3.1\OracleAS_1 is what we call the ORACLE_HOME, generally we create a new home for each install, but in this case there is a dependency on 10.1.3.1 OC4J container. So it needs to be installed into 10.1.3.1 oracle home.
    The bin directory is just the executables for that home, its not the actual. home.
    cheers
    James

  • How to install/upgrade Ultrasearch for AS Middle Tier 10.1.2.0.2?  DB 9208.

    Hi,
    I am trying to understand the Ultrasearch from the point of view of my 10.1.2.0.2 middle tier. Here is my environment:
    Our Metadata Repository and Portal Repository (Customer) databases are version 9.2.0.8. Recently patched to 9.2.0.8 from 9.2.0.7.
    Our Infrastructure & Middle Tiers have been recently upgraded to version 10.1.2.0.2 from version 9.0.4.1.
    Both the repository databases and the Infra and Mid tiers have their own Oracle Homes.
    From what I read, Ultrasearch is installed by default with an Oracle Database. It is also available with Oracle Application Server.
    With the version of Ultrasearch coming with our 10.1.2.0.2 AS being a later version than the one that came with the Database, I am trying to figure out how to install the correct Ultrasearch in our Customer (or Metadata ?) database.
    The iasua.log from our middle tier upgrade says:
    ============================================================================
    2009/07/16 12:27:20.478 PDT NOTIFICATION:1 Framework: Starting to examine UltraSearch.
    2009/07/16 12:27:20.478 PDT NOTIFICATION:1 Framework: Finished examining UltraSearch with status: Success.
    2009/07/16 12:52:41.587 PDT NOTIFICATION:1 Framework: Starting to examine UltraSearch.
    2009/07/16 12:52:41.587 PDT NOTIFICATION:1 Framework: Finished examining UltraSearch with status: Success.
    2009/07/19 19:08:28.616 PDT NOTIFICATION:1 Framework: Starting to examine UltraSearch.
    2009/07/19 19:08:28.616 PDT NOTIFICATION:1 Framework: Finished examining UltraSearch with status: Success.
    2009/07/19 19:12:25.560 PDT NOTIFICATION:1 Framework: Starting to upgrade UltraSearch.
    2009/07/19 19:12:25.579 PDT NOTIFICATION:1 Framework: Finished upgrading UltraSearch with status: Success.
    ============================================================================
    But during the Metadata Repository Upgrade using MRUA, I saw the following error:
    ============================================================================
    Calling upgrade plugin for ULTRASEARCH
    Error: Component upgrade failed ULTRASEARCH
    ============================================================================
    I can connect to the Ultrasearch Admin tool from the Application Server Console middle tier => portal page, and I see there that the version is 10.1.0.4.2. Ultrasearch has never been setup previously with our 904 environment. I see the WK_TEST default instance there that I can navigate around. My question is, how do I check and confirm that Ultrasearch has been installed correctly for my Application Server?
    If I have to install a new version of Ultrasearch, what are the installation steps? Does Ultrasearch always use the Metadata repository database? Or can it be configured to use a customer database? I don't see a WKSYS schema in our Portal database. WKSYS exists only in our MR database.
    As per the APP_REGISTRY in our MR database, the Ultrasearch component is version 9.2.0.8.0 and is INVALID.
    I believe that Ultrasearch was an option prior to 10.1.2+ releases, but is required with the recent releases. Correct me if I am wrong.
    I think Ultrasearch is installed for our AS environment. I don't know if it is valid.
    Any help would be appreciated. I just need to confirm that I am good to go, to proceed and upgrade our Portal to version 10.1.4.
    Thanks.
    CV

    Figured out that Ultrasearch was installed as a part of the Middle Tier install and was upgraded successfully during the Middle Tier upgrade.
    Thanks.
    CV

  • How to remove a middle tier from the infrastructure layer?

    Here's my scenario.
    I have my infrastructure on System1.
    I have three middle-tier installs in my farm/cluster on SystemA, SystemB, SystemC.
    My question is "What are the correct steps to take to permanently remove one of these middle tiers, let's say SystemB, from my infrastructure?"
    I want to make sure it's removed from OID, SSO, EM, and any miscellaneous config files. I haven't found anything in the docs to address this.
    Thanks,
    Bill

    Make sure that you are not running Firefox in Private Browsing mode
    * [[Private Browsing#w_how-do-i-turn-off-private-browsing|How do I Turn OFF Private Browsing?]]
    -> Now, [[Clear Recent History]]
    -> [[Clearing Location bar history]]
    -> [[How to clear Search bar history]]
    -> [[Troubleshooting extensions and themes]]
    Check and tell if its working.

  • How Middle Tier connect to Database Tier?

    Desktop tier never directly interact with Database tier. It is the Application tier which is also called Middle tier that connect to Database tier to fullfill the end user request.
    My question is how Application tier interact with Database tier under the hood?
    I know Middle tier consist of Forms Server, Report Server, Concurrent Server, Web Server, Administration Server.
    Let's say I want to know how Concurrent Server connects to Database tier? which file or connection does it use?
    Similery how does Forms Server, Reports Server, Web Server interact?
    Any overall/broad picture of this whole structure?
    Thanks,

    Refer to [Oracle Applications R12 Concepts|http://download.oracle.com/docs/cd/B40089_09/current/acrobat/120oacg.pdf] and [Oracle Applications 11i Concepts |http://download-uk.oracle.com/docs/cd/B25516_14/current/acrobat/11iconcepts.pdf] manuals, it is explained properly there.

  • How to read files in whole directory

    hi everybosy i have got a directory called grepdatabase in the following path
    /users/zer/gd.
    it has 3000 files in it.i have to read each file and do soem process and write it into another file.
    but with the following code it says, directorydoesnot exists.but i have the directory,with all the files in it.
    File database = new File("c:/Domain/nbi.bbsrc.ac.uk/Users/zer/gd");
            if (database.exists() && database.isDirectory()) {
                String datafiles[] = database.list();
                for (int i = 0; i < datafiles.length; i++) {
                    System.out.println("processing file: " + database.getAbsolutePath() +
                            "/" + datafiles[0]);
            } else {
                System.out.println("Database exists: "+database.exists()+"\nDatabase is Directory: "+database.isDirectory());
            }can anyone help me how to read multiple files...

    ur code can be little modified as follows to make it work flawlessly
           File database = new File("c:/Domain/nbi.bbsrc.ac.uk/Users/zer/gd");
                  if (database.exists() && database.isDirectory()) {
                      //String datafiles[] = database.list();
                      //Instead use file list here
                      File[] datafiles = database.listFiles();
                      for (int i = 0; i < datafiles.length; i++) {
                      //    System.out.println("processing file: " + database.getAbsolutePath() +
                      //            "/" + datafiles[0]);
                       System.out.println("processing file: " + datafiles.getName());
    } else {
    System.out.println("Database exists: "+database.exists()+"\nDatabase is Directory: "+database.isDirectory());
    BR

  • How to attach a file fin the middle tier in the workflow notification

    My requirement
    1) File is there in the middle tier (file name : invoice_99.pdf )
    2) From workflow notification I need to read that file (invoice_99.pdf) and
    open it from the notification when user click on it
    can you please let me know is there any way to handle this

    Thiru,
    This is not the right forum for this.
    Btw, I have done exactly same requirement several times and it's easy to do.
    1)Create a Document Attribute and specify to attach it to the notif msg.
    2)Create a PL/SQL function activity in workflow
    3)In the PL/SQL proc, Load the file using dbms_lob into a LOB and set the attribute using
    wf_engine.SetItemAttrText(itemtype      => itemType
    ,itemkey      => itemkey
    ,aname      => 'SRQ_REPORT'
    ,avalue           => 'PLSQLCLOB:xxx_gbl_wf.get_pdf_quote/'||v_report_request_id||':'||v_qot_number);
    Hope this helps
    Srini

  • How to read a file on specific  Directory

    How to read a specific file on specific folder ,
    For ex , in D: contain lot of directory ,
    Let as assume �program �- Directory.
    �xxx.txt�-file,
    How to read �xxx.txt� file from program Directory,
    Give me simple pgm ,

    pradeep.rajadurai wrote:
    How to read a specific file on specific folder ,
    For ex , in D: contain lot of directory ,
    Let as assume �program �- Directory.
    �xxx.txt�-file,
    How to read �xxx.txt� file from program Directory,
    Give me simple pgm ,
    Scanner scan = new Scanner(new File("D:/program/xxx.txt"));
    // your code here[http://java.sun.com/j2se/1.5.0/docs/api/java/util/Scanner.html]

  • How to change the nodes in middle tier

    how to chnage the node in middle tier and a new node for middle tier?

    For adding a new node to an existing system, you can use Rapid Clone to clone a node and add it to the existing Application System. Refer to the following note for more details:
    Note: 230672.1 - Cloning Oracle Applications Release 11i with Rapid Clone
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=230672.1

  • How to read all the files in the directory

    Hi,
    I want to read all the files from a directory and perform some operations on them. How to read one file at a time from the directory. Is there any operation like the * sign in Dos and Matlab. Is there any such vi which does that.
    Thanks,
    Nitin

    I'm glad I could help, Danny.  Using the VI Server technique for recursion is very slow and memory-intensive.  I have never seen a need for recursion in LabVIEW that couldn't be solved with a loop and shift registers.
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • How to de-install Infra and Middle-tier properly?

    Dear All,
    I want to clear the proper de-install concept of Infra & Middle-tier so please guide me for this.
    Thanks,
    Waheed

    Hi Waheed,
    On the Windows operating system, you can run the Oracle Universal Installer (look in your Start menu) and de-install both an infrastructure and middle-tier at the same time (if they're on the same machine).
    When the Oracle Universal Installer is done, you will have to delete the Oracle homes from your hard drive.
    Not sure if it works the same way on Unix/Linux installations. . .
    HTH,
    Jim

Maybe you are looking for

  • Weblogic Server 2008 Service Startup Error

    Hello When setting up weblogic on server 2008 R2, I can start weblogic using the startWeblogic.cmd file manually, but when configuring to run as a service, I am getting the below error and the service does not start. Do you know what could be causing

  • How to populate the relavent fields when clicked on a field

    I am trying to populate the relevant fields of screen(MODULE POOL PROGRAM) when i am  clicking on a field. Search help/ value request is provided to that field. so Can any one help me with this scenario. IF POSSIBLE PLEASE SEND THE SOLUTION WITH THE

  • Slow lightroom

    My Lightroom has started to become slower the longer I use it. It can now take a few seconds before I can see any adjustment that I make in the develop mode. Is there anything I can do, other than re install? Many thanks.

  • NI 6221 won't load driver

    Have a working USB connected NI 6221 PCB and a program to use it written in VB 6.0.   Everything works fine with a WinXP host PC.   I normally use it with NI-DAQmx 8.7.1. We want to jettison the Host PC and use a new Dell Laptop.   New Laptop has Win

  • I have a very strange home screen app glitch; can someone please take some time to read this because I am stuck!

    I truly thank anyone who reads this and offers any suggestions. I went to the App Store on my iPod touch 4th generation (6.0.1) and downloaded an app.  Then I went back to the home screen to move the app inside a folder.  I did this while the app was