• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Where will WebLogic look for files by default?

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Hi All,

I have a web application deployed in WebLogic. In one of my java file, I tried to read PleaseNote.txt as following:


Now WebLogic is taking PleaseNote.txt from its domain directory.My question is:

[1] Why it is domain directory? Why not the directory where my java file which has the above line of code is in?

[2] Is there any configuration which I am not aware of , but did unknowingly, for WebLogic to look in its domain directory?

[3] What are the implications / side effects of using above line of code in production?

Any WeLogic experts, please respond.

Thank you.
Regards,
Chaitanya
 
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think regardless of appserver, it will look into its classpath to load that particular file.
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You dont have to be a weblogic expert to answer this question. I do hope that line of code does not exist in prod. The file's path is relative. Relative to what is always a question that has a dynamic answer. Use an absolute path instead.
 
Story like this gets better after being told a few times. Or maybe it's just a tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic