You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by "Ramaswamy, Muthu" <mr...@gers.com> on 2005/11/08 23:18:02 UTC
[Chain] - Settable Parameter Question.
Hi All-
I believe one can define (settable) parameters in the Catalog file for each command. Is it true?
If yes, where I can find the proper syntax to define the parameters. Any sample file/segment would help.
Thanks.
-Muthu Ramaswamy
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: [Chain] - Settable Parameter Question.
Posted by Cass Costello <ca...@gmail.com>.
Thanks for the pointers.
On 11/10/05, Craig McClanahan <cr...@apache.org> wrote:
>
> On 11/10/05, Cass Costello <ca...@gmail.com> wrote:
> >
> > Craig,
> >
> > I'm new to digester and will be poking around. Does the ruleset for
> chain
> > handle collections as well? I'd like to popualte a member
> > java.util.ListUsers with something like ...
> >
> > <command ...>
> > <users>
> > <user>me</user>
> > <user>you</user>
> > </users>
> > </command>
>
>
> This is not supported directly. However, you can acquire the instance of
> Digester that is being used, and add your own rules to it.
>
> There's quite a bit of documentation on the Digester web site to get you
> started (http://jakarta.apache.org/commons/digester). For examples of
> sophisticated uses of Digester, I would suggest looking at the source code
> for Struts or Tomcat, which both use Digester to parse their respective
> configuration files.
>
> Craig
>
>
> Thanks,
> > Cass
> >
> >
> > On 11/8/05, Craig McClanahan <cr...@apache.org> wrote:
> > >
> > > On 11/8/05, Ramaswamy, Muthu <mr...@gers.com> wrote:
> > > >
> > > > Hi All-
> > > >
> > > > I believe one can define (settable) parameters in the Catalog file
> for
> > > > each command. Is it true?
> > >
> > >
> > > Yes.
> > >
> > > If yes, where I can find the proper syntax to define the parameters.
> Any
> > > > sample file/segment would help.
> > >
> > >
> > > Commons Chain uses Commons Digester to parse the configuration file,
> and
> > > tries to match (nearly) all attributes you specify on a <command>
> > element
> > > to
> > > a corresponding property on the implementation class. So, if you have
> a
> > > Command class "mypackage.Foo" that has properties "bar" and "baz", you
> > can
> > > configure them like this:
> > >
> > > <command className="mypackage.Foo" bar="bar value" baz="baz value"/>
> > >
> > > Craig
> > >
> > >
> > >
> > > Thanks.
> > > >
> > > > -Muthu Ramaswamy
> > > >
> > > >
> > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail:
> commons-user-help@jakarta.apache.org
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Re: [OT] - UDDI Creation and administration tool question
Posted by robert burrell donkin <ro...@blueyonder.co.uk>.
On Fri, 2005-11-11 at 09:39 -0600, Alfredo Ledezma Melendez wrote:
>
> Hello,
hi
> In our company we are developing a SOA architecture using web services; I
> proposed to my boss to post them using an internal UDDI. The question is, are
> there some commons related projects can I use to create/manage this? Do you know
> another projects can I use (propietary included)? Any pointers on the subject
> would be really apreciated.
apache web services are federated over in the webservices proeject
(http://ws.apache.org). there's a wealth of knowledge and code over
there so that's the best place to ask this kind of question.
- robert
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
[OT] - UDDI Creation and administration tool question
Posted by Alfredo Ledezma Melendez <al...@mail.telcel.com>.
Hello,
In our company we are developing a SOA architecture using web services; I
proposed to my boss to post them using an internal UDDI. The question is, are
there some commons related projects can I use to create/manage this? Do you know
another projects can I use (propietary included)? Any pointers on the subject
would be really apreciated.
Best Regards,
____________________________________________
Alfredo Ledezma Mel�ndez.
Gerencia de Sistemas CRM
Consultor Externo de Sistemas de Atenci�n a Clientes
RadioMovil DIPSA, S. A. de C. V.
Ej�rcito Nacional No. 488, Col. Chapultepec Morales,
C.P. 11570 M�xico D.F.
Este mensaje es exclusivamente para el uso de la persona o entidad a quien esta dirigido; contiene informacion estrictamente confidencial y legalmente protegida, cuya divulgacion es sancionada por la ley. Si el lector de este mensaje no es a quien esta dirigido, ni se trata del empleado o agente responsable de esta informacion, se le notifica por medio del presente, que su reproduccion y distribucion, esta estrictamente prohibida. Si Usted recibio este comunicado por error, favor de notificarlo inmediatamente al remitente y destruir el mensaje. Todas las opiniones contenidas en este mail son propias del autor del mensaje y no necesariamente coinciden con las de Radiomovil Dipsa, S.A. de C.V. o alguna de sus empresas controladas, controladoras, afiliadas y subsidiarias. Este mensaje intencionalmente no contiene acentos.
This message is for the sole use of the person or entity to whom it is being sent. Therefore, it contains strictly confidential and legally protected material whose disclosure is subject to penalty by law. If the person reading this message is not the one to whom it is being sent and/or is not an employee or the responsible agent for this information, this person is herein notified that any unauthorized dissemination, distribution or copying of the materials included in this facsimile is strictly prohibited. If you received this document by mistake please notify immediately to the subscriber and destroy the message. Any opinions contained in this e-mail are those of the author of the message and do not necessarily coincide with those of Radiomovil Dipsa, S.A. de C.V. or any of its control, controlled, affiliates and subsidiaries companies. No part of this message or attachments may be used or reproduced in any manner whatsoever.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: [Chain] - Settable Parameter Question.
Posted by Craig McClanahan <cr...@apache.org>.
On 11/10/05, Cass Costello <ca...@gmail.com> wrote:
>
> Craig,
>
> I'm new to digester and will be poking around. Does the ruleset for chain
> handle collections as well? I'd like to popualte a member
> java.util.ListUsers with something like ...
>
> <command ...>
> <users>
> <user>me</user>
> <user>you</user>
> </users>
> </command>
This is not supported directly. However, you can acquire the instance of
Digester that is being used, and add your own rules to it.
There's quite a bit of documentation on the Digester web site to get you
started (http://jakarta.apache.org/commons/digester). For examples of
sophisticated uses of Digester, I would suggest looking at the source code
for Struts or Tomcat, which both use Digester to parse their respective
configuration files.
Craig
Thanks,
> Cass
>
>
> On 11/8/05, Craig McClanahan <cr...@apache.org> wrote:
> >
> > On 11/8/05, Ramaswamy, Muthu <mr...@gers.com> wrote:
> > >
> > > Hi All-
> > >
> > > I believe one can define (settable) parameters in the Catalog file for
> > > each command. Is it true?
> >
> >
> > Yes.
> >
> > If yes, where I can find the proper syntax to define the parameters. Any
> > > sample file/segment would help.
> >
> >
> > Commons Chain uses Commons Digester to parse the configuration file, and
> > tries to match (nearly) all attributes you specify on a <command>
> element
> > to
> > a corresponding property on the implementation class. So, if you have a
> > Command class "mypackage.Foo" that has properties "bar" and "baz", you
> can
> > configure them like this:
> >
> > <command className="mypackage.Foo" bar="bar value" baz="baz value"/>
> >
> > Craig
> >
> >
> >
> > Thanks.
> > >
> > > -Muthu Ramaswamy
> > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: commons-user-help@jakarta.apache.org
> > >
> > >
> >
> >
>
>
Re: [Chain] - Settable Parameter Question.
Posted by Cass Costello <ca...@gmail.com>.
Craig,
I'm new to digester and will be poking around. Does the ruleset for chain
handle collections as well? I'd like to popualte a member
java.util.ListUsers with something like ...
<command ...>
<users>
<user>me</user>
<user>you</user>
</users>
</command>
Thanks,
Cass
On 11/8/05, Craig McClanahan <cr...@apache.org> wrote:
>
> On 11/8/05, Ramaswamy, Muthu <mr...@gers.com> wrote:
> >
> > Hi All-
> >
> > I believe one can define (settable) parameters in the Catalog file for
> > each command. Is it true?
>
>
> Yes.
>
> If yes, where I can find the proper syntax to define the parameters. Any
> > sample file/segment would help.
>
>
> Commons Chain uses Commons Digester to parse the configuration file, and
> tries to match (nearly) all attributes you specify on a <command> element
> to
> a corresponding property on the implementation class. So, if you have a
> Command class "mypackage.Foo" that has properties "bar" and "baz", you can
> configure them like this:
>
> <command className="mypackage.Foo" bar="bar value" baz="baz value"/>
>
> Craig
>
>
>
> Thanks.
> >
> > -Muthu Ramaswamy
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: commons-user-help@jakarta.apache.org
> >
> >
>
>
Re: [Chain] - Settable Parameter Question.
Posted by Craig McClanahan <cr...@apache.org>.
On 11/8/05, Ramaswamy, Muthu <mr...@gers.com> wrote:
>
> Hi All-
>
> I believe one can define (settable) parameters in the Catalog file for
> each command. Is it true?
Yes.
If yes, where I can find the proper syntax to define the parameters. Any
> sample file/segment would help.
Commons Chain uses Commons Digester to parse the configuration file, and
tries to match (nearly) all attributes you specify on a <command> element to
a corresponding property on the implementation class. So, if you have a
Command class "mypackage.Foo" that has properties "bar" and "baz", you can
configure them like this:
<command className="mypackage.Foo" bar="bar value" baz="baz value"/>
Craig
Thanks.
>
> -Muthu Ramaswamy
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>
Re: [Chain] - Settable Parameter Question.
Posted by Craig McClanahan <cr...@apache.org>.
On 12/18/05, Md. Rezaul Hoque <ja...@gmail.com> wrote:
>
> Hi,
>
> Can you tell me please where can I get dtd/xsd to know about to write
> config-chain.xml of commons-chain?
>
> Regards
> -Babu
>
>
> There is no formal DTD for this document, because you can do things (like
define the names of the elements you are going to use) that simply cannot be
represented in a DTD or schema document.
Your best bet for learning what is possible, and how to use it, is to
examine the JavaDocs for the ConfigRuleSet class (which is where you
configure all the things that are recognized), which is a set of matching
rules for Digester. In addition, the "cookbook" page of the Commons Chain
website:
http://jakarta.apache.org/commons/chain/cookbook.html
has some examples that illustrate what the configuration files look like if
you accept all the default values. Of course, it also includes pretty much
everything else you need to know in order to program with Commons Chain, so
this page is worth a bookmark in your browser.
Craig
Re: [Chain] - Settable Parameter Question.
Posted by "Md. Rezaul Hoque" <ja...@gmail.com>.
Hi,
Can you tell me please where can I get dtd/xsd to know about to write
config-chain.xml of commons-chain?
Regards
-Babu