You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Gardella juan <ga...@gmail.com> on 2014/02/14 15:36:23 UTC

Is it possible to configure mybatis component to pick parameters from header?

Hi community,

I'm using  mybatis <https://camel.apache.org/mybatis.html>   component and
it seems that it's not possible to configure it to pick parameters from the
header. It's useful enable this feature with some options. For example  sql
<https://camel.apache.org/sql.html>   component can pick up headers
parameters when the message body is null.

Thanks



--
View this message in context: http://camel.465427.n5.nabble.com/Is-it-possible-to-configure-mybatis-component-to-pick-parameters-from-header-tp5747318.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Is it possible to configure mybatis component to pick parameters from header?

Posted by Gardella juan <ga...@gmail.com>.
Done: https://issues.apache.org/jira/browse/CAMEL-7206

Thanks Claus for your fast answers.



--
View this message in context: http://camel.465427.n5.nabble.com/Is-it-possible-to-configure-mybatis-component-to-pick-parameters-from-header-tp5747318p5747327.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Is it possible to configure mybatis component to pick parameters from header?

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Sounds like a good idea, feel free to log a JIRA and work on a patch

We love contributions
http://camel.apache.org/contributing

On Fri, Feb 14, 2014 at 5:05 PM, Gardella juan
<ga...@gmail.com> wrote:
> Yes, for example the select query:
>
> <select id="sss" parameterType="java.util.Map"
> resultType="map">
> select fila,o.IDENTIFICACION
> from detalle d
> join orden o on d.orden_id=o.id
> where informe_id=#{informeId}
>        </select>
>
> I have to put the headers in the message body to run it. It is better if
> the component has an option like "useHeaderParameters" or something like
> that and I can let the message body intact.
>
> Juan
>
>
>
> 2014-02-14 12:44 GMT-03:00 Claus Ibsen-2 [via Camel] <
> ml-node+s465427n5747320h66@n5.nabble.com>:
>
>> Hi
>>
>> You mean to pickup named parameters from headers?
>>
>>
>> On Fri, Feb 14, 2014 at 3:36 PM, Gardella juan
>> <[hidden email] <http://user/SendEmail.jtp?type=node&node=5747320&i=0>>
>> wrote:
>>
>> > Hi community,
>> >
>> > I'm using  mybatis <https://camel.apache.org/mybatis.html>   component
>> and
>> > it seems that it's not possible to configure it to pick parameters from
>> the
>> > header. It's useful enable this feature with some options. For example
>>  sql
>> > <https://camel.apache.org/sql.html>   component can pick up headers
>> > parameters when the message body is null.
>> >
>> > Thanks
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> http://camel.465427.n5.nabble.com/Is-it-possible-to-configure-mybatis-component-to-pick-parameters-from-header-tp5747318.html
>> > Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
>>
>> --
>> Claus Ibsen
>> -----------------
>> Red Hat, Inc.
>> Email: [hidden email]<http://user/SendEmail.jtp?type=node&node=5747320&i=1>
>> Twitter: davsclaus
>> Blog: http://davsclaus.com
>> Author of Camel in Action: http://www.manning.com/ibsen
>> Make your Camel applications look hawt, try: http://hawt.io
>>
>>
>> ------------------------------
>>  If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://camel.465427.n5.nabble.com/Is-it-possible-to-configure-mybatis-component-to-pick-parameters-from-header-tp5747318p5747320.html
>>  To unsubscribe from Is it possible to configure mybatis component to pick
>> parameters from header?, click here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5747318&code=Z2FyZGVsbGFqdWFucGFibG9AZ21haWwuY29tfDU3NDczMTh8LTE1MjMxMTI5MDU=>
>> .
>> NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Is-it-possible-to-configure-mybatis-component-to-pick-parameters-from-header-tp5747318p5747323.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io

Re: Is it possible to configure mybatis component to pick parameters from header?

Posted by Gardella juan <ga...@gmail.com>.
Yes, for example the select query:

<select id="sss" parameterType="java.util.Map"
resultType="map">
select fila,o.IDENTIFICACION
from detalle d
join orden o on d.orden_id=o.id
where informe_id=#{informeId}
       </select>

I have to put the headers in the message body to run it. It is better if
the component has an option like "useHeaderParameters" or something like
that and I can let the message body intact.

Juan



2014-02-14 12:44 GMT-03:00 Claus Ibsen-2 [via Camel] <
ml-node+s465427n5747320h66@n5.nabble.com>:

> Hi
>
> You mean to pickup named parameters from headers?
>
>
> On Fri, Feb 14, 2014 at 3:36 PM, Gardella juan
> <[hidden email] <http://user/SendEmail.jtp?type=node&node=5747320&i=0>>
> wrote:
>
> > Hi community,
> >
> > I'm using  mybatis <https://camel.apache.org/mybatis.html>   component
> and
> > it seems that it's not possible to configure it to pick parameters from
> the
> > header. It's useful enable this feature with some options. For example
>  sql
> > <https://camel.apache.org/sql.html>   component can pick up headers
> > parameters when the message body is null.
> >
> > Thanks
> >
> >
> >
> > --
> > View this message in context:
> http://camel.465427.n5.nabble.com/Is-it-possible-to-configure-mybatis-component-to-pick-parameters-from-header-tp5747318.html
> > Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
>
> --
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> Email: [hidden email]<http://user/SendEmail.jtp?type=node&node=5747320&i=1>
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
> Make your Camel applications look hawt, try: http://hawt.io
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://camel.465427.n5.nabble.com/Is-it-possible-to-configure-mybatis-component-to-pick-parameters-from-header-tp5747318p5747320.html
>  To unsubscribe from Is it possible to configure mybatis component to pick
> parameters from header?, click here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5747318&code=Z2FyZGVsbGFqdWFucGFibG9AZ21haWwuY29tfDU3NDczMTh8LTE1MjMxMTI5MDU=>
> .
> NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://camel.465427.n5.nabble.com/Is-it-possible-to-configure-mybatis-component-to-pick-parameters-from-header-tp5747318p5747323.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Is it possible to configure mybatis component to pick parameters from header?

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

You mean to pickup named parameters from headers?


On Fri, Feb 14, 2014 at 3:36 PM, Gardella juan
<ga...@gmail.com> wrote:
> Hi community,
>
> I'm using  mybatis <https://camel.apache.org/mybatis.html>   component and
> it seems that it's not possible to configure it to pick parameters from the
> header. It's useful enable this feature with some options. For example  sql
> <https://camel.apache.org/sql.html>   component can pick up headers
> parameters when the message body is null.
>
> Thanks
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Is-it-possible-to-configure-mybatis-component-to-pick-parameters-from-header-tp5747318.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io