Re: [Stripes-users] Stripes and WebSockets?

2010-12-09 Thread samuel baudouin
Hi all,

Just my 2 cents : a quick search on google gave me this :
http://jwebsocket.org/

It appears to be a complete webSocket Framework
(both java and js) that is independant from the container.
Combined with your solution, that could be a pretty and nice solution for
supporting webSocket on any container/application server

I haven't tested it, but examples seems pretty straight forward.

Regards,
Sam

On Fri, Dec 10, 2010 at 3:21 AM, Sven Jacobs  wrote:

> Hi,
>
> I've looked at the source code of the WebSocketServlet of Jetty to find out
> how they initialize WebSockets and was able to "port" some code over to a
> Stripes Resolution. It works! :-)
>
> However this code still depends on the Jetty server and most of the
> WebSockets stuff is done in the Jetty library but that's okay for me since I
> plan to run this app in Jetty only.
>
> Here's the code, if you're interested: http://pastebin.com/PfBQp7be It's
> not beautiful, just a quick hack! ;-)
>
> Regards,
> Sven
>
> 2010/12/9 farouk alhassan 
>
>> Hi
>> If you know how the bare bones websockets framework and you understand the
>> details of the communication protocol, You could easily create a Custom
>> Resolution and return those in your action beans. Creating your own
>> resolution is a no brainer. Just check out the source for the
>> ForwardResolution class and you will have enough to get started
>>
>> hope this helps
>>
>> regards
>>
>> --- On *Thu, 9/12/10, Sven Jacobs * wrote:
>>
>>
>> From: Sven Jacobs 
>> Subject: Re: [Stripes-users] Stripes and WebSockets?
>> To: "Stripes Users List" 
>> Date: Thursday, 9 December, 2010, 16:07
>>
>>
>> Hi Tim,
>>
>> thanks for your reply!
>>
>> I'm well aware that Jetty is a servlet container and not a web framework
>> like Stripes ;-) Maybe my question wasn't clear enough. Sorry for that!
>>
>> Let's rephrase it: How would I develop an application with Stripes that
>> uses WebSockets (and runs on Jetty)?
>>
>> Since Ajax is natively supported by Stripes I was hoping that it's almost
>> equally easy to use WebSockets. I'm focusing on Jetty because it's one of
>> the few servlet containers that already support WebSockets. However you have
>> to create a servlet that extends from WebSocketServlet. That way I can't use
>> the Stripes servlet and all the code in the WebSocketServlet runs "besides"
>> and not within the Stripes framework.
>>
>> So you are saying that I should implement the WebSockets protocol within
>> Stripes?
>>
>> Regards,
>> Sven
>>
>> 2010/12/9 Stone, Timothy 
>> http://mc/compose?to=tst...@barclaycardus.com>
>> >
>>
>>  Sven,
>>
>> Jetty is a servlet container, e.g., Tomcat. Jetty’s support of WebSockets,
>> the HTML5 feature, is unrelated to Stripes.
>>
>> The question you may want an answer to is what Stripes Resolution might
>> best support the creation and use of WebSockets, see
>> http://en.wikipedia.org/wiki/WebSockets for the protocol implementation.
>>
>> I don’t see anything that could not be implemented in Stripes, possibly
>> with a Streaming or JavaScript Resolution. There’s some token encryption
>> that the server should be able to handle or pass off to the Action that
>> might be an exercise implementation or library support.
>>
>> If there is a JSP example of WebSockets on the web, it should be
>> “portable” to the Stripes platform it your favorite container (Jetty,
>> Tomcat, WebLogic, Jboss, etc.).
>>
>> Regards,
>> Tim
>>
>>
>>
>> On 12/9/10 8:57 AM, "Sven Jacobs"  wrote:
>>
>> Hi all,
>>
>> I was wondering if anyone has already used WebSockets along with Stripes?
>> Jetty 7 supports WebSockets, for example.
>>
>> I'm new to Stripes. What would be the recommended way to use WebSockets in
>> Stripes?
>>
>> Many thanks,
>> Sven
>>
>> --
>>
>> --
>> This SF Dev2Dev email is sponsored by:
>>
>> WikiLeaks The End of the Free Internet
>> http://p.sf.net/sfu/therealnews-com
>>
>>
>> --
>> Timothy Stone   |   Director, Application Developer Technical Lead
>> Barclaycard   |Business Technology Group, Solutions Delivery
>> 125 S. West Street   |   Wilmington, DE|   19801
>> USA   |   www.barclaycardus.com
>> +1 302 255 8044 direct |   +1 410 441 9450 cell
>>
>> COMPANY CONFIDENTIAL
>>
>> P Before printing this e-mail, or any other document, ask yourself
>> whether you need a hard copy
>>
>>
>>
>> ___
>>
>> Barclays
>> www.barclaycardus.com
>> ___
>>
>> This e-mail and any files transmitted with it may contain confidential
>> and/or proprietary information. It is intended solely for the use of the
>> individual or entity who is the intended recipient. Unauthorized use of this
>> information is prohibited. If you have received this in error, please
>> contact the sender by replying to this message and delete this material from
>> any system

