This content has been marked as final. 
    
Show                 3 replies
    
- 
        1. Re: ClassLoader problem on Jboss 3.0.7juha Dec 12, 2003 8:26 AM (in response to mickolka)You should not be using statics at all. 
- 
        2. Re: ClassLoader problem on Jboss 3.0.7mickolka Dec 13, 2003 3:56 AM (in response to mickolka)Hi "juha@jboss.org" wrote: 
 You should not be using statics at all.
 Ok how then I can configure the application? I need additional configuration because I have to be able to run several versions of application under one Jboss server.
 Do I have to use MBeans or I can read configuration from files in the META-INF directory of the jar with EJB?
 Mykola
- 
        3. Re: ClassLoader problem on Jboss 3.0.7juha Dec 13, 2003 10:10 AM (in response to mickolka)I think there are several options, depending what fits your needs best: 
 Use JNDI to bind values you want to share across components
 Use an MBean to do the same
 Use a custom deployer that reads a config file from META-INF
 Separate the applications using <loader-repository> tag (you're using an older version of JBoss so I don't remember how well this was supported)
 Probably others as well. The main point is how these behave in a clustered environment (using statics would always fail there).
 Hope that gives you some ideas.
 
    