My next attempt was to add a setController/getController member to the
ConnectionPoolingController class, however it seems that hivemind can only
access interface members from within the FactoryBuilder, because I get the
following exception:

In this case, I changed:

construct (class=com.mckesson.adept.net.client.ConnectionPoolingController)
{
  service { "ClientController" }
}

to this:

construct (class=com.mckesson.adept.net.client.ConnectionPoolingController)
{
  set-service ( property="controller" service-id="ClientController" )
}

org.apache.hivemind.ApplicationRuntimeException: Unable to construct service
com.mckesson.adept.net.Controller: Unable to update property controller of
object [EMAIL PROTECTED]:
Class org.apache.hivemind.util.PropertyAdaptor can not access a member of
class com.mckesson.adept.net.client.ProxyController with modifiers "public"
        at
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewS
erviceImplementation(AbstractServiceModelImpl.java:156)
        at
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructServ
iceImplementation(AbstractServiceModelImpl.java:130)
        at
org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getActualService
Implementation(SingletonServiceModel.java:69)
        at $InnerProxy_fdbe48826b_3._service($InnerProxy_fdbe48826b_3.java)
        at
$InnerProxy_fdbe48826b_3.brokerConnection($InnerProxy_fdbe48826b_3.java)
        at
$SingletonProxy_fdbe48824d_2.brokerConnection($SingletonProxy_fdbe48824d_2.j
ava)

Richard
-----Original Message-----
From: Hensley, Richard [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 14, 2004 8:27 AM
To: '[email protected]'
Subject: RE: Trying to use a service constructor


Ok I changed

construct (class=com.mckesson.adept.net.client.ConnectionPoolingController)
{
  service { ClientController }
}

construct (class=com.mckesson.adept.net.client.ConnectionPoolingController)
{
  service { "ClientController" }
}

and I get a 

java.lang.StackOverflowError
Exception in thread "main" 

That can't be good... :)

When I change it to "abc", I get a service point not found exception. So, I
think that it must be somewhere in the service location code?

Richard


---------------------------------------------------------------------
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]

Reply via email to