Re: [Stripes-users] Stripes and WebSockets?

2010-12-09 Thread Sven Jacobs
Hi,

I've looked at the source code of the WebSocketServlet of Jetty to find out
how they initialize WebSockets and was able to "port" some code over to a
Stripes Resolution. It works! :-)

However this code still depends on the Jetty server and most of the
WebSockets stuff is done in the Jetty library but that's okay for me since I
plan to run this app in Jetty only.

Here's the code, if you're interested: http://pastebin.com/PfBQp7be It's not
beautiful, just a quick hack! ;-)

Regards,
Sven

2010/12/9 farouk alhassan 

> Hi
> If you know how the bare bones websockets framework and you understand the
> details of the communication protocol, You could easily create a Custom
> Resolution and return those in your action beans. Creating your own
> resolution is a no brainer. Just check out the source for the
> ForwardResolution class and you will have enough to get started
>
> hope this helps
>
> regards
>
> --- On *Thu, 9/12/10, Sven Jacobs * wrote:
>
>
> From: Sven Jacobs 
> Subject: Re: [Stripes-users] Stripes and WebSockets?
> To: "Stripes Users List" 
> Date: Thursday, 9 December, 2010, 16:07
>
>
> Hi Tim,
>
> thanks for your reply!
>
> I'm well aware that Jetty is a servlet container and not a web framework
> like Stripes ;-) Maybe my question wasn't clear enough. Sorry for that!
>
> Let's rephrase it: How would I develop an application with Stripes that
> uses WebSockets (and runs on Jetty)?
>
> Since Ajax is natively supported by Stripes I was hoping that it's almost
> equally easy to use WebSockets. I'm focusing on Jetty because it's one of
> the few servlet containers that already support WebSockets. However you have
> to create a servlet that extends from WebSocketServlet. That way I can't use
> the Stripes servlet and all the code in the WebSocketServlet runs "besides"
> and not within the Stripes framework.
>
> So you are saying that I should implement the WebSockets protocol within
> Stripes?
>
> Regards,
> Sven
>
> 2010/12/9 Stone, Timothy 
> http://mc/compose?to=tst...@barclaycardus.com>
> >
>
>  Sven,
>
> Jetty is a servlet container, e.g., Tomcat. Jetty’s support of WebSockets,
> the HTML5 feature, is unrelated to Stripes.
>
> The question you may want an answer to is what Stripes Resolution might
> best support the creation and use of WebSockets, see
> http://en.wikipedia.org/wiki/WebSockets for the protocol implementation.
>
> I don’t see anything that could not be implemented in Stripes, possibly
> with a Streaming or JavaScript Resolution. There’s some token encryption
> that the server should be able to handle or pass off to the Action that
> might be an exercise implementation or library support.
>
> If there is a JSP example of WebSockets on the web, it should be “portable”
> to the Stripes platform it your favorite container (Jetty, Tomcat, WebLogic,
> Jboss, etc.).
>
> Regards,
> Tim
>
>
>
> On 12/9/10 8:57 AM, "Sven Jacobs"  wrote:
>
> Hi all,
>
> I was wondering if anyone has already used WebSockets along with Stripes?
> Jetty 7 supports WebSockets, for example.
>
> I'm new to Stripes. What would be the recommended way to use WebSockets in
> Stripes?
>
> Many thanks,
> Sven
>
> --
>
> --
> This SF Dev2Dev email is sponsored by:
>
> WikiLeaks The End of the Free Internet
> http://p.sf.net/sfu/therealnews-com
>
>
> --
> Timothy Stone   |   Director, Application Developer Technical Lead
> Barclaycard   |Business Technology Group, Solutions Delivery
> 125 S. West Street   |   Wilmington, DE|   19801
> USA   |   www.barclaycardus.com
> +1 302 255 8044 direct |   +1 410 441 9450 cell
>
> COMPANY CONFIDENTIAL
>
> P Before printing this e-mail, or any other document, ask yourself whether
> you need a hard copy
>
>
>
> ___
>
> Barclays
> www.barclaycardus.com
> ___
>
> This e-mail and any files transmitted with it may contain confidential
> and/or proprietary information. It is intended solely for the use of the
> individual or entity who is the intended recipient. Unauthorized use of this
> information is prohibited. If you have received this in error, please
> contact the sender by replying to this message and delete this material from
> any system it may be on.
>
>
> --
> This SF Dev2Dev email is sponsored by:
>
> WikiLeaks The End of the Free Internet
> http://p.sf.net/sfu/therealnews-com
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
>
> -Inline Attachment Follows-
>
>
> --
>
> -Inline Attachment Follows-
>
>
> ___

