Developing Simple Chat App in ADF

I have JDev 11.1.2.1.0.
Can anyone provide any references to develop a simple chat app?
I want it for:
Two PCs connected together over a LAN.

Hi,
You would probably use Active Data Service, see here for an example of a simple Google Talk client: http://www.oracle.com/technetwork/articles/jellema-googletalk-094343.html
Documentation: http://docs.oracle.com/cd/E24382_01/web.1112/e16182/adv_ads.htm#BEIDHJFD
Regards,
Joonas

Similar Messages

  • Developing simple web app

    Hi,
    Really just want to know, I have this task to develop a sime web app that involves a database (to add new records, retrieve data, del, perform queries etc), where there are a number of user access levels. I'm envisioning that users will perform all this via JSP screens, with the input boxes taking parameters.
    I'm ok with java but new to all this jsp stuff.... just want to know, will knowledge of jsp and sql queries do in sufficing this task?
    Or, is the use of EJB and such other technologies be needed to complete such a task? (I'm on a very short timescale, and given that I already need to learn JSP whilst I do the task, things will be very tight if EJB is a must)
    Thanks.

    Hi,
    Thx for the reply.
    I was under the impression that JSP pages could be
    created with just HTML and SQL after I saw one JSP
    example, where the actual SQL resided in the files.This is true, but it is not looked at like a good thing. It makes the JSP ugly and hard to maintain. Besides, if you write a DB access class, then a JavaBean to represent your Data, you can do a good bit of testing and coding before you have an understanding of JSP. Then you can use the JSP to display the data, and not worry about accessing, scriptlets, where quotation marks go, and things like that... JSP are used for display, if you do your processing and logic in normal Java classes, then JSPs are much easier to work with, especially if you already know java.
    >
    Just some followup-q's, I'm been looking around and
    everyone mentions a web-inf folder... but in the same
    example I read, no such thing existed, nor did it
    include a single javabean/servletfile (all jsps). I'm
    not entirely sure if the example I saw is the full
    thing or just including those files accessible to the
    user on the client end.... so this may sound stupid,
    but is the web-inf compulsory for a web-app?
    If so, would you happen to have any good links to
    pages teaching this? I've googled this but found a
    series of confusing pages.So Web Apps are normally deplyed as a WAR (http://java.sun.com/j2ee/1.4/docs/tutorial/doc/WebApp3.html). The link should describe how the WAR is put together.
    Even if you don't package the web app in a WAR, your directory structure should look the same.

  • Help Needed in developing simple Chatting application using flex and blazeds

    Hi,
    I followed this tutorial from adobe http://learn.adobe.com/wiki/display/Flex/Creating+a+BlazeDS+messaging+application+in+Flex+ Builder i installed tomcat server and set the path.I am unable to open server like this http://localhost:8080 but i can able to open that in this way http://127.0.0.1:8080/   .... When i create my new flex project in flash builder 4 i am getting this error
    You do not have write permission for the project output folder. Specify another location.
    can any one help me in how to get rid of this problem.I hope this forum helps me in finishing my flex project..
    Thanks
    Trinethra

    Hi,
    Need to use a scrollable resultset and depending on the need to have a stateful connection or a stateless connection you may need to query the table for every request(for stateless connection) and use the same result set for(stateful connection). and depending on the no of records in a page and the page no do some simple arithmetic and move the resultset. Hope this helps.
    rajesh

  • Lock up problem in a simple chat app

    Hello,
    I have a problem with my application locking up. I know that's a
    very general problem but let me elaborate.
    I have a standard cllient server setup with server part having
    3 functions: login,logout and say. When i start my first client
    everything is just fine (as long as the client is alone).Pretty much
    as soon as i start another client (on another machine) i start having
    problems. The clients can exchange about 2-3 lines and then they both
    lock up.
    Below is the line from the server:
    user.receiveChat("server","you were logged in successfully!",Color.red);
    user class is a subclass of UnicastRemoteObject and it implements
    a subclass of remote interface. Its the same story for the server.
    Both of the above objects are fields in 2 other Classes (MessageServer
    and MessageClient respectively).
    The above line results in the user object executing
    the following function on its client object:
    <code>
    public void receiveChat(String name, String message,Color c) throws java.rmi.RemoteException
    synchronized(client)
    client.receiveChat(name,message,c);
    Thread.currentThread().yield();
    </code>
    then the client executes this :
    public void receiveChat(String name,String message,Color c)
    synchronized(doc)
    try
    // System.out.println(message);
    StyleConstants.setForeground(attributes, c);
    StyleConstants.setBold(attributes,true);
    doc.insertString(doc.getLength(),name+": ",attributes);
    StyleConstants.setBold(attributes,false);
    doc.insertString(doc.getLength(),message+"\n", attributes);
    catch(BadLocationException e)
    System.out.println(e.toString());
    pane.getVerticalScrollBar().setValue(pane.getVerticalScrollBar().getMaximum()+10);
    Thread.currentThread().yield();
    And that's that.
    It seems like this started happening when i replaced my plain old
    textarea with the JTextPane for the color support.
    Any ideas or suggestions are welcome.
    thanks!

    as a follow up:
    i took out JTextPane and put JTextArea back in and it works like a charm. Anyone have any idea how i could get my colored lines without the
    lock ups??

  • 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

  • How to develop web app by ADF Faces rich web client ?

    i want developer web app by adf face rich
    but have not adf rich tag library in jdev 10.1.3
    how to develop by adf rich?

    Hi,
    don't know what you mean by ADF Faces rich web client, but if you mean our Ajax component set, then this is not yet available outside of Oracle. If you mean ADF Faces as we have it in JDeveloper 10.1.3, create a JSF page and step through the creation process, toggle the ADF Faces libraries to make ADF Faces available
    Frank

  • 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#

  • Help needed gathering information to develope peer-peer chat app

    Hi,
    I want to develop a chat application to communicate with other computer on my home LAN.
    I need to application (which would be installed on all the computers in the network) similar to Novell chat client to show the host name of each computer and should be able to send message any of this computer. The computers are all laptops so they have dynamic IPs.
    I don't know where to start and how to go about finding the right resource. If any one could help me i would appreciate it a lot.
    Thank you.

    Just Google it. You will get lot of informations on chat application.

  • How do i develop a chat application using jms over web based

    I want to develop a chat application using jms with mailing,file transfer and audio facilities
    can anyone help me to how to go abt that

    There is a good article from Sun on a simple example of what you want - it could serve as a basis for you.
    http://developer.java.sun.com/developer/technicalArticles/peer/

  • 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

  • Can't get simple Struts app to work when using DCs

    Hello,
    I need to use Struts to develop web apps. I took a simple example app of 3 screens and was able to get it working fine in local development.
    Then I tried to do same thing using DCs in a Track. The first page of the app is a jsp called login.jsp. That file has the following two lines at the beginning:
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    This works fine in local development. However in the DC I get the following error when I try to run login.jsp:
    Application error occurs during processing the request.
      Internal error while parsing JSP page C:/usr/sap/J2E/JC00/j2ee/cluster/server0/apps/com.firstenergycorp/pilot_webapp~strutsear/servlet_jsp/struts/root/login.jsp.
      Details:   com.sap.engine.services.servlets_jsp.lib.jspparser.exceptions.JspParseException: Tag library descriptor cannot be found for uri:{1}.  The ID of this error is
    Exception id: [000F1FCC15FA00450000000F00000CA4000400A8BC089FE5].
    The struts-html.tld and struts-bean.tld are both in the WEB-INF folder of my Web Module DC.
    So why am I getting this error?
    Thanks in advance for any help.
    David.

    David,
    we are using Struts in our application without any problems. But we don't deploy via JDI but build the ear-files in Netweaver Studio and deploy with SDM.
    I guess the tag libs are not added properly to the war file of your productive environment. Can you check whether they contain the files in the correct path ?
    And you shouldn't mix Tag Libs and struts.jar of different versions (e.g 1.0 + 1.2). That will result in the very same error message.
    Regards, Astrid
    Regards, Astrid

  • [Request] Impomezia simple chat

    IMPOMEZIA Simple Chat — is a simple cross-platform client-server chat for local networks and the Internet with the possibility of individual settings for a specific network, with open source code, written in Qt/C++.
    Homepage:  http://impomezia.com
    qt-apps page: http://qt-apps.org/content/show.php/IMP … ent=138608
    Source for download: http://schat.googlecode.com/files/schat … 38.tar.bz2

    It is already here http://aur.archlinux.org/packages.php?ID=41181 my bad...
    Maybe if someone want to make -svn version

  • Developing a User Interface with ADF Faces - Tutorial - Questions

    Hello everybody,
    I am a forms developer and I am totally new to ADF.
    I started from the tutorials : Developing Business Services with ADF BC and Developing a User Interface with ADF Faces...
    Everything was easy and very clear, as far as the material covered in the tutorial is concerened.
    But when I tried to modify a little bit the application, to perform a different task... disaster!!! :-)
    One of the "simple" things that I tried to do -for example- is :
    In the login.jspx, where we have created an ADF Parameter form (that accepts as a parameter the customer ID) and
    retrieves in the next page the Orders of the specific customer.... to Display a message, such as "+Customer Does Not Exist+"
    if the user types in the parameter form an not existent customer ID...
    I understand that I should use a validator.... But I cannot find the list validator (from query) in the bind variables not in the ADF Parameter Form Fields....
    Does anyone know?
    Regards,
    Maira Kotsovoulou

    Dear Grant,
    CustomerID is in the UI Project, and appears as a part of an ADF Parameter Form... and I can not find key exists in the UI Validators....
    CustomerID in the .entities is a bind variable in a query. select ... from customers where customer_id = :p_customer_id. Again KEYEXISTS validator is not available in the bind variables sections... Only in the attributes!!!
    I understand that the "normal" behavior in a query with bind variables where there is no match is to display nothing as it does!!!
    But I was just wondering, if I could even trap that before I display the empty form...? Or could I display a text in my ADF form, that says no rows... (as I can do in an ADF Table???)

  • My snap chat app has just started to close down when I open it. WHY?

    snap chat has just stopped working. the app closes down when i open it. why?

    Hello tomivie,
    Thank you for using Apple Support Communities.
    It sounds like you are having some unexpected behavior from this app you got from the app store.
    I would recommend the troubleshooting in this article named:
    iOS: Troubleshooting apps purchased from the App Store
    http://support.apple.com/kb/TS1702
    1. Update your device software
    Update your device to the latest version of iOS.
    2. Check for app updates
    You can setup apps to update automatically in Settings > iTunes & App Store, but make sure that your apps are up to date:
    Open the App Store and tap Updates. If updates are available, tap Update All.
    If  prompted, enter your iTunes Store account information. App Store will then download and install the app updates.
    Note: Some apps may require a Wi-Fi connection to update.
    3. Install another app from the App Store
    If none of your user-installed apps will launch, there could be an issue with Apple ID authorization. Download and install an app that isn't already installed on your device to reset this information. You can also remove an app from your iOS device and download it again from the App Store or sync the app from your computer.Note: If you have installed apps using multiple Apple ID accounts, you may need to perform this step for each account.
    4. Restart the app
    If the issue affects only a single app, try closing just that app.
    5. Restart your device
    Turn the device off and on.
    6. Reinstall the affected app
    Remove the app from your device and reinstall it:
    Tap and hold any app icon on the Home Screen until the icons start to wiggle and show a small "x" in the top-right corner of the app.
    Tap the "x" in the corner of the app you want to delete.
    Tap Delete to remove the app and all of its data from your device.
    Press the Home button.
    Go to the App Store.
    Search for the app and then download it again.
    Note: If it is a paid app, ensure you are using the iTunes account you purchased the app with originally. If it is not, you may be asked to purchase the app again. Learn more about downloading previously purchased items.
    7. If the issue is still unresolved, contact the developer
    If you continue to experience the issue, contact the developer of the app for further assistance:
    Find the app in the App Store.
    Open the app's page, tap Reviews, and then App Support.
    All the very best,
    Sterling

  • Having a problem running jheadstart app and adf-faces-demo on wls 8.1 sp4

    I have created a very simple jheadstart app in Jdeveloper. Also I have created a project from the adf-faces-demo.
    I am now trying to run both applications on weblogic 8.1 sp4
    Both applications exhibit the same behavior. When trying to load the index page, the progress bar on the browser indicates that the page is loading (and stays there) and I don't see any error in the output log (except for the message:
    Oct 31, 2006 5:46:22 PM oracle.adfinternal.view.faces.application.ViewHandlerImpl _checkTimestamp
    INFO: ADF Faces is running with time-stamp checking enabled. This should not be used in a production environment. See the oracle.adf.view.faces.CHECK_FILE_MODIFICATION property in WEB-INF/web.xml
    Which I understand is harmless.
    I have done the following to try to make this work:
    Make sure that the application is compiled in JDK 1.4
    Add the recommend jlib, lib, and MyFaces jars to the classpath.
    Change the extension of the index page to jsp and change the web.xml to:
    <filter-mapping>
    <filter-name>demoRedirect</filter-name>
    <url-pattern>*.jsp</url-pattern>
    </filter-mapping>
    Any help would be greatly appreciated. Thanks.

    Alberto,
    I noticed you reported this on the JDev forum as well. Deploying ADF-Jhs apps is not different from deploying a plain ADF app, (apart from the Jhs Runtime lib that should be added to the .ear file), so please continue to use the JDev forum to resolve your problems.
    You also might want to check the section on WebLogic deployment in the ADF Dev Guide:
    http://download-west.oracle.com/docs/html/B25947_01/deployment_topics008.htm#CIHEGDAI
    Steven Davelaar,
    JHeadstart Team.

Maybe you are looking for

  • Can I log into different itunes accounts on one computer?

    The computer with my mother's itunes account has crashed and I have itunes on my laptop that contains all of my music from my account  Is there anyway to log out of my itunes and log into hers so that I can put her old music onto her new ipod.

  • DEVICES NO LONGER SHOWN IN ITUNES

    I installed the lates version of ITunes.  Now I no longer have devices shown and my IPOD Nano will no longer sync.  How do I correct this problem? 

  • How do you set up the update password page in ADFS 3.0

    Hello, We have recently migrated to ADFS 3.0.  Everything is working except the update password feature.  In the KB article http://technet.microsoft.com/en-us/library/dn280950.aspx  the section under Update Password says that I need to enable  the AD

  • Preferences crash -- what does this mean?

    I have a log for a preferences crash.  It starts with Preferences [1295] Path:  /Applications/Preferences app/Preferences Identifier:  Preferences Anyone know what this refers to?  Preferences for e-mail or what?  Anyone have a fix to prevent this cr

  • Microsoft Access - error when performing updates

    Hi, I am creating a Java application that edits databases using a GUI. I am having problems when it comes to editing Access Databases. Every so often, when the user tries to perform an update like add an attribute the database throws the following ex