Hello All,
Does any one know a better solution to assign the values to static final variables in EJBs (Entity Beans and also Session Beans). We have a need to initilize some of the static final variables in each of the CMP and that has to be read from a resource such as a config file bundled with in the jar file. I tried initilize the final values with in the static block of code in
EJB's but while the EJBs are getting deployed to the Container ( Oracle 9iAS OC4J container ) it throws an Exception such as resource not found Exception !!!
If I do the same thing with in a static block of code in other plan class (not the EJB's) they work fine and all the static final variables are initilized !!!
But I want the static final variables to be part of EJB's and initilize them when the class is getting loaded!!! becasue I don't want to use one more plan class just to hold my final variable values
Any help is appreciated very much
Thank you
Mallik