Re: [Stripes-users] getting specified instance of DAO in ActionBean

2010-12-09 Thread Milan Halenar
Nikolaos Giannopoulos  writes:

> 
> Milan,
> 
> In that case why bother with a DAO at all?  i.e. although it would be 
> nice to plug in a DB later the problem you are going to have is where to 
> store the information for the life of a user session and that is 
> typically going to be on the session itself... however until you pass 
> the http request to the DAO you won't have access to that.
> 
> Personally... I see 2 obvious choices:
> 
> #1  Use DAO's and add arguments to pass in the http request / session.
> 
> #2  Use a custom action bean context as I showed you in the previous 
> reply and put access methods on the context itself.
> 
> I would go with #2 regardless so that it encapsulates the data you are 
> retaining.
> 
> And if you need to create the additional abstraction or will want to 
> eventually go to a DB then wrap #1 around it but in that case you will 
> want to eventually change both the DAO interfaces (as the http request / 
> session will no longer be required) and the DAO implementation;  doesn't 
> totally defeat the purpose of a DAO abstraction but isn't the right thing.
> 
> In fact, the more I think about it I would look at a different design 
> pattern altogether that focuses on maintaining state or simply do #2.
> 
> --Nikolaos
> 
> Milan Halenar wrote:
> > Milan Halenar  writes:
> >
> >
> >
> > Ad: im not using any DB, im just storing the content of file in memory in 
the 
> > FileParser class in an ArrayList. And i need for every session to have its 
own 
> > instance of that class. I hope i cleared it a bit.
> >
> >
> >
> > 
--
> > ___
> > Stripes-users mailing list
> > stripes-us...@...
> > https://lists.sourceforge.net/lists/listinfo/stripes-users
> >   
> 
> -

When i was writing the DAO, i was inspired by the book "Stripes and Java, web 
developement is fun again", so i made my class look like this:

---
public class FileParser {

   
private List records = new ArrayList();
private static FileParser fp = new FileParser();
private long TIMECONST = 30L;
private boolean isColored= false;

private FileParser() {
}
  

public static FileParser getInstance() {
return fp;
}

//getters and setters

