[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [xmlblaster] Excellent work! But I have a question :-)



chris lau wrote:
I've decided to try using the http javascript method to communicate with the server (like in the
systeminfo dhtml example). Basically, I will have a C# form which has a mshtml webcontrol item
which contains the javascript logic to communicate with the server. Then when messages are passed
from the server to the webcontrol, the control will notify the C# application.

By doing this, I can avoid writing an additional code on the server side as the javascript
communicates with the existing servlets provided by xmlBlaster.

I've looked at the applet javadocs and I was wondering if it is possible to do asyncronous
callbacks using different languages like C# and Java?
This should be possible,

"The servlet doesn't leave the doGet() method after an invocation of actionType "connect"
keeping a permanent http connection."


so i believe any client opening a http request can receive further updates with the kept alive
http socket connection, see on server side
xmlBlaster/src/java/org/xmlBlaster/protocol/http/appletproxy/PushHandler.java


On client side see
xmlBlaster/src/java/org/xmlBlaster/client/protocol/http/common/PersistentRequest.java
this is the code you need to re-implement in another language.


regards
Marcel
Thanks.

--- Cyrille Giquello <cyrille at giquello.com> wrote:

chris lau wrote:

Yes, I agree that the demo would work this way, but for security reasons, the computer that is
hosting the xmlBlaster server is not exposed to the Internet. In fact, the only computer
exposed
to the Internet is the webserver. The reason I like the java applet and java servlet example is
that the java applet does not talk directly with the xmlBlaster server, but through the
servlets.


Hi Chris,

what do you think about a proxy that will transmit the xml flow ? Perhaps softwares like Apache or Squid can proxying xml-rpc ... I did not try that.

I was wondering if the C# demo could be configured to talk to the servlets or changed in some
way
to do this. I think this would be a great advantage to the xmlBlaster development because then
the
servlets would be able to talk to clients that are written in different languages. Although I
would like to help, my programming expertise in Java, C#, and C++ is limited and just looking
at
the source for xmlBlasterAppletLib.jar makes my head hurt :-0

I'm looking forward to the c# applet! :-)


Sorry, but I won't do a demo like that. I don't know how to talk to the servlet ... Perhaps in some weeks, if I can find some time, I will have a look on it, but it is not really shure ... sorry ;o{

For da moment my focus is on :
- well understanding fine tune of QoS possibilities.
- C# and Flash with xml-rpc
- after I'll have a look at the SOCKET protocol to implement it with C#
- Then trying to make callback possible for Falsh applet. Perhaps a new protocol plugin, if I could not plug Flash to the SOCKET protocol.


Some, enough job ;o)


Have a nice and happy christmas !!!

bye Chris,
Cyrille.








__________________________________________________________ Find your next car at http://autos.yahoo.ca