Question about the choice of containers of the J2EE application server

Hello,
I need to be clarified about the J2EE technology. After read some documentation about J2EE, I saw that it is possible to use different kind of containers in order to develop a J2EE application.
Actually I use an application server (JONAS) with tomcat embbeded so I develop my application that is composed by EJB and servlet. So when I build and deploy my application at the end I have got a .ear, and everything works well.
But my questions are:
1- If I installe a J2EE server where a web server (Tomcat or another) is already installed can I use this web server as my web container.
2- If it is possible how can I indicate to my J2EE server that I want to use this web server as a web container?
3- And for my application does the .ear will work or do I have to split my entire application in .jar for the EJB and .WAR for the servlet.
4- My last question, how my .war and .jar will know that they have to work together, in fact do I have to precise a link between them if yes how?
Thank you very much for any information

1. Every J2EE server must have a web container, so one will always be installed. As long as you write a compliant .war that is deployed either stand-alone or as part of an .ear, you can be guaranteed it will deploy and run.
2. The fact that you are deploying a .war or an .ear that contains 1 or more .wars is enough for the J2EE product to know you need to run the web-application on the web container. Many people uses the terms
web server and web container interchangeably. Often people are more likely to use the term web server if it runs as a separate process. If it helps, you can think of the J2EE web container as being an implementation of a servlet and jsp container that runs on top of a regular HTTP engine, but J2EE vendors don't necessarily have to have separate products for each.
3. You can either deploy a standalone .war or embed 1 or more .wars within an .ear.
4. The fact that you have a .war and an ejb-jar within the same .ear tells the application
server that they're part of the same application. If you need to talk between your web application
and the ejb, there are number of ways to express that dependency. E.g., if you want to invoke on
an ejb through its Remote client view, you would define an ejb-ref in the environment of the web-application.
--ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • I am putting together a slide show using iphoto and I wanted to add a description on each slide/photo. How can I do that? Also on the choice of music for the silde show, if the slide show is longer than one song can you chose a different song for backgrou

    I am putting together a slide show using iphoto and I wanted to add a description on each slide/photo. How can I do that? Also on the choice of music for the silde show, if the slide show is longer than one song can you chose a different song for background music?

    This might help
    http://www.apple.com/findouthow/photos/#slideshow
    Regards
    TD

  • When using Exprt PDF, the choice of language for the document to be exported is sometimes very restricted, while sometimes many more languages are available. What's the matter?

    When using Exprt PDF, the choice of language for the document to be exported is sometimes very restricted, while sometimes many more languages are available. What's the matter?

    Dear Mrs.,
    I now add 2 print screens which show what I get when I try to export a PDF from Adobe Reader and which languages are available.
    The same problem does not exist when I use the website.
    I hope this gives you a clue.
    Many thanks,
    Jos MERTENS,
    Advocaat.

  • HT201303 hi just got my new apple ipod touch i need to update my security information other wise it wont let me download apps it says to enter three questions about myself and i get to the third question and it wont let me enter the third question

    hi just got my new apple ipod touch and to download apps it wants to add questions about myself for more sercurity information. i get up to question 3 and it wont let me select a question but it will let me write an answer so i just pressed done and then it says i cant carry on because ive mised out information when it wont let me do a question!

    Welcome to the Apple community.
    You might try to see if you can change your security questions. Start here, change your country if necessary and go to manage your account > Password and Security.
    I'm able to do this, others say they need to input answers to their current security questions in order to make changes, I'm inclined to think its worth a try, you don't have anything to lose.
    If that doesn't help you might try contacting Apple through Express Lane (select your country, navigate to iCloud help and enter the serial number of one of your devices)

  • Question about using a PHP include for the head info...

    Hi,
    I'm currently using PHP includes for my site header and footer info.
    All my js/css files and meta declarations are in the head portion, which is in the header include.
    How would I go about giving each page its own individual TITLE if the modifiable content of my pages is inside the body only? Since we can't specify title inside the body, am I stuck with the same page title for each page on the website?

    Is it true that you header include file has the </head> and <body> tags embedded? It would seem a lot neater - and safer - to use two include files, one for the header and one for the body. That way, the <title> is not in either of them and you can do with it what you will.
    Barry

  • Question about  Jco conenctions/Logical name of the model and metadata

    Is it common to use the same logical name of the model and metadata across different enviroments?
    For example,  MODEL_DATA_DEST, META_DATA_DEST is used for DEV, QAS and PRD? Because i seem to have some trouble using code built in DEV to another environment if the logical name of the model and metadata is different.
    Thanks in advance

    Hi,
    No for every environment the logical name of the model and metadata are different...
    for eg: some logical names, 
    WD_RFC_METADATA_DEST
    WD_MODELDATA_DEST
    USERINFO_WD_RFC_METADATA_DEST
    USERINFO_WD_MODELDATA_DEST
    About JCo Details,
    SAP JCo Functions,Architecture,Applications,Installation,Client & Server Programming :
    http://help.sap.com/saphelp_nw70/helpdata/en/6f/1bd5c6a85b11d6b28500508b5d5211/frameset.htm
    Creating Jco destination:
    http://help.sap.com/saphelp_nw70/helpdata/en/3a/3b1b40fcdd8f5ce10000000a155106/frameset.htm
    Maintaining Jco destination:
    http://help.sap.com/saphelp_nw70/helpdata/en/94/3c1b40fcdd8f5ce10000000a155106/frameset.htm
    The SAP JCo Repository :
    http://help.sap.com/saphelp_nw70/helpdata/en/01/43e13d82fcfb34e10000000a114084/frameset.htm
    Dynamic Jco creation Blogs:
    /people/anilkumar.vippagunta2/blog/2007/02/06/dynamic-jco-creation
    /people/gregor.wolf3/blog/2004/09/23/from-function-module-to-jco-application--part-1-of-3

  • Question about auto-saving multiple files with the same template

    Is there any way to do this? The template will never change - but I will need to save it as a new file each time I open it. Just want to know if there is an automatic way to do this when the template is opened each time? Preferably numeric, starting from any number. I suppose I can just save each file myself - but as it gets up into the thousands of files - I'm not going to want to.
    It would be really cool if it could auto-save the file, assign it a number, and then place that number in the top corner of the saved document.
    If anyone can help - let me know. C.

    OK. First add a text field to the document, say "text1". You probably want it to be read-only. You can duplicate it to all pages if needed. Then open the template document, open the interactive JavaScript console (Ctrl+J), and enter the following code:
    // Interactive Console JavaScript
    // Get the folder this file is in
    var folder = path.replace(documentFileName, "");
    // Save multiple copies (from 1 to 9)
    // with the number in the text field
    for (var i = 1; i < 10; i += 1) {
        getField("text1").value = i;
        saveAs(folder + "template" + i + ".pdf");
    After you paste the code, highlight the lines and press Ctrl+Enter (or the Enter key on the numeric keypad) and Acrobat will save multiple copies to the same folder as the template. Replace "text1" with the name of the field you've set up and "template" with the name you want the copies to have before the number.

  • Questions about corruption of RT VI in the LV project

    I am using LV 8.2 and I opened a LV project that involves RT and FPGA. The FPGA is cRIO 9004 with C series modules slots.
    I have the host PC VI, the RT VI and the FPGA VI in the LV project.
    Once, when I am using the LV, when there is an error that  forces me to close all the LV application, and I choose not to report this error to window, when I open LV and the corresponding project again, it asks me to recover or cancel (not to recover) , I choose cancel. And after that, once I compiled and run the RT VI ( the RT VI will run the FPGA VI), it takes an EXTRA LONG TIME to deploy the RT VI to the RT.
      When I encounter such problem, I always open a new project , copy all the correpsding network variable, VI..... to the new project folder, compile the FPGA VI again and such problem is solved, Do I have any other better alternatives to do the same thing.

    Hi TCPIP,
    This seems to be a LabVIEW error.  We encourage users to actually report these errors to National Instruments once it happens (you do not have to report it each time it happens).  This will actually create a service request automatically, and an applications engineer would be able to assist you possibly with a workaround and possibly with information for the LabVIEW version with a version fix. 
    Would you be able to provide more information on the error?  Is there a corresponding cpp code, error name etc. that would allow us to assist you further?

  • Question about Multiple Choice Quiz

    I have multiple choice quiz that I'd like make more complex. The quiz is based on a movie clip with a series of questions on different frames and the same set of answer buttons on each frame (no keyframes on the answer button layer). The user clicks a button to go from one question to the next. There’s a scoring mechanism that displays the number of correct answers (score), the total number of answers clicked (right or wrong), and the percentage of right answers.
    For each question, only the first answer counts toward the score. If you click correctly the first time, a point is added to the score and to the total. If you click incorrectly the first time, a point is added to the total only. After you give the first answer, right or wrong, you can still click on all the answers to see which answer was correct; the correct answer button changes in appearance and the correct sound cue plays but no point is added to the score or total. If you click on a wrong answer after you’ve given the first answer, the incorrect sound cue plays but no point is added to the total. In other words, you can’t help or hurt your score after clicking on the first answer, but you can determine which answer was correct.
    This all works fine.
    But now I want to make a similar exercise that has TWO questions on each frame. The answers both come from the same set of answer buttons. The question is how to preserve the “only the first click counts” mechanism for each of the two answers, since clicking on the answer to the first question will mark the frame as “answer has been given” and prevent any further scoring. There needs to be a point given for each correct answer on the frame.
    Here’s the code from an answer button in the existing quiz. How would I modify this to allow for two answers per frame?
    on (press) {
                    /* This code executes whether this is the first click on the answer button or a subsequent click. If the answer is correct (if this is frame 1 or 3), the correct sound cue plays and the answer button changes its appearance, and if the answer is incorrect (if this is any other frame), the incorrect sound cue plays */
                    if (_currentframe == 1){
                            _parent.snd_obj.playsound("correct", "cue1");
                            answer1_mc.gotoAndStop(2);
                    }else if (_currentframe == 3){
                            _parent.snd_obj.playsound("correct", "cue1");
                            answer1_mc.gotoAndStop(2);
                    }else{
                            _parent.snd_obj.playsound("incorrect", "cue2");
                    /* This code executes only if this is the first click on the answer button. It checks to see if an answer has been clicked in this frame, and if not, it marks the answer as given (so this code will be executed only once) and then adds one point to the total, one point to the score for correct answers, and re-calculates the percentage */
                    if (!_parent.answerGiven[_currentframe]) {
                            _parent.answerGiven[_currentframe] = true;
                            _parent.total = _parent.total + 1;
                            _parent.percent = Math.round((_parent.score / _parent.total) * 100);
                           if (_currentframe == 1){
                                   answer1_mc.gotoAndStop(2);
                                   _parent.score = _parent.score + 1;
                                   _parent.percent = Math.round((_parent.score / _parent.total) * 100);
                          }else if (_currentframe == 3){
                               answer1_mc.gotoAndStop(2);
                               _parent.score = _parent.score + 1;
                               _parent.percent = Math.round((_parent.score / _parent.total) * 100);
                           }else{
                               _parent.snd_obj.playsound("incorrect", "cue2");

    This is indeed a very random issue. I have seen this in earlier versions of Captivate as well. I always create my template files from the blank theme, so I don't think it is specific to the theme.
    As for solutions, sometimes changing the quality of slide to high worked, other times just reopening Captivate worked. Here are some of the solutions I have found on these forums:
    1.  Create one more answer than I need (ie for a 4 answer question, create 5 answers) and then delete answer B.
    2.  Uninstalled/reinstalled my Captivate 6 software
    Sreekanth

  • I want to eleminate the choice of history from the sidebar

    I don't want history to show as an option on the sidebar. Currently The choices are bookmarks and history. I want the options to allow bookmarks and related videos.

    hello if you go to the top of the bars and right click on any of the word`s ie file, edit, view it will give you a option to customize, if you click on that it will give you the option to drag and drop what you want thanks andrew.
    hope this solves your problem

  • Share JVM on the client using ORACLE Forms on Oracle Application Server 10x

    Hi All,
    excuse the question, if it's wrong here:
    We have a problem running an Oracle Forms Application on an Oracle Application Server 10.1.2.3
    Local requirements do not allow multiple JVMs to run on the Client where the Oracle Forms Application is shown.
    Is there any neat way to prevent Multiple Instances of a Forms Application to each run a JVM on the client ?
    (Issue shows up on windows xp, iexplorer 8, ...)
    Any help much appreciated.

    Rephrasing...
    You have a web server - Oracle Forms.
    You want to prevent a user, which is accessing the web server, from opening more than one instance of IE (accessing the web server twice.)
    I would suspect that the answer requires support from the web server. And if that is the answer then this becomes a specific question about Oracle Forms (and not a general one about java.)

  • Questions about Windows services on a OS X 10.3 server

    Hi! I'm wanting to configure an OS X 10.3 server to participate in a Windows workgroup so I can share a directory on the server that the Windows machine can use as a backup drive, of sorts. I've got only ONE Windows box in an all-Mac network. The ultimate goal is to provide an automated backup solution for the Windows machine. I would like the Windows user to copy their files to the server so the scheduled Backup running on the server will backup their files, along with the rest of the files that are backed up to iDisk.
    So, I'm thinking I can use the Windows service on the OS X server to provide the backup directory/folder the Windows machine will map to a local windows drive, making it easy to copy files to the target backup area.
    I've got AFP, OpenDirectory (I think), and Windows service as the only services running on the OS X server. I've got the Windows service setup as a standalone server with the correct workgroup name and the Windows machine is setup with the same workgroup as the server. The Windows machine is running Windows XP.
    I've got the Windows service setup to act as the workgroup browse master and I do NOT have WINS enabled.
    Now for my questions:
    When I view the workgroup on the server in the "Network" area of Finder, I see nothing. When I view the workgroup on the Windows machine, I only see the Windows machine. On the server, I turned on the Windows service log and noticed only SMBD was starting, not NMBD. I presume this is why the server can't "see" the Windows machine and vice-versa, correct?
    I've read the following threads:
    http://discussions.apple.com/thread.jspa?messageID=2358362&#2358362
    http://discussions.apple.com/thread.jspa?messageID=4132419&#4132419
    and it looks like I need to create an account for the Windows user on the OS X server and I'm thinking I need to use the "Workgroup Manager" for that, right?
    There are no passwords for the Windows accounts that would be connecting to the same backup area on the server. Will I be able to create accounts without passwords on the server for these users or will I be required to specify a password for when the Windows machine connects to the server?
    This is my first time configuring an OS X server like this so please excuse my elementary questions.
    Thanks!
    Peace...

    You need to make sure the shortname in workgroup manager is the same as the logon name when you create the drive on the PC.
    Personally i'd do it all over IP. On the PC goto Run, and type \\ip address of server\sharename. It should then ask for a UN/PW, this is what you've entered into workgroup manager, and should be the shortname.
    That should then give you the drive.
    To map it so its always there when they log-in, goto my computer and map network drive, making sure you click the link that says 'use a different account to connect'

  • Support for the creation of a new BEA WebLogic Application Server v10.3

    To All,
    After downloading and installing the Enterprise Pack for Eclipse (Ganymede: http://download.oracle.com/otn_software/oepe/ganymede) I attempted to create a new BEA WebLogic 10.3 server - since that is the version of the application server that I have installed on my machine.
    I went to create the new server and selected "BEA WebLogic Server v10.0", since there was no option to select a WebLogic 10.3 server. I selected as the WebLogic Home directory "D:\BEA_HOME\wlserver_10.3" and received the error message: "The path "D:\BEA_HOME\wlserver_10.3" contains the wrong version of WebLogic Server. Expected version 10.0. Found version 10.3."
    Is there some way that I can create a new WLS v10.3 in Eclipse Ganymede? Do I need to download an additional plugin?
    Thanks in advance for your help on this,
    John Livingstone

    Look for WLS 10.3 under Oracle rather than BEA group.
    Konstantin

  • How to change the excel file name which is in Application server...

    hi friends,
    my requirement is getting failed, when i'm trying to change the file name which is in Application server using the FM: SXPG_COMMAND_EXECUTE.
    when i execute above FM, i can see all my required details in SM69 like:
    COMMAND NAME: ZSPOOL_TEST1      
    OS: Windows NT
    TYPE: Customer 
    OS COMMAND: cmd rename Y:\OBRZ.PDF OBRZ38582.PDF
    once the above FM is executed, i'm getting SY-SUBRC = 2 (exception: COMMAND_NOT_FOUND).
    so, can any one guide me how to resolve this issue or is there any other way to rename the file which is in AS?
    thanks in advance...

    Hi ,
    First you can tranfer the AS server file to a new application server file.
    Then you delete the original file .
    To do that you can write code as follows --
    DATA : w_file(8) TYPE c VALUE 'FILE_NAM', " your present AS file name
           w_new(8) TYPE c VALUE 'NEW_FILE',
           fs_itab(255) TYPE c,
           t_itab LIKE TABLE OF fs_itab.
    OPEN DATASET w_file FOR OUTPUT IN BINARY MODE.
    DO.
      READ DATASET w_file INTO fs_itab. " Reading value from the AS file to field string
      IF sy-subrc NE 0.
        EXIT.
      ELSE.
        APPEND fs_itab TO t_itab. " Populating internal table form the file value
      ENDIF.
    ENDDO.
    OPEN DATASET w_new FOR INPUT IN BINARY MODE. " creating a new file if that does not exist
    LOOP AT t_itab INTO fs_itab.
      TRANSFER fs_itab TO  w_new. " Transfering to file
    ENDLOOP.
    CLOSE DATASET w_file..
    DELETE DATASET w_file. " Dleting the old file
    CLOSE DATASET w_new.  " Closing the final file
    Regards
    Pinaki

  • Is the jsp forward tag fails in iplanet application server sp2?

    11/Feb/2002 17:55:41:2] error: Exception: SERVLET-compile_failed: Failed in compiling template: /EinsWebTool/QueryScreen.jsp, Parse error in JSP parser. Missing endtag: /jsp:forward
    Exception Stack Trace:
    java.lang.Exception: Parse error in JSP parser. Missing endtag: /jsp:forward
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at com.netscape.jsp.JSP.parseBlock(Compiled Code)
    at com.netscape.jsp.JSP.parseReqDisp(Unknown Source)
    at com.netscape.jsp.JSP.parseTag(Compiled Code)
    at com.netscape.jsp.JSP.parseNext(Compiled Code)
    at com.netscape.jsp.JSP.parseBlock(Compiled Code)
    at com.netscape.jsp.JSP.parse(Unknown Source)
    at com.netscape.jsp.JSP.compile(Unknown Source)
    at com.netscape.server.servlet.jsp.JSPCompiler.JSPtoJava(Unknown Source)
    at com.netscape.server.servlet.jsp.JSPCompiler.compileJSP(Compiled Code)
    at com.netscape.server.servlet.jsp.JSPCompiler.compileOrLoadJSP(Unknown Source)
    at com.netscape.server.servlet.jsp.JSPCompiler.compileInstance(Unknown Source)
    at com.netscape.server.servlet.jsp.JSPCompiler.compileInstance(Unknown Source)
    at com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callJspCompiler(Unknown Source)
    at com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callUri(Unknown Source)
    at com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callUriRestrictOutput(Unknown Source)
    at com.netscape.server.servlet.platformhttp.PlatformRequestDispatcher.forward(Unknown Source)
    at com.netscape.jsp.PageContextImpl.forward(Unknown Source)
    at jsp.APPS.EinsWebTool.Login._jspService(Compiled Code)
    at jsp.APPS.EinsWebTool.Login.service(Login.java:42)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown Source)
    at com.netscape.server.servlet.servletrunner.ServletRunner.callJSP(Unknown Source)
    at com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callJspCompiler(Unknown Source)
    at com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callUri(Unknown Source)
    at com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callUriRestrictOutput(Unknown Source)
    at com.netscape.server.servlet.platformhttp.PlatformRequestDispatcher.forward(Unknown Source)
    at com.netscape.server.servlet.jsp.JSPRunner.service(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown Source)
    at com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Compiled Code)
    at com.kivasoft.applogic.AppLogic.execute(Compiled Code)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at com.kivasoft.thread.ThreadBasic.run(Compiled Code)
    at java.lang.Thread.run(Compiled Code)

    Hi,
    Yes, I was able to code this sucessfully and got it working. Here is the code I used...
    <%
    String fortune = (String) request.getAttribute("fortune_string");
    %>
    <HTML>
    <HEAD><TITLE>Fortune Sample Application</TITLE></HEAD>
    <BODY BGCOLOR=#FFFFFF>
    <H2>The Oracular Servlet greets you!</H2>
    <p>
    Your fortune is...
    <%= fortune%>
    <p>
    <p>
    <hr size=0>
    <p>
    <FONT SIZE=2>Sample Applications
    <jsp:forward page="/ias-samples/index.html">
    </jsp:forward>
    </BODY>
    </HTML>
    and I got it working. I believe the code is missing some tag, which I tried, but got error in KJS like...
    [15/Feb/2002 11:23:49:7] info: --------------------------------------
    [15/Feb/2002 11:23:49:7] info: jsp.APPS.fortune.fortune: init
    [15/Feb/2002 11:23:49:7] info: --------------------------------------
    Null text data??
    2002-02-15 11:24:16 - error-the file '\fortune.jsp' generated the following pars
    e exception: org.apache.jasper.compiler.ParseException: C:\iplanet\ias6\ias\APPS
    \fortune\fortune\fortune.jsp(17,0) Expected "param" tag with "name" and "value"
    attributes after the "params" tag.
    In your case, I suspect, either the parser is not able to convert the .jsp file appropriately, or some inappropriate tag. If this doesn't help please send me your code & I can help you on this regard.
    Regards
    Raj
    [email protected]

Maybe you are looking for