Folder structure to deploy EJB3

Hi i am planning to run a SImple EJB for pratice purpose . So please help
package ejb3.bean;
import javax.ejb.Remote;
@Remote
public interface HelloEjb {
    String printHello(String name);
package ejb3.bean;
import javax.ejb.Stateless;
@Stateless
public class HelloEjbBean implements HelloEjb {
    public HelloEjbBean() {}
    public String printHello(String name) {
        return "Hello bro " + name + " welcome to EJB 3";
}I compiled both this files and made a jar file of that folder .
Now please tell me what should be the folder structure so that the servlet can call this EJB .( I will use simple JNDI lookup for now )

I agree with the post above about using an IDE, but I understand your need to do this manually so that you learn what's going on.
Anyway, here's an example of an .ear structure (taken from EJB3 in Action):
META-INF/application.xml
actionBazaar-ejb.jar
actionBazaar.war
lib/actionBazaar-commons.jarapplication.xml is the deployment descriptor that describes the standard Java EE modules packaged in each EAR file. The contents of application.xml look something like this:
<application>
  <module>
    <ejb>actionBazaar-ejb.jar</ejb>  
  </module>
  <module>
    <web>
      <web-uri>actionBazaar.war</web-uri>  
      <context-root>ab</context-root>
    </web>
  </module>
</application>Ejb jars also contain a descriptor of their own, ejb-jar.xml and perhaps persistance.xml if you've packed a JPA persistence unit. These are also kept inside META_INF. War is your standard web app, and under lib you put auxiliary classes and libraries you might need.
For more info, get a copy of Wiley's Mastering EJB3, it's free and it's a decent book.

Similar Messages

  • Exchange 2007,  Contacts and Calendar OK , Email only folder structure

    Hi, as i was reading many different topics I found that many of them had mixed answers between Exchange 2003, Exchange 2003 and 2007. Because of this mess, i wanted to focus ONLY on *EXCHANGE 2007*. That´s been said...
    I have configured my iPhone with the user/pass/domain/address/SSL-ON, the iPhone connects to exchange and syncronize correctly Contacts and Calendar but not the Email. Email just shows folder structure.
    After this first failed attempt I installed the certificate (Unsigned according to iphone and contains "Root Certificate")... No Improvement
    I contacted my IT department , they said that Activesync was supposedly ON in my user profile and that SSL was mandatory. They also said that they cannot start testing thoroughly because it would disroupt other users. They also argue that many users are using activesync service with no problem what-so-ever. However they incouraged me to keep looking for an answer.
    I couldnt find an apple guide to configuration for Exchange 2007, the enterprise deployment guide is just to vague.
    _This info comes from "About" in OWA_
    +Mailbox Owner: Juan I*** ****** [**@*****.net]+
    +User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-AR; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1+
    +OWA Experience: Basic+
    +User Language: English (United States)+
    +User Timezone: (GMT-03:00) Buenos Aires, Georgetown+
    +Exchange Mailbox Address: /o=First Organization/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=*+
    +OWA Host Address: http://webmail.*****.net/owa+
    +OWA Version: 8.0.605.16+
    +Exchange Client Access Server .NET Framework Version: 2.0.50727.1433+
    +Exchange Client Access Server OS Version: Microsoft Windows NT 5.2.3790 Service Pack 2+
    +Exchange Client Access Server Version: 8.0.605.0+
    +Exchange Client Access Server Language: en-US+
    +Exchange Client Access Server Timezone: Hora estándar romance+
    +Exchange Client Access Server Flavor: 32bit+
    +Mailbox Server Name: exchange.*****.***+
    +Mailbox Server Exchange Version: 8.0.605.0+
    +Other roles currently installed on CAS server: Mailbox, Hub Transport+
    +Authentication type associated with this OWA session: Basic+
    +Public logon: Yes+
    *Does anyone have a Check-List for Microsoft Exchange 2007?*
    Please forgive my lousy English.
    Message was edited by: Nachiarg

    I don't think there will be a solution to this. Exchange 2003 just isn't supported.

  • Building a war file with a folder structure

