xsocket-develop Mailing List for xsocket (Page 14)
Status: Inactive
Brought to you by:
grro
You can subscribe to this list here.
| 2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(12) |
Oct
(9) |
Nov
(11) |
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2008 |
Jan
(8) |
Feb
(9) |
Mar
(9) |
Apr
(22) |
May
(28) |
Jun
(17) |
Jul
(10) |
Aug
(19) |
Sep
(4) |
Oct
(14) |
Nov
(26) |
Dec
(25) |
| 2009 |
Jan
(13) |
Feb
(17) |
Mar
(12) |
Apr
(4) |
May
(16) |
Jun
(6) |
Jul
(10) |
Aug
(24) |
Sep
(6) |
Oct
(5) |
Nov
(13) |
Dec
(10) |
| 2010 |
Jan
(17) |
Feb
(21) |
Mar
(10) |
Apr
(8) |
May
(2) |
Jun
(14) |
Jul
(7) |
Aug
(10) |
Sep
(7) |
Oct
(3) |
Nov
|
Dec
(2) |
| 2011 |
Jan
(1) |
Feb
(5) |
Mar
(1) |
Apr
|
May
(5) |
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(3) |
Nov
|
Dec
|
| 2015 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
(3) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(6) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
|
From: Gregor R. <gre...@go...> - 2008-10-20 06:50:23
|
Hello, xSocket V2.2 has been released. This release is a bugfix release which contains minor feature updates: Release 2.2 ----------- a, New features: - [connection] Server - setMaxConcurrentConnections(...) added - [connection] new configuration parameter "org.xsocket.connection.sendFlushTimeoutMillis" b, Bug fix/Implementation changes: - [*] IServer#DEFAULT_HOST_ADDRESS & IEndpoint#DEFAULT_HOST_ADDRESS (IPV4 addresses) are deprecated. - [*] Code cleaning based on findbugs and pmd reports - [datagram] implementations of IEndoint.receive()/receive(...) will throw an IOException, if receiveSize equals or smaller 0 - [connection] Server: methods setFlushmode() & getFlushmode() added - [connection] INonBlockingConection - setWorkerpool(Executor) added - [connection] INonBlockingConection/IBlockingConnection - isReceiving(), suspendReceiving(), resumeReceiving added (isRead(), suspendRead(), resumeRead() has been set to deprecated) - [connection] IBlockingConnection - getReadTimeoutMillis(), setReadTimeoutMillis() added (getReceivedTimeoutMillis(), setReceivedTimeoutMillis() has been set to deprecated) Gregor |
|
From: Gregor R. <gre...@go...> - 2008-09-23 09:12:03
|
currently not. THe next verison will support this feature Gregor 2008/9/23 Mohamad Azri Azhar <az...@gm...> > Hi, > > Is there anyway I can set the maximum number of connection allowed for > the xsocket server? > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > xSocket-develop mailing list > xSo...@li... > https://lists.sourceforge.net/lists/listinfo/xsocket-develop > |
|
From: Mohamad A. A. <az...@gm...> - 2008-09-23 08:49:14
|
Hi, Is there anyway I can set the maximum number of connection allowed for the xsocket server? |
|
From: Gregor R. <gre...@go...> - 2008-09-21 17:28:52
|
Hi, xLightweb 2.0 final has been released. xLightweb (formerly xSocket-http) is an easy to use http network library to build high performance, high scalable network applications. xLightweb provides a simple and intuitive API to write client side HTTP applications as well as server side HTTP applications. In contrast to the Servlet API, xLightweb is not only focused on server side programming. xLightweb also supports client side programming by providing high-capacity client side classes such as an HttpClient. xLightweb is not limited to blocking/synchronous programming. It supports both, blocking/synchronous programming as well as non-blocking/asynchronous programming in a very dynamic way, to provide application types such as client and server-side COMET-Applications or HTTP proxies. Gregor |
|
From: Gregor R. <gre...@go...> - 2008-09-10 18:08:30
|
Hello, xSocket V2.1.2 has been released. This release is a buffix release only: Release 2.1.2 ------------- a, New features: - b, Bug fix/Implementation changes: - [connection] SerializedTaskQueue - reduce the log level for message "task has been rejected by worker pool..." to debug - [*] DataConverter - bug 'methods toFormatedRFC822Date(long time) & toDate(String rfc822DateString)' uses platform locale' - [*] POM update to create a OSGI-conform jar file. Thanks to Damien for providing the patch - [connection] AbstractNonBlockingStream - method drainReadQueue() & copyReadQueue() added - [connection] ReadQueue - method copyAvailable() added Gregor |
|
From: Gregor R. <gre...@go...> - 2008-08-26 15:54:33
|
Hello Damien, thanks for providing the patches. I've updated the trunk of the projects based on your patch. The next versions of the projects will include a proper OSGi-support Cheers Gregor 2008/8/26 Damien Lecan <ml...@dl...> > Hello, > > Here are the patches for modules : > - xSocketCore trunk > - xSocketMultiplexer trunk > - xLightWeb trunk > > Diff : > - change from packaging "bundle" to classical "jar" (better for m2eclipse) > - update of maven-bundle-plugin to 1.4.3 > - generation of MANIFEST.MF without the "uses" clauses > - embed of MANIFEST.MF into the jar thanks to maven-jar-plugin > configuration > > Now, you can add new manifest entries easily (Implementation-Version eg.) > > Damien > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > xSocket-develop mailing list > xSo...@li... > https://lists.sourceforge.net/lists/listinfo/xsocket-develop > > |
|
From: Gregor R. <gre...@go...> - 2008-08-26 15:27:18
|
Hello Michael, one of the outstanding features of xLightweb is that the request handling is not bound on the call back thread which performs the RequestHandler's onRequest()-Method. This is one of the major differences to the Servlet API. That means you can perform the IHttpExchange's sendX method by any another thread. The design that you described is a typical design for xLightweb-based applications. Cheers Gregor |
|
From: Damien L. <ml...@dl...> - 2008-08-26 14:04:32
|
Hello, Here are the patches for modules : - xSocketCore trunk - xSocketMultiplexer trunk - xLightWeb trunk Diff : - change from packaging "bundle" to classical "jar" (better for m2eclipse) - update of maven-bundle-plugin to 1.4.3 - generation of MANIFEST.MF without the "uses" clauses - embed of MANIFEST.MF into the jar thanks to maven-jar-plugin configuration Now, you can add new manifest entries easily (Implementation-Version eg.) Damien |
|
From: Damien L. <ml...@dl...> - 2008-08-25 09:17:33
|
> thanks for providing the patches. I'm going to release xSocket 1.2.2 which > will support OSGi. Is 1.2.x branch still supported ? I think I will just update xsocket-core 2.1.x, xsocket-multiplexer 2.0.x and xlightweb 2.0 or 2.0-beta-x. Packaging will be "jar" again with an external generation of the MANIFEST.MF file (no more "extension" plugin configuration, which is a problem with m2eclipse plugin). Damien |
|
From: Gregor R. <gre...@go...> - 2008-08-24 14:06:34
|
Hello Damien, thanks for providing the patches. I'm going to release xSocket 1.2.2 which will support OSGi. Your patches for xSocket and xLightweb are very welcome. Gregor 2008/8/21 Damien Lecan <ml...@dl...> > Hello, > > Last year I provided to xsocket project a patch to add OSGi > informations, using maven-bundle-plugin. > > I think I would be important to update to it as it is now in 1.4.3 > version, with many bug fixes and enhancements. > > I can provide new patches (xsocket 2.1.x and xlightweb 2.0 or > 2.0-beta-x) if you agree with. > > Thanks > > Damien Lecan > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > xSocket-develop mailing list > xSo...@li... > https://lists.sourceforge.net/lists/listinfo/xsocket-develop > |
|
From: Damien L. <ml...@dl...> - 2008-08-21 08:38:40
|
Hello, Last year I provided to xsocket project a patch to add OSGi informations, using maven-bundle-plugin. I think I would be important to update to it as it is now in 1.4.3 version, with many bug fixes and enhancements. I can provide new patches (xsocket 2.1.x and xlightweb 2.0 or 2.0-beta-x) if you agree with. Thanks Damien Lecan |
|
From: Gregor R. <gre...@go...> - 2008-08-13 07:09:42
|
Hello Johnson, the test keystore used by the xSocket test classes has been generated by using the keystore tool: keytool -keystore C:\temp\TestKeyStore.jks -genkey -alias server -keyalg RSA -keypass secret -storepass secret A good description regarding this can be found here: http://java.sun.com/j2ee/1.4/docs/tutorial/doc/Security6.html. Gregor 2008/8/13 Johnson Chen <joh...@ho...> > Hi, > > First of all , thank you guys for this wonderfull socket library. I have > been testing it on a client-server messaging system for a couple of weeks, > and so far so good. However, when I try to switch the connection mode to SSL > with JDK1.6 SSLContext.getDefault, my system stops working. Then, I tried > the example of SSLContextFactory, it starts working. > > My small question is that how do you guys generate the KeyStore.jks file in > that example. I tried to use keytool to generate my own, but it will not > work. Please kindly give a simple sample of how to create a KeyStore.jks > file to use in xSocket. > > Thank you very much. > > ------------------------------ > Discover the new Windows Vista Learn more!<http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE> > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > xSocket-develop mailing list > xSo...@li... > https://lists.sourceforge.net/lists/listinfo/xsocket-develop > > |
|
From: Johnson C. <joh...@ho...> - 2008-08-13 06:26:48
|
Hi, First of all , thank you guys for this wonderfull socket library. I have been testing it on a client-server messaging system for a couple of weeks, and so far so good. However, when I try to switch the connection mode to SSL with JDK1.6 SSLContext.getDefault, my system stops working. Then, I tried the example of SSLContextFactory, it starts working. My small question is that how do you guys generate the KeyStore.jks file in that example. I tried to use keytool to generate my own, but it will not work. Please kindly give a simple sample of how to create a KeyStore.jks file to use in xSocket. Thank you very much. _________________________________________________________________ Discover the new Windows Vista http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE |
|
From: Gregor R. <gre...@go...> - 2008-08-09 06:35:53
|
Hello, xSocket V2.1.1, xSocket multiplexed V2.0.1 and xLightweb V2.0-beta-2 (xSocket-http) has been released. xLightweb replaces the xSocket-http extension module and has been set up as an independent project ( xlightweb.org). Most internal classes of xSocket–http such as the http parser have been reimplemented by considering performance aspects. xSocket V2.1.1 issues: - minor bug fixes - performance improvements xSocket multiplexed V2.0.1 issues: - minor bug fixes Gregor |
|
From: Gregor R. <gre...@go...> - 2008-08-06 17:22:21
|
Hi Lenjoy, the IServer is an interface defined by xSocket-core. The HttpServer implements this interface. Gregor 2008/8/6 Lenjoy <mar...@gm...> > Thank Gregor so much for the clear explanation! Make sense! > nio is the best choice for me. > Maybe I will go back here for more questions about this issue later. > > Another small and quick question about IServer mentioned in > http://xsocket.sourceforge.net/core/tutorial/V2/TutorialCore.htm > > Is that an interface import from some places of xsocket or it's just a server class defined by myself? :) > > > > 2008/8/6, Gregor Roth <gre...@go...>: > >> Hi Lenjoy, >> >> the current version of xSocket supports on the bottom level TCP (incl. >> SSL) and UDP. Beside this low level protocol support, extension modules >> exist to support HTTP and multiplexed TCP. xSocket core as well as the >> extension modules implement the common interface IDataSink and IDataSource >> to read and write network data. By using these interfaces, the core part of >> your code will be protocol-independent. If you have to support other than >> these protocols you have to write your own extensions. The xSocket community >> would appreciate sharing new extension modules with you :-) >> >> To write an efficient server pushed based server, you have to use an >> asynchronous/non-blocking network API. For example all the popular >> Java-based Comet server uses NIO internally. >> xSocket and the extension modules support both, a synchronous/blocking and >> asynchronous/non-blocking API, and have been used to write server which >> implements a server-push approach, as well as implementing classic server >> such as a SMTP server. >> >> The decision Java vs. C++ depends on your platform and your preferred >> development technology. From the performance view Java is as fast as C++ (or >> faster?). If you decide to use C++, you will find network libraries like >> ASIO which supports an asynchronous API. >> >> Gregor >> >> >> >> >> 2008/8/5 Lenjoy <mar...@gm...> >> >>> Dear xSocket develop folks, >>> >>> question about designing a lightweight server, which can be on HTTP or >>> TCP or UDP, whatever, the client may not be PC, e.g. cellphone or other >>> devices. >>> the client sends request to server and wait the response, the response >>> should be as soon as possible, the server need to deal with some Database >>> job. >>> currently, there are two popular methods to achieve that. >>> >>> 1. client checks the server in period, if any update, the server give the >>> updated response back. >>> 2. server push, when any update in server, this is a nice user >>> experience for client. The main concern is that the server need to keep the >>> connection, this may be a heavy load for server, another problem is for the >>> clients which are not PC, they need to keep the connection always, which may >>> be wasting money for some services. >>> >>> if using xSocket server, any effective solution for this purpose? >>> Maybe xSocket is not the best choice, any other Java server or C++ or C >>> server to achieve that? >>> >>> Any comments and suggestion are appreciated. >>> >>> -- >>> Lenjoy >>> >>> ------------------------------------------------------------------------- >>> This SF.Net email is sponsored by the Moblin Your Move Developer's >>> challenge >>> Build the coolest Linux based applications with Moblin SDK & win great >>> prizes >>> Grand prize is a trip for two to an Open Source event anywhere in the >>> world >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>> _______________________________________________ >>> xSocket-develop mailing list >>> xSo...@li... >>> https://lists.sourceforge.net/lists/listinfo/xsocket-develop >>> >>> >> >> > > |
|
From: Lenjoy <mar...@gm...> - 2008-08-06 14:28:40
|
Thank Gregor so much for the clear explanation! Make sense! nio is the best choice for me. Maybe I will go back here for more questions about this issue later. Another small and quick question about IServer mentioned in http://xsocket.sourceforge.net/core/tutorial/V2/TutorialCore.htm Is that an interface import from some places of xsocket or it's just a server class defined by myself? :) 2008/8/6, Gregor Roth <gre...@go...>: > > Hi Lenjoy, > > the current version of xSocket supports on the bottom level TCP (incl. SSL) > and UDP. Beside this low level protocol support, extension modules exist to > support HTTP and multiplexed TCP. xSocket core as well as the extension > modules implement the common interface IDataSink and IDataSource to read and > write network data. By using these interfaces, the core part of your code > will be protocol-independent. If you have to support other than these > protocols you have to write your own extensions. The xSocket community would > appreciate sharing new extension modules with you :-) > > To write an efficient server pushed based server, you have to use an > asynchronous/non-blocking network API. For example all the popular > Java-based Comet server uses NIO internally. > xSocket and the extension modules support both, a synchronous/blocking and > asynchronous/non-blocking API, and have been used to write server which > implements a server-push approach, as well as implementing classic server > such as a SMTP server. > > The decision Java vs. C++ depends on your platform and your preferred > development technology. From the performance view Java is as fast as C++ (or > faster?). If you decide to use C++, you will find network libraries like > ASIO which supports an asynchronous API. > > Gregor > > > > > 2008/8/5 Lenjoy <mar...@gm...> > >> Dear xSocket develop folks, >> >> question about designing a lightweight server, which can be on HTTP or >> TCP or UDP, whatever, the client may not be PC, e.g. cellphone or other >> devices. >> the client sends request to server and wait the response, the response >> should be as soon as possible, the server need to deal with some Database >> job. >> currently, there are two popular methods to achieve that. >> >> 1. client checks the server in period, if any update, the server give the >> updated response back. >> 2. server push, when any update in server, this is a nice user >> experience for client. The main concern is that the server need to keep the >> connection, this may be a heavy load for server, another problem is for the >> clients which are not PC, they need to keep the connection always, which may >> be wasting money for some services. >> >> if using xSocket server, any effective solution for this purpose? >> Maybe xSocket is not the best choice, any other Java server or C++ or C >> server to achieve that? >> >> Any comments and suggestion are appreciated. >> >> -- >> Lenjoy >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> xSocket-develop mailing list >> xSo...@li... >> https://lists.sourceforge.net/lists/listinfo/xsocket-develop >> >> > > |
|
From: Gregor R. <gre...@go...> - 2008-08-05 17:43:12
|
Hi Lenjoy, the current version of xSocket supports on the bottom level TCP (incl. SSL) and UDP. Beside this low level protocol support, extension modules exist to support HTTP and multiplexed TCP. xSocket core as well as the extension modules implement the common interface IDataSink and IDataSource to read and write network data. By using these interfaces, the core part of your code will be protocol-independent. If you have to support other than these protocols you have to write your own extensions. The xSocket community would appreciate sharing new extension modules with you :-) To write an efficient server pushed based server, you have to use an asynchronous/non-blocking network API. For example all the popular Java-based Comet server uses NIO internally. xSocket and the extension modules support both, a synchronous/blocking and asynchronous/non-blocking API, and have been used to write server which implements a server-push approach, as well as implementing classic server such as a SMTP server. The decision Java vs. C++ depends on your platform and your preferred development technology. From the performance view Java is as fast as C++ (or faster?). If you decide to use C++, you will find network libraries like ASIO which supports an asynchronous API. Gregor 2008/8/5 Lenjoy <mar...@gm...> > Dear xSocket develop folks, > > question about designing a lightweight server, which can be on HTTP or TCPor UDP, whatever, the client may not be PC, e.g. cellphone or other devices. > the client sends request to server and wait the response, the response > should be as soon as possible, the server need to deal with some Database > job. > currently, there are two popular methods to achieve that. > > 1. client checks the server in period, if any update, the server give the > updated response back. > 2. server push, when any update in server, this is a nice user > experience for client. The main concern is that the server need to keep the > connection, this may be a heavy load for server, another problem is for the > clients which are not PC, they need to keep the connection always, which may > be wasting money for some services. > > if using xSocket server, any effective solution for this purpose? > Maybe xSocket is not the best choice, any other Java server or C++ or C > server to achieve that? > > Any comments and suggestion are appreciated. > > -- > Lenjoy > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > xSocket-develop mailing list > xSo...@li... > https://lists.sourceforge.net/lists/listinfo/xsocket-develop > > |
|
From: Lenjoy <mar...@gm...> - 2008-08-05 13:55:27
|
Dear xSocket develop folks, question about designing a lightweight server, which can be on HTTP or TCPor UDP, whatever, the client may not be PC, e.g. cellphone or other devices. the client sends request to server and wait the response, the response should be as soon as possible, the server need to deal with some Database job. currently, there are two popular methods to achieve that. 1. client checks the server in period, if any update, the server give the updated response back. 2. server push, when any update in server, this is a nice user experience for client. The main concern is that the server need to keep the connection, this may be a heavy load for server, another problem is for the clients which are not PC, they need to keep the connection always, which may be wasting money for some services. if using xSocket server, any effective solution for this purpose? Maybe xSocket is not the best choice, any other Java server or C++ or C server to achieve that? Any comments and suggestion are appreciated. -- Lenjoy |
|
From: Nicolas C. <n.c...@gm...> - 2008-08-05 07:19:48
|
Thank you very much Gregor, i will test this ASAP. Regards Nicolas On Tue, Aug 5, 2008 at 6:16 AM, Gregor Roth <gre...@go...>wrote: > Hi Nicolas, > > you can write your on SSLContext factory. For example see the > SSLTestContextFactory > (http://xsocket.svn.sourceforge.net/viewvc/xsocket/xsocket/http/trunk/src/test/java/org/xsocket/connection/http/SSLTestContextFactory.java?view=markup<http://xsocket.svn.sourceforge.net/viewvc/xsocket/xsocket/http/trunk/src/test/java/org/xsocket/connection/http/SSLTestContextFactory.java?view=markup>), which > is used by the test classes of xSocket. > > cheers > Gregor > > > 2008/8/4 Nicolas Chalon <n.c...@gm...> > >> Hi Gregor, >> >> Thank you very much but unfortunately, I should have told you that as I am >> on macosx 10.4 i am restricted to JAVA 5 and that I don't have any >> getDefault method. Do you have any ideas ? >> >> Thanks in advance >> >> Nicolas >> >> >> On Mon, Aug 4, 2008 at 7:00 PM, Gregor Roth <gre...@go...>wrote: >> >>> Hi Nicolas, >>> to run the server in SSL mode is quite simple. Just use another >>> constructor. Please see the example. >>> >>> <?xml version="1.0" encoding="UTF-8"?> >>> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi=" >>> http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" >>> http://www.springframework.org/schema/beans >>> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"> >>> >>> <bean id="server" class="org.xsocket.connection.http.server.HttpServer" >>> init-method="start" destroy-method="close" scope="singleton"> >>> <constructor-arg type="int" value="0"/> >>> <constructor-arg type="org.xsocket.connection.http.IHttpHandler" >>> ref="handler"/> >>> <constructor-arg type="javax.net.ssl.SSLContext" ref="sslContext"/> >>> <constructor-arg type="boolean" value="true"/> >>> </bean> >>> >>> <bean id="sslContext" class="javax.net.ssl.SSLContext" >>> factory-method="getDefault"/> >>> >>> <bean id="handler" class="myHandler " scope="prototype"/> >>> >>> </beans> >>> >>> In the example the default SSLContext (Java 1.6 feature) is used. >>> >>> Gregor >>> >>> >>> >>> >>> 2008/8/4 Nicolas Chalon <n.c...@gm...> >>> >>>> Hi, >>>> >>>> First, I would like to thank you for this library that answers all my >>>> needs in a nice,easy and well designed way. >>>> Now, that said, I have a server configured in spring's >>>> application-context as described in your documentation. That's working >>>> perfectly, but now i would like to be able to use the SSL functionnalities. >>>> Is it possible (and do you have any example) to configure the server to >>>> use SSL only using beans defined in applicationContext ? >>>> >>>> Regards >>>> >>>> Nicolas >>>> >>>> >>>> >>>> ------------------------------------------------------------------------- >>>> This SF.Net email is sponsored by the Moblin Your Move Developer's >>>> challenge >>>> Build the coolest Linux based applications with Moblin SDK & win great >>>> prizes >>>> Grand prize is a trip for two to an Open Source event anywhere in the >>>> world >>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>> _______________________________________________ >>>> xSocket-develop mailing list >>>> xSo...@li... >>>> https://lists.sourceforge.net/lists/listinfo/xsocket-develop >>>> >>>> >>> >> >> >> -- >> Nicolas CHALON >> n.c...@gm... >> > > -- Nicolas CHALON n.c...@gm... |
|
From: Gregor R. <gre...@go...> - 2008-08-05 04:16:40
|
Hi Nicolas, you can write your on SSLContext factory. For example see the SSLTestContextFactory (http://xsocket.svn.sourceforge.net/viewvc/xsocket/xsocket/http/trunk/src/test/java/org/xsocket/connection/http/SSLTestContextFactory.java?view=markup<http://xsocket.svn.sourceforge.net/viewvc/xsocket/xsocket/http/trunk/src/test/java/org/xsocket/connection/http/SSLTestContextFactory.java?view=markup>), which is used by the test classes of xSocket. cheers Gregor 2008/8/4 Nicolas Chalon <n.c...@gm...> > Hi Gregor, > > Thank you very much but unfortunately, I should have told you that as I am > on macosx 10.4 i am restricted to JAVA 5 and that I don't have any > getDefault method. Do you have any ideas ? > > Thanks in advance > > Nicolas > > > On Mon, Aug 4, 2008 at 7:00 PM, Gregor Roth <gre...@go...>wrote: > >> Hi Nicolas, >> to run the server in SSL mode is quite simple. Just use another >> constructor. Please see the example. >> >> <?xml version="1.0" encoding="UTF-8"?> >> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi=" >> http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" >> http://www.springframework.org/schema/beans >> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"> >> >> <bean id="server" class="org.xsocket.connection.http.server.HttpServer" >> init-method="start" destroy-method="close" scope="singleton"> >> <constructor-arg type="int" value="0"/> >> <constructor-arg type="org.xsocket.connection.http.IHttpHandler" >> ref="handler"/> >> <constructor-arg type="javax.net.ssl.SSLContext" ref="sslContext"/> >> <constructor-arg type="boolean" value="true"/> >> </bean> >> >> <bean id="sslContext" class="javax.net.ssl.SSLContext" >> factory-method="getDefault"/> >> >> <bean id="handler" class="myHandler " scope="prototype"/> >> >> </beans> >> >> In the example the default SSLContext (Java 1.6 feature) is used. >> >> Gregor >> >> >> >> >> 2008/8/4 Nicolas Chalon <n.c...@gm...> >> >>> Hi, >>> >>> First, I would like to thank you for this library that answers all my >>> needs in a nice,easy and well designed way. >>> Now, that said, I have a server configured in spring's >>> application-context as described in your documentation. That's working >>> perfectly, but now i would like to be able to use the SSL functionnalities. >>> Is it possible (and do you have any example) to configure the server to >>> use SSL only using beans defined in applicationContext ? >>> >>> Regards >>> >>> Nicolas >>> >>> >>> ------------------------------------------------------------------------- >>> This SF.Net email is sponsored by the Moblin Your Move Developer's >>> challenge >>> Build the coolest Linux based applications with Moblin SDK & win great >>> prizes >>> Grand prize is a trip for two to an Open Source event anywhere in the >>> world >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>> _______________________________________________ >>> xSocket-develop mailing list >>> xSo...@li... >>> https://lists.sourceforge.net/lists/listinfo/xsocket-develop >>> >>> >> > > > -- > Nicolas CHALON > n.c...@gm... > |
|
From: Nicolas C. <n.c...@gm...> - 2008-08-04 20:41:27
|
Hi Gregor, Thank you very much but unfortunately, I should have told you that as I am on macosx 10.4 i am restricted to JAVA 5 and that I don't have any getDefault method. Do you have any ideas ? Thanks in advance Nicolas On Mon, Aug 4, 2008 at 7:00 PM, Gregor Roth <gre...@go...>wrote: > Hi Nicolas, > to run the server in SSL mode is quite simple. Just use another > constructor. Please see the example. > > <?xml version="1.0" encoding="UTF-8"?> > <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" > http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"> > > <bean id="server" class="org.xsocket.connection.http.server.HttpServer" > init-method="start" destroy-method="close" scope="singleton"> > <constructor-arg type="int" value="0"/> > <constructor-arg type="org.xsocket.connection.http.IHttpHandler" > ref="handler"/> > <constructor-arg type="javax.net.ssl.SSLContext" ref="sslContext"/> > <constructor-arg type="boolean" value="true"/> > </bean> > > <bean id="sslContext" class="javax.net.ssl.SSLContext" > factory-method="getDefault"/> > > <bean id="handler" class="myHandler " scope="prototype"/> > > </beans> > > In the example the default SSLContext (Java 1.6 feature) is used. > > Gregor > > > > > 2008/8/4 Nicolas Chalon <n.c...@gm...> > >> Hi, >> >> First, I would like to thank you for this library that answers all my >> needs in a nice,easy and well designed way. >> Now, that said, I have a server configured in spring's application-context >> as described in your documentation. That's working perfectly, but now i >> would like to be able to use the SSL functionnalities. >> Is it possible (and do you have any example) to configure the server to >> use SSL only using beans defined in applicationContext ? >> >> Regards >> >> Nicolas >> >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> xSocket-develop mailing list >> xSo...@li... >> https://lists.sourceforge.net/lists/listinfo/xsocket-develop >> >> > -- Nicolas CHALON n.c...@gm... |
|
From: Gregor R. <gre...@go...> - 2008-08-04 16:59:52
|
Hi Nicolas, to run the server in SSL mode is quite simple. Just use another constructor. Please see the example. <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"> <bean id="server" class="org.xsocket.connection.http.server.HttpServer" init-method="start" destroy-method="close" scope="singleton"> <constructor-arg type="int" value="0"/> <constructor-arg type="org.xsocket.connection.http.IHttpHandler" ref="handler"/> <constructor-arg type="javax.net.ssl.SSLContext" ref="sslContext"/> <constructor-arg type="boolean" value="true"/> </bean> <bean id="sslContext" class="javax.net.ssl.SSLContext" factory-method="getDefault"/> <bean id="handler" class="myHandler " scope="prototype"/> </beans> In the example the default SSLContext (Java 1.6 feature) is used. Gregor 2008/8/4 Nicolas Chalon <n.c...@gm...> > Hi, > > First, I would like to thank you for this library that answers all my needs > in a nice,easy and well designed way. > Now, that said, I have a server configured in spring's application-context > as described in your documentation. That's working perfectly, but now i > would like to be able to use the SSL functionnalities. > Is it possible (and do you have any example) to configure the server to use > SSL only using beans defined in applicationContext ? > > Regards > > Nicolas > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > xSocket-develop mailing list > xSo...@li... > https://lists.sourceforge.net/lists/listinfo/xsocket-develop > > |
|
From: Nicolas C. <n.c...@gm...> - 2008-08-04 07:34:50
|
Hi, First, I would like to thank you for this library that answers all my needs in a nice,easy and well designed way. Now, that said, I have a server configured in spring's application-context as described in your documentation. That's working perfectly, but now i would like to be able to use the SSL functionnalities. Is it possible (and do you have any example) to configure the server to use SSL only using beans defined in applicationContext ? Regards Nicolas |
|
From: Gregor R. <gre...@go...> - 2008-08-01 15:46:11
|
Hi Dragan, currently xSocket-http doesn't support getting the SSLSession. Please add a feature request for this Thanks Gregor 2008/7/31 Dragan Gajic <dg...@gm...> > Hi all, > > I'm using xSocket to write proxy which will use information from client SSL > certificate in order to forward to one of the possible target URLs. I have > used HttpProxy example from xsocketHttp V2_0_beta1 and added SSL support > using SSLContext. That all is working, but I'm having problems to get right > SSLSession object from SSLContext because I need id of the session in order > to do that (I need SSLSession object in order to reach client SSL > certificate). > So if I pass SSLContext reference to my ForwardHandler and do something > like > this: > > SSLSessionContext sslSessionContext = sslContext.getServerSessionContext(); > > I just need sessionId in order to get SSLSession object.This id can be > reached via SSLSocket for example, but I don't see how to get it. > > Is there any other way to get client SSL certificate in mutual SSL > authentication case? > > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > xSocket-develop mailing list > xSo...@li... > https://lists.sourceforge.net/lists/listinfo/xsocket-develop > |
|
From: <bb...@ke...> - 2008-07-31 16:10:11
|
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";
mso-ansi-language:EN-GB;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Courier New";
mso-fareast-font-family:"Times New Roman";
mso-ansi-language:EN-GB;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 77.95pt 72.0pt 77.95pt;
mso-header-margin:35.4pt;
mso-footer-margin:35.4pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
Greetings,
I came across the xSocket via this
article:
http://www.javaworld.com/javaworld/jw-03-2008/jw-03-asynchhttp.html?page=1
I have been working on a bayeux java
implementation (as a part of my masters dissertation) and I took a look at your
SVN repository where you have a bayeux implementation going. Would you say that
your bayeux implementation is fairly mature? I would like to get a nonblocking
java bayeux client working, how much work needs to be done on yours? Maybe I
can expand on it and implement what is left?
Why are all of the classes in
org.xsocket.bayeux.http defined as "final class.."? I'm not able to
instansiate any of those classes unless my class is in the same package. Is
that the idea?
Regards,
- Bjarki Bjorgulfsson
|