Using more than one PU and PC for the same database

I have a scenario described here: [http://www.seamframework.org/Community/UsingTwoParallelNestedConversationsWithParentAtomicConversation|http://www.seamframework.org/Community/UsingTwoParallelNestedConversationsWithParentAtomicConversation]
which uses Seam, EJB3, JPA, Hibernate, Richfaces (modalPanel) and JSF.
The question I have is the following:
is there any negative consequence (memory consumption, performance hit, etc.) of using more than one persistence unit in the persistence.xml that points to the same EntityManagerFactory? I was thinking of having one PersistenceContext (Seam-managed PC - an extended PC which is conversation-scoped) which uses one PU and reserving the other PC for the modalPanel forms and backing beans (SFSBs).
The reason I needed to use this solution/approach is so that when using Hibernate MANUAL flush with SMPC, I can achieve isolated synchronization of the PersistenceContext without updating values in the modalPanel forms and vice versa.
Any tips on best practices or alternative solutions? thx.
persistence.xml snippet:
   <persistence-unit name="boBETS">
      <provider>org.hibernate.ejb.HibernatePersistence</provider>
      <jta-data-source>java:/boBETSDatasource</jta-data-source>
      <properties>
         <property name="hibernate.dialect" value="org.hibernate.dialect.SQLServerDialect"/>
         <!-- <property name="hibernate.hbm2ddl.auto" value="validate"/>   -->
         <property name="hibernate.show_sql" value="true"/>
         <property name="hibernate.format_sql" value="true"/>
         <property name="hibernate.generate_statistics" value="true"/>
         <property name="jboss.entity.manager.factory.jndi.name" value="java:/boBETSEntityManagerFactory"/>
         <property name="hibernate.default_catalog" value="boBETS"/>
         <property name="hibernate.default_schema" value="dbo"/>
      </properties>
   </persistence-unit>
   <!-- using boBETS2 for ListValueParamAction for now! trying to isolate the em.flush() such that we can achieve atomic conversations for the
   base form as well as the popup form! -->   
   <persistence-unit name="boBETS2">
      <provider>org.hibernate.ejb.HibernatePersistence</provider>
      <jta-data-source>java:/boBETSDatasource</jta-data-source>
      <properties>
         <property name="hibernate.dialect" value="org.hibernate.dialect.SQLServerDialect"/>
         <!-- <property name="hibernate.hbm2ddl.auto" value="validate"/>   -->
         <property name="hibernate.show_sql" value="true"/>
         <property name="hibernate.format_sql" value="true"/>
         <property name="hibernate.generate_statistics" value="true"/>
         <property name="jboss.entity.manager.factory.jndi.name" value="java:/boBETS2EntityManagerFactory"/>
         <property name="hibernate.default_catalog" value="boBETS"/>
         <property name="hibernate.default_schema" value="dbo"/>
      </properties>
   </persistence-unit>What happens if I were to have 10 PUs and 10 PCs in the same app? Whether they're all pointing to same DB or not. What's the consequence of using "too many"?

Yes, you can use multiple iCloud accounts in multiple User Accounts on one computer, but, as you know not multiple iTunes Match accounts. Keep in mind that the two services are not the same.
Since you've posted your question to the iTunes Match forum, which it really doesn't pertain to, you might want to also post it to the iCloud on my Mac forum.

Similar Messages

  • How to use more than one indirect valuation module for the same wage type

    Is it possible and how to use the u201CIndirect valuation based on master data: ICOMPu201D configuration to default the NUMBER and at the SAME TIME to use u201CDefine valuation of base wage types usingu201D to default the AMOUNT from one/two WTs ?

    You can use the the same wage type for both number and amount but you can't assign 2 indirect valuation method for the same wage type at 1 time. I would rather suggest you to go for some customer specific indirect valuation instead of the standard one. You can use BAdI HR_INDVAL for the same.

  • Can I use more than one blue-tooth device at the same time on IPhone 4S? Like a wireless headsets and speed and cadence sensor for cycling computer, receive the data and listen music simultaneously

    Can I use more than one blue-tooth device at the same time on IPhone 4S? Like a wireless headsets and speed and cadence sensor for cycling computer, receive the data and listen music simultaneously

    As long as the profiles are different (ex. HID vs AD2P) you will not have any issues. But say if you try to use 2 keyboards at once, it won't work. Or 2 headsets at once. Your scenario seems fine.

  • Use more than one look and feel in the Portal

    Hi,
    I'm searching for a solution to use more than one Theme in the portal. It's not based on user or a role. One and the same user should be able to enter the portal and depending on his adress he should be rooted to A or B theme.
    We are usein EP6 sps13.
    Kind regards
    Michiel Veenemans

    Hello,
    To my feeling you should be work with display rules.
    You probably have user who need one theme and other user you want to give another theme. By using display rules you can assign a theme to one user group and another theme or themes to another group.
    So depending on the group the user is assigned to you get another theme. This way everybody uses the same URL and a theme can be altered with the default user functions.
    Best regards,
    Frederik

  • Can I update more than one iPad and iPhone from the same MacBook pro?

    Can I update more than one iPad and iPhone to ios 5 from the same MacBook pro? Our family has one MacBook pro and several iphones and ipads.  No one wants to lose their iTunes music or contact list or calendars.

    Yes, but you will want to think it through before you do it.
    The computer will become the "master" device, holding the definitive collection of music, photos, contacts, etc., and each iPad or iPhone will get a copy of what's on the computer. So if  everyone has different collections of music or photos that you all want to keep separate from each other, you'll want to set up different accounts on the MacBook Pro. To do that, go into "System Preferences" and click "Users", then click the "+" to create a new account for each person who needs their own set of files.
    That way you can each log in to your own MacBook account before you sync your iPhone or iPad, and everyone has their own copy of iTunes and their own iPhoto. If you happen to plug in an iPhone while logged into someone else's account, you just click "don't sync" (the 1st time only, it will remember after that). Sharing the same files becomes tricky, so this is only the best method if you want to keep things 100% separate.
    On the other hand, if you all have your music and photos mishmashed together on the MacBook anyway or just don't care about keeping things separate, just go ahead and sync your iPhones and iPads without setting up new accounts. But in this case, you should create playlists and photo albums in iTunes and iPhoto. Then plug in an iPhone, click on it's icon in iTunes, and change the settings for Music, Photos, etc to only sync the playlists that you want on that device. Repeat for each one. They'll all remember their own settings, and continue to sync with their designated playlists or albums.
    What you cannot do is use more than one computer with a single iPhone. That will wipe out the music and photos that were on it already, replacing them with the ones on the second computer.

  • More than one iCloud and match on the same iMac

    We have 3 users accounts and 3 apple ids on the same iMac. Can we each use our own icloud on our own user account , as previously with itunes match have got myself locked out for having the computer associated with more than one apple id.

    Yes, you can use multiple iCloud accounts in multiple User Accounts on one computer, but, as you know not multiple iTunes Match accounts. Keep in mind that the two services are not the same.
    Since you've posted your question to the iTunes Match forum, which it really doesn't pertain to, you might want to also post it to the iCloud on my Mac forum.

  • Import/Rip using more than one CD/DVD drive at the same time.

    I have two DVD/CD dual layer readers/burners and would like to be able to import audio CDs into iTunes from both drives at the same time.
    Is this supported?
    If so, how do I do it?
    If not, is it planned for future releases?
    Thanks in advance!
    AMD 3500+ - Loaded.   Windows XP Pro  
    AMD 3500+ - Loaded.    

    String x = "Insert Into(...) Values(...)? Insert Into(....) Values(.....)";
    STRING ???
    You are kidding are you?
    What programming language are you using here?
    And what exactly is your requirement?
    Running multiple INSERTs in a single transaction?
    To do that, just open a connection with autocommit off,
    prepare and execute all your INSERT-Statements
    (you'll want to use BIND variables and not STRING concatenation for that. Ever heard of SQL injection?),
    and finally you commit or rollback your transaction.
    Voilá.
    regards,
    Lars

  • HT4314 Can I have more than one Game Center account on the same Apple ID? If so, how do I set it up?

    I am playing Clash of Clans on my iphone and on my iPad. I would like to connect each of my games to a different Game Center ID so I don't lose them if something happens to my device, but I can't figure out how to do that without creating new Apple IDs for each device and I don't want to do that. Any advice? Can I have more than one Game Center account under the same Apple ID? If so, how do I set it up? Thanks!

    If you use the same account see the following to separate Messages and FaceTime between the two iPod see:
    MacMost Now 653: Setting Up Multiple iOS Devices For Messages and FaceTime

  • More than one business component (views) in the same JSP page

    Hi, I am trying to have more than one business component (views) in the same JSP page as Input Form.
    For example:
    There are two BC4J:
    Person:
    Code.
    Name.
    Address:
         Person_code
         Street.
         City.
    There is a master detail relationship between them and there is a link between both views in the application module.
    I want to create a JSP page with an Input form for both views. When the user decides to create a Person, I need to insert in both tables.
    Insert code and name into Person table.
    Insert Person_code, Street and City into Address table.
    It is possible to do in Forms but I am not sure if I can be able to do this in JDeveloper 10G.
    Thanks

    Sorry I lost the tabs
    Person has two attributes Code and Name.
    Address has three attributes Person_coden Street, City.

  • How can I use more than one iphone and keep contacts separate?

    How can I set up more than one phone and keep our contacts and messaging separate?

    Use separate Apple IDs for iCloud on each phone.

  • Can we use more than one Help Provider class in a same project in ADF11g

    Hi All,
    There are two help providers i want to use .They are "ResourceBundleHelpProvider","OHW Help Provider"
    In adf-settings.xml file
    <help-provider>
    <help-provider-class>oracle.adf.view.rich.help.ResourceBundleHelpProvider</help-provider-class>
    <property>
    <property-name>baseName</property-name>
    <value>com.symmetry.dashboard.panels.Help</value>
    </property>
    </help-provider>
    if try to register both help providers confliction occurs. Is it possible to register and use more than one help provider.?
    Thanks in advance.:)

    Thanks Frank,
    In adf-settings.xml file
    <help-provider>
    <help-provider-class>oracle.adf.view.rich.help.ResourceBundleHelpProvider</help-provider-class>
    <property>
    <property-name>baseName</property-name>
    <value>com.symmetry.dashboard.panels.Help</value>
    </property>
    </help-provider>
    <help-provider prefix="RB_">
    <help-provider-class>oracle.help.web.rich.helpProvider.OHWHelpProvider</help-provider-class>
    <property>
    <property-name>ohwConfigFileURL</property-name>
    <value>/myHelpset/config.xml</value>
    </property>
    <property>
    <property-name>baseURI</property-name>
    <value>http://127.0.0.1:7101/Dashboard_workflow/myHelpset/%3c/value>
    </property>
    </help-provider>
    I differentiated the help providers with the "prefix" attribute in the <help-provider> tag. So now confliction is not occuring between those.
    I used this prefix in the "helpTopicId" property of the adf components like "input text box" . I got the result. :)

  • How do I save more than one username and password for one website?

    First, let me say that I'm extremely irritated that I just spent 15 minutes writing a very detailed question and researching my OS, browser version, etc. only to have it all erased because I didn't "verify" my e-mail before I started typing my question. Firefox: please fix your sign-up and question posting process so this doesn't happen. It should retain your info for a smooth process after you verify. What a waste of time and effort when I'm already frustrated.
    ACTUAL QUESTION: I manage two online calendars under one root URL (www.samplepage.com/calendar1 and www.samplepage.com/calendar2). My e-mail address is the user ID for both accounts but the passwords are different.
    FF used to associate your username and password with the ENTIRE URL but now it only associates with the root (www.samplepage.com). So, for me, it will only remember one password.
    How can I get it to remember BOTH passwords?
    Thanks!

    That is not possible with the Firefox password manager. You can only save a user name and its password once for a specific domain, so if the name is the same then it doesn't work.

  • Isd there a way to have mail use more than one address per person from the address book?

    Have a group in address book and some of the records have more than one email address. Is there a way to have mail use both addresses or do I need to have an individual record for each email I want to send to?

    This article seems to describe a way to do what you want.

  • No longer able to see more than one window on screen at the same time

    In the last 2 days or so, I am no longer able to have a Safari window on screen at the same time as my Mail window. Same with Applications, I was working on a project in InDesign and wanted to check out how to print it booklet & double sided with my Epson printer but as soon as the Safari window is on screen the Indesign one disappears, which is no use at all for following instructions. I used to be able to have numerous windows available on screen at the same time (4 isn't unusual for me).
    Does anyone know what has changed? The only thing I'm conscious of doing was moving my dock and hiding it so I've put it back to where it was and always visible but I still can't have 2 different windows on screen at the same time. Any help/advice gratefully received, thanks

    Not sure I understand!
    Do you get an error when attempting to have two windows opened?
    A silly question on my part maybe but have you tried resizing the windows to more than one will be visible?
    To re-size a window left click the mouse to grab the bottom right corner of the window, hold the click and drag the window up, down, left or right to re-size.
    Alternately you can try clicking the green plus button on the on the top left corner of the window. This will automatically re-size the window to its best viewing size.
    Did you by change change the resolution of your monitor from System preferences?
    Message was edited by: iyacyas

  • Can I have more than one version of Reader on the same machine?

    I'm running Reader 8 because I like the user interface better than the more recent versions.  I'd like to also install the latest version only for some integrated tools that require it for use with AIR.  Can I have both installed?  I don't see any options when I try to download and install the latest versions (like where to install the software.  Ideally I'd like Reader 8 to be my default application to open .pdf documents.
    Thanks in advance,
    Gabor

    C F,
    Thanks for the reply.  In the meantime I have found that my integrated tools (Xilinx Document Navigator) allow me to open documents externally using any version / brand of reader.  It's not quite as nice as seeing the documents in the tool's own windows, but it's a good enough option for me given the relative infrequency I use this tool.  If I decide to try to integrate the Document Navigator with Adobe Reader, I might get away with using Reader 10.  Is there an app note on installing more than one version, or is this so "not recommended" that I'm on my own if I want to try it?
    Regards,
    Gabor

Maybe you are looking for

  • TS1424 why wont my itunes 11 on my macbook pro, let me download the songs on my iphone 4 without erasing any music on my phone already?

    I just added songs to my library but when I connected my iPhone 4 to my macbook pro, iTunes wouldnt let me take those songs and put them on my phone. I've clicked the sync button but it seems to say that it'll delete all my existing songs on my phone

  • Creating Job Issue

    Hi Experts, I have created a page in Apex where I m using File browse item say :p13_filebrowse(where i m using CSV format files) and other items too. On click of Submit button I m calling package which dynamically creates the table successfully of br

  • Cheap i/o device for electric guitar?

    hi. i've recorded on an analog four track for years but now want to make the switch to digital recording with my mac. what is a cheap but decent external i/o device i could use to record my electric guitar on my mac without an amp? thanks in advance.

  • Smartforms symbol not found?

    Hi experts, I am facing a problem with smartforms, hopefully anyone of you got a solution on this. The call of my Smartforms FM results in a exception 1 --> formatting error. Smartforms_trace says:   MSGV1: GV_PRINT-AMOUNT        symbol GV_PRINT-AMOU

  • OSS NOTE Number required

    Hi Gurus, could you plese provide me the Related OSS NOTE number for the folowing exception . TSV_TNEW_PAGE_ALLOC_FAILED No storage space available for extending the internal table. You attempted to extend an internal table, but the required space wa