    How do a build a war file with a folder structure? I have code that creates JarEntrys and writes jar files and resource files etc. to the war. When I look at the war that gets created using winzip the path names for all the entries are correct and everything appears correct. When I try to deploy this to Tomcat nothing deploys. It appears my war is in a folder structure. How can a build this folder structure in the war? When I look at a good war using BeyondCompare I see folders and files in the folders just like I would see looking at a directory on my system. When I use BeyondCompare to view one of my "bad" war files that I have created everything is in the root. There are no folders and no folder structure. I am using the java.util.jar API to create the war but I don't see any methods or any API that will let me build up any sort of folder structure. It seems like I am missing something basic here.

    command is same for creating jar/war/ear.
    u simply need to execute jar /? for detail.

  • Here i am giving u my folder structure

    This is my folder Structure
    1.Ejb1
         -Com package
              --com.insu.InsuranceBean(Session Bean)
              --com.insu.InsuranceHome
              --com.insu.Inurance(Remote)
         -META-INF
              --sun-ejb-jar.xml
              --ejb-jar.xml
         --Ejb1.jar
    2.web
         -WEB-INF
              --sun-web.xml
              --web.xml
              --Classes
              --lib
         --jsps
         --web.war
    3.Application
         --META-INF
              --application.xml
         --App.ear
         --Ejb1.jar
         --web.war
    Here i am deploying App.ear in the sun one Application server. Then i am getting this error
    Error
    Deployment Error -- Error while running ejbc -- Fatal Error from EJB Compiler -- -- Failed to load deployment descriptor for: App cause: I/O error while reading web xml into object representation

    Thanks for responding.
    I have used iPhoto forever and have all my photos categorized in iPhoto's folders and subfolders, organized chronologically by events of my liking: sports, holidays, vacations, etc (through the past 6-7 years). I was peeved when a few updates ago, iPhoto made iPhoto's "Events" the substantial organizational structure, and deleted many of my photos in their "Photos" library. Imported photos seemed to be imported only into iPhoto's "Events" and not in the previous huge umbrella of "Photos", many of my photos disappeared in the "Photos" library, they still existed in "Events (another question). I could still however make my folders and subfolders within iPhoto separate from the "Events" structure which I continued to do. Today, however, I went to upload a bunch of my favorite photos that I had put in a folder in June of my daughter's graduation, I wanted to upload these photos in my mac mobile website but all the photos were gone from that grad folder. They are still in an iPhoto "Event", thus they exist but they have been removed from the folder I created only a month ago. Then I noticed ALL my photos in ALL the folders that I have created through the years are gone, there is only a place holder of where the photo used to be. The folders are still there with the names I gave them.
    I have not done anything to bring them back.
    I don't understand the "managed" library that you mention. I have never had to even think about this.

  • How to develop repository manager with initial folder structure

    Hi 2 all!
    I wonder if it is possible to create new repository programmatically with defined folder structure. I'm interested in solutions when repository manager is works with db or file system. Can you provide any example or tell me where can I define my structure?
    thnx

