How to tell client disconection reason when invoke disconnect() on the server side.

Is there any way to tell client the reason for disconect when I call disconect() on the server side. its some way like using error object as optional parameter to include reject reason when invode rejectConnection

Ignore the JSRs for now.
Follow the JavaEE tutorial.
http://docs.oracle.com/javaee/6/tutorial/doc/
The answers to many of your questions will be clear to you once you have completed the tutorial.
I also like the tutorials here (they are a little dated, but still mostly relevant as the core JEE6 specs that the tutorial relies on were released over 5 years ago and JEE7 is yet to be released).
https://schuchert.wikispaces.com/EJB+3+and+Java+Persistence+API
zonski has a spring+javafx focused tutorial if you would prefer to learn and use Spring than JEE (they are differing technologies which cover pretty much the same functional set):
http://www.zenjava.com/series/building-jee-applications-in-javafx-2-0/
JavaFX is a client side framework so there is not much you would do with it on the server side.
It seems like there is a ton of "JSR's" for different tasks, and I'm not sure exactly what I need, and all that, so I'm really confusedNobody needs all of JEE, just use the bits that you want that are a good fit for whatever project you are doing - don't try to use everything at once.
A lot of the stuff can be learnt and used in isolation.
Selected relevant topics, might be (in the order that I would consider them):
Persistence: http://docs.oracle.com/javaee/6/tutorial/doc/bnbpy.html
Java Servlet Technology: http://docs.oracle.com/javaee/6/tutorial/doc/bnafd.html
JAX-RS web services: http://docs.oracle.com/javaee/6/tutorial/doc/giepu.html
Contexts and Dependency Injection: http://docs.oracle.com/javaee/6/tutorial/doc/gjbnr.html
Enterprise Beans: http://docs.oracle.com/javaee/6/tutorial/doc/bnblr.html

