Re: Programmatically loading of the configuration file

2015-01-22 Thread Remko Popma
Sorry, that's uncharted territory for me... Remko Sent from my iPhone > On 2015/01/23, at 8:54, "Blaine Bergeson (bbergeson)" > wrote: > > Well, my previous solution works great for normal applications but it does > not work for NetBeans RCP apps. I placed the package that contains the clas

RE: Programmatically loading of the configuration file

2015-01-22 Thread Blaine Bergeson (bbergeson)
Well, my previous solution works great for normal applications but it does not work for NetBeans RCP apps. I placed the package that contains the class and configuration file in a module and then made the package visible to other modules. I also modified the code to read the configuration file

RE: Programmatically loading of the configuration file

2015-01-22 Thread Blaine Bergeson (bbergeson)
I was able to get the following code to work. This code was placed in a method in a class that was in the same package as the log4j2.xml file. I call this method in the main entry point of my application before getting any loggers. I had to do a google search to find out about the Configurato

Programmatically loading of the configuration file

2015-01-22 Thread Blaine Bergeson (bbergeson)
I can't seem to load a configuration file? The reason I am doing this is because I have my configuration file in a package that is not on the default classpath. Adding the package to the classpath is not straight forward. Also, I don't want to add a system property or environment variable bec

RE: Observations about the Context Map and the Header attribute

2015-01-22 Thread Blaine Bergeson (bbergeson)
I was finally able to get a solution that worked by using Routing. It seems that maybe the evaluation of the route is delayed so that the values of the context map are available by the time it is evaluated. Here is an example of my configuration file.