AJAX and JBoss Remoting are totally different animals, so very difficult to comare the
two. AJAX is all about adding dynamic interaction within a web browser using scripting
(i.e. update areas within a web page dynamically, which is often done via server calls
underneath, etc.) to a model that has traditionally been static (i.e. load page, send
request to server, re-load whole page).
Basically the only way to have JBoss Remoting running in a similar fashion would be to
have an applet running within a browser, but frankly seems silly to do this just to be
able to make client server invocations.
It would be possible to use JBoss Remoting with the http transport protocol on the server
side to handle http requests from any client (i.e. web browser) and
org.jboss.remoting.samples.http.WebInvocationHandler within the samples shows how to do
this. However, if doing anything complicated, probably best to use a full fledge web
container like Tomcat that handles web deployments (i.e. war files) so can do all the
standard web application configuration.
If wanting to just make simple http requests to a third party web server, can use JBoss
Remoting with the http transport for the client invocation. The
org.jboss.remoting.samples.http.SimpleClient class within the remoting samples illustrates
how to do this as well.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983108#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...