 public void parseFile(File file) { 
 //get contents from file to the Arraylist
}
---

In my ActionBean it looks:

public class TableActionBean implements ActionBean {

private FileBean newAttachment;
private FileParser fp = FileParser.getInstance();

 public Resolution upload() throws IOException {

File tmpFile = File.createTempFile("temp", "txt");
fp.parseFile(tmpFile);
context.getRequest().setAttribute("loaded", true);
return new RedirectResolution("/index.jsp");

}


---

Now the situation: when I upload the file, i can see its contents from other 
sessions(browsers) as well, and i wanted to have new instance with another data 
for every session. So your suggestion #2 setting the FileParser up in the 
ActionBeanContext will do the trick? Sorry for being a bit confusing.




--
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] getting specified instance of DAO in ActionBean

2010-12-09 Thread farouk alhassan
You can also use google Guice to inject an instance of the DAO if that is what 
you want.

Check out the stripes Guice plugin for samples

Regards

--- On Thu, 9/12/10, Nikolaos Giannopoulos  wrote:

From: Nikolaos Giannopoulos 
Subject: Re: [Stripes-users] getting specified instance of DAO in ActionBean
To: "Stripes Users List" 
Date: Thursday, 9 December, 2010, 17:25

Milan,

In that case why bother with a DAO at all?  i.e. although it would be 
nice to plug in a DB later the problem you are going to have is where to 
store the information for the life of a user session and that is 
typically going to be on the session itself... however until you pass 
the http request to the DAO you won't have access to that.

Personally... I see 2 obvious choices:

#1  Use DAO's and add arguments to pass in the http request / session.

#2  Use a custom action bean context as I showed you in the previous 
reply and put access methods on the context itself.

I would go with #2 regardless so that it encapsulates the data you are 
retaining.

And if you need to create the additional abstraction or will want to 
eventually go to a DB then wrap #1 around it but in that case you will 
want to eventually change both the DAO interfaces (as the http request / 
session will no longer be required) and the DAO implementation;  doesn't 
totally defeat the purpose of a DAO abstraction but isn't the right thing.

In fact, the more I think about it I would look at a different design 
pattern altogether that focuses on maintaining state or simply do #2.

--Nikolaos



Milan Halenar wrote:
> Milan Halenar  writes:
>
>
>
> Ad: im not using any DB, im just storing the content of file in memory in the 
> FileParser class in an ArrayList. And i need for every session to have its 
> own 
> instance of that class. I hope i cleared it a bit.
>
>
>
> --
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>   

--
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users



  --
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Stripes and WebSockets?

2010-12-09 Thread farouk alhassan
Hi
If you know how the bare bones websockets framework and you understand the 
details of the communication protocol, You could easily create a Custom 
Resolution and return those in your action beans. Creating your own resolution 
is a no brainer. Just check out the source for the ForwardResolution class and 
you will have enough to get started

hope this helps

regards

--- On Thu, 9/12/10, Sven Jacobs  wrote:

From: Sven Jacobs 
Subject: Re: [Stripes-users] Stripes and WebSockets?
To: "Stripes Users List" 
Date: Thursday, 9 December, 2010, 16:07

Hi Tim,
thanks for your reply!
I'm well aware that Jetty is a servlet container and not a web framework like 
Stripes ;-) Maybe my question wasn't clear enough. Sorry for that!

Let's rephrase it: How would I develop an application with Stripes that uses 
WebSockets (and runs on Jetty)?
Since Ajax is natively supported by Stripes I was hoping that it's almost 
equally easy to use WebSockets. I'm focusing on Jetty because it's one of the 
few servlet containers that already support WebSockets. However you have to 
create a servlet that extends from WebSocketServlet. That way I can't use the 
Stripes servlet and all the code in the WebSocketServlet runs "besides" and not 
within the Stripes framework.

