JPA persistence tier / does two different layers make sense ?

I'm building a little application to illustrate performance issues we are encountering in our production system.
I will create a proof of concept a change we think it will resolve our problems. The change consist in building a specific lighter ejb layer with read only entities only with necessary attributes and relationships into to show data for selection and navigation into the application.
Does make any sense to put all this new ejbs in a different persistence model the one that already exists ?
What is the consequence to have two persistence model instead one for the project ?
My preference is to build two different layers (and related persistence model) and I think it is a good idea to separate the persistence layer because they have two different use, one for showing data and for navigation, one as a really persistence layer.
But i don't know what are the consequences ?

Accessories
Page 32
" 一天到晚游泳的鱼"
[email protected]
我的个人网站:LabVIEW——北方客栈 http://www.labview365.com
欢迎加入《LabVIEW编程思想》组——http://decibel.ni.com/content/groups/thinking-in-labview
Attachments:
DevDaysPerformance.ppt ‏1009 KB

Similar Messages

  • Does a singleton thread make sense?

    I'm new to developing with threads and the project I'm on has some Thread classes that are implemented as singletons.
    Does this make sense to do? It seems like from what I'm seeing (since thread.stop() is deprecated) that we should start a thread going and just let it finish. When I tried working with this thread, it would never finish since it was holding one to an instance of itself. (thread.isAlive() always returned true even after the run() method finished)
    Another developer I work with suggested looking into ThreadGroup instead of using a singleton. Is this the proper way to ensure a limited number of threads are started?
    The reason we only want one of these threads running at once is because they are very processing intensive.
    Thanks!

    http://java.sun.com/javase/6/docs/api/java/util/concurrent/Executors.html

  • Does this VoIP strategy make sense?

    I have a VoIP gateway that is marking packets with DiffServ CS1 and CS2 levels. These packets first hit an internal router that has a GRE/IPSec transport mode tunnel to another router on the public Internet. The internal router uses its FastEthernet port to connect to a second in-house router that has a T1 connection to the Internet. In order to setup some QoS I would like do the following:
    1) On the internal router I am not going to setup any actual QoS policies but I want to use the "qos pre-classify" commands on the crypto map and the tunnel interface in order preserve the DCSP info on the IPSec encrypted packets that will be processed by the Internet router
    2) On the Internet router I will setup a policy that matches DCSP packets and assigns them to a LLQ using the "priority" command.
    Since the IPSec tunnel also carries non-VoIP traffic my objective here is to prioritize only IPSec packets that have voice. Non-voice IPSec and all other traffic will be treated in best-effort mode.
    Does my plan make sense?
    Thanks,
    Diego

    Since IOS 11.3T, the TOS bits of the IP header is copied automatically to the TOS bits of the GRE header. However, there was a problem. While the subsequent routers could use this info in the TOS field of the GRE header, the router doing this initial copying itself was unable to prioritize based on the TOS bits. The 'qos pre-classify' command solves this problem. With the command configured, the packets will be correctly classified and the qos policy applied on the headend router too.
    The information ultimately copied into the TOS bit of the new header, mirrors the TOS bit in the original header. Also, the TOS bit is copied regardless of the 'qos pre-classify' command.

  • Does my boolean logic make sense?

    Hello. I am currently working on a linked list assignment, but for some reason my boolean doesn't seem to do what I want it to do. can someone take a look to see why I am getting a black screen?
    public boolean addEmployee(Employee newEmployee) //if there is fresh meat coming, returns true. I think something's wrong here
          EmployeeNode previous = search(newEmployee);
          EmployeeNode present= setPresent(previous);
          EmployeeNode add = new EmployeeNode();
              boolean freshMeat = false;
              add.data = new Employee(newEmployee);
              while((present!=null)&&(present.data.compareTo(newEmployee)<0))
              {     previous = present;
                   add.link = present;
                   present = add;
                    System.out.println("present is: "+present.data);
                    System.out.println("previous is: "+previous.data);
                   freshMeat = true;
              return freshMeat;
       }if I remove the while loop and the condition, it will display everything that I am adding to it:
    public boolean addEmployee(Employee newEmployee) //if there is fresh meat coming, returns true. I think something's wrong here
          EmployeeNode previous = search(newEmployee);
          EmployeeNode present= setPresent(previous);
          EmployeeNode add = new EmployeeNode();
              boolean freshMeat = false;
              add.data = new Employee(newEmployee);
              previous = present;
              add.link = present;
              present = add;
              System.out.println("present is:" + present.data);
              freshMeat = true;
              return freshMeat;
       }why can't I have my previous.data display if i type it into SOPLN?

    I did a couple of linkedlist assignments not long ago, of which one is employee related.
    I thought that the method names are a bit ambigous to me, and it will definitely help if you can outline your algo.
    Putting your while condition to words, i have, if (current node exists) AND (newEmployee is "bigger" than the employee data in the current node) perform loop content. I am not sure if that is what you want.
    Furthermore, I am not sure if you are traversing forward or backward, or if you are traversing your list at all in your while loop.
    if your add.link refers to to next node in the list, shouldn't you do something like
    previous = present;
    present = add.link;
    ....again, it will greatly help if you are provide more info on what exactly are you trying to do.

  • Noob: Is there a way to "group" two clips on two separate layers together?

    Hi, total FCE-newbie here, having barely got to grips with iMovie - so please bear with me...
    I'm trying to do something which I would have thought is pretty simple in FCE, but I'm flummoxed...
    I have two video clips, one above the other on two different layers, in sync with each other. I want to "group" these two clips together, so that any effects or edits I apply will affect both clips simultaneously.
    I found this video tutorial which does exactly what I want, but (a) it's for FC Pro, and (b) it's obviously for a much older version:
    http://www.rippletraining.com/movies/Free%20Downloads/040301185027.mov
    That's exactly what I want to do, but I don't seem to have those options available to me - at least not that I can find.
    I've looked up "nesting" in the FCE manual, but it talks about something totally un-related, going on about "sequences", and I only have ONE (long) sequence. I don't want to nest or group sequences, but rather I want to group two short clips / layers.
    The option-C shortcut mentioned in the video tutorial does nothing for me, and unfortunately the guy doesn't say which menu this keyboard shortcut would normally be found under...
    Or am I trying to do something that isn't actually possible in FC Express, and is only available in FC Pro?
    FCE HD 3.5

    Tom Wolsky wrote:
    http://www.rippletraining.com/freetutorials_oldies_butgoodies.html
    That is not a link to clip but to the page that has all the tutorial. Jeez.
    Oh come on... You're STILL not reading posts properly before you reply???
    I said that I linked directly to the clip in question TWICE. In my first/original post, AND in my second post. Go back and check my very first post. What do you see there? A link directly to the clip in question, perhaps? Yes, that's right.
    As for you quoting your own responses to try and prove your point... Well, you're only serving to point out that your posts were misleading and accurate. Let me show you:
    Tom Wolsky wrote:
    putting the two clips in a sequence and putting the sequence inside another one is nesting, and that's exactly what the *_FCP (Final Cut PRO)_* function does.
    (My emboldening)
    Now that's not accurate is it? Can you see why I found your original answer misleading? Because that is NOT what happens in the PRO version of Final Cut. The walkthrough shown in the clip (which I linked to directly) shows nothing about sequences within sequences - only nesting two clips together in one sequence.
    If you had not told me this inaccurate piece of information, then maybe the rest of what you said would have made more sense in context.

  • Does Aperture have layers, such as Photoshop. I have to make one photo out of two photo's.

    Does Aperture have layers like in Photoshop? I have to make 1 photo out of two. This is an assignment for the Fotovakschool.

    As Alan pointed out Aperture does not do layers. While the plugin he pointed to seems interesting (had never seen it before) it is on the pricey side for what it does.
    You could use either GIMP - The GNU Image Manipulation Program which is free or else Pixelmator from the Mac App  Store for $30, as Apertures external editor. In either case you'll get a app that will do more for you then just layers.
    regards

  • Can you please help me by saying me how can i join two different picture to make it as one picture.??

    Hi Sir/ Madam,
       My name is Rishav and I am facing some problem with my Photoshop CC. Actually I have a question. If you guys could help me out i will be very obliged. The quest in "Can you please help me by saying me how can i join two different picture to make it as one picture.??"

    Maybe you should post over at
    Photoshop for Beginners
    or start with the "Get Started" section of the Help:
    Photoshop Help | Photoshop Help
    And your question
    Can you please help me by saying me how can i join two different picture to make it as one picture.??
    does not seem particularly specific – do you want to simply combine two images as they are, do you want to clip elements from the one and insert them into the other, …?
    Could you post (lores of) the images and explain what you intend to achieve?

  • Hello, I use photoshop cc 10 days and I did a lot of files with layers and channels. For two days in two different locations that only happens in some documents when you reopen the job done no more .. Example 6 channels on the facts I see only one .. Than

    Hello, I use photoshop cc 10 days and I did a lot of files with layers and channels.
    For two days in two different locations that only happens in some documents when you reopen the job done no more .. Example 6 channels on the facts I see only one ..
    Thank you for your attention.
    Annalisa 

    Don't understand what you writing here.  Screen shoots would be most helpful.
    Supply pertinent information for quicker answers
    The more information you supply about your situation, the better equipped other community members will be to answer. Consider including the following in your question:
    Adobe product and version number
    Operating system and version number
    The full text of any error message(s)
    What you were doing when the problem occurred
    Screenshots of the problem
    Computer hardware, such as CPU; GPU; amount of RAM; etc.

  • Why does my Finder have two different languages in the Menu?

    Hi
    My Finder seems to be showing two different languages? Most of the menu items, like File, Edit, View, Go and Help are all in English (my preferred language under System Pref, International, Language). However, i am not exactly sure when (or what i did), but some of the menu items under Finder (Shutdown, Sleep, Restart etc.) and under Window (all of the menu items) were in a Chinese language.
    So i went to the System Pref, Internaltional, Language and unchecked them. So that only the English variants were selected. I restarted....and all it did was change the same menu items that were in Chinese to a Norwegian (????) type language.
    I have reinstalled my OS 10.4 and it was still the same. I then ran all the updates....and it was still the same.
    I have run the Optional Install on the OS 10.4 disk, and tried the Language Translators reinstalled....and still the same.
    Apart from formatting.....does anyone have any suggestions?

    Hi BDAqua
    I trashed the /Users/YourUserName/Library/Preferences/com.apple.finder.plist file ......rebooted....and it didn't fix the language issue in Finder.
    I then did as you suggested (show package contents) and found the file path System/Library/CoreServices/Finder.app/Contents/MacOS/Finder
    I then did a Get Info....but didn't see any language section tabs.
    When i Get Info on the System/Library/CoreServices/Finder.app
    I can see the language tab.....but it is all shaded out (i.e. i can't make any changes). I tried under the Ownership and Permissions tab to change the "Owner" section from System to My Name. However, this did not give me access to the language tab. I also tried to change the "Group" section to My Name (was on Wheel????). But i had no success in changing the language.
    Are there any other angles i could try?
    I have done quite an extensive search on the internet.....but haven't found anyone with the exact same issue. This was the closest... http://forums.macosxhints.com/archive/index.php/t-34796.html
    But i tried everything they suggested (except the format option). I haven't posted on any other forums yet either.
    Thanks again BDAqua for all your assistance!

  • Canon EOS 350D does not see memory card--I've tried two different ones. Will not format--err 99

    My EOS 350d has not worked since it was shipped to my daughter.  Bought new memory card and camera still does not recognize that a card is in it.  When connected to computer I could see card but it had 0 used memory and 0 memory available.  Now it does not show at all.  Using canon software get same response--no memory card.  Have tried with two different memory cards.  Even formatted one card on PC, still nothing.  Any ideas what to try next--pins look like they are all in correct place.

    Unfortunately, the Error 99 code is not a specific error code and can indicate a number of issues, such as battery power issues, shutter issues, etc.  The more I looked into the 350D and memory card compatibility the more I think that may not be the issue.  In all honesty, I'd contact Canon support as you may have to send your camera in for repairs. 
    Before doing that, though, I'd try this. Restart your camera, wait a few moments then set the camera's power to Off and remove the batteries.  Open the memory card slot cover to make sure the memory card is securely set in the card slot, then reinsert the batteries and turn the power to On. Hopefully that will do the trick, and if not I'd update the firmware for the camera as a last resort and see if that rectifies the problem.  If not, contact customer support.

  • Why does not Apple allows iPhone to be sync by two different computers ?

    I have a pc at home and one in office. But I can only sync it with my home pc. Why does not apple allow iPhones to be sync by atleats two pcs as having different pc for work and home is very general.

    It is possible to sync from multiple libraries manually on other devices (iPads & iPods) so blanket statements that 'it's DRM' don't really make sense to me.
    If it is the only reason why can't non DRM'd content be copied?
    Manage content manually on your iPhone, iPad, and iPod - Apple Support
    See step 6, iPods & iPads have fewer restrictions compared to iPhones.
    Perhaps we would have a better idea if it wasn't all wrapped up in thousands of words spread between the multiple terms & conditions agreements.
    https://www.apple.com/legal/internet-services/itunes/
    https://www.apple.com/legal/internet-services/icloud/ww/
    You will need to read those terms & get legal help if you can't work it out titan_sifu, good luck.

  • Does 10.4.6 have two different install CDs for PPC vs Intel?

    Does 10.4.6 have two different install CDs for PPC and Intel?
    Also, is only CD 1 required for OS install?
    Thanks!

    I tried my black OS X 10.4.6 CDs on a G4 yesterday specifically to see if an install from disk 1 only is possible. Sadly it is not. It requires about 400 GB from disk 2 no matter how minimal you try to make it. My disk 2 contains the following and the install needs everything except languages:
    AdditionalEssentials.pkg
    AdditionalSpeechVoices.pkg
    AddressBook.pkg
    Automator.pkg
    BrazilianPortuguese.pkg
    BSD.pkg
    Danish.pkg
    Dutch.pkg
    Finnish.pkg
    French.pkg
    German.pkg
    iCal.pkg
    iChat.pkg
    Italian.pkg
    iTunes.pkg
    Japanese.pkg
    Java.pkg
    Korean.pkg
    Mail.pkg
    MediaFiles.pkg
    MigrationAssistant.pkg
    Norwegian.pkg
    OxfordDictionaries.pkg
    Safari.pkg
    SimplifiedChinese.pkg
    Spanish.pkg
    Swedish.pkg
    TraditionalChinese.pkg
    Have you considered upgrading to Leopard? Here is my general upgrading advoce:
    OS numbers and names
    OS X 10.4.x - Tiger
    OS X 10.5.x - Leopard
    OS X 10.6.x - Snow Leopard
    OS X 10.7.x - Lion
    OS X 10.8.x - Mountain Lion
    More about Macs
    The Apple History site has specifications for every Mac ever produced: http://www.apple-history.com/
    Upgrade to Leopard
    Those wishing to upgrade to Leopard should be aware that install disks can be expensive unless you contact Apple. Details: http://lowendmac.com/deals/best-os-x-leopard-prices.html Standard Leopard installers impose several hardware limitations including speed and RAM size but all these restrictions can be overcome. Google for details. Leopard works well at 500 MHz with 1 GB of RAM and many happy users have less than this.
    Upgrade beyond Leopard
    OSs beyond OS X 10.5.8 require an Intel processor. If in doubt check this: Click the apple at the top left of your screen and select 'About this Mac'. This will give you your OS number. Then click 'More Info' to see which processor you have. If it says PowerPC you cannot upgrade to Snow Leopard and above. If you have an Intel Mac it is well worth upgrading to Snow Leopard now and then considering other options after that. You can buy Snow Leopard here: http://store.apple.com/us/product/MC573Z/A
    Upgrade beyond Snow Leopard
    Information about upgrading Snow Leopard to Lion or Mountain Lion: http://store.apple.com/us/product/MD256Z/A
    Important
    Check that your Mac complies with any requirements. If you are not in the US you should use the Change Country link at the bottom of Apple pages.

  • Generally when creating a Word file from either a Mac or Win7 pc and opening it on two different machines (either one first) it always prompts that the file is open and will be opened as read only. However opening a CSS file does not prompt that it is alr

    Generally when creating a Word file from either a Mac or Win7 pc and opening it on two different machines (either one first) it always prompts that the file is open and will be opened as read only.
    However opening a CSS file does not prompt that it is already open on or from any machine which is causing code edits to be lost.
    What we found from out testing:
    - The file can be saved from one user to the server and WILL NOT PROMPT on other machines until the saving machine has the Dreamweaver program closed completely
    - The file can be closed and  Dreamweaver minimised to the launch bar but it still will not register on other machines that it has been changed.
    - Also, until the  Dreamweaver program is closed on the machines, it will continue to open it's saved version of the file. 
    Example Scenario:
    - User 1 opens test.css (which is 2000 lines) and adds some code to the end of the file to bring it up to 2500 lines
    - Meanwhile User 2 opens test.css as well (opens as 2000 lines as User 1’s edits have not yet been saved) and adds in code to bring it to 2300 lines
    - User 1 saves his file and closes it - but  Dreamweaver is still open.
    - User 2 also saves his file and leaves  Dreamweaver  open.
    - The server will report the size and last edit of the file the same as User 2 as he was the last person to save it (and if you open from the Win7 Machine it will show as User 2’s 2300 line version)
    - If User 1 then open's the file again (from either the 'recent' in Dreamweaver OR clicking on the file directly in Finder...which version opens.... The version that User 1 saved! Not the true version on the server, but the version that User 1 edited and saved with 2500 lines in it.
    - Same for User 2, he will open 'his' version with 2300 lines in.
    Other information:
    - Files are opened directly from the server
    - Sometimes the users will save incrementally and re-open
    - Most of the time users will save incrementally and keep the files open
    - The users will never not save incrementally and just save when closing the file once finished
    - The users are usually working on the files all day
    - It is always the bottom lines of code that are lost. It could be a case of the two versions being mixed up and cutting off the newly added lines based on the line count (possibly).
    It is as if Dreamweaver is holding a cache of the version locally and then only properly looking back to the server when it has been completely closed. It is very difficult to see how the server is causing such an impact on these files, there are very few logs which are giving any indication to the root cause of the problems.
    Anyone know if this is a known issue?
    Is there a way that there can be a featured implemented on the server that doesn't allow another user to open a file if it is already open on another machine?
    Thanks

    Your server file handling has nothing, and really nothing to do with Adobe software. If files don't get locked for (over-)writing and/or lose connection to the program opening them, then your server is misconfigured. It's as plain and simple and that. Anything from "known file types"/ file associations not being set correctly, MIME types being botched, crooked user privileges and file permissions, missing Mac server extensions, delayed file writing on the server, generic network timeout issues and what have you. Either way, you have written a longwinded post with no real value since you haven't bothered to provide any proper technical info, most notably about the alleged server. Either way, the only way you can "fix" it is by straightening out your server and network configuration, not some magic switch in Adobe's software.
    Mylenium

  • HT1918 How do i change my username to another when they both have accts with itunes one is on my computer and one is on my ipad? Two different e-mail address that are both mine....so how do i make one acct for both?

    How do i change my username to another when they both have accts with itunes one is on my computer and one is on my ipad? Two different e-mail address that are both mine....so how do i make one acct for both?

    If you selected open a new Apple ID account, go back a step and enter use existing Apple ID.
    You will have to set up a separate iCloud account or your iPads will mirror each other.

  • How can I run two different versions of Firefox, the latest does not work with an important site I need to use?

    With the latest version of Firefox I cannot send "Quick Mails" to my students using the college's ANGEL system. I had to uninstall it and go to an earlier version. I prefer the newest rev.
    Any way to run two different versions. It does not have to be simultaniously. Seems to be a problem on both my Mac and XP systems.
    Thanks,
    Kim

    Currently I don't think there is a way to run two version of firefox at the same time. But you can install Firefox Beta or Aurora instead (which is build for future release for firefox) and help test it! Here's the link:
    http://www.mozilla.org/en-US/firefox/channel/

Maybe you are looking for

  • EAN-13 code in Report

    Can I print EAN-13 code with report (6.0)? Thanks! Milan P.S. OTN had an article about, but I can't find it.

  • Straight line on semi-log graph

    hi, I'm trying to graph an array of 500 points on a semi-log graph. The line look right on the Linear Scale but it curves a little bit when I changed to Logarithmic scale. How can I make it a straight line on the logarithmic scale? please see attachm

  • Formatted Input Text

    Hi I am using JDev 10.1.3 with ADFBC and JSF How can I use formatted text (i.e: <br>, <li>, &lt ) with the component <af: inputText> ?? Thanks for any help. JF

  • KP06 & KP26 - Proceedure

    hai, In KP06 we are planning input based on primary cost element. Sametime in KP26 we are planning the capacity based on secondary cost element. After assigning the same in project, the system displays the detail based on the secondary cost element n

  • Migrating from 2007 MBP to 2009 unibody 17" MBP

    Hi all, hope you're all well! I'm expecting delivery of my new 17" Unibody MacBook Pro this week and have heard conflicting things as to how best migrate my data from the old 2007 15" Intel MBP to the new machine and hope you kind folk can clear it u