    Hi Nata!
    Basicly this task consists of two steps:
    1. Deploy a new configuration object for the repository manager
    2. Create the intial folder structure
    Step one is simple. Here is the configuration object of the repository manager for /documents. It's been exported from the KM configuration by using the standard export mechanisms. This can be included into a portal application project in Netweaver Studio.
    documents.co.xml
    <?xml version="1.0"  encoding="UTF-8" ?>
    <!-- file generated by configuration framework Jun 27, 2008 9:16:36 AM -->
    <Configurable configclass="CmRepositoryManager" owner="km.appl.rep.mgr.prjconfig">
    <property name="ro-expiry-time" value="0"></property>
    <property name="fsconttrack" value="true"></property>
    <property name="poolid" value="dbcon_wcmdb_cm"></property>
    <property name="securitymgr.aclcacheid" value="ca_rsrc_acl"></property>
    <property name="localroot"></property>
    <property name="serverfarm" value="false"></property>
    <property name="propertysearchmgr.class" value="com.sapportals.wcm.repository.manager.cm.CmPropertySearchManager"></property>
    <property name="keepVersionHistory" value="false"></property>
    <property name="securitymgr.aclcfg" value="acl_jdbc_rep"></property>
    <property name="versioning.localroot"></property>
    <property name="persistence.mode" value="db"></property>
    <property name="hidden" value="false"></property>
    <property name="fsnosync" value="false"></property>
    <property name="cacheid.versionhistory"></property>
    <property name="prefix" value="/documents"></property>
    <property name="fsContentCacheMaxEntries" value="-1"></property>
    <property name="fsContentCache"></property>
    <property name="name" value="documents"></property>
    <property name="cacheid.content"></property>
    <property name="compressLimit" value="-1"></property>
    <property name="cacheid.foldercontent"></property>
    <property name="cacheid.properties"></property>
    <property name="active" value="true"></property>
    <property name="cacheid.rid"></property>
    <property name="ignorerootdisplayname" value="false"></property>
    <property name="class" value="com.sapportals.wcm.repository.manager.cm.CmRepositoryManager"></property>
    <property name="cclist"></property>
    <property name="intLinksDefaultDynamic" value="true"></property>
    <property name="contentmgr.class" value="com.sapportals.wcm.repository.manager.cm.CmNamespaceAndContentManager"></property>
    <property name="cacheid.documents"></property>
    <property name="versioningmgr.class" value="com.sapportals.wcm.repository.manager.cm.CmVersioningManager"></property>
    <property name="securitymgr.w2kcfg.systemid"></property>
    <property name="lockmgr.class" value="com.sapportals.wcm.repository.manager.cm.CmLockManager"></property>
    <property name="cacheid.locks"></property>
    <property name="securitymgr.class"></property>
    <property name="persistence.db.instance-id" value="documents"></property>
    <property name="cacheid" value="ca_cm"></property>
    <property name="namespacemgr.class" value="com.sapportals.wcm.repository.manager.cm.CmNamespaceAndContentManager"></property>
    <property name="autoversioning" value="false"></property>
    <property name="description"></property>
    <property name="securitymgr.ref" value="AclSecurityManager"></property>
    <property name="fsContentCacheLimit" value="100"></property>
    <property name="propertymgr.class" value="com.sapportals.wcm.repository.manager.cm.CmPropertyManager"></property>
    <property name="services" value="accessstatistic, com.dkv.DKVApprovalAndTranslation, com.dkv.jobtool.repository.JobToolCreationService, comment, discussion, feedback, layout, personalnote, properties, rating, statemngt, subscription, svc_acl, tbp"></property>
    <property name="sendevents" value="true"></property>
    </Configurable>
    This is a DB repository. The config object for a filesystem repository might differ.
    Step 2, the creation of the initial file structure may be done with in two different ways:
    a) Include a Repository Service with your repository, which creates the folder structure on the first access of your repository.
    b) Include a Portal app which has to be called once to create the folder structure.
    For more info about using the API to create km folders take at look at this:
    https://www.sdn.sap.com/irj/sdn/thread?threadID=933638&messageID=5663711#5663711
    Cheers,
      Jürgen

  • How do I move photos in a Smart Collection and keep folder structure?

    HI there I am on a trial of Lightroom and loving it so far.  One seemingly simple task I would like to try out is moving all my RAW files (which are all mixed up with JPGs and PSDs to a new location and keep the current folder structure.
    Currently I have files strcutured like this: <main disk>\<year>\<month>\<filename>.cr2 and I would like to move these to <different disk>\<year>\<month>\<filename>.cr2
    The Export functions look as if they will put them all in to one big folder?  Any ideas?
    Many thanks in advance.

    There are several approaches to this problem. You could do this via the Folders panel in LR. You can do just about everything in the Folders panel that you can do in Explorer or Finder. Just create folder and drag and drop.
    Another way is to do this outside LR use Explorer (Windows) or FInder (Mac). after you're done then go back into LR and tell LR where to find the moved files. Depending on how many you have this could be a bit tedious.
    Another method is to choose the files you want then Export them as a Catalog. When you do this be sure to include the option to export the negatives. Point the new catalog at you other drive. It will recreate the folder structure during the export. Then remove the images from your present catalog. Don't delete from disk just remove. Now import from catalog and choose the newly exported catalog. This time choose the option to add the files without moving them. Once you are sure everything is back and is fine you can use Explorer or Finder to go into your original file structure and delete the files that were moved to the new drive.  Be careful to only choose the moved files. If you are separating the RAWs out this should be relatively easy.
    I hope that helps!

  • How can I batch move files to the same folder structure in a different location?

    Hi,
    I recently had an issue with my iTunes Library so I used the Organize Library feature to have iTunes organise my library.  What happened was that it put all of my music in a folder called 'Music' on my external hard drive, whereas previously it was not in a folder at all, e.g.
    BEFORE: External Hard Drive / Abba / Greatest Hits / Mama Mia.m4a
    AFTER: External Hard Drive / Music / Abba / Greatest Hits / Mama Mia.m4a
    I don't have any particular issue with the updated folder structure, except that I had copies of the artwork for each album in my album folders, and these weren't moved when the audio files were moved/consolidated/organised.  So I need to find a way of moving all of the artwork to the new folders, e.g.
    External Hard Drive / Abba / Greatest Hits / folder.jpg
    needs to become:
    External Hard Drive / Music / Abba / Greatest Hits / folder.jpg
    I have to do this for 3,000+ albums, and I have multiple artwork files for some albums, so I am hoping that there is a way of doing this using a batch/automated method of some kind, but I haven't been able to turn up anything yet.
    Can someone help with this?
    Thanks,
    Nick

    You can make a smart playlist containing episodes of both series and play from that. Podcasts are linked together by the URL they are served from so merging ongoing series isn't really practical.
    tt2

  • Hi. I am having trouble with the folder structure.

    I import my pictures like probably most Lightroom users.
    They go to:
    Pictures / (Year)  / (Subfolder name crated checking "Into Subfolder" during import)
    Recently, after upgrading to Yosemite, when I import to this structure, Lightroom creates a folder visually outside it. Above, the "01_Sao_Paulo" folder should appear inside 2015 while "12_Atacama" and "12_Hasselblad" under 2014. The right folders were actually created when I check them in Finder.
    And when I try to move the folders under the right folder structure, Lightroom recognizes  that the folder already exists.
    My question two questions are:
    1. How do I make the folders appear correctly under the right folder structure?
    2. How do I make Lightroom stop creating the folders outside the structure on my next imports?
    Thanks for any help.

    Back up your iPhoto library, Depress and hold the option (alt) and command keys and launch iPhoto - rebuild your iPhoto library database
    LN

  • Using Metadata to generate view as conventional folder structure

    Can Metadata be used to generate a view as the conventional folder drill-down?
    I have a list with metadata for different projects, releases, content type etc and I would like to view them in folder structure with different hierarchies, i.e. using projects--> releases--> content-type as well as release --> projects --> content-type.
    I have asked the same question at : http://stackoverflow.com/questions/22693036/using-metadata-to-view-as-conventional-folder-structure

    Hi,
    If your metadata is based on a hierarchical term set you could use ‘Metadata Navigation’.
    You may have to change your information architecture a bit to accommodate this approach. More info on ‘Metadata Navigation’ here:
    http://office.microsoft.com/en-gb/sharepoint-server-help/configure-metadata-navigation-for-a-list-or-library-HA101820113.aspx
    Hope this helps
    Cheers
    Matt

  • How to make file folder structure from virtual folders

    lv 2013 sp1
    This is the layout of an example project, (please don't mind the horrible naming)
    When i create a source distribution.. no matter what settings I try, the preview is always like this:
    But I want the folder structure from the build to become as the virtual folder structure. is there any way of doing this without moving them by hand in the file explorer tab?
    Solved!
    Go to Solution.

    Unless you use auto-populating folders (which I don't like), the virtual folders are not meant to reflect the location on disk, so it certainly won't be automatic.
    I don't have experience with source distribution, but other build types have the option of configuring destination folders in the Destinations category and then assigning these destinations to items in the projects (including virtual folders, which then takes all the elements inside it) either in the same category or in the one under it, I can't check. I expect that you can do the same in a source distribution.
    Try to take over the world!

  • How can I batch Save For Web and maintain a multilevel folder structure?

    First... I am using an old version of Photoshop.... 6.0 to be exact.  If your answer is to buy the newer versions, I respectfully say I know that's AN answer, but I'm looking for something that will work with my setup.  The version we have works just fine for the very few things we need it for, and we use new versions of InDesign and Acrobat for all else. 
    So here's the challenge:
    We have a weekly magazine featuring 1,200 plus photos of cars for sale, each saved in a folder named for the sales rep, week and day.  I must maintain these folder structure throughout the process, as the files names are duplicated by cameras and across reps.  So I cannot dump all batch converted pics into one single folder, yet I need to reduce the Quality setting which I find when completing a Save As in Photoshop.
    So I want to batch convert all the photos in multiple folders, some 3 folders deep, all at once....  reduce to 8 inches across, change to 72dpi, and reduce the quality slider to 5, which creates a nice 60-90K file.  BUT.... it wants to save all of them in a particular folder.  I need to just overwrite the original file with the new smaller one.... or save the new small version into the same folder the big one is in, but have it work with the "include all sub-folders" option in batch. 
    A sample File system .... 4513 Photos - Color <day of week> (3 folders) - <disk number><rep>Color (20 folders) - actual photos.
    After converting, we push up the final level of folder to our website and that organization allows us to use them there the way we need.  The uploading to the site and batch functions are done 3 to 4 times per week.... on different days.
    Is there a way to reduce the quality (compression) of the jpgs that does not require the creation of a new file in a particular folder, or is there a way to have the resulting file just drop back into the folders and subfolders during a batch function?  I just can't figure this out!
    As an alternative, what other programs might do this?

    You should be able to just use the html output of the Export for Web function and, if the video's converted correctly, just swap the file names at the appropriate places. Have you tried renaming VisualHub's output to what the Export for Web html wants, then placing it in the proper location?
    I'm not aware of a way to batch create the html files, but if I had to, I'd probably look at automator to see if I could figure out it's text manipulation options.

  • WEIRD! AVCHD folder structure saved on HD appears different in Mountain Lion?

    I saved all my old SD card contents fully onto an external hard drive.
    Since saving I have upgraded from Snow Leopard to Mountain Lion.
    Today I opened  the saved SD cards to find that the folder structure had altered dramatically.
    It appears to be simplified and the "Private" folder is no longer a folder but a QT type file which when double-clicked opens in QT Player.
    All the clips appear to be there and capable of being used but everything is drastically different.
    Any idea what has happened  .  .  .  .  is it ML related?

    There seems to be no way of importing AVCHD video without copying it.
    When it's in the camera you need to copy it but if it's stored on a HD there is no need but you are given no choice.

  • SharePoint List Filter to narrow a folder structure

    Hello,
    The company I work for has a document library containing folders for each of their hundreds of clients.  The current process now is to load all of the folders in alphabetical order in order so that the users can scroll through and find the correct client
    relatively quickly.  This takes longer than it should considering how many folders need to load.
    I was trying to utilize the SharePoint List Filter to pull the Title column so the users could filter based on the name and we wouldn't need to pull all of the data each time the library was opened, but it seems that the title and name columns don't hold
    their connection to the list.  Each time I attempt to set the connections and then use the filter, I get the "This filter is not connected" error.
    Is it possible to use this web part in this manner (or is there another web part that will work) or should I suggest moving to meta data instead of a folder structure if they want speed of use?
    Thank you in advance!

    Hi,
    Based on your description, my understanding is that you want to you want filter the document library by the title column so that the users could filter based on the name and don’t need to pull all of the data each time the library was opened.
    Refer to the following steps:
    Open your document library-> choose Export to Excel->in excel, click insert PivotTable,
    create a pivot table in Excel -> use  Report filters
    To filter the title column->save it and upload it to a document library
    Then create a new page in SharePoint  and add the Excel Web Access web part and configure it to display your workbook, (or you can add the Excel Web Access web part in your document library and configure it to display your workbook) Now
    you can filter the document library by the title column.
    Here is a link about how to Create a pivot table in Excel 2010:
    http://www.techonthenet.com/excel/pivottbls/create2010.php
    Here is a link about how to use Report filters:
    http://www.gcflearnfree.org/excel2010/20.5
    Besides, you can refer to the following blog:
    http://consulting.risualblogs.com/blog/2014/09/10/filtering-excel-webparts-in-sharepoint-using-query-string-parameters/
    Best Regards,
    Lisa Chen

  • Library creating a new duplicate folder structure

    I am using 2.0 on a Mac. Recently I moved all my data files including photos and lightroom catalogs from an external to an internal drive on my MacPro and renamed the new drive with the same name as the external and changed the external name and it became a backup. Lightroom continued to work just fine, seeing all the images with no problem. If I do a "Show in Finder" it shows me them on the internal HD. However, when I import a new image or even import an image or folder that has previously been imported, LR brings it in within a new folder structure that uses the same hard drive name.
    My actual hard drive folder structure for my data drive is something like HardDriveName/Graphics/Airshows/image.jpg with all my images in a Graphics folder and within that a series of folders and subfolders.
    Previously if I imported a new folder, LR would show HardDriveName/NewFolder and I have several folders of imported images with that structure. It did not include the /Graphics folder because I never imported the entire Graphics folder. Now however, after importing a folder, LR created a new folder structure in the Library with a duplicate of the HardDriveName and it included /Graphics.
    I went to the first folder structure and picked a small folder and made a change to an image to darken it a great deal. Then I imported the folder all over again and it imported it to the new folder structure but the dark version was not visible. I DO have automatically write xmp data checked.
    If I right click on any image from either folder structure LR shows me the image within the same hard drive where my original are found.
    I don't want to have two folder structures and apparently if I re-import all my images LR doesn't see the xmp data. I tried to tell RM to read the xmp data from the image I had changed after it came into the new folder but it did not show up. If I manually tell LR to Save Metadata to File for a folder in my original structure and then go to the same folder in the new structure that LR is showing and tell it to read metadata it will show up in the new folder. I have a folder with 32,000+ images and thousands of other images.
    I would like LR to continue to bring images into my "old" folder structure but that may not be possible. Any help?
    Interestingly I have more than one data drive. This problem does not seem to be happening with my other data drive that I also swapped to an internal configuration.
    I put a pic of my folder structure at http://www.pbase.com/santa/image/101246417 to illustrate the issue. My harddrive name shows as Brandon.
    I spoke too soon. LR seems to be creating a new folder structure for two of my three hard drives and adding images properly to one of my three hard drives. All three were new drives with the names changed to match the old drives.

    yes I did update camera raw. I think LR 2.0 asked for that. I did a search on "duplicate" and found no answer to my problem. Anyone with a link to any useful information?

  • Is there an app for creating a folder structure on the iPhone out there?

    I'm looking for an application to create folders (possibly password-protect them) on the iPhone, so I can add documents, PDFs, video clips etc to the phone and create subdivide them further in folders. There doesn't seem to be anything that does the right job in the app store. Is it not possible? Any feedback to help me understand would be appreciated.

    It is not possible. You cannot create the folder structure you're speaking of and you cannot save files to your iPhone, even if you had folders.
    There are no apps for folders or app organization. There are apps that allow you to access files from your desktop or the cloud from your iPhone. I use box.net. Dropbox and AirShare are others.

Maybe you are looking for

  • Bridge CS6 "open with" choose programms

    OS: Win 7 Professional 64bit Bridge: CS6 5.0.2.4 Hello, how can I choose the programms that are shown in Adobe Bridge CS6 at "File->Open With"? I've got at least 2 programms which shouldn't be there, e.g. Firefox or COM Surrogate 6.1. I don't know, h

  • Cannot install drivers properly

    Help Just got a 6110 and cannot connect to laptop. It detects the phone, but the new hardware wizard will always say There was a problem installing this hardware: Nokia 6110 Navigator An error occurred during the installation of this device The data

  • Adding a date and a time to create one channel in a data plugin

    I would like to preface this question with the fact that I am new to VBS programming.  What I want to do is create a plugin. Most of it is done but I am having a problem with adding two times to make one.  I have a text file that stores the date and

  • Acrobat 8 Pro, IE 7, PDFmaker missing

    I do not know what happened but all of a sudden the PDF toolbar is missing. When I right-click, the context menu items are missing. I've repaired my Adobe installation and re-booted. Any ideas? I've searched the internet high and low and haven't foun

  • Pages 09 default paragraph indent?

    My file keeps reverting to no first line indent. I tried selecting all, setting a first line indent, ensuring the "detect lists" box in Preferences was checked and it worked for a while. However, after one case of two paragraph returns in a row, it r