J2SE NIO vs J2EE

We've created communication server using java nio socket where you can create clients of any language using socket to communicate to the server(java nio) application we made. The communication server can handle thousands of concurrent connected clients.
My question is, is there a better way to create a communication server in J2EE that can handle thousands of concurrent connections?
If there is, is there any advantage in doing so in terms of speed, scalability and functionality?
Thanks in advance.

georgemc is right. J2EE server can run on same JRE. However, some J2EE server will modifiy(or fine tune) the JRE for performance. Weblogic is one of the examples.
I think a install package include everything may scare a beginner in Java. The J2EE server can increase the load of the OS.
If you do not have the knowledge of J2EE, the error message of J2EE server(J2EE error+J2SE error) seems to be more difficult than the error come from J2SE.

Similar Messages

  • J2SE 1.4 & J2EE 1.3 compatability

    Is J2SE 1.4 compatible with J2EE 1.3, or do I have to keep on using J2SE 1.3.1? J2EE docs imply 1.3.1 is the only tested version.

    i had an EJB formation at Sun and the instructor told us to keep j2sdk1.3.1 because 1.4.0 has many Swing bugs.

  • J2se 1.4 + J2EE 1.3 and weblogic 10 server

    hi
    we have an application written in J2SE 1.4 and J2EE 1.3 .
    we currently have the app in WL 8.1
    if we migrate to WL 10 server, are there any issues that we have to address.
    or will the backward compatibility of J2SE and J2EE take care of them
    Thanks
    Anand

    Hello:
    The J2EE1.3 is only compatible with J2SE1.3.1.If you use J2SE1.4,you will encounter some
    unexpected error.For example,you can startup J2EE and deploy applications on it,but the application doesn't work.
    Now,J2EE1.3.1 is available.The J2EE1.3.1 is compatible with J2SE1.4.
    horseliu

  • Java Compiler J2SE vs. J2EE

    Just wondering if the javac comiler is standard across editions. Is using classes from the J2EE api, do you need the appropriate compiler?

    If by 'webapps' you mean things like Servlets, EJBs, etc, then you have to use a J2EE-based implementation, such as JBoss, Tomcat, Weblogic, etc, because the jar(s) they provide contain and implement the J2EE API, which is not in the standard J2SE stuff.

  • J2SE vs. J2EE vs. JWSDP

    Hello,
    I'm trying to figure out the differences between these three packages. Does J2EE contain both J2SE and JWSDP? Is there a detailed list of what each of these contains? Forgive my ignorance. I've been reading a lot of descriptions on the java website, but I'm not finding a clear answer.
    Thanks!
    -jeff

    To run J2EE you will need J2SE. J2EE has additional APIs for developing enterprise applications. You can see these api Specifications under:
    http://java.sun.com/j2ee/1.4/docs/
    The JWSDP is intended for developing webservices it contains the following APIs:
    http://java.sun.com/webservices/nutshell.html
    Some of the JWSDP API are includes in J2EE 1.4 because this version of J2EE supports WS. The JWSDP can be used with J2EE 1.3 for developing webservices.
    hope that helps.

  • Javax.naming package in j2se but not j2ee

    Hello,
    From on the documentation I see so far the javax.naming package exists in the J2SE. Unfortunately I d/l and installed J2EE. Shoudln't J2EE be a superset of j2se? Or the the packages just renamed to something else in it?

    Yes j2ee is a superset to jj2se. j2se contains all the standard packages that you need for writing java apps.

  • J2SE or J2EE on development machine

    Hi,
    I am a newbie trying to find my way in the java SDK environment. I just read the part in the BO SDK development guide about setting up the development machine.
    However, some things are not very clear to me:
    Our BO XI R2 server is running with Apache Tomcat. On my development machine (which is on another computer than the BO server) I downloaded the Eclipse IDE. For this I need a Java installation.
    1. Do I need to download the Java J2SE or the J2EE from the Sun website on my development machine ?
    2. In the development guide they speak about deploying the JAR files. Do I need to copy the JAR files from the BO server on my development PC ?
    3. Set up your web application: must this be done on the development machine or on the Tomcat installed on the BO server ??
    Thanks for helping me out.
    Regards
    Sofie

    Hello Sofie,
    -As per your description, you are using kind of a distributed environment where your Application server is on one machine and your Business Objects Enterprise is on a separate machine.
    Following are the answers of your questions :
    1)Do I need to download the Java J2SE or the J2EE from the Sun website on my development machine ?
    >
    As far as executing a application from remote machine is concerned, I am not getting why you want to install Java.This is because Java is also get installed when you install Businees objects Enterprise(BOE).And this can be seen by going to the default installation directory of BOE.
    However if it is asking you to install Java,you can install it from Sun site.Make sure that Java version that you are going to install should be compatible with your BOE.
    2)In the development guide they speak about deploying the JAR files. Do I need to copy the JAR files from the BO server on my development PC ?
    >
    Yes.You have to copy all the JAR files from the location where you have installed BOE.
    Go to the path : BOEInstallationDirectory/Program Files/Business Objects/common/3.5/Java/lib and copy all the JAR files.You need to paste these JAR files inside lib directory of your client machine where your application is residing on.
    3)Set up your web application: must this be done on the development machine or on the Tomcat installed on the BO server ??
    >
    If you are using distributed environment, you can install Tomcat on client machine to connect it with server machine.
    Just make sure that there are no connectivity issues.This could be checked by typing following URL on client machine:
    http://servermachinename:8080
    Hit the above URL and determine if connectivity is done properly or not.
    Thanks,
    Chinmay

  • Migrating my development platform from J2SE to J2EE

    Context: Windows 2003 Server Edition
    I downloaded and installed J2SE 5.0. Now I want to download J2EE 5.0 to get into some serious application development.
    Should|Must I remove|uninstall J2SE first or can I just download and install J2EE over J2SE?
    Does it make sense to have both coexisting on my server/development machine?
    Thanks
    Jim

    this is not an exlusive-or situation.
    you will develop j2ee apps using j2se code and j2ee code.
    do not uninstall j2se :)

  • JSP with J2SE and J2EE

    I am learning JSP from a book that is a year old. Can you tell me if the JSP for J2EE is different from that for J2SE ?

    J2SE stands for Java2 Standard Edition which is supposed to define Java standards (and API) to run day-to-day application (single user applications).
    J2EE on other hand is Java2 Enterprise Edition. Its supposed to define standards (and API) to be used to create server application that service multiple clients.
    One does not succeed the other, rather they target diffenet segments and are complementary. J2EE is more of extension of J2SE capabilities (A J2EE application will requires API defined in J2SE packages).
    JSP is part of the J2EE specification (other part being Servlets, EJB, JavaMail, JMS etc) and its supposed to have nothing to do with J2SE excepct using the latter's API in its implementation.
    What others have been trying to tell you is that JSP is part of J2EE specification but you need not know the other components of the specification to use JSP.
    Amitabh

  • Difference between J2EE SDK J2SE SDK

    Can someone please tel me the difference between J2SE SDK and J2EE SDK, Im new to java n currently using J2SE SDK.

    difference b/w j2se nd j2eehttp://java.sun.com/reference/glossary/index.html

  • JWSDP and J2EE Integration: Doesn't work. What's the point?

    My problems involve the integration of JWSDP and J2EE as described in these two documents:
    http://developer.java.sun.com/developer/technicalArticles/WebServices/wsj2ee/
    http://java.sun.com/j2ee/documentation/windows_guide.html
    It looks like a long one, but it�s really not that bad. All comments are appreciated.
    I�ve numbered each line-paragraph-section for easy reference later.
    (1) My ultimate goal is to setup a website that displays data from a database. I will use Java, Apache, Oracle, and whatever else I need to create a website that uses servlets, JavaServer Pages (JSP), and JDBC.
    (2) I�ve got four Pentium III computers:
    1. Windows 2000 Server to be the web server (MyWebServer, IP = 10.10.1.1).
    2. Windows 2000 Professional to be the database server (MyDatabaseServer, IP = 10.10.1.2).
    3. Windows 2000 Professional that I use to develop and test (MyDeveloperPC, IP = 10.10.1.3).
    4. Windows 2000 Professional that I use as a client to connect to the website (MyClientPC, IP = 10.10.1.4).
    (3) On MyWebServer I installed the following:
    Java 2 Standard Edition (J2SE)
    Java 2 Enterprise Edition (J2EE)
    Java Web Services Developer Pack (JWSDP)
    The JWSDP tutorial
    Apache HTTP Server
    (4) The files I downloaded and installed are as follows:
    j2sdk-1_4_0-rc-win.exe
    j2sdkee-1_3_1-win.exe
    jwsdp-1_0-ea1-win.exe
    jwsdp-1_0-ea1_01-tutorial.zip
    apache_1.3.23-win32-x86-no_src.exe
    (5) After installing these products, I set the environment variables as follows:
    JAVA_HOME = c:\j2se
    J2EE_HOME = c:\j2ee
    JWSDP_HOME = c:\jwsdp
    Path = c:\j2se\bin;c:\j2ee\bin;c:\jwsdp\bin; [and other previous statements]
    (6) I checked to see that Apache is running as a service. It is.
    On MyWebServer I start Tomcat and J2EE. Both start properly and are operating simultaneously.
    (7) From MyClientPC I open Internet Explorer and in the address box I type:
    http://10.10.1.1
    This displays the page c:\ApacheHTTP\apache\htdocs\index.html.en (The Apache default server installation page.)
    (8) I then enter this address in IE:
    http://10.10.1.1:8080
    This displays the page c:\jwsdp\webapps\root\index.html (The default JWSDP page).
    (9) I then enter this address in IE:
    http://10.10.1.1:8000
    This displays the page c:\j2ee\public_html\index.html (The J2EE 1.3 Default Home Page).
    (10) So far so good. Now I want to test JWSDP as a container for JSP pages.
    (11) I use ant to build the converter app found in the tutorial examples (in folder c:\jwsdp\�\tutorial\examples\gs). I then deploy the converter app to the c:\jwsdp\webapps\gs folder.
    (12) From MyClientPC I open Internet Explorer and in the address box I type:
    http://10.10.1.1:8080/gs
    The converter app works perfectly.
    (13) To eliminate the need to enter the port number, I create a link from the Apache default server installation page to the converter app. From MyClientPC and enter this address into IE:
    http://10.10.1.1
    I then click on the link to the converter app and it works perfectly.
    (14) Question: Is this the best way to display JSP pages without having to enter the port number?
    (15) Now it�s time to integrate JWSDP and J2EE as described in these two documents:
    http://developer.java.sun.com/developer/technicalArticles/WebServices/wsj2ee/
    http://java.sun.com/j2ee/documentation/windows_guide.html
    (16) After I complete this integration I cannot start both Tomcat and J2EE at the same time. This makes sense because they both share port 8080.
    I start Tomcat.
    (17) From MyClientPC and use Internet Explorer to test the various relevant addresses. Everything works the same as it did before except this one:
    http://10.10.1.1:8000
    The page cannot be displayed. The J2EE default home page is not displayed, which makes sense because the J2EE port is no longer 8000; it has been changed to 8080.
    (18) Now I shutdown Tomcat and start J2EE.
    From MyClientPC and use Internet Explorer to test the various relevant addresses:
    (19) http://10.10.1.1:8080
    Displays the JWSDP default home page.
    (20) http://10.10.1.1:8080/gs
    The page cannot be displayed. The converter app no longer works.
    (21) From MyWebServer and use Internet Explorer to test localhost:
    http://localhost:8080
    This displays the J2EE default home page.
    (22) Question: Why does localhost give me a different page than the IP address?
    (23) Question: What was the point of integrating JWSDP and J2EE?
    (24) I want to get the converter app working, so I create a .war file and attempt to add it to the J2EE deploytool (see the two integration documents listed above at section 15.) I create the .war file following the instructions in the JWSDP tutorial:
    http://java.sun.com/webservices/docs/ea1/tutorial/doc/WebApp3.html#64606
    (25) I change to the c:\jwsdp\�\tutorial\examples\gs\build folder.
    I then type:
    jar cvf converter.war .
    A .war file is created.
    (26) I open the deploytool: File, New, Application, and I name it �converter�.
    I attempt to add the .war file: File, Add to Application, Web WAR.
    (27) When I attempt to add the converter.war file I get this error:
    �converter.war does not appear to be a valid web JAR.�
    I tried a few different attempts, all with the same result. I�m stuck.
    (28) I ask again, What was the point of integrating JWSDP and J2EE?
    (29) If this is the preferred configuration, how do I display my JSP pages like the converter app?
    Please help!!!

    The JWSDP tutorial says to be in the �build� folder of the example when issuing the jar command to create the .war file. The build folder is created when I run the �ant build� command.
    Attempt 1 from the command prompt in folder c:\jwsdp\tutorial\examples\gs\build>
    I typed this command:
    jar cvf c:\jaxmservices\converter.war .
    In this case I directed the .war file to be placed in a different folder as you suggested. Here�s the output:
    added manifest
    adding: index.jsp(in = 921) (out= 525)(deflated 42%)
    adding: WEB-INF/(in = 0) (out= 0)(stored 0%)
    adding: WEB-INF/classes/(in = 0) (out= 0)(stored 0%)
    adding: WEB-INF/classes/Converter.class(in = 582) (out= 358)(deflated 38%)
    Didn�t work. Same error as before.
    Attempt 2 from the same folder:
    I typed this command as you suggested (I tried it with and without the final dot):
    jar tvf converter.war
    Here is the output:
    java.io.FileNotFoundException: converter.war (The system cannot find the file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:103)
    at java.io.FileInputStream.<init>(FileInputStream.java:66)
    at sun.tools.jar.Main.run(Main.java:185)
    at sun.tools.jar.Main.main(Main.java:904)
    I tried a few other variations on these attempts with no luck. I�m stuck.
    I�m attempting to create a .war file out of two files: index.jsp and converter.class.
    Now that I�ve integrated JWSDP and J2EE, is there some other way that I can run the converter app instead of a .war file and the deploytool? In other words, if I go back to using ant to build and deploy converter, where would I deploy it so that it will work with J2EE?
    By the way, it doesn�t have to be converter. I�d be happy if I could get any JSP page to work in J2EE after the integration.
    Forever grateful,
    Logan

  • How to get the filename from J2SE File adapter

    In our project scenario , we are using J2EE and J2SE engine both .J2EE for mapping  and J2SE for Deliveying the message .
    In one senario, routing will be based on the filename .
    J2SE Sender File adapter --- XI Adapter --- XI pipe line
    So the File reaching to XI pipelane via J2SE File adapter--> XI adapter.
    When we are using the dynamic configurator in the XI to get the filename
    we are not able to get the file name  becasue it is coming to XI via
    XI adapter.
    How to get the filename ????Hope I am clear about the problem.

    hi,
    try this
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    //obtengo la Key del FileName
    DynamicConfigurationKey keyF = DynamicConfigurationKey.getName();
    http://help.sap.com/javadocs/NW04/current/pi/com/sap/aii/mapping/api/DynamicConfigurationKey.html
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c89607-e4d9-2910-7280-f6746e964516
    /people/mohammed.zabiulla/blog/2008/03/26/have-you-ever-tried-to-determine-mail-cc-dynamically
    Hope it helps
    Thanks
    Rodrigo
    Edited by: Rodrigo Pertierra on Apr 11, 2008 9:31 AM

  • Is the JMS adapter on the J2se supported for productive use?

    Hello ,
    I am in a big confusion whether to go with simple J2SE AE for my JMS scenario or to install the J2EE AE.
    Is there any consequences or problems or difference in using the JMS scenario in J2SE AE and J2EE AE?
    It is purely for Production purpose. Whether it is supported to use J2SE AE for configuring JMS scenario in
    production systems?
    Regards,
    Soorya.

    Hi Michal Krawczyk,
    I knew that they are using J2SE AE. But i am having more specific question like, Is it feasible to configure a JMS scenario in J2SE AE environment for business scenario in production system.
    Can you please comment on this?
    Regards,
    Soorya.

  • When starting J2EE server .....

    I have installed j2sdk 1.4 & j2sdkee1.3 on Windows XP. I have set Environment variables.
    When I start j2ee server
    COMMAN PROMPT SAYS
    C:\>j2ee
    Warning: This J2EE SDK release has only been tested on J2SE v1.3
    J2EE server listen port: 1050
    Redirecting the output and error streams to the following files:
    c:\j2sdkee1.3\logs\home\j2ee\j2ee\system.out
    c:\j2sdkee1.3\logs\home\j2ee\j2ee\system.err
    Exception in thread "main"
    C:\>
    SYSTEM.ERR shows
    Logging for J2EE Server Version: 1.3-b16 started at: Wed Apr 07 16:03:55 GMT+05:30 2004..
    Using the Java HotSpot(TM) Client VM and the version number 1.4.0 from Sun Microsystems Inc..
    VM is using the classpath: c:\j2sdkee1.3\lib\system\cloudscape.jar;c:\j2sdkee1.3\lib\system\tools.jar;c:\j2sdkee1.3\lib\cloudscape\RmiJdbc.jar;c:\j2sdkee1.3\lib\cloudscape\client.jar;c:\j2sdkee1.3\lib\classes;c:\j2sdkee1.3\classes;c:\j2sdkee1.3\lib\j2ee.jar;c:\j2sdkee1.3\lib\locale;c:\j2sdk1.4.0\jre\lib\rt.jar;c:\j2sdk1.4.0\lib\tools.jar;.;;c:\j2sdkee1.3\lib\jhall.jar .
    J2EE Home Directory has been set to: c:\j2sdkee1.3.
    java.lang.NoSuchMethodError: loadClass0
         at com.sun.corba.ee.internal.util.JDKClassLoader.specialLoadClass(Native Method)
         at com.sun.corba.ee.internal.util.JDKClassLoader.loadClass(JDKClassLoader.java:58)
         at com.sun.corba.ee.internal.util.JDKBridge.loadClassM(JDKBridge.java:181)
         at com.sun.corba.ee.internal.util.JDKBridge.loadClass(JDKBridge.java:84)
         at com.sun.corba.ee.internal.javax.rmi.CORBA.Util.loadClass(Util.java:392)
         at javax.rmi.CORBA.Util.loadClass(Util.java:233)
         at javax.rmi.PortableRemoteObject.createDelegateIfSpecified(PortableRemoteObject.java:179)
         at javax.rmi.PortableRemoteObject.<clinit>(PortableRemoteObject.java:58)
         at com.sun.enterprise.server.J2EEServer.createActivationObjects(../../src/share/com/sun/enterprise/server/J2EEServer.java:397)
         at com.sun.enterprise.server.J2EEServer.run(../../src/share/com/sun/enterprise/server/J2EEServer.java:227)
         at com.sun.enterprise.server.J2EEServer.main(../../src/share/com/sun/enterprise/server/J2EEServer.java:901)
    SYSTEM.OUT shows
    Logging for J2EE Server Version: 1.3-b16 started at: Wed Apr 07 16:03:55 GMT+05:30 2004..
    Using the Java HotSpot(TM) Client VM and the version number 1.4.0 from Sun Microsystems Inc..
    VM is using the classpath: c:\j2sdkee1.3\lib\system\cloudscape.jar;c:\j2sdkee1.3\lib\system\tools.jar;c:\j2sdkee1.3\lib\cloudscape\RmiJdbc.jar;c:\j2sdkee1.3\lib\cloudscape\client.jar;c:\j2sdkee1.3\lib\classes;c:\j2sdkee1.3\classes;c:\j2sdkee1.3\lib\j2ee.jar;c:\j2sdkee1.3\lib\locale;c:\j2sdk1.4.0\jre\lib\rt.jar;c:\j2sdk1.4.0\lib\tools.jar;.;;c:\j2sdkee1.3\lib\jhall.jar .
    J2EE Home Directory has been set to: c:\j2sdkee1.3.
    Naming service started:1050
    I tried changing the port number from 1050 to 10590 (as shown in Sun site) but didn't help. Same problem.
    One more thing, can this problem be b'coz of "Warning: This J2EE SDK release has only been tested on J2SE v1.3" this starting line on start of server.
    Can anyone tell me, y am I facing this problem and how to solve it. Other applications like deploytool, cloudscape r running fine. I didn't try others.
    Looking for help as soon as possible
    Thanks
    Trupti

    You may want to try and use J2SE 1.3 instead of J2SE 1.4. This may alleviate your issue.

  • Cannot find javac.exe in j2se 1.5.0 jdk

    hi
    i have been installing and reinstalling JDK 5.0, yes it is jdk not jre...
    and i cannot find javac.exe
    does anyone has any solution?
    thanks in advance.

    Oh, and btw, you should uninstall everything (J2EE, J2RE/jre, Forte/S1S, and Webstart) - Then install J2SE, followed by J2EE, then S1S.
    Don't install J2RE as a separate install - the J2SE install will also install it and Webstart.

