On Wed, 28 Aug 2002, Colic, Alex wrote:

> Date: Wed, 28 Aug 2002 12:26:11 -0400
> From: "Colic, Alex" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: How can listener read  parameters?
>
>
>       Hi,
>
>       I have a listener defined as follows:
>
> <Server port=3D"8005" shutdown=3D"SHUTDOWN" debug=3D"0">
>
> <Parameter name=3D"cloudscapeURL" value=3D"d:/database/test"
> override=3D"false"/>
> <Listener className=3D"CloudscapeTie" debug=3D"5"/>
>
> =46rom within the CloudscapeTie class how can I read the 'cloudscapeURL'
> parameters?
>

The best strategy would be to create a setUrl() method on your Listener
class and do this instead:

  <Listener className="CloudscapeTie" url="d:/database/test"/>

When server.xml is processed, Tomcat looks at the attributes of each XML
element and searches for a matching property setter on the corresponding
class.

> Thanks for any info.
>
> Alex

Craig


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to