We have been fighting with this issue well over a year now. You need to set
up some sort of mechanism to refresh the state of the service or on failure
recreate the connection.
The method we implemented (due to time constraints) was to effectively ditch
the keep alive
Kenneth Clark
System Architect / Lead Developer
Rabid Dog Laboratories T
Putting the art back into development
tel: +27 11 475 7409
mobile: +27 82 500 5090
e-mail: kenneth_at_rabiddog.co.za
website:
http://www.rabiddog.co.za/
-----Original Message-----
From: glassfish_at_javadesktop.org [mailto:glassfish_at_javadesktop.org]
Sent: 29 June 2007 18:49
To: users_at_glassfish.dev.java.net
Subject: Re: KeepAliveFailure using .net proxies to access JAX-WS web
service
I have a facade class called myWebServiceFacade
public class myWebServiceFacade
{
private myWebServiceService service;
public myWebServiceFacade()
{
service = new myWebServiceService();
service.Credentials = new NetworkCredential("username", "secret");
}
public customer getCustomer(int key)
{
return service.getCustomer(key);
}
}
The class also has methods for the rest of the service methods. What I do
with this is create an ObjectDataSource and use the ObjectCreating event to
construct a facade class. I configure the ObjectDataSource to use
getCustomer as the select method, get the key parameter from session, and
then I bind it to a FormView.
[Message sent by forum member 'atappert' (atappert)]
http://forums.java.net/jive/thread.jspa?messageID=224711
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: users-help_at_glassfish.dev.java.net
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.9.12/878 - Release Date: 28/06/2007
17:57