Maybe you are looking for

  • External Hard Drive (USB3.0) only works through USB2.0 hub

    For quite a while now some of my external hard drives have not worked when directly plugged into my Macbook Pro (Mid 2012 running 10.8.5). They work perfectly when plugged into a USB hub and then into the macbook but not directly to the mac. Standard

  • MSI 7950 differences.

    Hey guys, what's the difference between these two cards? There's only £3 (around $2) difference and the only thing that's different is one says BE. MSI Twin Frozr 3GD5 V2/OC Radeon HD 7950 AMD Graphics Card - 3GB and MSI HD7950 TF 3GD5/OC BE AMD/ATI

  • Automatic decimal entry in Calculator

    Is there any way to set the decimal point place for entries in Calculator 4.0.5, like on a regular calculator? For example, can you set it at "2." so that if you punch in 1234 and hit an operator, it is displayed as 12.34? Just so there's no misunder

  • Generate Application Server Load Through Siebel Jobs

    I am interested in scheduling a simple job that would tax the CPU of the application server. I can schedule many jobs, such as admin notify, which barely tax the cpu. Peoplesoft had some called the simpleAEtest job that I executed on the process sche

  • Internet Explorer 11 and Windows 7

    I have a network of about 225 users that have either IE 10 or 11 installed.  both of these browsers are constantly crashing and display the recover webpage pop up.  The problem does not seem to affect all users.  on affected machines I have disabled