I want to make a live chat service for the website. Now, that i'm new to java
, to start with i tried to run a chat application that i got from the search link. http://www.cn-java.com/download/data/book/socket_chat.pdf
I'm using jdk 1.5_07 and an appletviewer to view my client applet
The application consists of chat server, server thread
,chatclient and a clientapplet that uses a server socket on server side to listen the requests from clients n a socket on client side to connect to serversocket n threads for each user.Its a multiclient chat application.
The chat server is working fine.
But the chat client is working fine if client and server r run on the same local machine.
The client is also running fine on one of the systems in the LAN.
For rest of the systems chat clients is generating the following error:
java.security.AccessControlException: access denied (java.net.SocketPermission 1
I feel this is some kinda security check automatically performed by the jdk 1.5 as a result of which my client socket cannot get the access to server ip address.To fix this error, i even tried applying policy on the server side..but still its not working.
I'm using jdk 1.5_07 and an appletviewer to view my client applet.
Can anybody please tel me what can be done to resolve this issue. Since I'm new to this java world n this being my first live application...any help would be appreciated.
Can u also tell me the best technology that can be used to make a live chat application on website.
Thanks in advance.