Difference between .war file and .ear file

Hi,
what is the difference between .war file and .ear file ?
Please let me know with appropriate explanation.

War file means web application archive. It is archived file having a collection of JSP, servlets and static pages that together costitute a web application. It contains one WEB-INF directory which will have a file named web.xml which defines the structure of the web application.
On the other side EAR file is Enterprise application archive. It is file having packaged content of one or more modules into a single archive so that the deployment of all the modules can be done simultaneously on the application server. It also contains XML files called deployment descriptors which gives the details of the deployment method. This deployment descriptor will be present in the folder META-INF folder.
So the main difference betwwen the two is that Ear file is having collection of various modules to be deployed on the application server while the WAR file is used to deploy the web applications.

Similar Messages

  • Behaviour differences between  war file and exploded directory

    Hi,
    I'm baffled by differences in how my web app behaves when deploy in a war file and when deployed in exploded directory.
    Firstly when I deploy in exploded directory format (using wldeploy in ant) - the jsps do not precompile. However, when I deploy the war file - again using ant and wldeploy - precompile works just fine - and general performance seems better.
    Secondly - the webapp has a pdf file - which is used as a template to dynamically produce a document. When deployed
    in exploded format - the webapp works fine and is able to read the pdf. However, when I deploy in war file, the pdf cannot be read.
    Surely the behaviour should be the same whether we deploy as a war or exploded.
    Someone please help
    Tariq

    Some behaviors will be different between a WAR file deployment and an exploded WAR deployment.
    With respect to JSP precompile, you just say "they do not precompile", so I can't tell anything about that.
    When you read files from an exploded WAR, you can reference them in two ways: as a resource, or as an absolute file path. When you read files from a WAR file, you can only read files as a resource, and not as an absolute file path. You're not giving any information about how you're reading the file, so I can't tell about that either.
    You'd have to provide more detail to get better answers.

  • What is the difference between Topic Keywords and Index File Keywords?

    What is the difference between Topic Keywords and Index File Keywords? Any advantages to using one over the other? Do they appear differently in the generated index?
    RH9.0.2.271
    I'm using Webhelp

    Hi there
    When you create a RoboHelp project you end up with many different ancillary files that are used to store different bits of information. Many of these files bear the name you assigned to the project at the time you created it. The index file has the project name and it ends with a .HHK file extension. (HHK meaning HTML Help Keywords)
    Generally, unless you change RoboHelp's settings, you add keywords to this file and associate topics to the keywords via the Index pod. At the time you compile a CHM or generate other types of output, the file is consulted and the index is built.
    As I said earlier, the default is to add keywords to the Index file until you configure RoboHelp to add the keywords to the topics themselves. Once you change this, any keyword added will become a META tag in the topic code. If your keyword is BOFFO, the META tag would look like this:
    <meta name="MS-HKWD" content="BOFFO" />
    When the help is compiled or generated, the Index (.HHK) file is consulted as normal, but any topics containing keywords added in this manner are also added to the Index you end up with. From the appearance perspective, the end user woudn't know the difference or be able to tell. Heck, if all you ever did was interact with the Index pod, you, as an author wouldn't know either. Well, other than the fact that the icons appear differently.
    Operationally, keywords added to the topics themselves may hold an advantage in that if you were to import these topics into other projects, the Index keywords would already be present.
    Hopefully this helps... Rick

  • Difference between nio-file-manager  and nio-memory-manager

    Hi,
    what's the difference between nio-file-manager and nio-memory-manager? The documentation doesn't really discuss the differences as far as I know. They both use nio to store memory-mapped files don't they? What are the advantages/disadvantages of both?
    When to choose the first one and when the second when storing a large amount of data? Can both be used to query data with the Filter API? Are there size limits on both?
    Best regards
    Jan

    Hi Jan,
    The difference is that one uses a memory mapped file and one uses direct nio memory (as part of the memory allocated by the JVM process) to store the data. Both allow storing cache data off heap making it possible to store more data with a single cache node (JVM) without long GC pauses.
    If you are using a 32 bit JVM, the JVM process will be limited to a total of ~3GB on Windows and 4GB on Linux/Solaris. This includes heap and off heap memory allocation.
    Regarding the size limitations for the nio-file manager Please see the following doc for more information.
    With the release of 3.5 there is now the idea of a Partitioned backing map which helps create larger (up to 8GB of capacity) for nio storage. Please refer to the following doc.
    Both can be used to query data but it should be noted that the indexes will be stored in heap.
    hth,
    -Dave

  • File format differences between Illustrator CS2 and CS3

    Does anyone know the difference between the file format of Adobe Illustrator CS2 and CS3? Is there a document that documents this? Can someone send a link? The reason I am asking is that I have written a plug-in which saves the current CS3 document back down to CS2 so that users who are still using Adobe Illustrator CS2 can open it. However, if the same document is opened by a CS3 user, what objects, constructs or data structures are likely to be lost because the file has be converted down to CS2? Most things seem to be retained and I have yet to find a problem but if yo save manually from CS3 to CS2, Illustrator puts up a warning stating "Saving to a legacy format may cause some changes to your text layout and disable some editing features when the document is read back in". Does anyone have any more detail on this?
    Thank you

    There are new features in CS 3 as opposed t CS 2 and the text engine has been improved some what in CS 3. If you have text on a path that is say curved you are going to see a loss in the spacing and way it is oriented. fixed in CS 4.
    I forget some of the new features in CS 3 what was not a feature in CS 2 will be flattened when saved back.
    Or the feature will simply not be available.

  • What is the difference between undo tablespace and online redo log files.

    what is the difference between undo tablespace and online redo log files. I am confused
    as per my knowledge undo tablespace is used to store the undo information when a table is being updated so that, just incase we need to rollback a transaction we know what was present in the table earlier.
    when a transaction fails the SMON performs the rollback of the data.
    This undo data is stored in the undo tablespace and read consistency if any is enforced.
    is my understanding till here correct?
    Now, can this undo data/before image not be stored in the redo log buffer and online redolog files?
    can redo-log files not store this information?
    in fact, is it that when undo tablespaces exist in a database, the undo data/before image is stored in both the undo tablespace and also the redo log files?
    kindly clarify my doubt.
    thank you.

    This question has been asked many times before. The answer is always the same.
    Yes, redo contains the before image of data (and the after-image). Therefore, it **COULD** be used to roll back a transaction.
    BUT... Redo is written sequentially. Using it to rollback your transaction would involve reading through all the redo written by maybe thousands of other people. It would be painfully slow.
    Your transaction is, however, directly linked to just the UNDO that it generates (which is JUST the before image of the data). So, your undo is your undo and doesn't share space with anyone else's undo. Therefore, using it to roll back YOUR transaction is fast.
    The fact that undo is only the before image of the data also makes it faster than wading through a sea of before and AFTER images as you'd find in redo. About twice as fast, in fact, since there's half the data. Roughly.
    Redo also gets written and flushed to disk whenever there's a commit, 3 seconds are up or too much (1MB, actually) redo gets generated between flushes caused by other factors. Your redo gets flushed when those things happen, even if you haven't actually committed your transaction. And redo logs recycle themselves, meaning that your redo -even if your transaction hasn't been committed yet- can be over-written by later transactions. Try rolling back when that's happened, if redo was the source of your rollback data!
    Undo, however, cannot be over-written if the transaction has not been committed. Ever. If you don't commit for three years, there will be three years' undo stored in your database (assuming you had the space, of course!).
    I could go on, but that will do. Redo is there fore RECOVERY, after catastrophe. Undo is there for read-consistency (and the occasional change of mind). Two different functions. Two different mechanisms. Each one highly tuned to doing what it does, why it does it, most efficiently and effectively.

  • Difference between jar file and package?

    What is difference between a package and jar?
    Is a jar a package? or is package jar?
    If I say
    package pink;
    does it mean pink is folder or jar?
    what if I say import pink.rose;
    does it import jar file with the rose class inside it?

    These two concepts are unrelated. A jar file is nothing more than a zip file of class files and other related resources, which you can use to 'bundle' your application for ease of deployment. Th use of zip files is not mandatory.
    Packages on the other hand, are a means of 'packaging' parts of an application or library in their own namespace, generally for reasons program structure, and to avoid naming collisions. A bunch of classes in a package will be compiled into a bunch of class files, on a one-to-onwe basis (one file per class).
    You may chose to 'bundle' those and other classes into a jar file.

  • What is the difference between httpd.pid and httpd.lock files?

    What is the difference between httpd.pid and httpd.lock files?

    Hi;
    Apache httpd saves the process id of the parent httpd process to the file logs/httpd.pid .
    LockFile
    Sets the path to the lockfile used when Oracle HTTP Server is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or USE_FLOCK_SERIALIZED_ACCEPT. It is recommended that default value be used. The main reason for changing it is if the logs directory is NFS mounted, since the lockfile must be stored on a local disk.
    For example: LockFile /oracle/Apache/Apache/logs/httpd.lock"
    Please see:
    http://download.oracle.com/docs/cd/B14099_19/web.1012/b14007/fileloc.htm#sthref254
    Regard
    Helios

  • Difference between importing files and adding files/folders to liabrary?

    When I want to bring in new music into my liabrary from my my music folder, I don't know the difference between importing them and adding a file. They both seem to bring up the my music folder and seem to give me the same options?

    To quote from the following link:
    "When you add something to the library, essentially you are taking existing audio or movie files and adding an entry for each to your iTunes Library index. iTunes adds entries in your iTunes library for the selected files, and copies the files to your iTunes Music folder (if you have that option selected in the Advanced pane of iTunes preferences)."
    "The Import menu item allows you to import playlists and other data files into iTunes."
    For more see this page: About the Add to Library, Import and Convert functions

  • Difference between db file sequential read and scattered read

    Hi,
    Oracle Version : 10.2.0.1
    Operating system: Linux
    Can any one please help me what is the difference between db file sequential read and scattered read or please give any best related links .
    Thanks & Regards,
    Poorna Prasad.

    >
    A sequential read is a single-block read. Single block I/Os are usually the result of using indexes.
    A db file scattered read issues a scattered read to read the data into multiple discontinuous memory locations. A scattered read is usually a multiblock read. It can occur for a fast full scan (of an index) in addition to a full table scan.
    >
    See Performance Tuning Guide:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/instance_tune.htm#i20526
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/instance_tune.htm#i15958
    Edited by: P. Forstmann on 20 oct. 2009 09:11

  • Difference between  MDM adaptor and File adaptor?

    Hello All,
    Could any one light on the difference between PI Adaptor and File adaptor?
    Thanks
    Rajeev

    Hi,
    >>>Could any one light on the difference between PI Adaptor and File adaptor?
    for MDM <= 5.5
    there was no difference as file adapter was the MDM adapter
    it changed with the latest version as Shabz mentioned
    Regards,
    Michal Krawczyk

  • Difference between page file and swap space

    Hello friends
    What is difference between swap space and page file???
    I set the page file to 0 MB(No page file) but when I use Everest Software it show 1023 MB swap Space.Is there difference between them?

    Swapping meaning data in and out from memory ie. primary to secondary. Paging is also the same thing, but its mostly used nowadays as virtual memory is based on pages. So, its like pages in and out. Swap space the memory used for swapping entire processes
    from system memory into the swapfile. Where as paging transfers the pages to page file when the memory is almost full.
    Regarding Everest, I think you should check with the supplier.
    Arnav Sharma | Facebook |
    Twitter Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members
    reading the thread.

  • Differences between .profile,oraenv and dbhome files

    can anyone tell me the differences between .profile,oraenv and dbhome.
    database version is 10.2.0 and OS is solaris 10.
    I have set up the environment variables using .profile
    is the functionality of oraenva and dbhome same like .profile?

    Hello,
    oraenv and oracle home_
    The oraenv and coraenv utilities both aid in setting the Oracle environment on UNIX systems (other utilities exist on Windows platform that enable the Oracle Home to be set.) The coraenv utility is appropriate for the UNIX C Shell; oraenv should be used with either the Bourne or Korn shells.
    Database operations require the ORACLE_HOME to be set before the user may access the database. If ORACLE_HOME is not set, commands such as sqlplus, exp, or any other utility for that matter, will not be found.
    Both utilities are shell scripts that do the same thing in the different UNIX shells. They will prompt for a SID of the database unless ORAENV_ASK is set to N. The utility will also append the ORACLE_HOME value to the path, marking the location of the utility.
    The oraenv command will prompt for the SID of the database that you wish $ORACLE_HOME to access.
    $ . oraenv
    ORACLE_SID = [] ? ASG920
    The dbhome utility can now be used to verify that $ORACLE_HOME is correct.
    $ dbhome
    /usr/oracle/9.2.0
    The “dot space” part of the command is required to make the environment change with the parent shell, as opposed to entering a command without it which would only affect the subshell running that process.
    These commands can be used to avoid specifying the network service name when issuing commands. For instance, without using oraenv, a sqlplus command would look like:
    $ sqlplus system/manager@nameofservice as sysdba
    whereas after oraenv has been executed, the following command would work:
    $ sqlplus system/manager as sysdb
    The profile:_*
    The Profile file in your home directory is a collection of Korn shell commands that are executed whenever you login. Commonly, the Profile file is used to set environment variables and shell options. You can also put command aliases in your Profile file, but it's better to put them in a separate file -- commonly called .env (which is pronounced: dot-e-n-v)-- that you define and execute in your Profile (which is pronounced: dot-profile).
    This document briefly introduces environment variables, shell options, and aliases, and gives sample Profile and .env files.
    The commands in this document assume that you're using Korn shell, which is the default login shell on all the ACCC UNIX machines. Shell variables (like $PRINTER and $ENV, which are introduced below) are defined slightly differently in C shell. For example, to select the U-Print system as your default printer in csh you'd use the printer named uprint:
    PRINTER uprint
    setenv PRINTER

  • Difference between two files

    Hi, I need to find difference between two files.
    This is an example:
    oldfile.txt:
    This is the old file.
    I need some help with
    this task!.
    newfile.txt:
    This is the new file.
    I need help with this task please!.
    Differences:
    * old -> new
    * need -> need
    * "some" was deleted
    * please was added
    Notice that I don't care spaces, new lines or tabs.
    The code should looks like:
    enum DifferenceType { Added, Deleted, Replaced };
    class DiffText {
      public String Text;
      public DifferenceType Type;
      public String ReplacedText;
      Diff d = new Diff("oldfile.txt","newfile.txt");
      while(!d.end()) {
        DiffText dtext = d.getNext();
       String s = "";
        switch(s.Type) {
          case Added:       System.out.println(s.Text + " ~ added");
          case Deleted:    System.out.println(s.Text + " ~ deleted");
          case Replaced: System.out.println(s.Text + " replaced by " + s.ReplacedText);
      }Thanks for your help in advance.

    Suppose you have two arrays filled with integers.
    What you want to do is map the integers from one
    array to the other.
    In your example, your arrays would look like:
    this is the old file i need some help with this task
    [0 1 2 3 4 5 6 7 8 9 0 10]
    this is the new file i need help with this task please
    [0 1 2 11 4 5 6 8 9 0 10 12]
    Here, I've assumed you've removed all punctuation and
    new line characters, and changed to lowercase.
    The easiest way is to walk through the arrays greedily.
    However, you may be able to research algorithms that
    do a better job of matching.

  • What is the difference  between  data file  & control file

    what is the difference  between  data file  & control file

    Dear Deba s
    Control file
    Every Oracle Database has a control file, which is a small binary file that records the physical structure of the database. The control file includes:
    The database name
    Names and locations of associated datafiles and redo log files
    The timestamp of the database creation
    The current log sequence number
    Checkpoint information
    For more info look into these
    [Control File Basic|http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14231/control.htm#i1006143]
    Data File
    You manage Data File in your Oracle database as part of Space Management. You can extend, create, drop, and alter tablespaces.
    You especially need to avoid tablespace overflow, which is when a tablespace runs out of freespace in the allocated file or files. This happens when an object requires a new extent but there is either no freespace or insufficient freespace in the tablespace
    For more info look into these links
    [Data files |http://help.sap.com/saphelp_nw04/helpdata/en/98/5dd5890f32274aa884e45e736752a2/frameset.htm]
    http://help.sap.com/saphelp_nw04/helpdata/en/98/5dd5890f32274aa884e45e736752a2/frameset.htm
    Hope it helps you,Revert me back if you have any queries
    Assign points if helpful
    Regards
    Bala

Maybe you are looking for

  • Problems with voice memo

    Hey, i've got a problem with voice memos. When i record them they are very quiet. It's something different when i record sound via video or use the headphones to record a voice memo. Then they have a normal volume. Any ideas? Got an iPhone 6 with iOS

  • Cant find itunes music on backup

    I erased and installed my mac. I put my music back into itunes but only have 400 songs, I did have 4000! Where could they be?

  • Password for pc synch

    i can't synch my blackberry to my pc because i need a password, but i haven't set one and trying to contact blackberry to sort it out is impossible. any ideas?

  • Help with iPhoto 11

    I have about 2000 duplicated photos.  Is there an easy way to only delete the photos that are duplicated??

  • E5 became slow after update and some application d...

    hi again  to every 1 who didnt see my last 2 post i will tell u the story  i have e5 phone  with software V042.007 i updated it to V042.014 then i found its slow and some application (clock is one of these applications) doesnt work  i tried every thi