EJB3 CORRUPTED when using more than one PersistenceUnit

Hi,
I am using JSF, EJB3 on Glassfish. CMP and JTA.
This is the scenario:
A user logs into application choosing one Persistence Unit (like in JavaSE). This is only at the beginig as I want to use Glassfish CMP and JTA.
    public EntityManagerFactory getEmf() throws Exception {
        configOverrides = new HashMap<String,Object>();
        configOverrides.put(TARGET_DATABASE,TargetDatabase.SQLServer);
        configOverrides.put(TARGET_SERVER,TargetServer.SunAS9);
        configOverrides.put(JTA_DATASOURCE,"jdbc/"+puName);
        configOverrides.put(SESSION_NAME,puName+"_session");
        emf = Persistence.createEntityManagerFactory(puName,configOverrides);
        return emf;
    }I then put the corresponding PersistenceUnit name in http Session scope to be used later on.
I created a CommonEjbImpl to further inject via Jndi (and therefore use CMP and JTA) an EntityManger in each EJB3 as follows:
@PersistenceContexts({
   @PersistenceContext(name="pu/SOCIETE1", unitName="SOCIETE1"),
   @PersistenceContext(name="pu/SOCIETE2", unitName="SOCIETE2"),
   @PersistenceContext(name="pu/SOCIETE3", unitName="SOCIETE3"),
   @PersistenceContext(name="pu/SOCIETE4", unitName="SOCIETE4"),
   @PersistenceContext(name="pu/SOCIETE5", unitName="SOCIETE5"),
   @PersistenceContext(name="pu/GENESYS_EXEMPLE", unitName="GENESYS_EXEMPLE")
public class CommonEjbImpl {
    public EntityManager initEm() {
        LogUtil.log(this.getClass(),(String)FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("database"));
        return initEm((String)FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("database"));   
    public EntityManager initEm(String puName) {
        EntityManager em = null;
        try {
            em = (EntityManager) new InitialContext().lookup("java:comp/env/pu/"+puName);
        } catch (NamingException ex) {
            LogUtil.error(this.getClass(),ex);
        return em;   
    public void cleanup(EntityManager em) {
        //LogUtil.log(this.getClass(), "CLEANING EJB..with em: "+em);
        if (em != null && em.isOpen()) {
            em.close();
    } And in each EJB3, I use this CommonEjBImpl to get the Entity Manager like this:
@Stateless
public class TreeEJB extends CommonEjbImpl implements TreeEJBLocal {
    public TreeEJB() {
    private EntityManager em;
    @PostConstruct
    public void init() {
        em = super.initEm();
    @PreDestroy
    public void cleanup() {
        super.cleanup(em);
}I have also a JSF backing bean (in SESSION SCOPE) "TreeBean" in which i Inject an EJB3 like this:
    <managed-bean>
        <managed-bean-name>TreeBean</managed-bean-name>
        <managed-bean-class>com.mfpsoft.bean.tree.TreeBean</managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>and:
public class TreeBean extends BeanLoader {
    public TreeBean() {
    @EJB
    private TreeEJBLocal treeEJB;
    @PostConstruct
    public void init() {
        treeEJB.init();
}SO, imagine what is happening:
USER1 logs (a persistence unit)
USER2 logs (a different persistence unit)
USER1 refresh tree for example
USER2 rehresh tree also
==> USER2 GETS data from USER1 persitence unit
My questions:
EJB3 refrence seems to in application scope. Is thereonly one EJB3 refrence per appication?
If so, how can I use same EJB with different persistence COntexts at the same time.
Would this be a workaround ?? get entityManager at each business method of the EJB like this
    public  Object Method(Object object) throws Exception {
        EntityManager em = super.initEm();
        try {
            ...//em operations
        } catch (Exception ex) {
        } finally {
           em.close();
    }Would the data be corrupted if simultaneous access to same method by diffrent users?
This issue is quite URGENT
I would really appreciate a quick help on this
Many thanks in advance
Nicog

Hi Zsom,
Thanks for your answer
Let me explain more clearly.
My architecture is as follows: using JSF, Glassfish and ...SQL Server!! (! i know but this is mandatory requirement as our application is full web version of an existing ERP application already sold and installed by more than 1000 of our customers...
I am using
JSF-->JSF Managed Bean (Session for some and Request for almost all when logged )-->EJB Interface-->EJB Impl-->Entity-->Database
Our application is ERP that our customers uses to managed several companies simultanously .
This product ,mainly for intranets, is delivered with glassfish, the web application and SQL server containing by default 5 databases SOCIETE1,...SOCIETE5...but more can be created by our consultants for this customer....
All databases have the same schema but not the same data.
Sincerely, if I had done the desgin of the database, for sure I would have put all SOCIETEn in one DB but this is historical and I cant do anything against it.
You have to see in our case, a database as a company of our customer (a joint venture for instance), each of which  with particular configuration, customers, orders, invoices, contacts....
I have a persistence Unit (using JTA and CMP) per database , each using a connection pool managed by Glassfish.
At the login of my application, the user (a user of our cutomer that bought this product), choose a database (a company actually lets say SOCIETE1), ...enter logging info and connect.
The user must also be able to launch another browser window and connect lets say to SOCIETE2, and then work on SOCIETE1 AND SOCIETE2 simultanously.
Also, I need Session Scope as there is configuration data that I need to keep over all pages. This configuration data is depending on the database connected to and the user.
A session is therefore linked to the pair USER+DATABASE
When selecting the database (company) for combo in logging form, the only way I found is fisrt to check if database(company) exists and can be connect to using at first begining Persistence.CreateEntityMangerFactory.. (i know that this is not J2EE and CMP but merly used in Java SE environments..).
This step is only used for checking database.
Then, if creation did not generate a Persistence Exception , I can use CMP and an EnityManger in EJB by JNDI lookup (as DI is not possible because you need constant in unitName);
Doing so, the EJB (which only handles actions on Entities) manage the entities of the corresponding company SOCIETE1 or SOCIETE2, or.....
I know that I might use antipatterns here, but actually this is the only solution I found
Would an extra Layer between JSF bean and EJB do the trick....if yes how to inject the good persistence unit in my EJB is still in question.
More if one Persistence unit is injected (assuming EJB being stateless) and another user working on another persistence unit is using the same EJB, then I go back in my first message on this topic
As the number of databases for a customer is unknown, I can not create an EJB par database (lets says EJB_SOCIETE1, EJB_SOCIETE2,...). I agree that in this case they would be stateless....
Do you have any suggestion to repect patterns in this situation.
This would be greatly appreciated
Thanks again
Nicolas

Similar Messages

  • When using more than one tab, once I have opened a pdf using firefox my laptop will not allow me to type or click in another tab unless I drag the pdf into it's own window?

    when using more than one tab, once I have opened a .pdf using firefox my laptop will not allow me to type or click in another tab unless I drag the .pdf into it's own window? not a major problem just irritating.

    I found the cause but no solution, it's actually a plugin that does that: divx plus weblpayer (it gets installed when you install DivX on your system), if you disable it and restart firefox it all works again. But I want that plugin... so DivX need to fix this, unless it is a Firefox bug in its own core... anyway these two together creates the problem.
    (I'm running Firefox 9.x on OSX Lion)
    I also wish firefox tab tear out tab worked more like chrome's tab tear out, much friendlier...

  • Rendering Error when using more than one DataSheetView on a Enterprise Wiki-Page

    Hi Experts,
    how to reproduce:
    Add two Custom Lists with some Fields (Add Lookup-Columns to both Lists).
    Add a DataSheetView to each List and mark it as Default-View
    Create a Enterprise Wiki-Page
    Add a WebPart (Custom-List-1)
    You will see the Content from List 1 as DataSheet-View (because it is the Default-View)
    Add another WebPart below the previous added WebPart (Custom-List-2)
    You will see the Content from List 2 as DataSheet-View (because it is the Default-View)
    Notice that the First DataSheet has faulty Rendering. The Lookup-Columns having more than one 'Arror-Down' Image and it is even on the left. If you click into different Column, different row you get the same.
    I can reproduce this behaviour anytime.
    Environment: SharePoint 2013 Enterprise, IE10
    If you use Development-Tools to identify first datarow of first DataSheet you can see that it has to do something with the related <Input>-Tags:
    <div class="combobox-placeholder" id="jsgrid_combobox" style="left: 27px; top: 32px; width: 117px; height: 29px; border-top-color: currentColor; border-right-color: currentColor; border-bottom-color: currentColor; border-left-color:
    currentColor; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; visibility: inherit; ; direction: ltr; min-width:
    117px; background-color: transparent;">
    <input class="cb-textbox " style="width: 156px; height: 25px;" dir="ltr" type="text"/><input tabindex="-1" title="Dropdown" class="combobox-img" style="height: 29px;"
    dir="ltr" type="button" value="▼"/><input class="cb-textbox " style="width: 84px; height: 25px;" dir="ltr" type="text"/><input tabindex="-1" title="Dropdown"
    class="combobox-img" style="height: 29px;" dir="ltr" type="button" value="▼"/>
    Please have a look into it. Current Workaround for me is to have a Default-ListView in first WebPart. But then Customer has to click the Edit-Button to Change the Item in the releated EditForm. This is a Show-Stopper here!
    With Best Regards,
    Ronny

    Hi Ronny,
    According to your description, the lookup column would render incorrectly when adding more than one datasheet view in the Enterprise Wiki page.
    I tested the same scenario per your post, and I got the same results as you got.
    We will help to submit the issue to proper pipeline for you.
    Again, thank you for your report which will definitely make SharePoint a better products. There might be some time delay. 
    Appreciate your time and patience.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • NIO - Selector problem - when using more than one in same application

    Hi,
    I'm developing a multiplayer-server, which shall be able to handle at least 2000 concurrent clients. To avoid the use of 4000 threads for 2000 clients (a thread for each stream), I would like to use NIO.
    Problem:
    The server has of course a ServerSocketChannel registered with a Selector, and when clients connects, the SocketChannel's is received. IF these channels is registered (OP_READ) with the same Selector-instance as the ServerSocketChannel, there is no problem and the Selector recognizes when a registered SocketChannel is ready for OP_READ - BUT when the received SocketChannels is registered with another Selector-instance than the one the ServerSocketChannel is registered with, the Selector NEVER recognizes, when a SocketChannel is ready for OP_READ - why not and how do I solve the problem? Only one thread can service the same Selector-instance, and when both receiving many connections and read/write, this could easily be a bottleneck
    Following is the used code; 2 classes: ClientListener (has a ServerSocketChannel registered with a Selector) and ClientHandler (has another Selector where the SocketChannels is registered and a thread-pool that services all the SocketChannels, when they are ready for read/write):
    public class ClientListener {
      private static final int BACKLOG = 32;
      private int port;
      private Thread internalThread;
      private volatile boolean noStopRequested;
      private ServerSocketChannel ssc;
      private static Selector selector;
      private ClientHandler clientHandler;
      public ClientListener(ClientHandler clientHandler, String bindAddress, int port) throws InternalErrorException {
        this.clientClass = clientClass;
        this.clientHandler = clientHandler;
        this.noStopRequested = true;
        this.port = port;
        try {
          InetAddress inetAddress;
          if (bindAddress.equals(""))
            inetAddress = InetAddress.getLocalHost();
          else
            inetAddress = InetAddress.getByName(bindAddress);
          ssc = ServerSocketChannel.open();
          ssc.socket().bind(new InetSocketAddress(inetAddress, port), BACKLOG);
          ssc.configureBlocking(false);
          Runnable r = new Runnable() {
            public void run() {
              try {
                start();
              } catch (Exception e) {
                Log.echoError("ClientListener: Unexpected error: "+e.getMessage());
          internalThread = new Thread(r, "ClientHandler");
          internalThread.start();
        } catch (Exception e) {
          throw new InternalErrorException(e.getMessage());
      public static Selector selector() {
        return selector;
      private void start() {
        Log.echoSystem("ClientListener: Listening started at port "+port);
        try {
          selector = Selector.open();
          SelectionKey acceptKey = ssc.register(selector, SelectionKey.OP_ACCEPT);
          int keysAdded;
          while (noStopRequested) {
            SelectionKey key = null;
            keysAdded = selector.select(10000);
            if (keysAdded == 0)
              continue;
            Set readyKeys = selector.selectedKeys();
            Iterator i = readyKeys.iterator();
            while (i.hasNext()) {
              try {
                key = (SelectionKey)i.next();
                i.remove();
                if (key.isAcceptable()) {
                  ServerSocketChannel nextReady = (ServerSocketChannel)key.channel();
                  SocketChannel sc = nextReady.accept();
                  try {
                    clientHandler.registerClient(sc);
                  } catch (Exception e) { e.printStackTrace(); }
              } catch (CancelledKeyException cke) {
                System.out.println("ClientListener: CancelledKeyException");
        } catch (Exception e) {
          e.printStackTrace();
          try {
            ssc.close();
          } catch (IOException ioe) {/* Ignore */}
        Log.echoSystem("ClientListener: stopped");
      public void stop() {
    public class ClientHandler {
      private static final int INITIAL_WORKER_COUNT = 5;
      private int port;
      private Thread internalThread;
      private volatile boolean noStopRequested;
      private static Selector selector;
      private Manager manager;
      private WorkerPool pool;
      private ClientListener clientListener;
      public ClientHandler(Manager manager, String bindAddress, int port) throws InternalErrorException {
        this.manager = manager;
        this.noStopRequested = true;
        this.port = port;
        clientListener = new ClientListener(this, bindAddress, port);
        // initiating load-balanced worker-pool
        pool = new WorkerPool(INITIAL_WORKER_COUNT, (int)(manager.getMaxClients() * ClientWorker.CLIENT_FACTOR), 0.75f);
        for (int i=0; i < pool.getMinCount(); i++) {
          pool.addWorker(new ClientWorker(pool, manager));
        Runnable r = new Runnable() {
          public void run() {
            try {
              start();
            } catch (Exception e) {
              Log.echoError("ClientHandler: Unexpected error: "+e.getMessage());
        internalThread = new Thread(r, "ClientHandler");
        internalThread.start();
      public static Selector selector() {
        return selector;
      private void start() {
        Log.echoSystem("ClientHandler: Started");
        try {
          selector = Selector.open();
          int keysAdded;
          while (noStopRequested) {
            SelectionKey key = null;
            try {
              keysAdded = selector.select();
              Log.echoDebug("ClientHandler: out of select()");
              if (keysAdded == 0)
                continue;
              Set readyKeys = selector.selectedKeys();
              Iterator i = readyKeys.iterator();
              while (i.hasNext()) {
                try {
                  key = (SelectionKey)i.next();
                  i.remove();
                  if (key.isReadable()) {
                    key.interestOps(key.interestOps() & (~SelectionKey.OP_READ));
                    ClientWorker worker = (ClientWorker)pool.getWorker();
                    worker.process(key);
                  } else if (key.isWritable()) {
                    key.interestOps(key.interestOps() & (~SelectionKey.OP_WRITE));
                    ClientWorker worker = (ClientWorker)pool.getWorker();
                    worker.process(key);
                  } else {
                } catch (CancelledKeyException cke) {
                  Client client = (Client)key.attachment();
                  if (client != null) {
                    client.disconnect();
                    key.selector().wakeup();
            } catch (CancelledKeyException cke) {
              if (key != null) {
                Client client = (Client)key.attachment();
                if (client != null) {
                  client.disconnect();
                  key.selector().wakeup();
        } catch (Exception e) {
          e.printStackTrace();
        Log.echoSystem("ClientHandler: stopped");
      public void registerClient(SocketChannel sc) throws Exception {
        sc.configureBlocking(false);
        Client client = new Client(...);
        SelectionKey key = sc.register(selector, SelectionKey.OP_READ, client);
        key.selector().wakeup();
      public void stop() {
    }

    Ok, found the solution here: http://forum.java.sun.com/thread.jsp?forum=31&thread=282069
    "The select() method holds a lock on the selector that
    the register() method wants to acquire. The register()
    method cannot continue until the lock is relased and
    the select() method will not release it until some key
    is triggered. If this is the first key you're adding
    then select has nothing that will wake it up, ever.
    The result is, obviously, a deadlock.
    The solution is to have a queue of pending connections.
    You put your new connection in that queue. Then you
    wake up the selector and let that thread go through
    the queue, registering connections."

  • How to show all data when using more than one parameter?

    Hi All,
    I used a query like this to show the data in a report:
    select col1, col2 // col1 and col2 are columns of tabale tab1
    from tab1
    where
    tab1.col1 =
    (case when :P_COL1 IS NOT NULL then // :P_COL1 IS A USER PARAMETER TO EQUAL COL1
    :P_COL1 ELSE tab1.col1
    end)
    AND TAB1.COL3 =
    (case when :P_COL3 IS NOT NULL then // :P_COL3 IS A USER PARAMETER TO EQUAL COL3
    :P_COL3 ELSE tab1.col3
    end)
    The problem is when I run the report with paramters values or not, It shows the data which is not null for both col1 and col3.
    That is when the value of col1 or col3 is null the report would not return that record!
    I want the report to show all data not only values which is not null!
    How to do this?

    Rainer,
    That where clause will fail when col1 in the table is null and the parameter has the dummy value. Consider the following:
    variable p_col1 varchar2
    exec :p_col1 := 'yourdummyvalue';
    select
    from
         select 'yourdummyvalue' col1 from dual
         union all
         select 'other' from dual
         union all
         select null from dual
         union all
         select 'X' from dual
    ) tab1
    where nvl(tab1.col1,'yourdummyvalue') = nvl(nvl(:p_col1,tab1.col1),'yourdummyvalue')In this case, the query returns the row with null and the row with 'yourdummyvalue', where only the row with 'yourdummyvalue' should be returned.
    You must do something like this:
    where ( :p_col1 is null or ( :p_col1 = tab1.col1 ) )That one is the simplest and does not need a dummy value. Here are some other more complicated examples:
    where nvl( :p_col1, 'yourdummyvalue' ) = decode( :p_col1, null, 'yourdummyvalue', tab1.col1 )or this:
    where nvl( :p_col1, 'yourdummyvalue' ) = nvl2( :p_col1, tab1.col1, 'yourdummyvalue' )In the last 2 cases, it will not matter if the dummy value exists in the data, but they are unnecessarily complex.
    Kurz

  • What are the performance tradeoffs when using more than one EntityStore?

    Hi,
    I have different accounts where each account has the same set of Entity classes. I don't know yet wheter to have one EntityStore for each account or have one EntityStore for all accounts together and do a lot of 'joining' when retrieving Entities.
    This is a very similar use case as with the FAQ http://www.oracle.com/technology/products/berkeley-db/faq/je_faq.html#37 . The only difference is that I want to use DTP.
    It would be great if you could answer me the following questions:
    1.) Do basicly the same answers as in the FAQ apply to EntityStores?
    2.) How expensive is an EntityStore (memory, speed - creating and releasing)?
    3.) What would you recommend? I have to do a lot of secondary-index lookups which are restricted to one account. There are about 10 Entity classes and about 1000 accounts.
    Thanks,
    Christian

    Hello,
    It would be great if you could answer me the
    following questions:
    1.) Do basicly the same answers as in the FAQ apply
    to EntityStores?Yes, they apply.
    2.) How expensive is an EntityStore (memory, speed -
    creating and releasing)?For each store, there is an underlying Database per entity class and per secondary key. And for each store there is a catalog database which is also kept in memory.
    3.) What would you recommend? I have to do a lot of
    secondary-index lookups which are restricted to one
    account. There are about 10 Entity classes and about
    1000 accounts. I recommend using a single store for best performance and resource utilization.
    Mark

  • Can I use more than one transition when creating a slideshow in IDVD

    I want to use more than one transition in IDVD when creating a slideshow, is this possible?

    Not so. Under Windows select Photos.
    That will show the Media Browser in the lower right hand corner of iMovie.
    Use the File ➙ New Project to create a new project.  Select the photos from iPhoto you want to create a movie from and drag into the new project area.
    From there add your transitions, music, etc.

  • I use more than one computer to access my four business email accounts. When one computer is on (and mail is open) emails do not get through to the other computers. This is fine, but how do I make one of the other computers the dominant one?

    I use more than one computer to access my four business email accounts. When one computer is on (and mail is open) emails do not get through to the other computers. This is fine, but how do I make one of the other computers the dominant one?

    I assume these are POP accounts and all computers are set to remove from Server after downloading.
    So on the non dominant ones... Mail Preferences>Accounts, highlight an account, Advanced tab, uncheck remove from Server, just have the main dominant one remove from server.
    Or get/setup IMAP accounts.

  • Error using pretrigger when capturing more than one channel

    I am having problems acquiring data with pretrigger samples when capturing more than one channel, using NI-PXI-6071E hardware and Labview's Analog Input VIs (Legacy NI-DAQ).
    My goal is to trigger on one signal, while capturing another. Unfortunately, I cannot use the PFI0 for external triggering, as our cables/hardware have already been built, so I must use an analog input channel as the trigger. I understand that to do so I must capture both channels, and the channel that I wish to trigger off of must be the first channel in the list.
    If I trigger and capture on the same channel (tried 1-4) then it
    works great, regardless of the number of pre-trigger samples set. If I
    capture more than one channel (passing the trigger channel first), with no pretrigger samples set, then triggering and capturing both work fine. However, if I do the same with the pretrigger sample > 0 I get the following error:
    Error -10621 occurred at AI Control. Possible reason(s):
    NI-DAQ LV: The specified trigger signal cannot be assigned to the trigger resource.  
    I don't se any such limitation explained in the user manual, and searching the forum, I have found a few other people that had the
    same
    problem
    but they did not have solutions. Any ideas?
    Solved!
    Go to Solution.

    I'm sorry for double-posting this. I was trying to post it in the DAQ board and it kept ending up on the LabView board.
    If moderators have the ability to delete this thread you are welcome to do so.

  • Why does iPhoto (9.0/11) not retain the Event name when exporting more than one event? (using File - Export - Album name with number).

    Why does iPhoto (9.0/11) not retain the Event name when exporting more than one event? (using File -> Export -> Album name with number).
    Exporting a single Event retains the Event name which is what I'd expect. But highlighting more than one event and exporting it renames the images to Events 001.JPG, Event 002.JPG etc.
    I was recently on holidays and had all my events nicely split on Dad's computer but when I went to export it I couldn't retain any of this information. Now I have to replicate this all again on my computer.
    It wasn't possible to export the entire library as the external drive was fat32 format an I didn't want all of it. It would be nice to export a bunch of events to someone and have it retain the name.
    Does anyone have a work around or will this be fixed at some point by Apple?

    Why does iPhoto (9.0/11) not retain the Event name when exporting more than one event? (using File -> Export -> Album name with number).
    Exporting a single Event retains the Event name which is what I'd expect. But highlighting more than one event and exporting it renames the images to Events 001.JPG, Event 002.JPG etc.
    I was recently on holidays and had all my events nicely split on Dad's computer but when I went to export it I couldn't retain any of this information. Now I have to replicate this all again on my computer.
    It wasn't possible to export the entire library as the external drive was fat32 format an I didn't want all of it. It would be nice to export a bunch of events to someone and have it retain the name.
    Does anyone have a work around or will this be fixed at some point by Apple?

  • 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.

  • How can I use more than one Data Provider in my web Apps

    I am trying to use two different data provider in my web apps to run two different queries from the same table ,the data provider A is working correctly but when I attempt to run data provider B ,It display an error page ,here is the error message : Exception Details :javax.servlet.ServletEx ception
    java.lang.RuntimeException: java.sql.SQLException : Cannot connect .Both dataSourceName and url properties are null.

    Hi,
    You can use more than one data provider in your application. However if you have defined a dataprovider for a particular table already, and wish to bind a component, select the component and use its context menu to Bind to Data...

  • Can I use more than one Apple ID on one device

    I have seen some answers to this type of question before but not that since the ios 6 so will ask again. My household shares an Apple ID and it has worked great as we have added devices and purchased apps.  My problem now is this, we have hit a point where I have work things on my iPad and iPhone that I really don't need to be shared with the whole family but it isn't a major deal or security risk. I don't want to give up the advantages of having the household ID.  Is there an easy way to have another ID on my iPad and switch between them without having major complications?  I am for the most part a techie so not afraid of these kind of things but I can't afford to lose everything right now and take the time to set it all back up so getting advice here.  Thanks in advance for any help you can give.

    You can use more than one apple id, but keep in mind that when apps need updating that you'll will need to sign in with correct credentials to update them.
    Share an apple id for the itunes and app stores, but keep your own for icloud, facetime and messages.
    Managing and Sharing multiple id's with your family
    http://www.macstories.net/stories/ios-5-icloud-tips-sharing-an-apple-id-with-you r-family/

  • Can u use more than one apple account on your device and itunes

    Can u use more than one apple account on your device and itunes

    Yes, but you have to logout of one, and login to the other.
    If it is an iPhone/iPad/iPod Touch and you buy apps on different accounts, when it comes time to update an app, you have to specify the password for the account used to acquirer the app. You change an iOS account via Settings -> Store -> Apple ID (tap on it), and start by logging out and then you can enter the other Id
    So it is possible, but it can also be a pain.

  • Can I use more than one bluetooth device at a time with my iphone4

    Can I use more than one bluetooth device at a time with my iphone4

    Anthony
    I have a Plantronics 975 earpiece that works very well with my Razr.  I
    just got a Panasonic KX-TG7873S phone system for my home, it has a
    "Link-to-Cell" cellular convergence solution, from what I understand it is
    just Bluetooth enabled.  I have paired both device with my Razr.  In
    settings, Bluetooth setting, both device show.  But only one device can
    connect at a time.  If my Plantronics is connected and I choose the
    Panasonic device, the Plantronics device disconnects and the Panasonic
    device then says it is connected.  Both devices work when they
    are connected.  Is it because they are both "headsets"?
    So, to have to remember to connect to one or the other device, depending on
    weather I am coming or going is not practical.
    On Sat, Sep 14, 2013 at 1:14 PM, Verizon Wireless Customer Support <

Maybe you are looking for

  • How can I put my system into StandBy Mode?

    Hi I am not able to put my system into stanby mode. How can I do that?

  • Anyone witnessed Server Side Copy in action with Yosemite Server 4.0.3?

    Hi, Just curious if anyone can validate the following for me before I upgrade. 1. Client is Mac OS X 10.10.2 client 2. Server is Mac OS X 10.10.2 running Server 4.0.3 3. Server is sharing out two shares via SMB only which for argument sake have faste

  • Terminator Focus on Unhide

    Does anyone know if there's a way so that if you're using Terminator's hotkey "hide" feature, when you unhide it the window automatically gets focus? I'm using Openbox, and I know that there's an option in obconf to set it so that new windows automat

  • Changing graph colours in numbers

    I'm using the numbers on iCloud and I have a graph with 8 categories. Unfortunately the colours repeat which makes it kinda confusing and I can't seem to find anywhere where I can change that, nor any answers online. Hope you can help! (Side question

  • Mixer not showing up in sound setting or audio preferences

    I have Logic x on my macbook pro and my Behringer XENYX X1204USB Mixer is not being recognised in logic at all and when I go into the sound setting on the macbook it isn't showing up in there either. I need help urgently cause I have a home studio to