Hi all,
I just *built* a websocket sample [3], using java-6. Build was successful.
However as Kasun has mentioned, if we *run* using java-6, tomcat-websocket
features (i.e. Tomcat JSR-356 Java WebSocket 1.0 implementation) don't
work.
This is also being mentioned in [4]
> "The JSR-356 Java WebSocket 1.0 implementation is only available when
> Tomcat is *running* on Java 7 or later."
Accordingly, I get this message at CEP server startup, when using java-6.
[2014-07-08 14:10:15,948] INFO - {WsSci} JSR 356 WebSocket (Java
> WebSocket 1.0) support is not available when running on Java 6. To suppress
> this message, run Tomcat on Java 7, remove the WebSocket JARs from
> $CATALINA_HOME/lib or add the WebSocketJARs to the
> tomcat.util.scan.DefaultJarScanner.jarsToSkip property in
> $CATALINA_BASE/conf/catalina.properties. Note that the deprecated Tomcat 7
> WebSocket API will be available.
[3]
https://github.com/dilini-muthumala/web-sockets-samples/tree/master/eesockets
[4] http://tomcat.apache.org/tomcat-7.0-doc/web-socket-howto.html
Thanks Kasun & Mohan for helping to try out websocket samples.
Regards,
Dilini
On Sun, Jul 6, 2014 at 11:13 PM, Dilini Muthumala <[email protected]> wrote:
> Hi all,
>
> On Fri, Jul 4, 2014 at 10:05 PM, Sriskandarajah Suhothayan <[email protected]>
> wrote:
>
>> Thats good we'll verify that.
>>
>
> I hope to try this. Will post the findings. Thanks Kasun!
>
> Regards,
> Dilini
>
>
>>
>> Suho
>>
>>
>> On Fri, Jul 4, 2014 at 5:19 PM, Kasun Gajasinghe <[email protected]> wrote:
>>
>>>
>>> AFAIK, you do not need JDK 1.7 to compile websocket based webapps.
>>>
>>>
>>> On Fri, Jul 4, 2014 at 4:21 PM, Sriskandarajah Suhothayan <[email protected]
>>> > wrote:
>>>
>>>> At runtime that will help. But this is not possible when compiling and
>>>> releasing the product :(
>>>>
>>>> Suho
>>>>
>>>>
>>>> On Fri, Jul 4, 2014 at 4:17 PM, Kasun Gajasinghe <[email protected]>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> How Tomcat Websocket works is that if the JDK version is less than 7,
>>>>> it disables Websocket feature and the container starts up. It prints a
>>>>> warning log pointing out that user is not running in JDK 7. You might want
>>>>> to follow the same procedure.
>>>>>
>>>>> Regards,
>>>>> KasunG
>>>>>
>>>>>
>>>>> On Fri, Jul 4, 2014 at 3:32 PM, Sriskandarajah Suhothayan <
>>>>> [email protected]> wrote:
>>>>>
>>>>>> Yes, thats an issue.
>>>>>> Because of this we wont be able to build the full platform in one
>>>>>> java version.
>>>>>>
>>>>>> So what will be the recommended approach here ?
>>>>>>
>>>>>> Regards
>>>>>> Suho
>>>>>>
>>>>>>
>>>>>> On Fri, Jul 4, 2014 at 3:26 PM, Sagara Gunathunga <[email protected]>
>>>>>> wrote:
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Fri, Jul 4, 2014 at 3:07 PM, Sriskandarajah Suhothayan <
>>>>>>> [email protected]> wrote:
>>>>>>>
>>>>>>>> Our idea is to use Tomcat this is jetty is just a quick PoC we did
>>>>>>>> for CEP. But even to use Tomcat Web sockets we have to have to build
>>>>>>>> using
>>>>>>>> Java 7[1].
>>>>>>>> So anyway we have to move to Java 7 to build the CEP repo so that
>>>>>>>> it can compile the WebSocket servlet
>>>>>>>>
>>>>>>>> What is our plan on moving the build to Java 7?
>>>>>>>>
>>>>>>>
>>>>>>> You can configure Jenkins job to run with Java 7 easily, I don't
>>>>>>> remember whether we have installed Java7 on Jenkins but we can easily
>>>>>>> install and configure CEP job to run with Java7. BTW this means Java7
>>>>>>> will be a mandatory to run CEP ?
>>>>>>>
>>>>>>>
>>>>>>> Thanks !
>>>>>>>
>>>>>>>>
>>>>>>>> Regards
>>>>>>>> Suho
>>>>>>>>
>>>>>>>> [1]http://tomcat.apache.org/tomcat-7.0-doc/web-socket-howto.html
>>>>>>>>
>>>>>>>>
>>>>>>>> On Fri, Jul 4, 2014 at 3:06 PM, Afkham Azeez <[email protected]>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> +1. Don't unnecessarily bring in Jetty.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Fri, Jul 4, 2014 at 2:49 PM, Sagara Gunathunga <[email protected]
>>>>>>>>> > wrote:
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Fri, Jul 4, 2014 at 2:40 PM, Mohanadarshan Vivekanandalingam <
>>>>>>>>>> [email protected]> wrote:
>>>>>>>>>>
>>>>>>>>>>> Hi All,
>>>>>>>>>>>
>>>>>>>>>>> Are we planning to do $subject.. ?
>>>>>>>>>>> In CEP, we have developed an adptor which supports for
>>>>>>>>>>> websocket. Here we are using latest jetty version which only
>>>>>>>>>>> supports Java
>>>>>>>>>>> 1.7 according to [1].. But since we have configured jenkins only
>>>>>>>>>>> with java
>>>>>>>>>>> 1.6, this components is getting failed. Is it possible to configure
>>>>>>>>>>> Java
>>>>>>>>>>> 1.7 for CEP related repo or do we have any other option on this ?
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Can you please explain why you want to bring another WS container
>>>>>>>>>> to the platform ? We already have Tomcat as the WS container and if
>>>>>>>>>> you
>>>>>>>>>> bring Jetty CEP will ship two WS containers IMO this is not correct.
>>>>>>>>>> Further you use JSR 356 based annotations to implement WS
>>>>>>>>>> applications
>>>>>>>>>> which means applications are independent from underline WS container.
>>>>>>>>>>
>>>>>>>>>> Thanks !
>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> [1]
>>>>>>>>>>> http://www.eclipse.org/jetty/documentation/current/what-jetty-version.html#d0e75
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Thanks,
>>>>>>>>>>> Mohan
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> *V. Mohanadarshan*
>>>>>>>>>>> *Software Engineer,*
>>>>>>>>>>> *Data Technologies Team,*
>>>>>>>>>>> *WSO2, Inc. http://wso2.com <http://wso2.com> *
>>>>>>>>>>> *lean.enterprise.middleware.*
>>>>>>>>>>>
>>>>>>>>>>> email: [email protected]
>>>>>>>>>>> phone:(+94) 771117673
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Sagara Gunathunga
>>>>>>>>>>
>>>>>>>>>> Senior Technical Lead; WSO2, Inc.; http://wso2.com
>>>>>>>>>> V.P Apache Web Services; http://ws.apache.org/
>>>>>>>>>> Linkedin; http://www.linkedin.com/in/ssagara
>>>>>>>>>> Blog ; http://ssagara.blogspot.com
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> *Afkham Azeez*
>>>>>>>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>>>>>>>> Member; Apache Software Foundation; http://www.apache.org/
>>>>>>>>> * <http://www.apache.org/>*
>>>>>>>>> *email: **[email protected]* <[email protected]>
>>>>>>>>> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: *
>>>>>>>>> *http://blog.afkham.org* <http://blog.afkham.org>
>>>>>>>>> *twitter: **http://twitter.com/afkham_azeez*
>>>>>>>>> <http://twitter.com/afkham_azeez>
>>>>>>>>> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>>>>>>>> <http://lk.linkedin.com/in/afkhamazeez>*
>>>>>>>>>
>>>>>>>>> *Lean . Enterprise . Middleware*
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>>
>>>>>>>> *S. Suhothayan*
>>>>>>>> Technical Lead & Team Lead of WSO2 Complex Event Processor
>>>>>>>> *WSO2 Inc. *http://wso2.com
>>>>>>>> * <http://wso2.com/>*
>>>>>>>> lean . enterprise . middleware
>>>>>>>>
>>>>>>>>
>>>>>>>> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
>>>>>>>> http://suhothayan.blogspot.com/ <http://suhothayan.blogspot.com/>
>>>>>>>> twitter:
>>>>>>>> http://twitter.com/suhothayan <http://twitter.com/suhothayan> |
>>>>>>>> linked-in:
>>>>>>>> http://lk.linkedin.com/in/suhothayan
>>>>>>>> <http://lk.linkedin.com/in/suhothayan>*
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Sagara Gunathunga
>>>>>>>
>>>>>>> Senior Technical Lead; WSO2, Inc.; http://wso2.com
>>>>>>> V.P Apache Web Services; http://ws.apache.org/
>>>>>>> Linkedin; http://www.linkedin.com/in/ssagara
>>>>>>> Blog ; http://ssagara.blogspot.com
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>>
>>>>>> *S. Suhothayan*
>>>>>> Technical Lead & Team Lead of WSO2 Complex Event Processor
>>>>>> *WSO2 Inc. *http://wso2.com
>>>>>> * <http://wso2.com/>*
>>>>>> lean . enterprise . middleware
>>>>>>
>>>>>>
>>>>>> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
>>>>>> http://suhothayan.blogspot.com/ <http://suhothayan.blogspot.com/>
>>>>>> twitter:
>>>>>> http://twitter.com/suhothayan <http://twitter.com/suhothayan> |
>>>>>> linked-in:
>>>>>> http://lk.linkedin.com/in/suhothayan
>>>>>> <http://lk.linkedin.com/in/suhothayan>*
>>>>>>
>>>>>> _______________________________________________
>>>>>> Dev mailing list
>>>>>> [email protected]
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
>>>>> email: kasung AT spamfree wso2.com
>>>>> linked-in: http://lk.linkedin.com/in/gajasinghe
>>>>> blog: http://kasunbg.org
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> *S. Suhothayan*
>>>> Technical Lead & Team Lead of WSO2 Complex Event Processor
>>>> *WSO2 Inc. *http://wso2.com
>>>> * <http://wso2.com/>*
>>>> lean . enterprise . middleware
>>>>
>>>>
>>>> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
>>>> http://suhothayan.blogspot.com/ <http://suhothayan.blogspot.com/> twitter:
>>>> http://twitter.com/suhothayan <http://twitter.com/suhothayan> | linked-in:
>>>> http://lk.linkedin.com/in/suhothayan
>>>> <http://lk.linkedin.com/in/suhothayan>*
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
>>> email: kasung AT spamfree wso2.com
>>> linked-in: http://lk.linkedin.com/in/gajasinghe
>>> blog: http://kasunbg.org
>>>
>>>
>>>
>>
>>
>>
>> --
>>
>> *S. Suhothayan*
>> Technical Lead & Team Lead of WSO2 Complex Event Processor
>> *WSO2 Inc. *http://wso2.com
>> * <http://wso2.com/>*
>> lean . enterprise . middleware
>>
>>
>> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
>> http://suhothayan.blogspot.com/ <http://suhothayan.blogspot.com/> twitter:
>> http://twitter.com/suhothayan <http://twitter.com/suhothayan> | linked-in:
>> http://lk.linkedin.com/in/suhothayan <http://lk.linkedin.com/in/suhothayan>*
>>
>
>
>
> --
> *Dilini Muthumala*
> Software Engineer,
> WSO2 Inc.
>
> *E-mail :* [email protected]
> *Mobile: *+94713 400 029
>
--
*Dilini Muthumala*
Software Engineer,
WSO2 Inc.
*E-mail :* [email protected]
*Mobile: *+94713 400 029
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture