I have a need to call third party web services (vcenter) to access some
usage. They provides com.vmware.vim25.VimService which uses javax.xml.ws
client stubs to login to webservices. I wrote Test cases to login to vcenter
and those standalone Java code can login without any issue. 

But If i try to login to vcenter using tapestry5 webapp, it throws PermGen
error.  

Here is code... 

VimService vimService = new VimService();
VimPortType vimPortType = vimService.getVimPort();

*// This is the line which is throwing that PermGen error*
Map<String, Object> ctxt = ((javax.xml.ws.BindingProvider)
vimPortType).getRequestContext();

ctxt.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
"https://xyzvcenter/sdk/vimService";);
ctxt.put(BindingProvider.SESSION_MAINTAIN_PROPERTY, true);

// Once vimPort is prepared it is used for login to vcenter. 

I am at loss to understand why  getRequestContext() of
javax.xml.ws.BindingProvider is causing PermGen in webapp and not in Java
Test cases. 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Weird-PermGen-Error-While-Accessing-External-WebService-tp5717789.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to