So you are saying that I should implement the WebSockets protocol within 
Stripes?
Regards,Sven
2010/12/9 Stone, Timothy 






Sven,



Jetty is a servlet container, e.g., Tomcat. Jetty’s support of WebSockets, the 
HTML5 feature, is unrelated to Stripes.



The question you may want an answer to is what Stripes Resolution might best 
support the creation and use of WebSockets, see 
http://en.wikipedia.org/wiki/WebSockets for the protocol implementation.




I don’t see anything that could not be implemented in Stripes, possibly with a 
Streaming or JavaScript Resolution. There’s some token encryption that the 
server should be able to handle or pass off to the Action that might be an 
exercise implementation or library support.




If there is a JSP example of WebSockets on the web, it should be “portable” to 
the Stripes platform it your favorite container (Jetty, Tomcat, WebLogic, 
Jboss, etc.).



Regards,

Tim





On 12/9/10 8:57 AM, "Sven Jacobs"  wrote:



Hi all,



I was wondering if anyone has already used WebSockets along with Stripes? Jetty 
7 supports WebSockets, for example.



I'm new to Stripes. What would be the recommended way to use WebSockets in 
Stripes?



Many thanks,

Sven



--

This SF Dev2Dev email is sponsored by:



WikiLeaks The End of the Free Internet

http://p.sf.net/sfu/therealnews-com



-- 

Timothy Stone   |   Director, Application Developer Technical Lead


Barclaycard   |    Business Technology Group, Solutions Delivery

125 S. West Street   |   Wilmington, DE    |   19801

USA   |   www.barclaycardus.com

+1 302 255 8044 direct |   +1 410 441 9450 cell

 

COMPANY CONFIDENTIAL

 

P Before printing this e-mail, or any other document, ask yourself whether you 
need a hard copy




 

___

Barclays
www.barclaycardus.com
___


This e-mail and any files transmitted with it may contain confidential and/or 
proprietary information. It is intended solely for the use of the individual or 
entity who is the intended recipient. Unauthorized use of this information is 
prohibited. If you have received this in error, please contact the sender by 
replying to this message and delete this material from any system it may be on.




--

This SF Dev2Dev email is sponsored by:



WikiLeaks The End of the Free Internet

http://p.sf.net/sfu/therealnews-com
___

Stripes-users mailing list

Stripes-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/stripes-users





-Inline Attachment Follows-

--

-Inline Attachment Follows-

___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users



  --
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] getting specified instance of DAO in ActionBean

2010-12-09 Thread Nikolaos Giannopoulos
Milan,

In that case why bother with a DAO at all?  i.e. although it would be 
nice to plug in a DB later the problem you are going to have is where to 
store the information for the life of a user session and that is 
typically going to be on the session itself... however until you pass 
the http request to the DAO you won't have access to that.

Personally... I see 2 obvious choices:

#1  Use DAO's and add arguments to pass in the http request / session.

#2  Use a custom action bean context as I showed you in the previous 
reply and put access methods on the context itself.

I would go with #2 regardless so that it encapsulates the data you are 
retaining.

And if you need to create the additional abstraction or will want to 
eventually go to a DB then wrap #1 around it but in that case you will 
want to eventually change both the DAO interfaces (as the http request / 
session will no longer be required) and the DAO implementation;  doesn't 
totally defeat the purpose of a DAO abstraction but isn't the right thing.

In fact, the more I think about it I would look at a different design 
pattern altogether that focuses on maintaining state or simply do #2.

--Nikolaos



Milan Halenar wrote:
> Milan Halenar  writes:
>
>
>
> Ad: im not using any DB, im just storing the content of file in memory in the 
> FileParser class in an ArrayList. And i need for every session to have its 
> own 
> instance of that class. I hope i cleared it a bit.
>
>
>
> --
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>   

--
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] getting specified instance of DAO in ActionBean

2010-12-09 Thread Milan Halenar
Milan Halenar  writes:



