• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 646
  • Last Modified:

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

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();
                  props.load(is);
                  ReportWriterPreferences prefs = new ReportWriterPreferences(props);
                  Configuration.init(prefs);
0
robert_jenkin
Asked:
robert_jenkin
  • 2
1 Solution
 
robert_jenkinAuthor Commented:
does anyone know how to configure something like this in weblogic (10.3)
0
 
robert_jenkinAuthor Commented:
no follow up by anyone
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now