Homepage chat is it possible with Java Applet...

J

JariTapio

Hei!

Like the subject says Homepage chat is it possible
with Java Applet ???

If it is and subject is familiar to you please reply...

Your eternal friend in case of helpin...

JariTapio/Helsinki/14may2005
www.EuroJari.com
 
A

al912912

JariTapio said:
Hei!

Like the subject says Homepage chat is it possible
with Java Applet ???

If it is and subject is familiar to you please reply...

Your eternal friend in case of helpin...

If you put your Java server in the same IP as your homepage, and make
your chat in a way that it only communicates to that server (no P2P),
maybe by pipelining messages, it is. AFAIK, an applet can just open
sockets to the IP where it was downloaded from.

This is the way the mayor chatting apps are implemented anyway. Except
for direct file tranfers, video boadcasting, and other stuff. If you
just want a simple text based chat, then there's no problem; if you
want file tranfers, then your bandwith may suffer a bit.
(Alternatively, the speed of the file tranfer may be th one to suffer.)

JavaScript can be used also.

Jorge Guzman
 
D

Dag Sunde

al912912 said:
If you put your Java server in the same IP as your homepage, and make
your chat in a way that it only communicates to that server (no P2P),
maybe by pipelining messages, it is. AFAIK, an applet can just open
sockets to the IP where it was downloaded from.

This is the way the mayor chatting apps are implemented anyway. Except
for direct file tranfers, video boadcasting, and other stuff. If you
just want a simple text based chat, then there's no problem; if you
want file tranfers, then your bandwith may suffer a bit.
(Alternatively, the speed of the file tranfer may be th one to suffer.)

JavaScript can be used also.

Jorge is correct here, but I just wanted to mention that a P2P chat
*should* be possible *if* you sign your applet. Then it can be allowed
to "step out of its sandbox" and communicate cross-domain.
 
J

JariTapio

If you
just want a simple text based chat, then there's no >problem;

well, web is full of half docs and almost complete docs
mayby i save some time from myself for askin you do
you still remembe where you learned your Java net
programmin commands...

Would love to see some commands and examples for
text chattin and file readin&writing...

Yours:
JariTapio/Helsinki/14may2005
www.EuroJari.com
 
B

ByteCoder

well, web is full of half docs and almost complete docs
mayby i save some time from myself for askin you do
you still remembe where you learned your Java net
programmin commands...

Would love to see some commands and examples for
text chattin and file readin&writing...

You could have a look here:
http://www.jxta.org/
 
A

Amit Chatterjee

JariTapio said:
Hei!

Like the subject says Homepage chat is it possible
with Java Applet ???

If it is and subject is familiar to you please reply...

Your eternal friend in case of helpin...

JariTapio/Helsinki/14may2005
www.EuroJari.com

Yes. I am actually working on one such open source project. You can find
more information about it from http://www.quik-j.com/ace_operator.htm .

Basically, the way we are doing it is that, there is a server running
the chat server application and there is a chat applet that communicates
with the server using TCP/IP sockets. The applet's docbase is your web
page (or home page) and the codebase is the server address where the
chat server is running. Of course the codebase and docbase could be the
same. All of this is possible with ordinary sandbox applets. In fact, if
you write it properly, it can work even with very old JVMs that come
with the IE browser.

For file transfers from client to the server, things get more
complicated - you need to run the applet out of the sandbox. You can do
it by using signed applets and java security features. You will need
the Java plugin for this.

--
**********************************************************
* Amit Chatterjee amit.chatterjee AT quik-j DOT com *
* http://www.quik-computing.com *
* QUIK Computing - Home of the Open Source Contact Center*
**********************************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,563
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top