Ad: im not using any DB, im just storing the content of file in memory in the 
FileParser class in an ArrayList. And i need for every session to have its own 
instance of that class. I hope i cleared it a bit.



--
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] getting specified instance of DAO in ActionBean

2010-12-09 Thread Nikolaos Giannopoulos
Milan,

You could wrap an instance you create in a custom bean context and add 
it to and retrieve it from the session.

Something like the following except with your DAO instead of a user object:
http://stripesframework.org/display/stripes/State+Management

But I'm curious why doesn't a singleton DAO cut it?
Unless your retaining state in your DAO's... which is typically better 
done elsewhere.

--Nikolaos



Milan Halenar wrote:
> Hello, at the beggining let me briefly describe situation: 
>
> Im developing an web app in which i upload file, parse the file and store its 
> content in a simple DAO.
> Currently i implemented the DAO as singleton, so in my 
> ActionBean im doing this: 
>
> private FileParser fp = FileParser.getInstance();
>
> and every session(user) has the same instance of that dao.
> My aim is to have new instance of this class for every new session, i mean 
> not 
> having the FileParser implemented as a singleton.
> The problem is that i dont know how to get the specified instance of DAO with 
> users data in the ActionBean. Is there any suggested way to do this? Thanks
>
>
> --
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>   


--
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


[Stripes-users] getting specified instance of DAO in ActionBean

2010-12-09 Thread Milan Halenar
Hello, at the beggining let me briefly describe situation: 

Im developing an web app in which i upload file, parse the file and store its 
content in a simple DAO.
Currently i implemented the DAO as singleton, so in my 
ActionBean im doing this: 

private FileParser fp = FileParser.getInstance();

and every session(user) has the same instance of that dao.
My aim is to have new instance of this class for every new session, i mean not 
having the FileParser implemented as a singleton.
The problem is that i dont know how to get the specified instance of DAO with 
users data in the ActionBean. Is there any suggested way to do this? Thanks


--
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Stripes and WebSockets?

2010-12-09 Thread Sven Jacobs
Hi Tim,

thanks for your reply!

I'm well aware that Jetty is a servlet container and not a web framework
like Stripes ;-) Maybe my question wasn't clear enough. Sorry for that!

Let's rephrase it: How would I develop an application with Stripes that uses
WebSockets (and runs on Jetty)?

Since Ajax is natively supported by Stripes I was hoping that it's almost
equally easy to use WebSockets. I'm focusing on Jetty because it's one of
the few servlet containers that already support WebSockets. However you have
to create a servlet that extends from WebSocketServlet. That way I can't use
the Stripes servlet and all the code in the WebSocketServlet runs "besides"
and not within the Stripes framework.

So you are saying that I should implement the WebSockets protocol within
Stripes?

Regards,
Sven

2010/12/9 Stone, Timothy 

