Servlet chat app with ajax

Hi
First of all I don't have much experience on servlets.
This is what I'm trying to accomplish, a simple chat app on the website.
I know a little bit of java networking, so my idea was to write a server on the side and connect it with the servlet so I can manage incoming messages and broadcast them to other users.
What is the cleanest and best way to achieve this? Is my idea wrong?
Thanks in advance.

Chat apps don't really lean themselves towards http technology.
That is because HTTP is a request/response model. - a PULL , not a PUSH.
With messaging, when you receive a message from someone, you want to send it out to all the interested parties. Unfortunately you don't know who or where they are, so you have to wait until one of them comes to you and asks "are there any messages for me?"
You might want to check out pushlets as a way of using HTTP technology in a push manner, but for the most part I would say you are dealing with innapropriate technology. An applet/activex control would be more in line with this.
Just my 2 cents,
evnafets

Similar Messages

  • How to develop a Facebook Chat app with Facebook Chat API

    My requirement is to develop a Facebook chat app which is like FB Messenger.So how can i do that is it possible to do that ?
    Dileepa S. Rajapaksa
    Trainee Developer
    Microsoft, Sri Lanka
    Twitter : @dsrajapaksa
    Blog : http://www.dileepatech.net

    sure you can. You need to use their api:
    https://developers.facebook.com/docs/graph-api/reference/v2.2/message
    any specific questions? not sure what you looking for
    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

  • Chat App with Adobe Air?

    Hi,
    I am plan to develope a text chat application with adobe air.
    Do you think if it is possible? and generail steps I have to
    take to finish it.
    Which technology I have to learn.
    Thanks
    Mark

    Hi,
    This is indeed possible with AIR. There's even an as3 library
    to handle the jabber protocol (XMPP).
    More info @
    http://www.mikechambers.com/blog/2008/08/14/connecting-to-an-xmpp-jabber-server-with-the-x iff-as3-library/

  • HT5824 how do i restore the touch chat app with my vocab page on it

    How do you restore my touch chat with the vobab i created?

    Go to settings, down to accounts, click Google, click your email, then click to the top right and remove the account. then add in your new gmail.

  • Java app with web service and servlets

    Hi. I intend to make a java application which exposes some methods as a web service and as jsp/servlets. It's core functionality is not really web centric, but its more a java app with a web tier. I am not sure about how the architecture of such a system would look like using the java platform. I currently see three options:
    1. Run everything in a servlet container like tomcat. I hesitate to do this because i would be putting a lot of functionality which isn't about the web into a servlet container. Also, I have a lot of application scope data that is maintained and shared by all servlets/web services. However, it would be really easy just to put everything into tomcat and use ServletContext to maintain some global objects.
    2. Use a Java EE to seperate application/business logic and data access into session beans and entity beans. I hesitate to this because it seem a bit overkill because the system isn't very big or complex right now. It also means that I would have to learn to use EJB's instead of just using some POJOs.
    3. Run the web tier in a servlet container and the main app in a separate JVM, and then connect the tier by sending serialized objects over TCP sockets. I don't like writing network code but at least there is some separation of the tiers.
    What would you do? Maybe I have overlooked a much better solution to the problem?
    Let me just say that the system is the product of a student project spanning one semester, so it's important to choose the RIGHT solution (architectural-wise) instead of the something quick and dirty that is hard to defend.

    jschell wrote:
    Run everything in a servlet container like tomcatTomcat is a JEE container.Now I am confused. Maybe you mean Glassfish? Tomcat is definitely a web container(?).
    Let me just say that the system is the product of a student project spanning one semester, so it's important to choose the RIGHT solution (architectural-wise) That pretty much makes it impossible then.
    1. A "Right" solution is generally only proven by time.
    2. It requires a great deal of knowledge about the business domain.Yeah, you are right. Let be try to rephrase it. What solution (pattern) would be considered the most common or appropriate when you have a Java App and want to expose a few methods as a website and web service?
    I hesitate to do this because i would be putting a lot of functionality which isn't about the web into a servlet container. Also, I have a lot of application scope data that is maintained and shared by all servlets/web servicesHuh? Do you already have an exposed web service? If you already have a server which other clients communicate then where does this functionality that you don't want to be tomcat running now? Or where do you think that you want to run it? And if you are or do run it somewhere else then tomcat could access it the same way any other client accesses that server.Sorry, that sentence was written badly. I don't have anything right now. What I meant to write was that I will have a lot of application scope data, objects that are kept in memory as long as the server is running, shared by multiple servlet instances.

  • New To Iplanet app server.Can some one help me getting started by delpoying and calling one of each of these:JSP,Servlet,EJB.Tried with iplanet docs..didnt quite get it. thanx

     

    Hi,
    What is that you are trying to accomplish ? Is it deployment or
    trying to develop applications ? Are you getting any errors ? If so,
    please post them to help you. I think the documentation is the best place
    for you to begin with.
    Regards & Happy New Year
    Raj
    Arif Khan wrote:
    New To Iplanet app server.Can some one help me getting started by
    delpoying and calling one of each of these:JSP,Servlet,EJB.Tried with
    iplanet docs..didnt quite get it. thanx
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • A video chat app. compatible with windows?

    Does anyone know of a video chat app compatible with windows?

    Trillian
    The PC application "Trillian" can be used on the PC for audio & video chat with iChat AV.
    iFelix

  • Using jFreeCharts with JSP-Servlet Web App

    Can someone please help me to get started on using the jFreeCharts in mt JSP Servlet we app? So far I have this in my servlet but I do not know what to do from here.
    protected void doPost(HttpServletRequest arg0, HttpServletResponse arg1) throws ServletException, IOException {
    //          create a dataset...
              double[][] data = new double[][] {
              { 1.0, 4.0, 3.0, 5.0, 5.0, 7.0, 7.0, 8.0 },
              { 5.0, 7.0, 6.0, 8.0, 4.0, 4.0, 2.0, 1.0 },
              { 4.0, 3.0, 2.0, 3.0, 6.0, 3.0, 4.0, 3.0 }
              //DefaultCategoryDataset dataset = new DefaultCategoryDataset(data);
              //return DatasetUtilities.createCategoryDataset("Series ", "Factor ", data);
              CategoryDataset dataset = DatasetUtilities.createCategoryDataset("Series ", "Factor ", data);
              JFreeChart chart = ChartFactory.createBarChart(
         "Bar Chart Demo 2", // chart title
         "Category", // domain axis label
         "Score (%)", // range axis label
         dataset, // data
         PlotOrientation.HORIZONTAL, // orientation
         true, // include legend
         true,
         false
         }

    the JFreeChart documentation has examples doing just that.
    And if you don't know how to get a browser to call some resource from some html you should get a beginner's tutorial to html.

  • How to create a chat app in flex

    I don't really know how chat apps work... how can you connect
    two computers directly?
    Or is it that chat messages are stored and retrieved from
    database?

    Check out this link:
    http://coenraets.org/blog/2006/10/building-collaborative-applications-with-flex-data-servi ces-and-flash-media-server/
    Tracy

  • Looking for a chat app to use offline in the same network

    Hi
    I want an offline app for my customers to download and use in our wireless network.
    This app shouldn't go online.
    Simply customers device will choose a nickname.
    With this nickname he/she will be chatting with people in same network.
    Preferably it will be a simple chatroom for everyone.
    There are so many chat apps. All talking to world. I want it just inside the hotel complex.
    Probably there should be a server side of this app (guessing)
    All your help is much appreciated.
    You might just let me know a paid, chat server, customisable, running on both android or ios.
    Probably a browser adress will be given to customers, than they log in and chat from there?

    Flex has a history manager (Flex 2) and deep linking feature
    (Flex 3).
    For more information see
    http://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions:_Deep_Linking
    and
    http://livedocs.adobe.com/flex/3/html/deep_linking_1.html
    Peter

  • IChat was working... now it's not??! (Chat ended with error -8)

    I've been able to chat with my friend for a long time with no problems, but the other day iChat suddenly stopped working. The only event that I can think of that happened before iChat stopped working was that my weakish wireless connection to my router downstairs gave out, and I got disconnected for a moment. She has a Linksys WRT54G and I have a DI-624. Just to make sure we reset her router, made sure UPnP was enabled and put on all the proper port triggerings, but it still didn't work. Before I didn't need to do anything to my router to get it to work, but since nothing else was working, I added the port triggers to my router as well but it still hasn't worked. Also of course, all the proper ports are opened in our firewalls.
    I just find it very strange that It would be working fine, and then suddenly stop working. Here is all the data from the error.
    Date/Time: 2006-09-02 16:11:28.802 -0700
    OS Version: 10.4.7 (Build 8J135)
    Report Version: 4
    iChat Connection Log:
    AVChat started with ID 857404630.
    acca68hc113: State change from AVChatNoState to AVChatStateWaiting.
    0x6020b10: State change from AVChatNoState to AVChatStateInvited.
    0x6020b10: State change from AVChatStateInvited to AVChatStateConnecting.
    acca68hc113: State change from AVChatStateWaiting to AVChatStateConnecting.
    acca68hc113: State change from AVChatStateConnecting to AVChatStateEnded.
    Chat ended with error -8
    0x6020b10: State change from AVChatStateConnecting to AVChatStateEnded.
    Chat ended with error -8
    Video Conference Error Report:
    4.007369 @:0 type=4 (00000000/36)
    [VCSIP_INVITEERROR]
    [19]
    4.007235 @SIP/SIP.c:2437 type=4 (900A0015/36)
    [SIPConnectIPPort failed]
    2.005085 @SIP/SIP.c:2437 type=4 (900A0015/36)
    [SIPConnectIPPort failed]
    Video Conference Support Report:
    3.506761 @SIP/Transport.c:1218 type=1 (00000000/0)
    [INVITE sip:[email protected]:5061 SIP/2.0
    Via: SIP/2.0/UDP 192.168.0.100;branch=z9hG4bK7cba7f466f04e151
    Max-Forwards: 70
    To: "u0" <sip:[email protected]:5061>
    From: "acca68hc113" <sip:[email protected]>;tag=1660987668
    Call-ID: 51956366-3ad8-11db-8586-89f307b413c4@lip
    CSeq: 1 INVITE
    Contact: <sip:[email protected]>;isfocus
    User-Agent: Viceroy 1.2
    Content-Type: application/sdp
    Content-Length: 504
    v=0
    o=tavis 0 0 IN IP4 192.168.0.100
    s=acca68hc113
    c=IN IP4 192.168.0.100
    b=AS:2147483647
    t=0 0
    a=hwi:34:2:999
    a=bandwidthDetection:YES
    a=iChatEncryption:NO
    m=audio 16386 RTP/AVP 12 3 0
    a=rtcp:16387
    a=rtpmap:3 GSM/8000
    a=rtpmap:0 PCMU/8000
    a=rtpID:-1834565503
    m=video 16384 RTP/AVP 126 34
    a=rtcp:16385
    a=rtpmap:126 X-H264
    a=fmtp:34 imagesize 1 rules 30:352:288
    a=framerate:15
    a=RTCP:AUDIO 16387 VIDEO 16385
    a=pogo
    a=fmtp:126 imagesize 0 rules 15:160:120:160:120
    a=rtpID:-512752917
    2.506287 @SIP/Transport.c:1218 type=1 (00000000/0)
    [INVITE sip:[email protected]:5061 SIP/2.0
    Via: SIP/2.0/UDP 192.168.0.100;branch=z9hG4bK7cba7f466f04e151
    Max-Forwards: 70
    To: "u0" <sip:[email protected]:5061>
    From: "acca68hc113" <sip:[email protected]>;tag=1660987668
    Call-ID: 51956366-3ad8-11db-8586-89f307b413c4@lip
    CSeq: 1 INVITE
    Contact: <sip:[email protected]>;isfocus
    User-Agent: Viceroy 1.2
    Content-Type: application/sdp
    Content-Length: 504
    v=0
    o=tavis 0 0 IN IP4 192.168.0.100
    s=acca68hc113
    c=IN IP4 192.168.0.100
    b=AS:2147483647
    t=0 0
    a=hwi:34:2:999
    a=bandwidthDetection:YES
    a=iChatEncryption:NO
    m=audio 16386 RTP/AVP 12 3 0
    a=rtcp:16387
    a=rtpmap:3 GSM/8000
    a=rtpmap:0 PCMU/8000
    a=rtpID:-1834565503
    m=video 16384 RTP/AVP 126 34
    a=rtcp:16385
    a=rtpmap:126 X-H264
    a=fmtp:34 imagesize 1 rules 30:352:288
    a=framerate:15
    a=RTCP:AUDIO 16387 VIDEO 16385
    a=pogo
    a=fmtp:126 imagesize 0 rules 15:160:120:160:120
    a=rtpID:-512752917
    2.005817 @SIP/Transport.c:1218 type=1 (00000000/0)
    [INVITE sip:[email protected]:5061 SIP/2.0
    Via: SIP/2.0/UDP 192.168.0.100;branch=z9hG4bK7cba7f466f04e151
    Max-Forwards: 70
    To: "u0" <sip:[email protected]:5061>
    From: "acca68hc113" <sip:[email protected]>;tag=1660987668
    Call-ID: 51956366-3ad8-11db-8586-89f307b413c4@lip
    CSeq: 1 INVITE
    Contact: <sip:[email protected]>;isfocus
    User-Agent: Viceroy 1.2
    Content-Type: application/sdp
    Content-Length: 504
    v=0
    o=tavis 0 0 IN IP4 192.168.0.100
    s=acca68hc113
    c=IN IP4 192.168.0.100
    b=AS:2147483647
    t=0 0
    a=hwi:34:2:999
    a=bandwidthDetection:YES
    a=iChatEncryption:NO
    m=audio 16386 RTP/AVP 12 3 0
    a=rtcp:16387
    a=rtpmap:3 GSM/8000
    a=rtpmap:0 PCMU/8000
    a=rtpID:-1834565503
    m=video 16384 RTP/AVP 126 34
    a=rtcp:16385
    a=rtpmap:126 X-H264
    a=fmtp:34 imagesize 1 rules 30:352:288
    a=framerate:15
    a=RTCP:AUDIO 16387 VIDEO 16385
    a=pogo
    a=fmtp:126 imagesize 0 rules 15:160:120:160:120
    a=rtpID:-512752917
    1.505616 @SIP/Transport.c:1218 type=1 (00000000/0)
    [INVITE sip:[email protected]:1315 SIP/2.0
    Via: SIP/2.0/UDP m.0;branch=z9hG4bK65628f611682a090
    Max-Forwards: 70
    To: "u0" <sip:[email protected]:1315>
    From: "acca68hc113" <sip:[email protected]>;tag=1853291091
    Call-ID: 5063fdf4-3ad8-11db-8586-9c3ad6f913c4@lip
    CSeq: 1 INVITE
    Contact: <sip:[email protected]>;isfocus
    User-Agent: Viceroy 1.2
    Content-Type: application/sdp
    Content-Length: 504
    v=0
    o=tavis 0 0 IN IP4 m.0
    s=acca68hc113
    c=IN IP4 m.0
    b=AS:2147483647
    t=0 0
    a=hwi:34:2:999
    a=bandwidthDetection:YES
    a=iChatEncryption:NO
    m=audio 16386 RTP/AVP 12 3 0
    a=rtcp:16387
    a=rtpmap:3 GSM/8000
    a=rtpmap:0 PCMU/8000
    a=rtpID:-1834565503
    m=video 16384 RTP/AVP 126 34
    a=rtcp:16385
    a=rtpmap:126 X-H264
    a=fmtp:34 imagesize 1 rules 30:352:288
    a=framerate:15
    a=RTCP:AUDIO 16387 VIDEO 16385
    a=pogo
    a=fmtp:126 imagesize 0 rules 15:160:120:160:120
    a=rtpID:-512752917
    0.505041 @SIP/Transport.c:1218 type=1 (00000000/0)
    [INVITE sip:[email protected]:1315 SIP/2.0
    Via: SIP/2.0/UDP m.0;branch=z9hG4bK65628f611682a090
    Max-Forwards: 70
    To: "u0" <sip:[email protected]:1315>
    From: "acca68hc113" <sip:[email protected]>;tag=1853291091
    Call-ID: 5063fdf4-3ad8-11db-8586-9c3ad6f913c4@lip
    CSeq: 1 INVITE
    Contact: <sip:[email protected]>;isfocus
    User-Agent: Viceroy 1.2
    Content-Type: application/sdp
    Content-Length: 504
    v=0
    o=tavis 0 0 IN IP4 m.0
    s=acca68hc113
    c=IN IP4 m.0
    b=AS:2147483647
    t=0 0
    a=hwi:34:2:999
    a=bandwidthDetection:YES
    a=iChatEncryption:NO
    m=audio 16386 RTP/AVP 12 3 0
    a=rtcp:16387
    a=rtpmap:3 GSM/8000
    a=rtpmap:0 PCMU/8000
    a=rtpID:-1834565503
    m=video 16384 RTP/AVP 126 34
    a=rtcp:16385
    a=rtpmap:126 X-H264
    a=fmtp:34 imagesize 1 rules 30:352:288
    a=framerate:15
    a=RTCP:AUDIO 16387 VIDEO 16385
    a=pogo
    a=fmtp:126 imagesize 0 rules 15:160:120:160:120
    a=rtpID:-512752917
    0.004505 @SIP/Transport.c:1218 type=1 (00000000/0)
    [INVITE sip:[email protected]:1315 SIP/2.0
    Via: SIP/2.0/UDP m.0;branch=z9hG4bK65628f611682a090
    Max-Forwards: 70
    To: "u0" <sip:[email protected]:1315>
    From: "acca68hc113" <sip:[email protected]>;tag=1853291091
    Call-ID: 5063fdf4-3ad8-11db-8586-9c3ad6f913c4@lip
    CSeq: 1 INVITE
    Contact: <sip:[email protected]>;isfocus
    User-Agent: Viceroy 1.2
    Content-Type: application/sdp
    Content-Length: 504
    v=0
    o=tavis 0 0 IN IP4 m.0
    s=acca68hc113
    c=IN IP4 m.0
    b=AS:2147483647
    t=0 0
    a=hwi:34:2:999
    a=bandwidthDetection:YES
    a=iChatEncryption:NO
    m=audio 16386 RTP/AVP 12 3 0
    a=rtcp:16387
    a=rtpmap:3 GSM/8000
    a=rtpmap:0 PCMU/8000
    a=rtpID:-1834565503
    m=video 16384 RTP/AVP 126 34
    a=rtcp:16385
    a=rtpmap:126 X-H264
    a=fmtp:34 imagesize 1 rules 30:352:288
    a=framerate:15
    a=RTCP:AUDIO 16387 VIDEO 16385
    a=pogo
    a=fmtp:126 imagesize 0 rules 15:160:120:160:120
    a=rtpID:-512752917
    0.000000 @:0 type=2 (00000000/36)
    [VCVIDEO_OUTGOINGATTEMPT]
    [4]
    Video Conference User Report:
    Binary Images Description for "iChat":
    0x1000 - 0x170fff com.apple.iChat 3.1.5 (436) /Applications/iChat.app/Contents/MacOS/iChat
    0x5c4000 - 0x5cbfff com.unsanity.smartcrashreports ??? (1.0.2) /Users/tavis/Library/InputManagers/Smart Crash Reports/Smart Crash Reports.bundle/Contents/MacOS/Smart Crash Reports
    0x1683000 - 0x168dfff com.apple.IOFWDVComponents 1.7.9 /System/Library/Components/IOFWDVComponents.component/Contents/MacOS/IOFWDVComp onents
    0x1695000 - 0x16c6fff com.apple.QuickTimeIIDCDigitizer 7.1.2 /System/Library/QuickTime/QuickTimeIIDCDigitizer.component/Contents/MacOS/Quick TimeIIDCDigitizer
    0x16d0000 - 0x16e9fff com.apple.opengl 1.4.7 /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLDriver.bundl e/GLDriver
    0x16ef000 - 0x170afff com.apple.opengl 1.4.7 /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLRendererFloa t.bundle/GLRendererFloat
    0x1786000 - 0x17cffff com.apple.QuickTimeUSBVDCDigitizer 1.4.0 /System/Library/QuickTime/QuickTimeUSBVDCDigitizer.component/Contents/MacOS/Qui ckTimeUSBVDCDigitizer
    0x3b17000 - 0x3c78fff com.elgato.mpegsupport EyeTV MPEG Support 1.0.2 (build 28) (1.0.2) /Library/QuickTime/EyeTV MPEG Support.component/Contents/MacOS/EyeTV MPEG Support
    0x3ce8000 - 0x3df7fff com.apple.opengl 1.4.7 /System/Library/Frameworks/OpenGL.framework/Resources/GLEngine.bundle/GLEngine
    0x3e26000 - 0x407dfff com.apple.ATIRadeon8500GLDriver 1.4.18 (4.1.8) /System/Library/Extensions/ATIRadeon8500GLDriver.bundle/Contents/MacOS/ATIRadeo n8500GLDriver
    0x40de000 - 0x4107fff com.apple.iSightAudio 7.1.2 /Library/Audio/Plug-Ins/HAL/iSightAudio.plugin/Contents/MacOS/iSightAudio
    0x411f000 - 0x4132fff com.apple.audio.AudioIPCPlugIn 1.0.0 (1.0) /System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugI n.bundle/Contents/MacOS/AudioIPCPlugIn
    0x41ed000 - 0x41eefff com.apple.aoa.halplugin 2.5.6 (2.5.6b5) /System/Library/Extensions/IOAudioFamily.kext/Contents/PlugIns/AOAHALPlugin.bun dle/Contents/MacOS/AOAHALPlugin
    0x4219000 - 0x421dfff com.apple.iokit.IOQTComponents 1.4 /System/Library/Components/IOQTComponents.component/Contents/MacOS/IOQTComponen ts
    0x43a2000 - 0x43dbfff com.apple.audio.SoundManager.Components 3.9.1 /System/Library/Components/SoundManagerComponents.component/Contents/MacOS/Soun dManagerComponents
    0x8fd50000 - 0x8fd8dfff com.apple.QuickTimeFireWireDV.component 7.1.2 /System/Library/QuickTime/QuickTimeFireWireDV.component/Contents/MacOS/QuickTim eFireWireDV
    0x8fe00000 - 0x8fe52fff dyld /usr/lib/dyld
    0x90000000 - 0x901bbfff libSystem.B.dylib /usr/lib/libSystem.B.dylib
    0x90213000 - 0x90218fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib
    0x9021a000 - 0x90267fff com.apple.CoreText 1.0.2 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreText.framework/Versions/A/CoreText
    0x90292000 - 0x90343fff com.apple.ApplicationServices.ATS 1.9.3 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/ATS
    0x90372000 - 0x9072cfff com.apple.CoreGraphics 1.258.33 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/CoreGraphics
    0x907b9000 - 0x90892fff com.apple.CoreFoundation 6.4.6 (368.27) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x908db000 - 0x908dbfff com.apple.CoreServices 10.4 (???) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x908dd000 - 0x909dffff libicucore.A.dylib /usr/lib/libicucore.A.dylib
    0x90a39000 - 0x90abdfff libobjc.A.dylib /usr/lib/libobjc.A.dylib
    0x90ae7000 - 0x90b57fff com.apple.framework.IOKit 1.4 (???) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x90b6d000 - 0x90b7ffff libauto.dylib /usr/lib/libauto.dylib
    0x90b86000 - 0x90e5dfff com.apple.CoreServices.CarbonCore 681.4 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonC ore.framework/Versions/A/CarbonCore
    0x90ec3000 - 0x90f43fff com.apple.CoreServices.OSServices 4.1 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServi ces.framework/Versions/A/OSServices
    0x90f8d000 - 0x90fcefff com.apple.CFNetwork 129.16 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwo rk.framework/Versions/A/CFNetwork
    0x90fe3000 - 0x90ffbfff com.apple.WebServices 1.1.2 (1.1.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServ icesCore.framework/Versions/A/WebServicesCore
    0x9100b000 - 0x9108cfff com.apple.SearchKit 1.0.5 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchK it.framework/Versions/A/SearchKit
    0x910d2000 - 0x910fcfff com.apple.Metadata 10.4.4 (121.36) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Metadata
    0x9110d000 - 0x9111bfff libz.1.dylib /usr/lib/libz.1.dylib
    0x9111e000 - 0x912d8fff com.apple.security 4.4 (27566) /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x913d6000 - 0x913dffff com.apple.DiskArbitration 2.1 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x913e6000 - 0x9140efff com.apple.SystemConfiguration 1.8.3 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfi guration
    0x91421000 - 0x9142cfff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib
    0x91431000 - 0x91439fff libbsm.dylib /usr/lib/libbsm.dylib
    0x9143d000 - 0x914b8fff com.apple.audio.CoreAudio 3.0.4 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
    0x914f5000 - 0x914f5fff com.apple.ApplicationServices 10.4 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Application Services
    0x914f7000 - 0x9152ffff com.apple.AE 1.5 (297) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ AE.framework/Versions/A/AE
    0x9154a000 - 0x91617fff com.apple.ColorSync 4.4.4 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ColorSync.framework/Versions/A/ColorSync
    0x9166c000 - 0x916fdfff com.apple.print.framework.PrintCore 4.6 (177.13) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ PrintCore.framework/Versions/A/PrintCore
    0x91744000 - 0x917fbfff com.apple.QD 3.10.20 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ QD.framework/Versions/A/QD
    0x91838000 - 0x91896fff com.apple.HIServices 1.5.3 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ HIServices.framework/Versions/A/HIServices
    0x918c5000 - 0x918e9fff com.apple.LangAnalysis 1.6.1 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LangAnalysis.framework/Versions/A/LangAnalysis
    0x918fd000 - 0x91922fff com.apple.FindByContent 1.5 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ FindByContent.framework/Versions/A/FindByContent
    0x91935000 - 0x91977fff com.apple.LaunchServices 181 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LaunchServices.framework/Versions/A/LaunchServices
    0x91993000 - 0x919a7fff com.apple.speech.synthesis.framework 3.3 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ SpeechSynthesis.framework/Versions/A/SpeechSynthesis
    0x919b5000 - 0x919f5fff com.apple.ImageIO.framework 1.4.8 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/ImageIO
    0x91a0b000 - 0x91ad3fff libcrypto.0.9.7.dylib /usr/lib/libcrypto.0.9.7.dylib
    0x91b21000 - 0x91b36fff libcups.2.dylib /usr/lib/libcups.2.dylib
    0x91b3b000 - 0x91b58fff com.apple.ImageIO.framework 1.4.8 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libJPEG.dylib
    0x91b5d000 - 0x91bccfff com.apple.ImageIO.framework 1.4.8 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libJP2.dylib
    0x91be3000 - 0x91be7fff com.apple.ImageIO.framework 1.4.8 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libGIF.dylib
    0x91be9000 - 0x91c31fff com.apple.ImageIO.framework 1.4.8 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libRaw.dylib
    0x91c36000 - 0x91c73fff com.apple.ImageIO.framework 1.4.8 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libTIFF.dylib
    0x91c7a000 - 0x91c93fff com.apple.ImageIO.framework 1.4.8 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libPng.dylib
    0x91c98000 - 0x91c9bfff com.apple.ImageIO.framework 1.4.8 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libRadiance.dylib
    0x91c9d000 - 0x91c9dfff com.apple.Accelerate 1.2.2 (Accelerate 1.2.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
    0x91c9f000 - 0x91d84fff com.apple.vImage 2.4 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.fr amework/Versions/A/vImage
    0x91d8c000 - 0x91dabfff com.apple.Accelerate.vecLib 3.2.2 (vecLib 3.2.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/vecLib
    0x91e17000 - 0x91e85fff com.apple.Accelerate.vecLib 3.2.2 (vecLib 3.2.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvMisc.dylib
    0x91e90000 - 0x91f25fff com.apple.Accelerate.vecLib 3.2.2 (vecLib 3.2.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvDSP.dylib
    0x91f3f000 - 0x924c7fff com.apple.Accelerate.vecLib 3.2.2 (vecLib 3.2.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libBLAS.dylib
    0x924fa000 - 0x92825fff com.apple.Accelerate.vecLib 3.2.2 (vecLib 3.2.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libLAPACK.dylib
    0x92855000 - 0x928ddfff com.apple.DesktopServices 1.3.4 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/Desk topServicesPriv
    0x9291e000 - 0x92b49fff com.apple.Foundation 6.4.6 (567.27) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x92c67000 - 0x92d45fff libxml2.2.dylib /usr/lib/libxml2.2.dylib
    0x92d65000 - 0x92e53fff libiconv.2.dylib /usr/lib/libiconv.2.dylib
    0x92e65000 - 0x92e83fff com.apple.opengl 1.4.7 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
    0x92e8e000 - 0x92ee8fff com.apple.opengl 1.4.7 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
    0x92f06000 - 0x92f06fff com.apple.Carbon 10.4 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
    0x92f08000 - 0x92f1cfff com.apple.ImageCapture 3.0 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture. framework/Versions/A/ImageCapture
    0x92f34000 - 0x92f44fff com.apple.speech.recognition.framework 3.4 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecogni tion.framework/Versions/A/SpeechRecognition
    0x92f50000 - 0x92f65fff com.apple.securityhi 2.0 (203) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.fr amework/Versions/A/SecurityHI
    0x92f77000 - 0x92ffefff com.apple.ink.framework 101.2 (69) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework /Versions/A/Ink
    0x93012000 - 0x9301dfff com.apple.help 1.0.3 (32) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framewor k/Versions/A/Help
    0x93027000 - 0x93054fff com.apple.openscripting 1.2.5 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting .framework/Versions/A/OpenScripting
    0x9306e000 - 0x9307efff com.apple.print.framework.Print 5.0 (190.1) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framewo rk/Versions/A/Print
    0x9308a000 - 0x930f0fff com.apple.htmlrendering 1.1.2 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering .framework/Versions/A/HTMLRendering
    0x93121000 - 0x93170fff com.apple.NavigationServices 3.4.4 (3.4.3) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationSer vices.framework/Versions/A/NavigationServices
    0x9319e000 - 0x931bbfff com.apple.audio.SoundManager 3.9 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.f ramework/Versions/A/CarbonSound
    0x931cd000 - 0x931dafff com.apple.CommonPanels 1.2.2 (73) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels. framework/Versions/A/CommonPanels
    0x931e3000 - 0x934f0fff com.apple.HIToolbox 1.4.8 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.fra mework/Versions/A/HIToolbox
    0x9363f000 - 0x9364bfff com.apple.opengl 1.4.7 /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
    0x93650000 - 0x93670fff com.apple.DirectoryService.Framework 3.1 /System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryServi ce
    0x936e4000 - 0x936e4fff com.apple.Cocoa 6.4 (???) /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
    0x936e6000 - 0x93d19fff com.apple.AppKit 6.4.7 (824.41) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x940a6000 - 0x94116fff com.apple.CoreData 80 /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
    0x9414f000 - 0x94212fff com.apple.audio.toolbox.AudioToolbox 1.4.3 /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
    0x94264000 - 0x94264fff com.apple.audio.units.AudioUnit 1.4 /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
    0x94266000 - 0x94419fff com.apple.QuartzCore 1.4.8 /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
    0x9446c000 - 0x944a9fff libsqlite3.0.dylib /usr/lib/libsqlite3.0.dylib
    0x944b1000 - 0x94501fff com.apple.opengl 1.4.7 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dyl ib
    0x94541000 - 0x94585fff com.apple.bom 8.5 (86.3) /System/Library/PrivateFrameworks/Bom.framework/Versions/A/Bom
    0x94591000 - 0x945d3fff com.apple.vmutils 4.0.2 (93.1) /System/Library/PrivateFrameworks/vmutils.framework/Versions/A/vmutils
    0x94617000 - 0x94633fff com.apple.securityfoundation 2.2 (27710) /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoun dation
    0x94647000 - 0x9468bfff com.apple.securityinterface 2.2 (27692) /System/Library/Frameworks/SecurityInterface.framework/Versions/A/SecurityInter face
    0x946af000 - 0x946befff com.apple.CoreGraphics 1.258.33 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
    0x946c6000 - 0x946d2fff com.apple.CoreGraphics 1.258.33 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
    0x94718000 - 0x94730fff com.apple.CoreGraphics 1.258.33 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
    0x94737000 - 0x949ebfff com.apple.QuickTime 7.1.2 /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime
    0x94aaf000 - 0x94b20fff libstdc++.6.dylib /usr/lib/libstdc++.6.dylib
    0x94b93000 - 0x94bb3fff libmx.A.dylib /usr/lib/libmx.A.dylib
    0x94cbb000 - 0x94debfff com.apple.AddressBook.framework 4.0.4 (485.1) /System/Library/Frameworks/AddressBook.framework/Versions/A/AddressBook
    0x94e7d000 - 0x94e8cfff com.apple.DSObjCWrappers.Framework 1.1 /System/Library/PrivateFrameworks/DSObjCWrappers.framework/Versions/A/DSObjCWra ppers
    0x94e94000 - 0x94ec1fff com.apple.LDAPFramework 1.4.1 (69.0.1) /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP
    0x94ec8000 - 0x94ed8fff libsasl2.2.dylib /usr/lib/libsasl2.2.dylib
    0x94edc000 - 0x94f0bfff libssl.0.9.7.dylib /usr/lib/libssl.0.9.7.dylib
    0x94f1b000 - 0x94f38fff libresolv.9.dylib /usr/lib/libresolv.9.dylib
    0x95287000 - 0x952f5fff com.apple.Bluetooth 1.7.5 (1.7.5f10) /System/Library/Frameworks/IOBluetooth.framework/Versions/A/IOBluetooth
    0x95abf000 - 0x95b4dfff com.apple.WebKit 418.8 /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit
    0x95ba9000 - 0x95c3ffff com.apple.JavaScriptCore 418.3 /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/JavaScriptCor e.framework/Versions/A/JavaScriptCore
    0x95c7c000 - 0x95f88fff com.apple.WebCore 418.20.1 /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.frame work/Versions/A/WebCore
    0x96111000 - 0x9613afff libxslt.1.dylib /usr/lib/libxslt.1.dylib
    0x97461000 - 0x97480fff com.apple.vecLib 3.2.2 (vecLib 3.2.2) /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
    0x97af1000 - 0x97b16fff com.apple.speech.LatentSemanticMappingFramework 2.2 /System/Library/PrivateFrameworks/LatentSemanticMapping.framework/Versions/A/La tentSemanticMapping
    0x97b97000 - 0x97c58fff com.apple.opengl 1.4.7 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgramma bility.dylib
    0x97c83000 - 0x97c84fff com.apple.opengl 1.4.7 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLSystem.dy lib
    0x97c86000 - 0x97c93fff com.apple.agl 2.5.6 (AGL-2.5.6) /System/Library/Frameworks/AGL.framework/Versions/A/AGL
    0x97df5000 - 0x97df6fff com.apple.MonitorPanelFramework 1.1.1 /System/Library/PrivateFrameworks/MonitorPanel.framework/Versions/A/MonitorPane l
    0x98590000 - 0x986b7fff com.apple.viceroy.framework 273.5 /System/Library/PrivateFrameworks/VideoConference.framework/Versions/A/VideoCon ference
    0x99012000 - 0x99015fff com.apple.DisplayServicesFW 1.8.1 /System/Library/PrivateFrameworks/DisplayServices.framework/Versions/A/DisplayS ervices
    0x997cc000 - 0x9a1a2fff com.apple.QuickTimeComponents.component 7.1.2 /System/Library/QuickTime/QuickTimeComponents.component/Contents/MacOS/QuickTim eComponents
    0x9ab82000 - 0x9ab8dfff com.apple.IMFramework 3.1.1 (427) /System/Library/Frameworks/InstantMessage.framework/Versions/A/InstantMessage
    0x9ab98000 - 0x9acf1fff com.apple.MessageFramework 2.1 (752.2) /System/Library/Frameworks/Message.framework/Versions/B/Message

    Hi Zaxxon,
    Welcome to the Apple Discussions
    IF you are you using UPnP then you don't need to set other means of opening the ports.
    The D-Link 624 does not like UPnP on see http://docs.info.apple.com/article.html?artnum=93333
    5:18 PM Sunday; September 3, 2006
    Message was edited by: Ralph Johns (UK)'s Spelling teacher

  • Video Chat App won't launch

    Hello,
    Recently, my video chat app has stopped working. It will not launch, instead displaying a dialogue box that says, "error-services-failed (30000)" 
    It does not seem to matter which wifi network I am connected to. I have reset the device with no improvement, as well as upgrading to the latest OS. 
    Any recommendations?
    Thanks. 

    connect your playbook to desktop manager and update it if its updated then repair it

  • Tomcat crashes while running servlet chat in IE

    Hi all!
    I've seen similar problems posted about three years ago, but I didn't see an answer for it.
    I'd be very grateful if you could help me.
    I'm writing a chat, the code was taken from the J.Hunter "Servlet programming book" O'reilly, "absurdly simple chat", and adjusted (I only need the Http version). It's an applet-servlet chat.
    When executed in IE, Tomcat crashes after a few (usually 5) sent messages. When executed in a debugger (I use Forte, the last available version, 4 update 1) the program works just fine...
    Another question is about debugging an applet, executed in a browser - how do I do this?
    Here is the code for the servlet:
    =================================
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class TryChatServlet extends HttpServlet
    // source acts as the distributor of new messages
    MessageSource source = new MessageSource();
    // doGet() returns the next message. It blocks until there is one.
    public void doGet(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException {
    res.setContentType("text/plain");
    PrintWriter out = res.getWriter();
    // Return the next message (blocking)
    out.println(getNextMessage());
    // doPost() accepts a new message and broadcasts it to all
    // the currently listening HTTP and socket clients.
    public void doPost(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException {
    // Accept the new message as the "message" parameter
    String message = req.getParameter("message");
    // Broadcast it to all listening clients
    if (message != null) broadcastMessage(message);
    // Set the status code to indicate there will be no response
    res.setStatus(res.SC_NO_CONTENT);
    // getNextMessage() returns the next new message.
    // It blocks until there is one.
    public String getNextMessage() {
    // Create a message sink to wait for a new message from the
    // message source.
    return new MessageSink().getNextMessage(source);
    // broadcastMessage() informs all currently listening clients that there
    // is a new message. Causes all calls to getNextMessage() to unblock.
    public void broadcastMessage(String message) {
    // Send the message to all the HTTP-connected clients by giving the
    // message to the message source
    source.sendMessage(message);
    // MessageSource acts as the source for new messages.
    // Clients interested in receiving new messages can
    // observe this object.
    class MessageSource extends Observable {
    public void sendMessage(String message) {
    setChanged();
    notifyObservers(message);
    // MessageSink acts as the receiver of new messages.
    // It listens to the source.
    class MessageSink implements Observer {
    String message = null; // set by update() and read by getNextMessage()
    // Called by the message source when it gets a new message
    synchronized public void update(Observable o, Object arg) {
    // Get the new message
    message = (String)arg;
    // Wake up our waiting thread
    notify();
    // Gets the next message sent out from the message source
    synchronized public String getNextMessage(MessageSource source) {
    // Tell source we want to be told about new messages
    source.addObserver(this);
    // Wait until our update() method receives a message
    while (message == null) {
    try { wait(); } catch (Exception ignored) { }
    // Tell source to stop telling us about new messages
    source.deleteObserver(this);
    // Now return the message we received
    // But first set the message instance variable to null
    // so update() and getNextMessage() can be called again.
    String messageCopy = message;
    message = null;
    return messageCopy;
    =============================
    The code for the applet is
    =============================
    import java.applet.*;
    import java.awt.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    public class TryChatApplet extends Applet implements Runnable {
    TextArea text;
    Label label;
    TextField input;
    Thread thread;
    String user;
    public void init() {
    // Check if this applet was loaded directly from the filesystem.
    // If so, explain to the user that this applet needs to be loaded
    // from a server in order to communicate with that server's servlets.
    URL codebase = getCodeBase();
    if (!"http".equals(codebase.getProtocol())) {
    System.out.println();
    System.out.println("*** Whoops! ***");
    System.out.println("This applet must be loaded from a web server.");
    System.out.println("Please try again, this time fetching the HTML");
    System.out.println("file containing this servlet as");
    System.out.println("\"http://server:port/file.html\".");
    System.out.println();
    System.exit(1); // Works only from appletviewer
    // Browsers throw an exception and muddle on
    // Get this user's name from an applet parameter set by the servlet
    // We could just ask the user, but this demonstrates a
    // form of servlet->applet communication.
    user = getParameter("user");
    if (user == null) user = "anonymous";
    // Set up the user interface...
    // On top, a large TextArea showing what everyone's saying.
    // Underneath, a labeled TextField to accept this user's input.
    text = new TextArea();
    text.setEditable(false);
    label = new Label("Say something: ");
    input = new TextField();
    input.setEditable(true);
    setLayout(new BorderLayout());
    Panel panel = new Panel();
    panel.setLayout(new BorderLayout());
    add("Center", text);
    add("South", panel);
    panel.add("West", label);
    panel.add("Center", input);
    public void start() {
    thread = new Thread(this);
    thread.start();
    String getNextMessage() {
    String nextMessage = null;
    while (nextMessage == null) {
    try {
    URL url = new URL(getCodeBase(), "/servlet/TryChatServlet");
    HttpMessage msg = new HttpMessage(url);
    InputStream in = msg.sendGetMessage();
    DataInputStream data = new DataInputStream(
    new BufferedInputStream(in));
    nextMessage = data.readLine();
    catch (SocketException e) {
    // Can't connect to host, report it and wait before trying again
    System.out.println("Can't connect to host: " + e.getMessage());
    try { Thread.sleep(5000); } catch (InterruptedException ignored) { }
    catch (FileNotFoundException e) {
    // Servlet doesn't exist, report it and wait before trying again
    System.out.println("Resource not found: " + e.getMessage());
    try { Thread.sleep(5000); } catch (InterruptedException ignored) { }
    catch (Exception e) {
    // Some other problem, report it and wait before trying again
    System.out.println("General exception: " +
    e.getClass().getName() + ": " + e.getMessage());
    try { Thread.sleep(1000); } catch (InterruptedException ignored) { }
    return nextMessage + "\n";
    public void run() {
    while (true) {
    text.appendText(getNextMessage());
    public void stop() {
    thread.stop();
    thread = null;
    void broadcastMessage(String message) {
    message = user + ": " + message; // Pre-pend the speaker's name
    try {
    URL url = new URL(getCodeBase(), "/servlet/TryChatServlet");
    HttpMessage msg = new HttpMessage(url);
    Properties props = new Properties();
    props.put("message", message);
    msg.sendPostMessage(props);
    catch (SocketException e) {
    // Can't connect to host, report it and abandon the broadcast
    System.out.println("Can't connect to host: " + e.getMessage());
    catch (FileNotFoundException e) {
    // Servlet doesn't exist, report it and abandon the broadcast
    System.out.println("Resource not found: " + e.getMessage());
    catch (Exception e) {
    // Some other problem, report it and abandon the broadcast
    System.out.println("General exception: " +
    e.getClass().getName() + ": " + e.getMessage());
    public boolean handleEvent(Event event) {
    switch (event.id) {
    case Event.ACTION_EVENT:
    if (event.target == input) {
    broadcastMessage(input.getText());
    input.setText("");
    return true;
    return false;
    =====================================
    HttpMessage
    ======================================
    import java.io.*;
    import java.net.*;
    import java.util.*;
    public class HttpMessage {
    URL servlet = null;
    String args = null;
    public HttpMessage(URL servlet) {
    this.servlet = servlet;
    // Performs a GET request to the previously given servlet
    // with no query string.
    public InputStream sendGetMessage() throws IOException {
    return sendGetMessage(null);
    // Performs a GET request to the previously given servlet.
    // Builds a query string from the supplied Properties list.
    public InputStream sendGetMessage(Properties args) throws IOException {
    String argString = ""; // default
    if (args != null) {
    argString = "?" + toEncodedString(args);
    URL url = new URL(servlet.toExternalForm() + argString);
    // Turn off caching
    URLConnection con = url.openConnection();
    con.setUseCaches(false);
    return con.getInputStream();
    // Performs a POST request to the previously given servlet
    // with no query string.
    public InputStream sendPostMessage() throws IOException {
    return sendPostMessage(null);
    // Performs a POST request to the previously given servlet.
    // Builds post data from the supplied Properties list.
    public InputStream sendPostMessage(Properties args) throws IOException {
    String argString = ""; // default
    if (args != null) {
    argString = toEncodedString(args); // notice no "?"
    URLConnection con = servlet.openConnection();
    // Prepare for both input and output
    con.setDoInput(true);
    con.setDoOutput(true);
    // Turn off caching
    con.setUseCaches(false);
    // Work around a Netscape bug
    con.setRequestProperty("Content-Type",
    "application/x-www-form-urlencoded");
    // Write the arguments as post data
    DataOutputStream out = new DataOutputStream(con.getOutputStream());
    out.writeBytes(argString);
    out.flush();
    out.close();
    return con.getInputStream();
    // Converts a Properties list to a URL-encoded query string
    private String toEncodedString(Properties args) {
    StringBuffer buf = new StringBuffer();
    Enumeration names = args.propertyNames();
    while (names.hasMoreElements()) {
    String name = (String) names.nextElement();
    String value = args.getProperty(name);
    buf.append(URLEncoder.encode(name) + "=" + URLEncoder.encode(value));
    if (names.hasMoreElements()) buf.append("&");
    return buf.toString();
    Those files are the only files needed to execute the program.

    The whole Tomcat crashes, and no exception
    displayed.
    Do I have to write the log file, or it's kept by
    Tomcat itself?yes, tomcat writes a log file, you find it in the tomcat dir. but it's just very highlevel. Having a look in it could help.
    Is there a way to write a log file by myself?sure. you could get the log file from tomcat by getting it from the ServletContext:
    ServletContext = getServletContext();
    ServletContext.log("text to log");
    When I view the output window in Forte, it doesn't
    even write that Tomcat crashed.
    I use Tomcat that is installed with the last version
    of Forte(Sun 1 Studio, update 1), I guess it's the
    last version of Tomcat also.No. The lastest is 4.1.12 and i guess it's 4.0.4 with forte.
    Get Tomcat standalone from jakarta.apache.org and try to run your servlet with the standalone tomcat. this could help since i also expirenced problems sometimes with the forte-integrated tomcat.

  • Mobile apps with phonegap + mysql ?

    Hi,
    i was searching for a long time but didn't find answers. is it possible to show database-driven content within mobile apps made with dreamweaver cs6 ?
    If so, are there any examples or tutorials on the adobesite or elsewhere?
    Looking forward for any answer :-)

    PhoneGap builds mobile apps with HTML, CSS, and JavaScript. You cannot use a server-side language, such as PHP, with PhoneGap.
    Presumably, you want to connect with a MySQL database on a remote server. To do so, you would need to use Ajax to send and receive data from the MySQL database. You can use jQuery to send and receive data as JSON. PHP has JSON functions that decode and encode data as JSON strings.
    How difficult or easy you would find setting this up depends on your knowledge of jQuery and PHP. I don't know of any tutorials that show how to pull everything together for PhoneGap, but it shouldn't be too difficult to find tutorials for using jQuery Ajax to communicate with MySQL.

  • Integrate A Chat Program with a Web Page

    iIn JSP Based Web Page
    Integrate A Chat Program with a Web Page

    I have an iPad 3rd generation and I get that message as well so it has nothing to do with having an iPad 2. The message means exact,y what it says, there was a problem loading the web site. In some situations, it just might be a problem with the website itself. Please note that I said in "some" situations. If you are getting this message every single time that you try to load a page, something is wrong.
    Did you clear Safari, close all apps and then reset the iPad? Settings>Safari>Clear history and website data.
    Now close all apps. In order to close apps, you have to drag the app up from the multitasking display. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then swipe "up" on the app preview thumbnail to close it.
    Next, reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

Maybe you are looking for

  • Using Iphone 3G in Japan

    I am traveling to Japan next week and want to be able to use my iphone over there. Someone told me that the "roaming" or something needs to be changed...? I'm really not too sure what is required so my phone will work there so I can make and receive

  • Report Builder - Printing in dos mode

    I am using developer 2000 - report builder I want to printing all my near around 15000 -in dos mode because in windows printing it is very slow . so just want to print it in dos mode .

  • "Fresher on SDN "

    HI Experts, I am new to SAPDevelopersNetwork as i dont have proper knowledge as how to use this Complete Network i Urge the Expert's to give some links or as how to us this network properly and gain complete knowledge on SAP-ABAP basic knowledge .( i

  • Adobe form/reader  error

    Hi We are working on PCR forms in MSS and having some issues with certain forms. I am UNABLE to select any option in the PCR Adobe form's DROPDOWN LIST BOX and any Adobe form which has a dropdown list comes up with an error message "message limit exc

  • The time machine could not complete backup.The backup disk image "/Volumes/Data/onkar dhillon's iMac.sparsebundle" could not be accessed (error -1).

    Having difficulty backing onto my time capsulse and keep getting this error message. Can anyone Help please??