how to load a properties file via resource-ref in weblogic

Posted on 2011-05-02
Last Modified: 2012-05-11
I need to load a properties file for my webapp via a resource obtain by jdni naming.

like so

                  InitialContext initCtx = new InitialContext();
                  URL url = (URL) initCtx.lookup("java:comp/env/" + propertiesLocation);

                  URLConnection conn = url.openConnection();
                  InputStream is = conn.getInputStream();

                  Properties props = new Properties();
                  ReportWriterPreferences prefs = new ReportWriterPreferences(props);
Question by:robert_jenkin

    Accepted Solution

    does anyone know how to configure something like this in weblogic (10.3)

    Author Closing Comment

    no follow up by anyone

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    -Xmx and -Xms are the two JVM options often used to tune JVM heap size.   Here are some common mistakes made when using them:   Assume BigApp is a java class file for the below examples. 1.         Missing m, M, g or G at the end …
    Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now