You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by lhein <lh...@apache.org> on 2008/06/11 12:53:21 UTC
[DISCUSS] Abandon old servicemix-script endpoint
Hi,
currently I am reworking the servicemix-script component to have a jsr-223
enabled endpoint.
The JSR-223 is an abstraction layer for scripting for java. There are
already engine implementations for lots of languages...for example groovy,
javascript, jruby, bsh, xpath, xslt, velocity etc.
A list of available engines can be found here:
https://scripting.dev.java.net/
In my opinion the old endpoint which uses Spring Dynamic Languages (there
are only 3 languages supported by Spring) should be abandoned in 3.3
Release. This old endpoint causes problems with dependency managment. Today
I tried to get JRuby running on both old and new endpoint and figured out
that this is impossible. The reason is, that JSR223 needs JRuby >=1.1 and
Spring JRuby <=1.0....so what :)
What do you think?
Regards
Lars
--
View this message in context: http://www.nabble.com/-DISCUSS--Abandon-old-servicemix-script-endpoint-tp17774828p17774828.html
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
Re: [DISCUSS] Abandon old servicemix-script endpoint
Posted by Andrea Zoppello <zo...@tiscali.it>.
Hi,
In that case it's ok for me.
Maybe ( just a suggestion ) we can add a flag in the new endpoint
configuration, for example ( backcompatible="true" )
that force the new endpoint to use the old names, for it's interaction
with the script, this flag could have false as default value so
where it's not present this means we don't need backward compatibility.
Another important feature for me is to ensure in the new component the
flag for copying attachments and properties.
Andrea
Lars Heinemann ha scritto:
> Andrea,
>
> the lightweight script component (this means ScriptComponent and
> GroovyComponent) already use JSR-223 internally. So the switch for you will be
> very easy. I will provide a migration guide later on.
> The new endpoint will provide almost the same objects to the script as the lw
> component did.
>
> Lars
>
>
>
>
>
> On Wednesday 11 June 2008 13:57:30 Andrea Zoppello wrote:
>
>> Hi Lars,
>>
>> I've not understand if you're think to drop the
>> lightweight based component
>> "org.apache.servicemix.components.script.ScriptComponent" class,
>> or if you're only think to rework the standard servicemix-script component.
>>
>> At the moment i'm still use the
>> "org.apache.servicemix.components.script.GroovyComponent" and
>> i'm very happy with it.
>>
>> BTW but i've not found any examples on how to use servicemix-script in
>> the same way i use the GroovyComponent,
>> for example with the new servicemix-script it's possible to access the
>> exchange and the messages
>> inside the groovy script in the same way i'm doing now with the old one
>> component??
>>
>> All this feature are important for me, so i could agree with you if the
>> new servicemix-script will give me all
>> the features of the old one.
>>
>> An important feature coul be to mantain the same name of the variables
>> used by the old component so that the
>> old script will be reusable.
>>
>>
>> Andrea
>>
>> Lars Heinemann ha scritto:
>>
>>> Additional info for Spring Dynamic Language Support:
>>>
>>> http://static.springframework.org/spring/docs/2.5.x/reference/dynamic-
>>> language.html
>>>
>>> Lars
>>>
>>> On Wednesday 11 June 2008 12:53:21 lhein wrote:
>>>
>>>> Hi,
>>>>
>>>> currently I am reworking the servicemix-script component to have a
>>>> jsr-223 enabled endpoint.
>>>> The JSR-223 is an abstraction layer for scripting for java. There are
>>>> already engine implementations for lots of languages...for example
>>>> groovy, javascript, jruby, bsh, xpath, xslt, velocity etc.
>>>>
>>>> A list of available engines can be found here:
>>>> https://scripting.dev.java.net/
>>>>
>>>> In my opinion the old endpoint which uses Spring Dynamic Languages
>>>> (there are only 3 languages supported by Spring) should be abandoned in
>>>> 3.3 Release. This old endpoint causes problems with dependency
>>>> managment. Today I tried to get JRuby running on both old and new
>>>> endpoint and figured out that this is impossible. The reason is, that
>>>> JSR223 needs JRuby >=1.1 and Spring JRuby <=1.0....so what :)
>>>>
>>>> What do you think?
>>>>
>>>> Regards
>>>> Lars
>>>>
>
>
>
>
Re: [DISCUSS] Abandon old servicemix-script endpoint
Posted by Lars Heinemann <la...@compart.net>.
Andrea,
the lightweight script component (this means ScriptComponent and
GroovyComponent) already use JSR-223 internally. So the switch for you will be
very easy. I will provide a migration guide later on.
The new endpoint will provide almost the same objects to the script as the lw
component did.
Lars
On Wednesday 11 June 2008 13:57:30 Andrea Zoppello wrote:
> Hi Lars,
>
> I've not understand if you're think to drop the
> lightweight based component
> "org.apache.servicemix.components.script.ScriptComponent" class,
> or if you're only think to rework the standard servicemix-script component.
>
> At the moment i'm still use the
> "org.apache.servicemix.components.script.GroovyComponent" and
> i'm very happy with it.
>
> BTW but i've not found any examples on how to use servicemix-script in
> the same way i use the GroovyComponent,
> for example with the new servicemix-script it's possible to access the
> exchange and the messages
> inside the groovy script in the same way i'm doing now with the old one
> component??
>
> All this feature are important for me, so i could agree with you if the
> new servicemix-script will give me all
> the features of the old one.
>
> An important feature coul be to mantain the same name of the variables
> used by the old component so that the
> old script will be reusable.
>
>
> Andrea
>
> Lars Heinemann ha scritto:
> > Additional info for Spring Dynamic Language Support:
> >
> > http://static.springframework.org/spring/docs/2.5.x/reference/dynamic-
> > language.html
> >
> > Lars
> >
> > On Wednesday 11 June 2008 12:53:21 lhein wrote:
> >> Hi,
> >>
> >> currently I am reworking the servicemix-script component to have a
> >> jsr-223 enabled endpoint.
> >> The JSR-223 is an abstraction layer for scripting for java. There are
> >> already engine implementations for lots of languages...for example
> >> groovy, javascript, jruby, bsh, xpath, xslt, velocity etc.
> >>
> >> A list of available engines can be found here:
> >> https://scripting.dev.java.net/
> >>
> >> In my opinion the old endpoint which uses Spring Dynamic Languages
> >> (there are only 3 languages supported by Spring) should be abandoned in
> >> 3.3 Release. This old endpoint causes problems with dependency
> >> managment. Today I tried to get JRuby running on both old and new
> >> endpoint and figured out that this is impossible. The reason is, that
> >> JSR223 needs JRuby >=1.1 and Spring JRuby <=1.0....so what :)
> >>
> >> What do you think?
> >>
> >> Regards
> >> Lars
Re: [DISCUSS] Abandon old servicemix-script endpoint
Posted by Andrea Zoppello <zo...@tiscali.it>.
Hi Lars,
I've not understand if you're think to drop the
lightweight based component
"org.apache.servicemix.components.script.ScriptComponent" class,
or if you're only think to rework the standard servicemix-script component.
At the moment i'm still use the
"org.apache.servicemix.components.script.GroovyComponent" and
i'm very happy with it.
BTW but i've not found any examples on how to use servicemix-script in
the same way i use the GroovyComponent,
for example with the new servicemix-script it's possible to access the
exchange and the messages
inside the groovy script in the same way i'm doing now with the old one
component??
All this feature are important for me, so i could agree with you if the
new servicemix-script will give me all
the features of the old one.
An important feature coul be to mantain the same name of the variables
used by the old component so that the
old script will be reusable.
Andrea
Lars Heinemann ha scritto:
> Additional info for Spring Dynamic Language Support:
>
> http://static.springframework.org/spring/docs/2.5.x/reference/dynamic-
> language.html
>
> Lars
>
>
>
> On Wednesday 11 June 2008 12:53:21 lhein wrote:
>
>> Hi,
>>
>> currently I am reworking the servicemix-script component to have a jsr-223
>> enabled endpoint.
>> The JSR-223 is an abstraction layer for scripting for java. There are
>> already engine implementations for lots of languages...for example groovy,
>> javascript, jruby, bsh, xpath, xslt, velocity etc.
>>
>> A list of available engines can be found here:
>> https://scripting.dev.java.net/
>>
>> In my opinion the old endpoint which uses Spring Dynamic Languages (there
>> are only 3 languages supported by Spring) should be abandoned in 3.3
>> Release. This old endpoint causes problems with dependency managment. Today
>> I tried to get JRuby running on both old and new endpoint and figured out
>> that this is impossible. The reason is, that JSR223 needs JRuby >=1.1 and
>> Spring JRuby <=1.0....so what :)
>>
>> What do you think?
>>
>> Regards
>> Lars
>>
>
>
>
>
Re: [DISCUSS] Abandon old servicemix-script endpoint
Posted by Lars Heinemann <la...@compart.net>.
Additional info for Spring Dynamic Language Support:
http://static.springframework.org/spring/docs/2.5.x/reference/dynamic-
language.html
Lars
On Wednesday 11 June 2008 12:53:21 lhein wrote:
> Hi,
>
> currently I am reworking the servicemix-script component to have a jsr-223
> enabled endpoint.
> The JSR-223 is an abstraction layer for scripting for java. There are
> already engine implementations for lots of languages...for example groovy,
> javascript, jruby, bsh, xpath, xslt, velocity etc.
>
> A list of available engines can be found here:
> https://scripting.dev.java.net/
>
> In my opinion the old endpoint which uses Spring Dynamic Languages (there
> are only 3 languages supported by Spring) should be abandoned in 3.3
> Release. This old endpoint causes problems with dependency managment. Today
> I tried to get JRuby running on both old and new endpoint and figured out
> that this is impossible. The reason is, that JSR223 needs JRuby >=1.1 and
> Spring JRuby <=1.0....so what :)
>
> What do you think?
>
> Regards
> Lars
Re: [DISCUSS] Abandon old servicemix-script endpoint
Posted by Bruce Snyder <br...@gmail.com>.
On Wed, Jun 11, 2008 at 5:19 PM, Lars Heinemann
<la...@alice-dsl.net> wrote:
> Bruce,
>
> this is imho not possible.
> I already discussed this with Guillaume. There is a serious dependency problem
> when trying to mix spring dynamic language support with JSR 223.
> Therefore we decided to split the JSR223 stuff away and put it into a new SE.
Now I understand.
Bruce
--
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'
Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/
Blog: http://bruceblog.org/
Re: [DISCUSS] Abandon old servicemix-script endpoint
Posted by Lars Heinemann <la...@alice-dsl.net>.
Bruce,
this is imho not possible.
I already discussed this with Guillaume. There is a serious dependency problem
when trying to mix spring dynamic language support with JSR 223.
Therefore we decided to split the JSR223 stuff away and put it into a new SE.
Lars
On Thursday 12 June 2008 01:15:11 Bruce Snyder wrote:
> On Wed, Jun 11, 2008 at 4:33 PM, lhein <lh...@apache.org> wrote:
> > The JSR-223 logic will be put to a new service engine called
> > "servicemix-scripting". I would like to deprecate the servicemix-script
> > in favor for this new SE.
> >
> > I will commit the changes on thursday. I already reverted all changes
> > made to servicemix-script.
> > The new SE will be a replacement for the LW script / groovy component as
> > well. I will put on a component wiki and a migration guide in the next
> > days.
>
> Why the new component? Can you not get away with refactoring the
> existing one? If it's at all possible I'd rather keep the
> servicemix-script component to lessen confusion. You could simply add
> new endpoints and give them a new XBean mapping like script2 or
> something.
>
> Bruce
Re: [DISCUSS] Abandon old servicemix-script endpoint
Posted by Bruce Snyder <br...@gmail.com>.
On Wed, Jun 11, 2008 at 4:33 PM, lhein <lh...@apache.org> wrote:
>
> The JSR-223 logic will be put to a new service engine called
> "servicemix-scripting". I would like to deprecate the servicemix-script in
> favor for this new SE.
>
> I will commit the changes on thursday. I already reverted all changes made
> to servicemix-script.
> The new SE will be a replacement for the LW script / groovy component as
> well. I will put on a component wiki and a migration guide in the next days.
Why the new component? Can you not get away with refactoring the
existing one? If it's at all possible I'd rather keep the
servicemix-script component to lessen confusion. You could simply add
new endpoints and give them a new XBean mapping like script2 or
something.
Bruce
--
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'
Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/
Blog: http://bruceblog.org/
Re: [DISCUSS] Abandon old servicemix-script endpoint
Posted by lhein <lh...@apache.org>.
The JSR-223 logic will be put to a new service engine called
"servicemix-scripting". I would like to deprecate the servicemix-script in
favor for this new SE.
I will commit the changes on thursday. I already reverted all changes made
to servicemix-script.
The new SE will be a replacement for the LW script / groovy component as
well. I will put on a component wiki and a migration guide in the next days.
Regards
Lars
lhein wrote:
>
> Hi,
>
> currently I am reworking the servicemix-script component to have a jsr-223
> enabled endpoint.
> The JSR-223 is an abstraction layer for scripting for java. There are
> already engine implementations for lots of languages...for example groovy,
> javascript, jruby, bsh, xpath, xslt, velocity etc.
>
> A list of available engines can be found here:
> https://scripting.dev.java.net/
>
> In my opinion the old endpoint which uses Spring Dynamic Languages (there
> are only 3 languages supported by Spring) should be abandoned in 3.3
> Release. This old endpoint causes problems with dependency managment.
> Today I tried to get JRuby running on both old and new endpoint and
> figured out that this is impossible. The reason is, that JSR223 needs
> JRuby >=1.1 and Spring JRuby <=1.0....so what :)
>
> What do you think?
>
> Regards
> Lars
>
>
--
View this message in context: http://www.nabble.com/-DISCUSS--Abandon-old-servicemix-script-endpoint-tp17774828p17788710.html
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
Re: [DISCUSS] Abandon old servicemix-script endpoint
Posted by Bruce Snyder <br...@gmail.com>.
On Wed, Jun 11, 2008 at 4:53 AM, lhein <lh...@apache.org> wrote:
>
> Hi,
>
> currently I am reworking the servicemix-script component to have a jsr-223
> enabled endpoint.
> The JSR-223 is an abstraction layer for scripting for java. There are
> already engine implementations for lots of languages...for example groovy,
> javascript, jruby, bsh, xpath, xslt, velocity etc.
>
> A list of available engines can be found here:
> https://scripting.dev.java.net/
>
> In my opinion the old endpoint which uses Spring Dynamic Languages (there
> are only 3 languages supported by Spring) should be abandoned in 3.3
> Release. This old endpoint causes problems with dependency managment. Today
> I tried to get JRuby running on both old and new endpoint and figured out
> that this is impossible. The reason is, that JSR223 needs JRuby >=1.1 and
> Spring JRuby <=1.0....so what :)
>
> What do you think?
The subject of this message and the description above are opposing one
another here, so I'm a bit confused. As long as the following two
items are met:
1) You are refactoring the servicemix-script component to improve it's
ability to handle the various scripting engines and verisons, and
2) You are providing backward compatibility for the previous behavior
then I'm fine with a *refactor* of the existing servicemix-script SE.
I'm not in favor of abandoning (i.e., throwing away) the exisitng
servicemix-script SE. Please clarify further.
Bruce
--
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'
Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/
Blog: http://bruceblog.org/
Re: [DISCUSS] Abandon old servicemix-script endpoint
Posted by Andrea Zoppello <zo...@tiscali.it>.
Guillaume,
You're right,
In my opinion the problem is not to regenerate code to use the new
endpoint instead the old one, but
to reuse the "old groovy script" just developed, that are using the old
set of named variables exchanged,
by servicemix and the script.
It's possibel to have the new component have the same variables and
helpers with the old names used by
the new endpoint too???
Andrea
Guillaume Nodet ha scritto:
> I do understand the problem, however i'm a bit concerned that backward
> compatibility is not kept. This means a disruptive effect on our
> users who will have to change their configuration, or even their
> scripts :-(
> Maybe a solution would be to create a new engine if we can't keep both
> endoints in the same one.
>
> On Wed, Jun 11, 2008 at 12:53 PM, lhein <lh...@apache.org> wrote:
>
>> Hi,
>>
>> currently I am reworking the servicemix-script component to have a jsr-223
>> enabled endpoint.
>> The JSR-223 is an abstraction layer for scripting for java. There are
>> already engine implementations for lots of languages...for example groovy,
>> javascript, jruby, bsh, xpath, xslt, velocity etc.
>>
>> A list of available engines can be found here:
>> https://scripting.dev.java.net/
>>
>> In my opinion the old endpoint which uses Spring Dynamic Languages (there
>> are only 3 languages supported by Spring) should be abandoned in 3.3
>> Release. This old endpoint causes problems with dependency managment. Today
>> I tried to get JRuby running on both old and new endpoint and figured out
>> that this is impossible. The reason is, that JSR223 needs JRuby >=1.1 and
>> Spring JRuby <=1.0....so what :)
>>
>> What do you think?
>>
>> Regards
>> Lars
>>
>> --
>> View this message in context: http://www.nabble.com/-DISCUSS--Abandon-old-servicemix-script-endpoint-tp17774828p17774828.html
>> Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
>>
>>
>>
>
>
>
>
Re: [DISCUSS] Abandon old servicemix-script endpoint
Posted by Guillaume Nodet <gn...@gmail.com>.
I do understand the problem, however i'm a bit concerned that backward
compatibility is not kept. This means a disruptive effect on our
users who will have to change their configuration, or even their
scripts :-(
Maybe a solution would be to create a new engine if we can't keep both
endoints in the same one.
On Wed, Jun 11, 2008 at 12:53 PM, lhein <lh...@apache.org> wrote:
>
> Hi,
>
> currently I am reworking the servicemix-script component to have a jsr-223
> enabled endpoint.
> The JSR-223 is an abstraction layer for scripting for java. There are
> already engine implementations for lots of languages...for example groovy,
> javascript, jruby, bsh, xpath, xslt, velocity etc.
>
> A list of available engines can be found here:
> https://scripting.dev.java.net/
>
> In my opinion the old endpoint which uses Spring Dynamic Languages (there
> are only 3 languages supported by Spring) should be abandoned in 3.3
> Release. This old endpoint causes problems with dependency managment. Today
> I tried to get JRuby running on both old and new endpoint and figured out
> that this is impossible. The reason is, that JSR223 needs JRuby >=1.1 and
> Spring JRuby <=1.0....so what :)
>
> What do you think?
>
> Regards
> Lars
>
> --
> View this message in context: http://www.nabble.com/-DISCUSS--Abandon-old-servicemix-script-endpoint-tp17774828p17774828.html
> Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
>
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/