beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chad Schoettger" <chad.schoett...@gmail.com>
Subject Re: Updated: (BEEHIVE-809) Service Control Should Cache the Object model
Date Tue, 02 Jan 2007 23:22:36 GMT
Hi Drew,

Thanks for the patch.

While taking a look at it I found that WSDLs are not being cached as
one might expect.

The key value being used for the _wsdlCache cache is a
ServiceControl.WSDL instance returned from the control context.  A new
instance (actually a BeanPropertyMap created by the control context)
will be returned for each new instance of a service control which gets
created.  The end effect being that the cached WSDL is not used for
multiple instances of a control.

Instead you might want to modify your patch to use the
ServiceControl.WSDL.path value as the key for the cache map.  This
value points to the location the WSDL is loaded from and should be
safe to use in a static cache and should ensure that any given WSDL is
only parsed once.

There may be other options as well, this is just the first that comes to mind.

Since the service control is not yet part of the official Beehive
distribution its DRTs need to be run manually from:

system-controls/test/webservice/ant drt


  - Chad

Mime
View raw message