>  Sven,
>
> Jetty is a servlet container, e.g., Tomcat. Jetty’s support of WebSockets,
> the HTML5 feature, is unrelated to Stripes.
>
> The question you may want an answer to is what Stripes Resolution might
> best support the creation and use of WebSockets, see
> http://en.wikipedia.org/wiki/WebSockets for the protocol implementation.
>
> I don’t see anything that could not be implemented in Stripes, possibly
> with a Streaming or JavaScript Resolution. There’s some token encryption
> that the server should be able to handle or pass off to the Action that
> might be an exercise implementation or library support.
>
> If there is a JSP example of WebSockets on the web, it should be “portable”
> to the Stripes platform it your favorite container (Jetty, Tomcat, WebLogic,
> Jboss, etc.).
>
> Regards,
> Tim
>
>
>
> On 12/9/10 8:57 AM, "Sven Jacobs"  wrote:
>
> Hi all,
>
> I was wondering if anyone has already used WebSockets along with Stripes?
> Jetty 7 supports WebSockets, for example.
>
> I'm new to Stripes. What would be the recommended way to use WebSockets in
> Stripes?
>
> Many thanks,
> Sven
>
> --
>
> --
> This SF Dev2Dev email is sponsored by:
>
> WikiLeaks The End of the Free Internet
> http://p.sf.net/sfu/therealnews-com
>
>
> --
> Timothy Stone   |   Director, Application Developer Technical Lead
> Barclaycard   |Business Technology Group, Solutions Delivery
> 125 S. West Street   |   Wilmington, DE|   19801
> USA   |   www.barclaycardus.com
> +1 302 255 8044 direct |   +1 410 441 9450 cell
>
> COMPANY CONFIDENTIAL
>
> P Before printing this e-mail, or any other document, ask yourself whether
> you need a hard copy
>
>
>
> ___
>
> Barclays
> www.barclaycardus.com
> ___
>
> This e-mail and any files transmitted with it may contain confidential
> and/or proprietary information. It is intended solely for the use of the
> individual or entity who is the intended recipient. Unauthorized use of this
> information is prohibited. If you have received this in error, please
> contact the sender by replying to this message and delete this material from
> any system it may be on.
>
>
> --
> This SF Dev2Dev email is sponsored by:
>
> WikiLeaks The End of the Free Internet
> http://p.sf.net/sfu/therealnews-com
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
--
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Stripes and WebSockets?

2010-12-09 Thread Stone, Timothy
Sven,

Jetty is a servlet container, e.g., Tomcat. Jetty¹s support of WebSockets,
the HTML5 feature, is unrelated to Stripes.

The question you may want an answer to is what Stripes Resolution might best
support the creation and use of WebSockets, see
http://en.wikipedia.org/wiki/WebSockets for the protocol implementation.

I don¹t see anything that could not be implemented in Stripes, possibly with
a Streaming or JavaScript Resolution. There¹s some token encryption that the
server should be able to handle or pass off to the Action that might be an
exercise implementation or library support.

If there is a JSP example of WebSockets on the web, it should be ³portable²
to the Stripes platform it your favorite container (Jetty, Tomcat, WebLogic,
Jboss, etc.).

Regards,
Tim


On 12/9/10 8:57 AM, "Sven Jacobs"  wrote:

> Hi all,
> 
> I was wondering if anyone has already used WebSockets along with Stripes?
> Jetty 7 supports WebSockets, for example.
> 
> I'm new to Stripes. What would be the recommended way to use WebSockets in
> Stripes?
> 
> Many thanks,
> Sven
> 
> 
> --
> This SF Dev2Dev email is sponsored by:
> 
> WikiLeaks The End of the Free Internet
> http://p.sf.net/sfu/therealnews-com

-- 
Timothy Stone   |   Director, Application Developer Technical Lead
Barclaycard   |Business Technology Group, Solutions Delivery
125 S. West Street   |   Wilmington, DE|   19801
USA   |   www.barclaycardus.com
+1 302 255 8044 direct |   +1 410 441 9450 cell
 
COMPANY CONFIDENTIAL
 
P Before printing this e-mail, or any other document, ask yourself whether
you need a hard copy



Barclays www.barclaycardus.com

This e-mail and any files transmitted with it may contain confidential and/or 
proprietary information. It is intended solely for the use of the individual or 
entity who is the intended recipient. Unauthorized use of this information is 
prohibited. If you have received this in error, please contact the sender by 
replying to this message and delete this material from any system it may be on.

--
This SF Dev2Dev email is sponsored by:

WikiLeaks The End of the Free Internet
http://p.sf.net/sfu/therealnews-com___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


[Stripes-users] Stripes and WebSockets?

2010-12-09 Thread Sven Jacobs
Hi all,

I was wondering if anyone has already used WebSockets along with Stripes?
Jetty 7 supports WebSockets, for example.

I'm new to Stripes. What would be the recommended way to use WebSockets in
Stripes?

Many thanks,
Sven
--
This SF Dev2Dev email is sponsored by:

WikiLeaks The End of the Free Internet
http://p.sf.net/sfu/therealnews-com___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users