Similar Messages

  • How can a client lie about its IP address to the server (HTTP)

    I'm trying to set the user agent property to other than Java/1.4.2_02, and also send requests to the server that should appear coming from ip specified by me. In another words i am trying that I could hit the server with variety of different setting of user-agent and ip address. I have this piece of code that works fine for the user-agent. But how can I send request to the server mimicking different ip addresses. Any ideas?thanks
    I don't to download the page. I just have to send the requests.
    Here is the code that sends different user-agent configurations to the server:
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.net.HttpURLConnection;
    import java.net.MalformedURLException;
    import java.net.URL;
    import javax.swing.text.html.HTMLDocument;
    public class teste {
    private static HttpURLConnection conn = null;
    private static URL url = null;
    private static HTMLDocument html = new HTMLDocument();
    public static void main(String args[]) {
    BufferedReader in = null;
    String str = "";
    try {
    url = new URL("http://www.google.com/search?hl=de&ie=ISO-8859-1&q=test");
    } catch(MalformedURLException e) {
    System.out.println(e);
    System.exit(-1);
    try {
    conn = (HttpURLConnection) url.openConnection();
    conn.setRequestProperty("User-Agent", "Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.2) Gecko/20040803");
    conn.connect();
    in = new BufferedReader(new InputStreamReader(url.openStream()));
    } catch(IOException e) {
    System.out.println(e);
    System.exit(-1);
    }

    There is bad news, and their is worse news.
    You need raw sockets. Java doesn't do raw sockets.
    Windows doesn't eithier (XP SP2), though there ARE ways arround it, the problem is you will need to be administrator and it will be throttled (read SLOW) by the OS itself (no way arround this) and it will refuse to send Spoofed IPs (no sensible way arround this).
    Linux you need to be root.
    You need to write a JNI that will drop your requests onto the network.
    It's horrible, and you need to consider whether java is the right language for this. Sounds like you are just doing some NATting or proxying or such, which would be much easier to do in pure c. Unfortunately I have to have raw packets from java so pain and suffering for me.

  • How to get the IP of the client when TCP connect in the server

    How to get the IP of the client when TCP connect in the server.
    The only parameter got from the connection is connectionID.
    Solved!
    Go to Solution.

    I guess you're using "TCP Wait on Listener" on the server. This returns the remote address and port (as optional outputs).

  • How to repair my macbook pro when i had delete the app store file and know it telling that appstore file has been damage or incomplete and i had the version 10.6.8

    how to repair my macbook pro when i had delete the app store file and know it telling that appstore file has been damage or incomplete and i had the version 10.6.8

    so is their is any way that i can solve this matter

  • How to close a HTTP session when a user closes the window

    Hi,
    I am having problems when closing the browser of a BW web report. After I closed the browser by going File->close, I ran SM04 and found out the Plugin HTTP session hangs at the server side.
    How can we terminate the Plugin HTTP session at the server side when user closes the internet browser?
    I did implement a logoff function at my web template and this was implimented on the Menu page, if user clicks on the logoff, the Plugin HTTP session is terminated at server side correctly.
    If user navigates to the other pages from the main page... then the logoff function was not implimented in the other pages. So many of the users are closing the windows directly. Eevn if we impliment logoff in all the subpages, As you know, 50% of time user will close the report by closing the internet browser instead of clicking the logoff. That leaves lots of hanging Plugin HTTP sessions at our server side.
    Regards,
    Tony

    Hi,
    And also take a look on the Genral property of the web template. We solved this problem by changing only this property (no extra things).
    <b>Property:                            Value</b>
    Automatic Session Management:           Active
    With rgds,
    Anil Kumar Sharma .P
    Message was edited by: Anil Kumar Sharma

  • I recently got my ipod replaced and i have its serial number. now i used to play a game on it which requires me to have its UDID for account transfer so how do i get its UDID when i dont have the ipod now. i have a new one now.

    i recently got my ipod replaced and i have its serial number. now i used to play a game on it which requires me to have its UDID for account transfer so how do i get its UDID when i dont have the ipod now. i have a new one now.

    I would try contacting Apple.
    http://www.apple.com/support/ipodtouch/contact/

  • In windows 7, how to make firefox start automatically when I turn on the computer

    In Windows 7, how to make Firefox start automatically when I turn on the computer. Note, I am asking how to do this with Windows 7, not xp, not vista.

    You need to place a shortcut to open Firefox in the Start > Programs > Startup folder.<br />
    That is basically the same in all Windows versions.

  • How to remove save, cancel option when end user runs the workbook in Portal

    Hi,
    how to remove save, cancel option when end user runs the workbook and make some small changes like using page items or increasing rows and columns
    I already made 2 changes
    1) I removed the option in Oracle Enterprise Manager under discoverer viewer of saving
    2) I also removed the option of Allow saving changes made in Viewer when adding workbook to portal
    But still the end user gets options of saving when made small changes to workbook like increasing rows and columns
    Is their any place, I need to make changes?
    Thanks in Advance
    Rowdheer

    Don't use JSP to serve a binary file. It almost implies the use of awful scriptlets and the invocation of both the response writer and the response outputstream which would only lead to IllegalStateException headaches in the server logs.
    Use a Servlet instead. Specify the file name as request parameter and let the servlet read the file and write it to the outputstream of the response.

  • TS2755 How can I lock my screen when I'm on the phone? My cheek keeps hitting the mute button.

    How do I lock my screen when I'm on the phone so my cheek dosen't hit the mute button accedently?

    The screen should be automatically locked by the proximity sensor when you put the phone in speaking position. Make sure that there is nothing blocking this sensor (like a case for example).

  • HT4946 how do i unlock my iPhone when its locked in the itune plug in mode?

    how do I unlock my iPhone when it is in the itune locked mode for updates, i powered out when i was updating

    Unfortunately once the iPhone is in that mode the best practice is to just restore the whole iPhone via iTunes.
    The iPhone is in recovery mode. So to get it out of recovery mode and restore through iTunes is all you got to do.
    Hope this helps

  • HT201210 How do you unlock an iPod when you've forgotten the password?

    How do you unlock an iPod when you've forgotten the password?

    Do as the manual says to do and restore the iphone.
    If you are unable to restore, then type "unable to restore" into the search bar at the top of this page by Support and read the resulting help article

  • How do I deactivate a computer when I dont have the hardrive

    How do I deactivate a computer when I dont have the hardrive

    Hi Bob,
    In this case you can activate adobe apps on a new computer however you would need to follow the steps mentioned in the link below.
    http://helpx.adobe.com/x-productkb/policy-pricing/error-maxium-acitvation-exceeded.html
    Let us know for any further help.
    Regards,
    Ashish

  • How do you unlock a phone when you dont know the password?

    how do you unlock a phone when you dont know the password?

    Connect in recovery mode and restore, you'll get the option to reset the passcode during this process:
    iOS: Unable to update or restore and iPhone and iPod touch: Wrong passcode results in red disabled screen
    If you cannot remember the passcode, you will need to restore your device using the computer with which you last synced it. This allows you to reset your passcode and resync the data from the device (or restore from a backup). If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present. Refer to Updating and restoring iPhone, iPad and iPod touch software.

  • How do i unfreeze my ipod when ive already tried the menu and select button and that didnt help?

    how do i unfreeze my ipod when ive already tried the menu and select button and that didnt help?

    How long did you press and hold both the Select (Center) and Menu buttons together?  Have you tried doing this procedure more than once?  Is the hold switch in the Off position?
    If nothing else, let the iPod's battery fully drain. Then charge it back up again.
    B-rock

  • I have upgraded my software to OS X Snow Leopard. Now I want to update that to Lion. How do I do that? When I look at the Lion software available for download on the apple site it all seems to be update software for people already a version of Lion.

    I have upgraded my software to OS X Snow Leopard. Now I want to update that to Lion. How do I do that? When I look at the Lion software available for download on the apple site it all seems to be update software for people already a version of Lion.

    It has to be 10.6.8 I believe, before you can upgrade to Lion. I found some more info, please check out: http://www.informationweek.com/byte/howto/personal-tech/desktop-os/231001728
    Be sure all your programms will work on Lion. Power PC programms do not work anymore (eg Nikon Scan 4 will not work from now on on Mac OS X). Some versions of Canon utilities for camera's do not work, Canon still have to upgrade. For an App Compatibility Table: http://roaringapps.com/apps:table

Maybe you are looking for

  • Problem with spot channels when importing PSD into AI CS3

    tried the Windows forum, and adobe tech support in The Netherlands. Hopefully someone here can help. b Problem description: I make spot colour separations of full colour artwork by using the index separation method in Photoshop. This creates several

  • HT1329 how do i get my music off of my iphone into my library. I need all of the music not just the purchased.

    i have a new computer and my old one crashed. I have all of my music on my iphone and i need to know how to get the music from my phone into a library on itunes.

  • Execution order of Multiple Numeric Limit Test?

    What is the execution order of "Multiple Numeric Limit Test" in TestStand 2010? I am using a custom steptype of Multiple Numeric Limit Test. I want to manipulate the input parameter. How can I do that. I am not interested in making a new steptype. I

  • Re-using license on a new computer

    purchased and installed Acrobat X Pro on to my laptop.  Dropped laptop and it is toast.  When I put the disk into my new computer to install it comes up with licensing error message.  How do I put the program on to my new computer.

  • How to cancel J1IH Documents

    Dear All, We are using J1IH - Other Adjustments to settle supplementary invoices. We found wrong entries in J1IH document. How to cancel the document which is created in J1IH-Other Adjustments? If I select "Cancel exc Inv". it is throwing an error "E