You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by Matthew Peters <ma...@uk.ibm.com> on 2008/01/15 12:48:02 UTC

store example as a servlet?

I have just been through the "get started in 10 minutes" and I like the 
store example; it's small and neat. I was thinking of adapting it and 
redoing it as a servlet, just to compare. I realise this is a backward 
step in a way of course - instead of the AJAX style, back to page 
refreshes, and running the code on the server. Nonetheless it would be 
interesting to compare. Before I start, has anyone done it already?

Matthew Peters





Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU






Re: store example as a servlet?

Posted by Jean-Sebastien Delfino <js...@apache.org>.
Matthew Peters wrote:
> Thanks for the encouragement, all. I'll let you know how I get on.
> 
> This probably off topic for this list, but the choice between 
> <implementation.web> and <implementation.servlet> is an interesting one. 
> The page Jean-Sebastien refers to says that <implementation.web> is the 
> current thinking, but <implementation.servlet> has its virtues too. It 
> rather depends on whether you want the detail of the individual servlets 
> exposed for configuration - would you want per servlet aspects like the 
> servlet init parameters exposed as SCA properties for example? If you did, 
> you might like something like
> <implementation.servlet name="<warfilename>#<servletname>">
>    <property name="currency">EURO</property>
> </implementation.servlet>
> In this case you could present currency to the servlet as a servlet init 
> parameter.
> 
> This properly a topic for the place in OSOA where the SCA-JEE integration 
> is discussed, of course, and I raised it as an issue there recently, 
> though it has not been discussed yet. 
> 
> Matthew Peters
> 

Makes a lot of sense to me.

Both implementation.web and implementation.servlet are interesting:

- implementation.web models the contracts around a webapp and helps 
assemble a webapp with others in a bigger SCA assembly.

- implementation.servlet can model the assembly of the webapp itself.

-- 
Jean-Sebastien

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-user-help@ws.apache.org


Re: store example as a servlet?

Posted by Matthew Peters <ma...@uk.ibm.com>.
Thanks for the encouragement, all. I'll let you know how I get on.

This probably off topic for this list, but the choice between 
<implementation.web> and <implementation.servlet> is an interesting one. 
The page Jean-Sebastien refers to says that <implementation.web> is the 
current thinking, but <implementation.servlet> has its virtues too. It 
rather depends on whether you want the detail of the individual servlets 
exposed for configuration - would you want per servlet aspects like the 
servlet init parameters exposed as SCA properties for example? If you did, 
you might like something like
<implementation.servlet name="<warfilename>#<servletname>">
   <property name="currency">EURO</property>
</implementation.servlet>
In this case you could present currency to the servlet as a servlet init 
parameter.

This properly a topic for the place in OSOA where the SCA-JEE integration 
is discussed, of course, and I raised it as an issue there recently, 
though it has not been discussed yet. 

Matthew Peters




Simon Nash <na...@hursley.ibm.com> 
16/01/2008 09:44
Please respond to
tuscany-user@ws.apache.org


To
tuscany-user@ws.apache.org
cc

Subject
Re: store example as a servlet?






+1 for using <implementation.web>.

   Simon

Luciano Resende wrote:

> +1, <implementation.web> would be good.
> 
> On Jan 15, 2008 6:34 PM, Jean-Sebastien Delfino <js...@apache.org> 
wrote:
> 
>>Matthew Peters wrote:
>>
>>>I have just been through the "get started in 10 minutes" and I like the
>>>store example; it's small and neat. I was thinking of adapting it and
>>>redoing it as a servlet, just to compare. I realise this is a backward
>>>step in a way of course - instead of the AJAX style, back to page
>>>refreshes, and running the code on the server. Nonetheless it would be
>>>interesting to compare. Before I start, has anyone done it already?
>>>
>>>Matthew Peters
>>>
>>
>>That makes sense to me. You could define a new <implementation.servlet>
>>implementation type or try to implement the <implementation.web>
>>described at http://www.osoa.org/pages/viewpage.action?pageId=3980.
>>
>>--
>>Jean-Sebastien
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
>>For additional commands, e-mail: tuscany-user-help@ws.apache.org
>>
>>
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-user-help@ws.apache.org








Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU






Re: store example as a servlet?

Posted by Simon Nash <na...@hursley.ibm.com>.
+1 for using <implementation.web>.

   Simon

Luciano Resende wrote:

> +1, <implementation.web> would be good.
> 
> On Jan 15, 2008 6:34 PM, Jean-Sebastien Delfino <js...@apache.org> wrote:
> 
>>Matthew Peters wrote:
>>
>>>I have just been through the "get started in 10 minutes" and I like the
>>>store example; it's small and neat. I was thinking of adapting it and
>>>redoing it as a servlet, just to compare. I realise this is a backward
>>>step in a way of course - instead of the AJAX style, back to page
>>>refreshes, and running the code on the server. Nonetheless it would be
>>>interesting to compare. Before I start, has anyone done it already?
>>>
>>>Matthew Peters
>>>
>>
>>That makes sense to me. You could define a new <implementation.servlet>
>>implementation type or try to implement the <implementation.web>
>>described at http://www.osoa.org/pages/viewpage.action?pageId=3980.
>>
>>--
>>Jean-Sebastien
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
>>For additional commands, e-mail: tuscany-user-help@ws.apache.org
>>
>>
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-user-help@ws.apache.org


Re: store example as a servlet?

Posted by Luciano Resende <lu...@gmail.com>.
+1, <implementation.web> would be good.

On Jan 15, 2008 6:34 PM, Jean-Sebastien Delfino <js...@apache.org> wrote:
> Matthew Peters wrote:
> > I have just been through the "get started in 10 minutes" and I like the
> > store example; it's small and neat. I was thinking of adapting it and
> > redoing it as a servlet, just to compare. I realise this is a backward
> > step in a way of course - instead of the AJAX style, back to page
> > refreshes, and running the code on the server. Nonetheless it would be
> > interesting to compare. Before I start, has anyone done it already?
> >
> > Matthew Peters
> >
>
> That makes sense to me. You could define a new <implementation.servlet>
> implementation type or try to implement the <implementation.web>
> described at http://www.osoa.org/pages/viewpage.action?pageId=3980.
>
> --
> Jean-Sebastien
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-user-help@ws.apache.org
>
>



-- 
Luciano Resende
Apache Tuscany Committer
http://people.apache.org/~lresende
http://lresende.blogspot.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-user-help@ws.apache.org


Re: store example as a servlet?

Posted by Jean-Sebastien Delfino <js...@apache.org>.
Matthew Peters wrote:
> I have just been through the "get started in 10 minutes" and I like the 
> store example; it's small and neat. I was thinking of adapting it and 
> redoing it as a servlet, just to compare. I realise this is a backward 
> step in a way of course - instead of the AJAX style, back to page 
> refreshes, and running the code on the server. Nonetheless it would be 
> interesting to compare. Before I start, has anyone done it already?
> 
> Matthew Peters
> 

That makes sense to me. You could define a new <implementation.servlet> 
implementation type or try to implement the <implementation.web> 
described at http://www.osoa.org/pages/viewpage.action?pageId=3980.

-- 
Jean-Sebastien

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-user-help@ws.apache.org