[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2011-05-02
2
Medium Priority
?
641 Views
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();
                  props.load(is);
                  ReportWriterPreferences prefs = new ReportWriterPreferences(props);
                  Configuration.init(prefs);
0
Comment
Question by:robert_jenkin
  • 2
2 Comments
 

Accepted Solution

by:
robert_jenkin earned 0 total points
ID: 35508212
does anyone know how to configure something like this in weblogic (10.3)
0
 

Author Closing Comment

by:robert_jenkin
ID: 35778609
no follow up by anyone
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

-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 …
Configure Web Service (server application) I. Configure security for Web Services methods First, we need to protect Session bean which implements the service: 1. Open EJB deployment descriptor (ejb-jar.xml) in the EJB project that contains you…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses
Course of the Month18 days, 9 hours left to enroll

825 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