Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Desktop Notifications using JEE

  1. #1
    Junior Member
    Join Date
    Mar 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Desktop Notifications using JEE

    Hi,

    I got a requirement like to get Desktop Notifications using JEE ( In a web based application).
    For example, if someone logs into skype then it will show at the end (below part of the screen where system displays time)
    Is that possible to show popup on desktop through the webapplications?
    I'm using Tomcat (Web server ) for my web based applications.


    I've researched for it and came to know about the JNLP (Java network layer protocal) file which is deployed into client system.
    JNLP is displaying a desktop notification but I'm not sure how far this can be useful.

    Is there any API to make it possible?
    Please let me know, thanks in advance.
    Attached Images Attached Images


  2. #2
    Member andbin's Avatar
    Join Date
    Dec 2013
    Location
    Italy
    Posts
    443
    Thanks
    4
    Thanked 122 Times in 114 Posts

    Default Re: Desktop Notifications using JEE

    Quote Originally Posted by arunsanju2222@gmail.com View Post
    I got a requirement like to get Desktop Notifications using JEE ( In a web based application).
    A web application is normally executed on a server machine and then the results (HTML plus other) are viewed/executed typically by a browser on the client machine.

    Quote Originally Posted by arunsanju2222@gmail.com View Post
    Is that possible to show popup on desktop through the webapplications?
    At server side, being on another machine, you can't do anything directly on the client machine. You send to a client typically a mix of HTML, CSS, Javascript code. And this is handled by a browser (again, typically).

    Quote Originally Posted by arunsanju2222@gmail.com View Post
    I've researched for it and came to know about the JNLP (Java network layer protocal) file which is deployed into client system.
    JNLP is displaying a desktop notification but I'm not sure how far this can be useful.
    JNLP is a Java technology to launch a standard Java application (with some restrictions by default) on the client starting from a simple link/button on a web page.
    So a Java application on a client can certainly do more respect to a browser. However, the standard Java SE framework has no direct specific API for "desktop notifications". Since Java 6 there is the System Tray API but it's another thing.
    Obviously a Java desktop app can certainly open a custom popup window but this is not a "standard".

    EDIT: effectively, the TrayIcon class, since Java 6, has a displayMessage method. I have never used it before but javadoc states: "Displays a popup message near the tray icon.". So this may be what you want.

    Quote Originally Posted by arunsanju2222@gmail.com View Post
    Is there any API to make it possible?
    At browser level, yes, there is something. Follow this search: https://www.google.it/?gfe_rd=cr&ei=...+notifications
    Andrea, www.andbin.net SCJP 5 (91%) SCWCD 5 (94%)

    Useful links for Java beginners My new project Java Examples on Google Code

  3. #3
    Junior Member
    Join Date
    Mar 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Desktop Notifications using JEE

    Thank you so much for your reply. Is there any other way to achieve this requirement of giving notifications ? Like jee + html we are displaying the data into the client(browsers). Is there any scope through which java + any desktop notification technology are embedded together so that can achieve this?

Similar Threads

  1. Immediate Email Notifications of New Threads by sub-Forum?
    By GregBrannon in forum Forum Updates & Feedback
    Replies: 6
    Last Post: August 5th, 2013, 03:55 PM
  2. Replies: 1
    Last Post: January 24th, 2013, 06:24 AM
  3. Java Enterprise Edition (JEE)
    By iorlahasam in forum Web Frameworks
    Replies: 1
    Last Post: January 22nd, 2013, 09:19 AM
  4. Replies: 2
    Last Post: January 8th, 2013, 01:15 AM
  5. Replies: 3
    Last Post: May 18th, 2009, 03:45 AM

Tags for this Thread