Hi Gerhard, Do you invoke the org.apache.axis2.client.Stub.cleanup() method after having finished with the stub?? This method removes the stub from its service-context.
This thread might be relevant. http://marc.info/?l=axis-user&m=122213400714608&w=2 (DISCLAIMER: I have no internal knowledge of axis2) Regards, Kostis On Tue, Jun 22, 2010 at 2:05 PM, gerhard presser <gpres...@groiss.com> wrote: > > hi all, > can a configurationcontext object been reused safely? > > I'm having trouble when creating a new configurationcontext object on each > request because of a permgen-space overflow (each configurationcontext > creates it's own axisconfiguration with it's own classloaders) and a > disk-overflow (tmp-files aren't deleted any more) > > on the other hand I get a NPE when reusing the configurationcontext with > following serviceclient constructor > > public ServiceClient(ConfigurationContext configContext, Definition > wsdl4jDefinition, > QName wsdlServiceName, String portName); > > any good advice? > regards > gerhard > > -- > View this message in context: > http://old.nabble.com/reusing-configurationcontext-objects-tp28958768p28958768.html > Sent from the Axis - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org > For additional commands, e-mail: java-user-h...@axis.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org For additional commands, e-mail: java-user-h...@axis.apache.org