Not sure - but maybe if you can provide some more information we can sort something out.
- Which classloader do you want the MailerLoader to use? - Can you describe the classloader hierarchy you have set up with classworlds. (Including the Phoenix classloaders) - Which class is your singleton and which classloader is being used to load it? - Why are you using classworlds? What does it buy you in this scenario? Steve > -----Original Message----- > From: Leandro Rodrigo Saad Cruz [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 14, 2004 2:40 PM > To: [EMAIL PROTECTED] > Subject: Using specific classloaders for mailets > > > Hi all. > > I'd like to use a specific classloader for one mailet > that should share a singleton with other app running on the same JVM. > > For this to work I'm using classworlds to start phoenix/james > and jetty. Both apps mess with the classloader. Is it > possible to make a make let run using a specific classloader ? > > This code was extracted from MailetLoader.java. The > classloader always references this.getClass().getClassLoader(); > > <MailetLoader> > ClassLoader theClassLoader = null; > try { > MailetConfigImpl configImpl = new MailetConfigImpl(); > configImpl.setMailetName(mailetName); > configImpl.setConfiguration(configuration); > configImpl.setMailetContext(context); > if (theClassLoader == null) > { > theClassLoader = this.getClass().getClassLoader(); > } > ... > ... > </MailetLoader> > > -- > Leandro Rodrigo Saad Cruz > InterBusiness Tecnologia e Servi�os > IB - www.ibnetwork.com.br > DB - www.digitalbrand.com.br > OJB - db.apache.org/ojb > XINGU - xingu.sf.net > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
