Closed glassfishrobot closed 14 years ago
@glassfishrobot Commented Reported by jfarcand@java.net
@glassfishrobot Commented jfarcand@java.net said: First, use GrizzlyAdapter instead of StaticResourceAdapter
Sending cometd/src/main/java/com/sun/grizzly/cometd/standalone/CometdAdapter.java Transmitting file data . Committed revision 1276.
@glassfishrobot Commented jfarcand@java.net said: OK added support to Servlet combined with the cometd-webserver. I've also added a demo here:
http://download.java.net/maven/2/com/sun/grizzly/samples/cometd-javaapiupdate-chat
You can try it by doing:
java -jar grizzly-cometd-webserver-1.8.1-SNAPSHOT.jar -p 8080 -a grizzly-cometd-bayeux.war com.sun.grizzly.bayeux.BayeuxExternalServlet
and then update the Bayeux Chat by sending the following request to the Servlet:
http://localhost:8080/BayeuxExternalServlet/?message=Salut,user=JFA
Fixed:
Sending trunk/modules/bundles/cometd/pom.xml Sending trunk/modules/bundles/cometd/src/main/java/com/sun/grizzly/standalone/cometd/Cometd.java Sending trunk/modules/bundles/http-servlet/src/main/java/com/sun/grizzly/standalone/servlet/ServletLauncher.java Transmitting file data ... Committed revision 1286.
@glassfishrobot Commented jfarcand@java.net said: Until an official release (1.8.1 ... later tonight), download the latest SNAPSHOT from here:
http://download.java.net/maven/2/com/sun/grizzly/grizzly-bundles/1.8.1-SNAPSHOT/
Uploading now...wait at lest 1 hour.
(latest timestamp)
@glassfishrobot Commented jfarcand@java.net said: Wrong link:
http://download.java.net/maven/2/com/sun/grizzly/grizzly-cometd-webserver/1.8.1-SNAPSHOT/
@glassfishrobot Commented Was assigned to grizzly-issues
@glassfishrobot Commented This issue was imported from java.net JIRA GRIZZLY-180
@glassfishrobot Commented Marked as fixed on Wednesday, December 16th 2009, 6:13:23 pm
See:
http://www.nabble.com/newbie-help%3A-read-from-console%2C-send-to-browser-td18229898.html
Mainly. we should be able to execute a Servlet in parallel with the Cometd/Bayeux implementation using the OSGi bundle. Something like:
% java -jar grizzly-cometd-webserver.jar -p 8080 -a MyBayeuxApplication.war com.my.bayeux.Servlet
Environment
Operating System: All Platform: All
Affected Versions
[1.8.1]