Does EntityManager use the same database connection in a transaction?

Hi All,
I have a MDB in which I have created a EntityManager and began a transaction. I have passed this entity manager to all my DAO's via a standard setter method. Now I am wondering if this entity manager uses the same connection all the time until it's commited?
If not how does it work?
Thank you,
K.

Hi,
I am injecting the entitymanager into my MDB but it's throwing the JTATransaction required when I am trying to execute any native query? So I have removed the injection and created through the entitymanager factory. Now I am wondering whether it will use the same connection object during one transaction?
Here is the code which is throwing the JTATransaction required exception...
* entityManager.
@PersistenceContext(unitName = "myPersistenceUnit1")
private EntityManager entityManager;
<persistence-unit name="myPersistenceUnit1">
<jta-data-source>jdbc/MySessionDS
</jta-data-source>
<properties>
<property name="toplink.logging.level" value="FINEST" />
</properties>
</persistence-unit>

Similar Messages

  • How to share the same Database Connection when using several Task Flows ?

    Hi All,
    I’m using JDev 11.1.1.3.0.
    I’m developing ADF Fusion Applications (ABC BC, ADF Faces…)
    These applications are deployed on a Weblogic server.
    Each application has only one Application Module.
    All Application Modules have the same connection type defined: JDBC DataSource : jdbc/GCCDS
    It is working fine.
    I’ve also developed Task Flow Applications for small thinks that are reused in multiple main applications.
    Each Task Flow Application has also one Application Module with the same connections type as main applications.
    All these task flows are deployed to JAR file (ADF Library JAR File) and are reused on my main applications. (drag and drop from the Resource Palette to ADF Regions….).
    There are some parameters passed to Task Flows, so that they can filter data depending on which main applications they are called from.
    Everything is working perfectly.
    All my main applications are using more and more task flows. Which is nice for the reusability etc…?
    Only ONE PROBLEM: DATABASE CONNECTIONS.
    Every Task Flows service made a database connection. So one user may have 10 database connections for the same adf page. And when there are 100 users that are working at the same time, it becomes a problem.
    How to share the same database connections for the main applications and all task flows which are used in the main application?
    Best Regards
    Nicolas

    Hi John,
    When I open a ADF Library JAR file of one of my task flow. (gcc_tf_recentSites.jar)
    I can see TF_RecentSitesService.xml and TF_RecentSitesServiceImpl.class in gcc_tf_recentSites.jar\mu\gcc\tf\recentSites\model\service folder
    + bc4j.xcfg in gcc_tf_recentSites.jar\mu\gcc\tf\recentSites\model\service\common folder.
    bc4j.xcfg details are
    +<?xml version = '1.0' encoding = 'UTF-8'?>+
    +<BC4JConfig version="11.1" xmlns="http://xmlns.oracle.com/bc4j/configuration">+
    +<AppModuleConfigBag ApplicationName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService">+
    +<AppModuleConfig DeployPlatform="LOCAL" jbo.project="mu.gcc.tf.recentSites.model.TF_RecentSites_Model" name="TF_RecentSitesServiceLocal" ApplicationName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService">+
    +<Security AppModuleJndiName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService"/>+
    +<Custom JDBCDataSource="jdbc/GCCDS"/>+
    +</AppModuleConfig>+
    +<AppModuleConfig name="TF_RecentSitesServiceShared" ApplicationName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService" DeployPlatform="LOCAL" JDBCName="gccdev" jbo.project="mu.gcc.tf.recentSites.model.TF_RecentSites_Model">+
    +<AM-Pooling jbo.ampool.maxpoolsize="1" jbo.ampool.isuseexclusive="false"/>+
    +<Security AppModuleJndiName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService"/>+
    +</AppModuleConfig>+
    +</AppModuleConfigBag>+
    +</BC4JConfig>+
    So, it seems that the Application Module is packaged with the task flow....
    Is it normal ?
    Regards
    Nicolas

  • I just got a Mac and I use the same internet connection as my mom and my brother, who has an iPad. He can click on something that has my name and then Macbook Air, and is able to see everything on my computer screen. How do I fix this?

    I just got a Mac and I use the same internet connection as my mom and my brother, who has an iPad. He can click on something that has my name and then Macbook Air, and is able to see everything on my computer screen. How do I fix this so he cant see what i am doing on my computer?

    No, I made sure nothing was checked for that section when i found out he could see my screen. At the top it says "computers on your local network can access your computer at: blah blah". I think thats how hes doing it but i dont know how to fix it.

  • Why yahoo/gmail retrieval and facebook app so so slow when in WIFI. But using the internet to check for emails and facebook is fast using the same WIFI connection??

    Why yahoo/gmail retrieval and facebook app so so slow when in WIFI. But using the internet to check for emails and facebook is fast using the same WIFI connection??

    Hi SandyS_VZW,
    Yes tried resetting the wifi connection and problem still persist.
    Here it is...to make it clear. Connected thru the same wifi at home...
    -> emails (yahoo/gmail) and facebook WEBSITES are working fine and fast when using/accessing thru a browser (chrome/samsung browser) - no problem with this.
    -> emails (yahoo/gmail) and facebook APP is soooooo sloooww (thru the App). Slow I mean comparing it to using their browser/websites... news feeds/emails refreshing so quickly but not when using the APP installed in Samsung Galaxy Note 4. Slow like - It will take around 5-10minutes just to get your emails and news feed refreshed.
    THIS HAPPENS ONLY WHEN CONNECTED THRU A WIFI which has a speed of 10-20mb. It is not happening when connected to the network data/plan.
    My wife has the same Samsung Galaxy Note 4 (coming from different provider at&t) - same setup (emails, fb app), same wifi connection, but she's not experiencing anything like it.
    Not sure why, I dont want to believe that while connected to a WIFI, Verizon is restricting anything and ******* me off to make me switch to my data plan connection everytime - which is Unfair!
    Was there a known issue similar about this case?
    thanks,

  • My iMac keeps on losing internet connection. Webpages get stuck after a minute or so. If I check the internet connection via diagnostics it seems to work just fine. Others, like the iPad use the same wifi connection and never fail. What can I do?

    Running 10.6.8 on Intel dual core iMac, it keeps on losing internet connection. Webpages get stuck after a minute or so. If I check the internet connection via diagnostics it seems to work just fine. Others, like the iPad use the same wifi connection and never fail. What can I do?

    Greetings,
    I've never seen this issue, and I handle many iPads, of all versions. WiFi issues are generally local to the WiFi router - they are not all of the same quality, range, immunity to interference, etc. You have distance, building construction, and the biggie - interference.
    At home, I use Apple routers, and have no issues with any of my WiFi enabled devices, computers, mobile devices, etc - even the lowly PeeCees. I have locations where I have Juniper Networks, as well as Aruba, and a few Netgears - all of them work as they should.
    The cheaper routers, Linksys, D-Link, Seimens home units, and many other no name devices have caused issues of various kinds, and even connectivity.
    I have no idea what Starbucks uses, but I always have a good connection, and I go there nearly every morning and get some work done, as well as play.
    You could try changing channels, 2.4 to 5 Gigs, changing locations of the router. I have had to do all of these at one time or another over the many years that I have been a Network Engineer.
    Good Luck - Cheers,
    M.

  • My macbook pro has lost the internet connectivity. My friends laptops all appear to be working using the same ethernet connection. It all has been started just after I have updated mz Macbook pro to latest OSx update. Please help

    please help..I am suffering since last few days and now posting from my friends laptop bz using the same eathernet cable.

    Run the Network Diagnostics assistant. How far do you get?

  • Does GPS use the internet data connection?

    Hi everyone,
    I'll be using a German iPhone while traveling all over the world. The data connection is free within Germany (in other words, flat-rate internet) but quite expensive out of the country, 49 euro cents per 50kb block when I'm in the US, for example... I was hoping to use the GPS/map function a lot, but I'm afraid this will be expensive...
    Does the GPS/map function actually use the internet connection, for which I'll be charged per 50kb block?
    Or is GPS a separate kind of connection?
    I was hoping to just casually surf the web while traveling on trains across the globe, but I guess that would be a very expensive pastime...
    Thanks!
    Alexandra

    There is no charge for accessing GPS, but maps data is not stored locally on the iPhone. When using the Maps application, all maps data is downloaded from the internet - via an available wi-fi network you have access to, or via the cellular network. You can access GPS alone without a wi-fi or cellular connection, but it won't do you much good without any maps data.

  • My iPad disconnects everyone else on the router when in use. It actually kicks off everyone else that is using the same router connection periodically.

    Yes. Not that my iPad gets disconnected, it actually might be causing everyone else to disconnect from the router, including itself.
    Whenever I connect my router to this wifi at work or home at periodic intervals it actually causes everyone, including wifi and 'hard-line' users to receive no connection to the local network and internet.
    When the iPad stops connecting to the wifi, the problem stops for the duration it stays off, Tested it at durations of no iPad connection of 4 hours with no problems. And when connected it causes everyone on the network to drop (for all users) every 5-15 minutes.
    Why does ithis happen and how do I make it stop?

    Look at iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    Additional things to try.
    Try this first. Turn Off your iPad. Then turn Off (disconnect power cord) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    Change the channel on your wireless router. Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    Another thing to try - Go into your router security settings and change from WEP to WPA with AES.
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    If none of the above suggestions work, look at this link.
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • Can I use the same database for two WSUS servers?

    Hi Folks,
    Our HQ WSUS database is on a dedicated SQL Server 2008 in HQ. We are planning to set up a replica WSUS server in a branch office (centralized management mode). But we want to check the WSUS reports (e.g. computer/update status) only from the HQ instead
    of each branch. I have two questions.
    I should not install the SQL Server in Branch, and specify the HQ SQL Server as the Branch WSUS server database, right? In this case, I can check WSUS reports of both HQ and Branch from HQ, right?
    Can I use a specific update source (e.g. Microsoft Update or other WSUS upsteam servers) for Branch WSUS server instead of HQ WSUS server even it's a replica WSUS server?
    Thanks,
    高麻雀

    Regarding to "If the branch office server is intended to be a replica server, then it must be configured with the HQ WSUS server as the update source", does it mean my branch WSUS server is only able to get the patches from my HQ WSUS server?
    That is the fundamental premise of a downstream replica server.
    Isn't it able to get the patches from Microsoft Update or other WSUS servers?
    Well, here we may have a terminology challenge... so let me take a step back and answer this way:
    A WSUS server obtains *updates* via the process of synchronization. Updates can be synchronized from one of two sources: Microsoft, or an Upstream WSUS Server.
    Additionally, updates have a concept of APPROVAL. Approvals can be obtained from an Upstream WSUS Server when the server is configured as a REPLICA server; otherwise, Approvals are created at each individual WSUS server.
    Finally, updates have FILES. Files can be obtained from Microsoft or the Upstream WSUS server, and this configuration option is absolutely independent of where the updates and/or approvals come from.
    Please note: All of this is exhaustively documented and discussed in the
    WSUS Deployment Guide. I would highly recommend reading it cover-to-cover.
    In this case, there will a a lot of bandwith cost on the leased line which is only 2Mbps and intended for critical business like VDI/ERP applications.
    A few thoughts here...
    First a 2Mb/sec link is more than adequate to support a WSUS server downloading update files from an Upstream WSUS Server.
    Second, using BITS you can configure when those files are transferred as well as how much of that 2Mb/sec is made available to the WSUS downstream server.
    Third... Patch Management IS a critical business function. Do not let it be treated as a step-child or the VDI/ERP functionally will be irrelevant.
    "after installing the replica server in the branch office, on the upstream server enable the option for Reporting Rollup", will the report information (computer/update status) be recorded in the HQ SQL Server?
    The detail reporting data for the clients of the downstream replica servers is physically stored in the upstream server's database.
    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

  • How to get a recordset defined by primarykeys using the LabVIEW Database Connectivity Toolset?

    Hi folks.
    I'm using LabVIEW with the LabVIEW Db Toolset and Microsoft Access. The table contains 18 columns with a growing nr of rows.Now I want to get the whole recordset containing all columns defined by my primary keys. My SQL-statement is sofar:
    SELECT ALL FROM IMPULS_STATOR WHERE FAB = [string] AND LDATE = [datestring] AND ADATE = [datestring]
    But every time I end up with an error message saying "Invalid string: specified field does not exist or contains an unsupported character". I mutated the statement several times, adding or removing spaces, colons, etc.
    What am I doing wrong?
    Thanks in advance

    Thanks, Dennis.
    Unfortunately, I`m still encountering some problems with the DateValue function. My date/time field has this format: yyyy-mm-dd hh:nn:ss . If I use DateValue, nothing will be returned. Changing the format to yyyy-mm-dd in the Access DB didn`t help and I do need the time. Combining DateValue and TimeValue let to several errors. Using only TimeValue did not help me out. LabVIEW does not indicate errors anymore, therefore the syntax should be fine. But I don`t get any information back from my database.

  • Working with 2 DNN applications using the same database

    Hi,
    I have a client that needs 2 DNN web applications. I am hosting these on Azure. I have created the first one successfully and rather than create a second application and database, I was wondering if it is better to add the 2nd application as a child site
    of the first one. I know this is possible in the "Site Management" by adding a new site but how does it work for setting up the DNS.
    My first site would be set up as follows: myfirstsite.azurewebsites.net and I can set up the DNS to www.myfirstsite.com. If I add a second site as a child, then the url would be: myfirstsite.azurewebsites.net/mysecondsite. Could I then set up the DNS to
    point that url to www.mysecondsite.com? Would this be the way to do it or is it better to have 2 separate apps with 2 separate databases? I'm thinking in terms of hosting fees as well.
    Thanks
    rvenable

    Hello rob.venable,
    I understand that you would like to add your second DNN web application as a new site to the existing and would like to know how to setup the DNS.
    You will need to create a subdomain for your second application with reference to your exiting application and point the URL to the existing application.
    For eg, if you create a website with the CNAME
    www.mysite.net, you can create a sub domain to point out the new other application as
    www.mysite.net/subdomain
    You can refer to this link that will give you information on 'Mapping a custom subdomain to an Azure Website':
    http://blogs.msdn.com/b/waws/archive/2014/10/01/mapping-a-sub-domain-to-an-azure-web-site.aspx
    You can also refer to this link that will give you information on 'Mapping a custom naked domain to your Azure Website, a URL with no www':
    http://blogs.msdn.com/b/waws/archive/2014/10/01/mapping-a-naked-url-to-your-azure-web-site-url-with-no-www.aspx
    Mapping a custom domain to a Traffic Manager on Azure Websites
    http://blogs.msdn.com/b/waws/archive/2014/10/01/mapping-an-azure-web-site-custom-domain-to-a-traffic-manager-domain-name.aspx
    Mapping a custom domain with a special character to an Azure Website
    http://blogs.msdn.com/b/waws/archive/2014/10/01/mapping-a-custom-domain-with-a-special-character-to-an-azure-website.aspx
    Thanks,
    Syed Irfan Hussain

  • My macbook pro has lost the internet connectivity. My friends laptops all appear to be working using the same ethernet connection and connection leads but my Macbook pro refues to connect. it was working fine less that 2 hrs ago?

    Being new to Mac's i just want to know what to check, can any one help?

    System Preferences/Internet & Network/Network
    Unlock the padlock
    Locations:  Automatic
    Highlight Ethernet
    Click the Assist Me button
    In the popup window click the Diagnostic button.

  • My Mac Mini client cannot find or connect with the server on my 4 station network.  I am able to connect with the server using the same ethernet connection with another Mac.  Any suggestions?

    I am using DHCP/automatic running OS 10.4.11.  I upgraded to 10.5 but this did not help.

    Ping has started ...
    PING 192.168.1.1 (192.168.1.1): 56 data bytes
    64 bytes from 192.168.1.1: icmp_seq=0 ttl=64 time=1.158 ms
    64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.941 ms
    64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.911 ms
    64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.924 ms
    64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=0.995 ms
    64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=0.971 ms
    64 bytes from 192.168.1.1: icmp_seq=6 ttl=64 time=0.964 ms
    64 bytes from 192.168.1.1: icmp_seq=7 ttl=64 time=0.937 ms
    64 bytes from 192.168.1.1: icmp_seq=8 ttl=64 time=0.894 ms
    64 bytes from 192.168.1.1: icmp_seq=9 ttl=64 time=0.874 ms
    --- 192.168.1.1 ping statistics ---
    10 packets transmitted, 10 packets received, 0% packet loss
    round-trip min/avg/max/stddev = 0.874/0.957/1.158/0.075 ms

  • Can you use FaceTime on the same wifi connection

    My daughter and I are trying to FaceTime each other. We r both using the same Internet connection. When I FaceTime her on my ipad2 it's ringing from my end. But she is not reciveing any ringtone on her iPod touch. And when she tries to FaceTime me the same thing happens. Is it because where both connected to the same wifi?

    What is a SW issue? The iPod is the latest one has the FaceTime app. We both have different email addresses. Also having trouble with I message my daughter recives my messages but goes to  her email and not to her imessage and she can't send me messages. Always says not delivered.
    Have tried everything.

  • How to use Forms Default Database Connection in java class

    When a form based application is started, a connection is made with underlying database. This is the Default (Primay) Database Connection.
    The problem is I have some of my business logic implemented in a java class. In this class I have to make a another connection with the same database. What I want to do is to use the original Database Connection in the java class. In this I may avoid the overhead of reconnection.
    Could anyone pls guide me in this way...

    you can't share the forms connection. Sorry :(

Maybe you are looking for

  • How to delete duplicate row in certain case

    Hi all,</p> <p>I need you help to delete my duplicate row.</p> <p>Sample Data in table (<b>table1</b>)</p> <p style="margin-top: 0; margin-bottom: 0"> </p> <p style="margin-top: 0; margin-bottom: 0"><b>Timein        DateIn            locationin      

  • PDF Generation with LiveCycle Data Services

    Hi everybody! I am using LiveCycle Data Services to generate a dynamic pdf. I worked with this tutorial : livedocs.adobe.com/livecycle/es/sdkHelp/programmer/lcds/pdfgen_1.html and i adapted the code to my own example. I created a pdf template with li

  • User view restriction by country/ region

    Hello, I would like to create a global template for a query. My users are around the world. I would like the queries to be restricted in a way that the user in China cannot get the data for user or info in US and vice versa. Also some poweruser may b

  • Focus event with JTabbed pane

    How do I set FocusListener to fire with I select a specific tab in a JTabbed pane? If I put the FocusListener on the Tabben pane it fires rquardless of which tab I select and if I try to use an if statement to single out a specific tab nothing happen

  • I just installed Adobe Creative Suite and ended up with 29 more icons in LaunchPad.

    Most of which are 'apps' that are one-time or little used sub-apps that have nothing to do with the day to day usage of the 7 main apps. And there they sit waiting for me to assemble them into a 'folder' to get them out of my way. It's my understandi