Deciding right type of Bean

hi all,
i have to decide which kind of bean to use for my applications and i have a little doubt.
my app is structure like that:
- a Client which sends XML messages to an EJ B
- the EJB mentioned above, from the message figures out which Message Bean to call and loads the Home and Remote interface 4 that bean, and then send the message .
Before digging into the problem, i must say that i designed the application so that there are 4 different layers totally independento from each other
- a client that uses
- a connetion class that connect to the web server
- an EJB which decises where to dispatch its calls
- a set of MessageBeans calles from the dispatcher in case the client want to have asynchronous calls
- a set of Entity/SEssion bean on the backend that performs the computation.
Flow of action is like this
client-->Connection--->DispatcherEJB---->MessageBean----->backend EJB when call is asynchronous
or
client--->Connection-->DispatcherEJB---->backendEJB when call is synchronous
Now, for the dispatcher to do its job it should keep an HashMap that defined, depending on the messge, which bean (MessageBean or backendBean) to call.
In the hashtable, a bean name is mapped to its remote and/or home interface.
Now, the Dispatcher Bean should receive data from many different clients, and it may be shared by multiple clients. Also, it should also have persistence, because if i decide to deploy a new MessageBean, the name of this newly created bean won't be present in the HashMap maintained by the Dispatcher. And if it is NOT present, the dispatcher must load the classes (i am using some naming conventions) and then put it into the HashMap.
Why i cannot decide which kind of bean type to use?? because for some reasons (persistence, multiple clients) i am oriented toward entity beans, but for some others (if the bean name is not present, it must be added to the DB ) make me think that i can simply solve it by using a SessionBean.
can anyone suggest me the best solution???
thanx in advance and regards
marco

hi,
sorry...i thought a little more and i found out that it is better modeled as Entity EJB.
I can model so that each bean has
- beanName
- homeNmae
- remoteName
i don't need to keep an HashMap since i will fetch the data from the DB.
if i fetch data from DB and receive null, then i will know that th e bean has been newly added, and so i have to create a new entry.
Can i use that solution rahter than keeping an HashMap?
regards
marco

Similar Messages

  • I am trying to open a .tiff file in photoshop by using bridge and it opens it as a photo in windows. If I go to file open it says could not complete request because it is not the right type of document. It is a file from a lesson folder from school. Can a

    I am trying to open a .tiff file in photoshop by using bridge and it opens it as a photo in windows. If I go to file<open it says could not complete request because it is not the right type of document. It is a file from a lesson folder from school. Can anyone help me?

    Hi,
    The D810 requires Camera Raw 8.6 or later - the latest version that is compatible with Photoshop Elements 12 is Camera Raw 8.5 as far as I can see.
    You need to either buy a new version of Photoshop Elements or use the free Adobe DNG converter.
    DNG  Converter 8.8
    Win – http://www.adobe.com/support/downloads/detail.jsp?ftpID=5888
    Mac – http://www.adobe.com/support/downloads/detail.jsp?ftpID=5887
    Useful Tutorial
    http://www.youtube.com/watch?v=0bqGovpuihw
    Brian

  • Getting message: Cannot complete your request because it's not the right type of document

    I am taking a CS6 Photoshop class, I downloaded the data files from cengagebrain.com, my task in the book is to click File on the Menu bar, then click Open, then navigate to the drive and folder where you store you Data Files.  When I click the corresponding file (PS 1-1.psd), I get the following error message: Cannot complete your request because it's not the right type of document.
    Can anyone help please?

    Good day!
    Cannot complete your request because it's not the right type of document.
    Are you sure the file has the correct suffix?
    It might have been damaged in downloading, unstuffing, copying …, so if you are certain that the site is legit you may want to try re-downloading the file.
    Regards,
    Pfaffenbichler

  • Y is Stateless Session Bean is of type Session Bean?

    Hi all!
    Statless Session Bean...It not maintaining a state ...then y its of type Session Bean?

    Because it's not an Entity Bean, or a Message-Driven Bean, or even a Timer Bean. ;-)
    I usually refer to Stateless Session Beans as "Stateless Beans" and to "Stateful Session Beans" as "Stateful Beans" although Entity Beans are also "Stateful" and Message-Driven Beans could be considered as "Stateless". It's just a simplification of language.

  • GEP is not of right type for indices! [Vivado HLS 2014.4, 2015.2, synthesis internal error]

    [Vivado HLS 2014.4, 2015.2, synthesis internal error]
    Hello,
    I am randomly getting an error "GEP is not of right type for indices". (check the included files)
    Some time it is presented as internal error sometimes GEP error appears.
    If i reset vivado HLS error disappears dissapear and if i run synthesis again it works.
    But problem is not the interface itself. Design is top big to share (and quite unusual with very specific needs). I would like to make a sample, but i don't know what error means and I don't know what causing the issue.
    Did anyone met this error?
    Does anyone have any idea what is causing the problem? (If i find out, I will make a samle. )
    explanations for types in sources:
    descrFifo_r and descrFifo_w are instances of Multififo and  all arrays are defined with
    #pragma HLS ARRAY_PARTITION variable=xx complete dim=1
    multififo is implementation of multichannel  fifo it to same block ram in one cycle only one channel can write and only one can make read request and only one can collect delayed data
    It is tested and works in HW
     

    Hello,
    Thank you debrajr you gave me hope that that issue is fixable.
    I removed associated ARRAY_PARTITION directives, it did not help.
    I used script to remove all ARRAY_PARTITION directives and error seems to be the same.
    So i tried to remove all the pragma and result is still same.
    (If i compile my code, it runs with 0 Valgrind errors/warnings, so there is not pointer mismatch or any other problem of this kind, from c++ point of view, everythink seems to be OK)
    But I found line, which causes the bug.
    From some reason sometimes reading from MultiFifo<...>.bm_rd.dout fail with this error.
    Today I found that sometimes I accidentaly read from very different output interface (not even connected with Multififo<>), I have fixed this section I did not met any synthesis errors for long time, that could mean that the issue was this impossible access on this interface.
    Is there some way to let Vivado HLS write out all internal problems? Somethink like debugmod?
    Is there way to write for example top 10 critical paths ? It would be really helpfull.
    It tooks me nearly 3 days to debug this and this project is small (just ~1500 lines of code)....
    Problem fixed for now.
     

  • "The attempt to burn a disc failed. The media is not the right type for..."

    Help!! I am new to macs and have been trying to burn a cd. I have created a playlist with music from my itunes and have clicked burn disk. Every time I do so I get the following message: "The attempt to burn a disk failed. The media is not the right type for the requested operation."
    Can anyone help me as I am lost!?

    Toast is a high end disk burning application
    Do you know how to create a new user account? Or do you have more than one user of your Mac?
    You can delete iTunes from the applications folder and all the iTunes prefs from the preferences folder found at _Macintosh HD/Users/YourUserName/Library/Preferences_ You are looking for three files in that folder
    com.apple.iTunes.eq.plist
    com.apple.iTunes.plist
    com.apple.iTuneshelper.plist
    trash those three files and the iTunes application then empty the trash, restart and empty the trash again if needed. Then download the latest version of iTunes from Apple and install it. Then try a burn.
    The above procedure should NOT delete any songs or playlists you have made.
    You can get iTunes here
    Message was edited by: Damien

  • For ... in loop giving me an "implicit coercion" error--but describeType says I've got right type?

    Hi All,
    I've got the following code:
    var currentStateIndex:int = 0;
    for (var index:int in this.states){
         if(this.currentState == this.states[index].name){
              currentStateIndex = index;
              break;
    I'm trying to identify the index of the current state.  It's giving me an error on the for line, saying "Implicit coercion of a value of type String to an unrelated type int."  Hmm, strange, I thought--wouldn't the keys of the this.states array (and it is just a plain vanilla array) be integers?
    So, I tried this:
    var currentStateIndex:int = 0;
    for (var index:* in this.states){
         var theType:* = flash.utils.describeType(index);
         if(this.currentState == this.states[index].name){
              currentStateIndex = index;
              break;
    I used the debugger to inspect the value of theType.  It's this:
    <type name="int" base="Object" isDynamic="false" isFinal="true" isStatic="false">
      <extendsClass type="Object"/>
      <constructor>
        <parameter index="1" type="*" optional="true"/>
      </constructor>
    </type>
    So, indeed, describeType says that the index value is of type "int"... so why can't I strongly type it as an int?

    rtalton wrote:
    This works:
                    var currentStateIndex:int;
                     for (var idx:String in this.states) {
                        if (this.currentState == this.states[idx].name) {
                            //the names match!
                            currentStateIndex = int(idx);//cast as an integer.
                            break;
    But using your method you will never get a match for the base state, which is always "null", and does not have a name property.
    What is the right way to identify the index of the current state, if the current state is the default state?

  • Hi, I bought an imac 27" quad-core i5 with 1067Mhz DDR3 RAM in it. I would like to know if this is the right type of speed for my imac as I found out that these imacs come standard with 1333Mhz DDR3's? It is crashing a lot!

    Hi all. I bought an imac 27", 3.1Ghz quad-core i5 Mid 2011 last year in 2012. The machine has been crashing ever so frequently. I upgraded the RAM from the 4Gb it came with to 12Gb. It still crashes! I recently noticed that my imac came with 1067Mhz DDR3 memory chips ( slower speed) than the Apple mac recommended 1333Mhz DDR3 memory chips.
    The shop I bought it from ( Incredible Connection, Woodmead, South Africa) are refusing to own up as they are saying the 1333Mhz chips have to be ordered in advance. Surely they are supposed to sell the product with the right kind of Ram in it? Not for me to find out? Now I have to fork out more money to make my imac factory standard? Maybe I am wrong, But do these Mid 2011's run well on 1067Mhz memory chips if I upgrade to 32Gb? Is it possible people are swapping 1333Mhz chips from new machines with 1067Mhz chips which are way too cheaper? My system version( SMC Number) is 1.72f5
    Baffled!

    Mac and Mac models are picky about the RAM the Mac needs to see and use.
    As you have found out, the 1067 speed RAM will not work in your year and model iMac.
    You need the 1333 speed RAM.
    If, you can return the RAM for a refund, do it!
    If not, try online Mac RAM source and seller Crucial memory. They have a table that matches your Mac to the correct and reliable RAM. You may need to contact them to see whether or not they ship to South Africa, though.
    If Crucial dpesn't work out, here's the specs for your year and model iMac that you need to seek out and purchase.
    Maximum Memory
    32 GB (Actual) 16 GB (Apple)
    Memory Slots
    4 - 204-pin PC3-10600 (1333 MHz) DDR3 SO-DIMM
    Good Luck!

  • I have tried to display a hd video downloaded from the store on my Samsung hd tv. Message on MacBook pro retina says that display does not support the right type of drm. What's going on here?

    Cannot display hd video from MacBook pro via hdmi on my Samsung hg tv.  Says wrong type of protection for drm or words to that effect. This is a big pain

    Maybe to do with HDCP?
    http://en.wikipedia.org/wiki/HDCP

  • Type safe bean interfaces (Java 5) and JBoss IDE

    I've posted this help request already in the appropriate JBoss forum.
    But unfortunately still without any response.
    Latest JBoss IDE versions support type safe business methods e.g. like
         * only for testing
         * @ejb.interface-method view-type = "both"
         * @ejb.permission role-name = "Default"
        public ArrayList<String> getSomeStrings()
        }But the interface methods will be always generated unsafe like
        * only for testing
       public java.util.ArrayList getSomeStrings(  )
          throws java.rmi.RemoteException;Is this a known problem or is something wrong with my xdoclet configuration?
    Thanks in advance
    Torsten

    Yep... I think that's what I found. By using public methods in my enum class to map it's string member to the EJB field I was able to effectively use my enum in the EJB. The container does it work with a String but the EJB's clients only deal with a enum field. That's what I originally intended so, thanks for your response.

  • What is the criteria used to decide which type of thermal measurement to use? Thermocouples or RTDs?

    When the temperature range of the process fits into both or either type of device's capability, are there factors that help determine which device would work better?

    RTDs are generally more accurate, more stable, and more expensive than thermocouples. RTDs usually have a smaller measurement range than thermocouples, however you've stated that both are sufficient in this respect. RTDs may be subject to problems with self heating, depending on the thermal conductivity of the media you are measuring. If the RTD is measuring a still gas, self heating can be a problem. If it's situated in a rapidly flowing liquid or mounted to couductive solid surface, this should not be an issue.
    Regards,
    Brent R.
    Applications Engineer
    National Instruments

  • Setting resolution, deciding file type, for very LARGE Canvas prints. 36MP camera.

    Okay, so I noticed my lightroom was on 240 PPI resolution. I changed it to 300 because I read 300 was for standard prints. What would I need to set the export to in the resolution box for a very large Canvas?
    Is it better to choose Tiff instead of Jpeg for prints of this quality, if not then what should I choose?
    I am using a Sony A7R full frame 36.4MP and with some of the sharp Zeiss lens there is really no pixelation that noticeable when I zoom in 100 percent. Of course the A7R is being said to be one of the best Sensors on the market today. It's supposed to be like the Nikon D800E, but apparently it has some advantages.
    In other words, I want to export in as high of quality as possible for the Canvas. File size is not an issue.

    Changing the resolution setting does absolutely nothing to the digital image. This is a common misconception. The only thing that counts in the digital image is the pixel dimensions. Regardless of what the PPI setting is (240, 300, 600, whatever) the image still has the same number of pixels. To determine what you need for a print of any size it is necessary to multiply the inches by the desired pixels per inch. Suppose you want a 16 x 20" print at 300 pixels per inch. The math would be something like this:
    300x16 = 4800 pixels
    300x20 = 6000 pixels
    So to print a 16 x 20" print you would need an image that is 4800 x 6000 pixels. And the PPI setting can be anything you want it to be because it has no effect on the image.

  • VERY basic - how to decide what type of architectu​re to use?

    Forgive me if I'm breaking any forum rules with this post - I'm very new to this.
    I'm trying to write a Labview program to perform a functional test on an electronic product.  The test is fairly sequential - plug in the unit, apply a certain voltage, step up the voltage until the unit turns on, then turn on an electronic load, measure the load voltage, then step up the input voltage again, etc.  The power supply and electronic load that I'm using both have Labview drivers. 
    I'm brand new to Labview, and I have no resources in my company to help me out.  I have taken the Core 1 and 2 training class.  The problem is, I'm not really sure how to start.  Would this be a producer/consumer architecture?  A QSM?  I've been scouring these forums the past couple of days, but most of the discussions are advanced.  I don't understand all the acronyms.  A lot of the replies here assume you have some knowledge of Labview, and I don't.  Part of the problem is that I don't even know enough to ask a specific question, and that's why this post is so vague.
    I'm a competent PLC/HMI programmer but don't have any experience in other languages.
    I also want to be able to use variables for my limits so that I can easily change the pass/fail limits.  (For instance, I want the voltage and current pass/fail limits to be configurable from a "maintenance" screen on the Labview interface, but I don't know how to create multiple screens or password protect them).

    I have stated my opinion reagarding the QSM* design pattern previously and will not repeat it again here aside from "I avoid them like the plague".
    Architecture questions are good question but hardly "very basic" although some architectures can be very basic.
    I would recomend a State Machine that uses Action Engines to control your widgets.
    in this thread AND this thread I wrote extensively and included design documents for apps I developed. I invite you to look those over and start developing your own design that meets your needs.
    Ben
    * It is imposible to fully document all of the possible transitions of a QSM and since my application all are fully documented, the QSM is not an option. A Queued Message Handler on the other hand is different.
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • No matter what i do i cannot convert my .cr2 files into .jpeg, It pops up with a message saying this isnt the right type of document, does anybody know what to do?

    I have tried different plugins and every guide to fix it and I cannot fix it, any suggestions?

    EOS 30D
    CR2
    3.4
    ACR 3.4 or later is required for you camera or you need to create dng files for your CS2 files and process the dng files with ACR 3....

  • Help required for deciding right UME Datasource

    Hi,
    We've implemented a Ticket Sales and Reservation System on NetWeaver 7.0 Portal with NW and Java technologies.
    We've over 500K registered users in our system and we've to share the UME data with other portals too.
    For this reason, we're thinking to migrate the users from Portal DB to a LDAP System such as Active Directory.
    But, the following questions must be answered before this decision. Hope someone can give us Best Practice about them.
    1. Is an LDAP suggested for users more than 500K?
    2. Which performs well with 500K users?LDAP or Portal DB?
    3. Which LDAP to use is above questions points to LDAP?
    Regards

    I think LDAP performs well with this number of users.
    And if you want tó share the users with other portals I think the best practice is to use a central LDAP data store.
    The most common LDAP system is Microsoft ADS, but there are other vendors too. If you just want to use your LDAP as an user datastore without any additional functions for Microsoft Networks you should look for other LDAP systems too.
    In these case you should prefer SUN, Novell or Siemens, because there are already predefinied schemes available...
    Regards, Bernd

Maybe you are looking for

  • J1IEX capture excise invoice error.

    what i had done was; 1st - create an import PO and my pricing procedure used was SAP CIN standard JIMPOR. 2nd - PO created under 12345, i proceed to MIRO to post the invoice under 11111. *note that GR was not being done at this point. 3rd - next i pr

  • CD-R drive or CD-RW drive is not recognized as a recordable device Windows 8

    Hi I have Windows 8 installed and if I right click on my CD/DVD drive my Recording tab is missing in Properties. Basically I can read any CD/DVD but I cannot write a CD/DVD. I have 3 CD/DVD drives on my computer. I found the following solution on thi

  • I have booted in Tech Tool; now how can I erase the Mac Hard Drive?

    I bootrd my MacBook Pro in Tech Tool, and want to erase the Hard drive completely. I can't do it. Any suggestions?

  • X-Fi xtreme gamer boot probl

    I just got the xtreme gamer. Everything was fine for the first few days. Now, every time I start my machine I get a loud humm through my speakers, without fail. The only way to clear the humm is by hitting restore defaults. The problem is, aside from

  • Standalone Flex App

    I want to use some components from a Flex app that we are developping to create a standalone application for some of our clients who just want to use a few (small) features of our application. I'm planning to use the in-process HSQLDB database and no