Creagting connection pools dynamically and bind with TxDataSource

          Hi!
          Is there a way I can create a dynamic connection pool and associate it to a DataSource
          using weblogic. I know I can't create a datasource dynamically, so are there
          any work arounds to bind the dynamically created connection pool to configured
          datasource.
          thanks,
          Srinivas
          

Ken Yeung wrote:
My application is required to support many different connections to different databases. I'll need to setup potentially hundreds of connection pools (and associated datasources). I was thinking of creating them dynamically through the app as needed.. but, wondering if I can get a way with creating all of them upfront (and setting the initial connections to 0). This way I can set all the database properties via WL console instead of hardcoding in the appl. I would like to know if there's a significant cost to creating datasources and connections pools upfront (even though they're initially not used). Please let me know how you would approach this. thanks.You can certainly create them ahead of time. No significant overhead from simply having
the pools. However, if you set them up to do periodic refresh they will involve some cycles.

Similar Messages

  • Oracle connection pool problem (dbcp binded with  jtom)

    Hi,
    my webserver is Tomcat5.0.18, I want to offer the connection pool and transaction management
    in my currently system
    I know in Tomcat5.0 version, we can use the DBCP to offer the database connection pool
    service, to apply the transaction management in my system, I adapt the JTOM
    now, my problem is
    to use DBCP, I setup the datasource factory to be
    org.apache.commons.dbcp.BasicDataSourceFactory, the connection pool is ok, but
    the transaction management offerred by JTOM will failure
    to make the tranaction management of JTOM succeed, I have to setup the datasource factory to be
    org.objectweb.jndi.DataSourceFactory, but the connection pool offerred by Tomcat will failure now
    it seems that these two datasource factory has conflict
    How can I do?, I don't want to use the connection pool offerred in JTOM
    Anyone can help me??
    Thanks in advance

    Hi,
    I don't know the solution for JOTM, but you could try this JTA and its connection pools:
    http://www.atomikos.com ships a JTA that integrates with Tomcat and also provides JDBC connection pooling. There is a GUI control panel so that you don't have to know the XML details for Tomcat's config files.
    Best,
    Guy

  • How can I switch the connection pool dynamically during on load happens

    HI,
    I have two data bases which holds same data. i.e Prod_db, Prod_db1,
    I want to switch the connection pool dynamically during load happens
    Ex: During load happens i want to hit prod_db1, after load completes i want to hit prod_db. How to achieve this.

    create dynamic repository variable for DSN using init block so that value is changes based on your timings and use this in connection pool.
    If you use same user and passwords for both the databases that would be easy or else need to follow the same for uid and pwd.
    That should work, if not update.
    If helps pls mark correct/helpful

  • Connection pooling problem in TopLink with JBoss4.0.3

    Hi All
    I am using JBoss4.0.3SP1 with TopLink-10g(9.0.4.5) and Sybase as database. I am implementing connection pooling of JBoss with Sybase. I have done all the changes in JBoss mapping files.
    Now to enable connection pooling in TopLink I have set the <uses-external-connection-pooling> attribute in sessions.xml file to true and I have added <datasource> attribute corresponding to the datasource defined in JBoss. It is working fine but when I delete the username, password...etc attribute from the sessions.xml then I am not able to get the session from datasource.
    Can anyone tell me what to do or where I am making mistake? Any help on this will be appreciated

    I tried that code also but the project object that I am getting is null which is in this line
    DatabaseLogin login = (DatabaseLogin)mySession.getProject().getLogin();
    mySession is an object of oracle.toplink.sessions.Session interface but when I call this method then it returns me a null object of Project class, so I am getting NullPointerException error. I tried to do this stuff by many ways but I am always getting the NullPointereException in setLogin() method of Session. This is the stackTrace of the error.....
    java.lang.NullPointerException
    at oracle.toplink.publicinterface.Session.setLogin(Session.java:2871)
    at com.test.TestCon.executeQurey(TestCon.java:91)
    at org.apache.jsp.Test_jsp._jspService(org.apache.jsp.Test_jsp:55)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
    at java.lang.Thread.run(Unknown Source)
    Can you please tell me where I am wrong or any other way to do fix this problem.

  • Two Connection Pools In One Database With Two Phisical Schema

    I have a database with 2 physical schemas. Each physical schema has a different username and password. So i must create a second connection pool. But i have the problem that physical schemas don't understand which connection pool to use. How can i coincide each physical schema to its connection pool automatically.
    Regards

    You need two Physical databases each with its own Connection Pool, within that database will be a single Physical Schema.
    Or you could have a single Database/Connection Pool if it has read access to both schemas.

  • Universal Connection Pool license and release policy

    Hi,
    the Oracle JDBC drivers are licensed by the "Oracle Technology Network Development and Distribution License Terms" which allows you to distribute the JDBC drivers with your software without the need to purchase any additional license from Oracle.
    UCP is licensed by the "Oracle Technology Network Developer License Terms". This license is the same you get for your development version of the database itself, meaning that you are not allowed to use the software for any production use or development of an already released software.
    This is irritating, since I cannot see that I can purchase a license for UCP to distribute UCP with my software. In addition, the version of UCP currently available at oracle.com is not the most current one (11.2.0.1.0; Oracle database patchset 11.2.0.2.0 contains UCP version 11.2.0.2.0).
    Another issue is that the connection pool implementation bundled with the Oracle JDBC driver is deprecated, so UCP is the only option to go with in the long run.
    Could someone help me to clarify the licence and release strategy for UCP?
    Thanks,
    Ulf

    You can either require a customer to download it themselves or perhaps even automate the download as part of your install.
    Other than that I can only mention that my expectation is that you will not get an answer from Oracle (a rep) unless you have a monetary relationship with them. If you have a good customer that has purchased an Oracle license they might be able to ask for you via their support license.

  • Convert row to columns and bind with same ID

    Hi All,
    I have a table with 2 columns - ID as Int and ClientID as Varchar(max)
    ID        ClientID
    1         123,784
    2         342,891,322
    3         111
    4         982,543,212,453
    I want t-sql to get output like this..Whenever there is a comma, split them and bind it to same ID.
    ID        ClientID
    1         123
    1         784
    2         342
    2         891
    2         322
    3         111
    4         982
    4         543
    4         212
    4         453
    Create statement:
    Create Table Sample
    ( ID Int null , ClientID varchar(max) null)
    Insert statement:
    Insert into sample (ID,ClientID) Values (1,'123,784')
    Insert into sample (ID,ClientID) Values (2,'342,891,322')
    Insert into sample (ID,ClientID) Values (3,'111')
    Insert into sample (ID,ClientID) Values (4,'982,543,212,453')
    Thanks,
    RH
    sql

    You can also do this using a user defined table valued function like this:
    create FUNCTION [dbo].[ufn_SplitString_Separator](@InputStr VARCHAR(max), @Separator VARCHAR(1))
    RETURNS @tmpTable TABLE (OutputStr VARCHAR(max))
    AS BEGIN
    DECLARE @TmpPOS integer
    SET @TmpPOS = CHARINDEX(@Separator,@InputStr)
    WHILE @TmpPos > 0 BEGIN
    IF @TmpPos > 0 BEGIN
    INSERT INTO @tmpTable VALUES (LTRIM(RTRIM(SUBSTRING(@InputStr,1,@TmpPos-1))))
    SET @InputStr = SUBSTRING(@InputStr, @TmpPOS + 1, LEN(@InputStr) - @TmpPos)
    SET @TmpPOS = CHARINDEX(@Separator,@InputStr)
    END ELSE BEGIN
    INSERT INTO @tmpTable VALUES (LTRIM(RTRIM(@InputStr)))
    SET @TmpPos = 0
    END
    END
    IF LEN(@InputStr) > 0 BEGIN
    INSERT INTO @tmpTable VALUES (LTRIM(RTRIM(@InputStr)))
    END
    RETURN
    END
    And get the results:
    DECLARE @Sample TABLE ( ID Int null , ClientID varchar(max) null)
    Insert into @sample (ID,ClientID)
    VALUES
    (1,'123,784'),(2,'342,891,322'),(3,'111'),(4,'982,543,212,453')
    select id, outputstr as clientid from @sample cross apply dbo.[ufn_SplitString_Separator](clientid,',')
    "If there's nothing wrong with me, maybe there's something wrong with the universe!"

  • Having issues getting Apple TV to connect to comcast wifi. Sees the router' enter password and says unable to connect. Router connected to iPad and pcs with no issues..., thoughts?

    At a loss. Have comcast wifi. No issues connecting to iPad and laptop. However, when I try to connect iPhone 5 with OS 7 or applets with latest software I get unable to connect message.   I can get the iPhone to connect if right next to modem, but unable to connect one room away. iPads have no issues and connect from any room.

    Hello Tvsteven,
    Thank you for providing all the details regarding the Wi-Fi connection issue you are experiencing with your Apple TV.  I found an article with some steps you can take to troubleshoot an issue like this.
    I recommend reviewing the full article, but the section titled "If you can see your Wi-Fi network, but you are unable to connect to it" specifically stands out to me for the situation you described:
    Apple TV (2nd and 3rd generation): Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/TS4546
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Difference between Multiple Hierarchies, Dynamic and stored with an example

    Hi,
    I am new to Hyperion Essbase 11.1.2. Can anyone please explain Multiple Hierarchies, Dynamic and Stored hierarchies with an example?
    Thanks in advance

    It is all in the documentation with examples - http://docs.oracle.com/cd/E40248_01/epm.1112/essbase_db/acrtapdb.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • When using the Database Connectivity Toolset, reads and writes with long binary fields are incompatible.

    I am trying to write LabVIEW Variants to long binary fields in a .mdb file using the Database Connectivity Toolset. I get errors when trying to convert the field back to a variant after reading it back from the database.
    I next tried flattening the variant before writing it and ultimately wound up doing the following experiments:
    1) If I use DB Tools Insert Data to write an ordinary string and read it back using a DB Tools Select Data, the string is converted from ASCII to Unicode.
    2) If I use DB Tools Create Parameterized Query to do an INSERT INTO or an UPDATE operation, specifying that the data is BINARY, then read it back using a DB Tools Select Data,
    the length of the string is prepended to the string itself as a big-endian four-byte integer.
    I can't think of any way to do a parameterized read, although the mechanism exists to return data via parameters.
    Presuming that this same problem affects Variants when they are written to the database and read back, I could see why I get an error. At least with flattened strings I have the option of discarding the length bytes from the beginning of the string.
    Am I missing something here?

    David,
    You've missed the point. When a data item is flattened to a string, the first four bytes of the string are expected to be the total length of the string in big-endian binary format. What is happening here is that preceding this four-byte length code is another copy of the same four bytes. If an ordinary string, "abcdefg" is used in place of the flattened data item, it will come back as <00><00><00><07>abcdefg. Here I've used to represent a byte in hexadecimal notation. This problem has nothing to do with flattening and unflattening data items. It has only to do with the data channel consisting of writing to and reading from the database.
    I am attaching three files that you can use to demonstrate the problem. The VI file c
    ontains an explanation of the problem and instructions for installing and operating the demonstration.
    Ron Martin
    Attachments:
    TestLongBinaryFields.vi ‏132 KB
    Sample.UDL ‏1 KB
    Sample.mdb ‏120 KB

  • Need help connecting to 360 and pc with internet

    im new to using routers and i lost the manual and the box and i need help using the router the model number is NH1005,V2 fast ethernet 10/100 5-port Hub and it is a linksys so can someone help me im confused and i need the ip addreess or something
    thanks in advance

    Hi....
             A network HUB is a network device that is used to connect multiple computer so that they can share the resources. In more general way a hub can be defined as a common connection point for devices in the network.
                There are hubs that can be managed by an administrator. In case of NH1005 it is not a manageable HUB. Connect the devices to the HUB and if the devices are properly configured they will communicate with each other.

  • Connection of MDM and R3 with ABAP API

    Hi,
    Can any body suggesst how to Configure R3 4.7 with ABAP API . Is this possible with R3 4.6 C system as well ?
    KR,
    D

    Do you mean to connect to some external DB from SAP?
    Yes, you can. You can use transaction DBCO for this.
    There are a couple of things you need to do, but also there is a lot of stuff in the web and especially in SCN regarding this subject.
    Regards

  • Connection pool testing for dealing with database restarts

    How do you configure the app server to test JDBC connections before handing them to the application? The app server needs to accomodate database restarts while the app is running.
    We have an EAR file built with ANT (we use Eclipse 3.x to develop the app) and we use the deploy tool for getting it installed on the engine at 6.40 SP15. We have setup a datasource in the project options but I don't see how to configure it so that the engine tests JDBC connections before giving them to the application. We need to guard against database restarts and other app servers that I have used have an option that takes care of this detail. I cannot get the deploy tool help to appear due to an invalid URL being requested by the tool.

    Craig,
    you are right, in visual admin, it appears, any options to test a poll served connection are absent.
    Remedy: In tab additional
    - check expiration control and set
    - connection lifetime to say 60 (seconds) and
    - cleanup thread to say 30
    This way, you can't fully avoid, but diminish the likelihood to catch a bad connection.
    Regards
    Gregor

  • Connection between fmsedge and apache with http tunneling

    I configured my FMS for listening on port 80 and redirect non-FMS requests to apache on port 8080 in the same server machine.
    It works well, but I've noticed several tcp connections from fmsedge to apache in Established status (it is simple to see through "netstat -nap | grep 8080" command) that stay forever (until FMS stop or restart).
    With a sniffer capture I seen that sometime the fmsedge requests to apache a tcp connection but it (fmsedge) doesn't use this connection. Then the apache server send a syn,ack tcp request and always fmsedge send a dup ack tcp response. So, the connection is active but not used, then apache doesn't close it.
    The kind of requests for apache are http get to js or php files.
    I don't understand why fmsedge create these connections.
    Am I misteking some configuration? Or may be it is a bug of fmsedge? Anybody have the same problem? Anybody can help me?

    This is causing an issue for us: after a litle time, the server is blocked because too many connection are established. Any other new request to the service is not accepted and it is necessary to restart the server to resolve, but this action of course close all the active connection...

  • How do I fix bluetooth connection between mouse and keyboard with iMac. iPhone won't connect to bluetooth either

    Bluetooth on Mac os x won't work with keyboard, mouse or iphone.  Keyboard and mouse both have new batteries and go discoverable when switched on, i have gone into system setup and tried connecting.  It connects briefly with mouse then drops in and out of connection, keyboard does same, asking for passcode then no connection.  I'm lost... my phone can pick up keyboard, so i think it is bluetooth in mac.

    Go to ~/LIbrary/Preferences
    Move the com.apple.Bluetooth.plist file to the Trash.
    Restart your Mac.
    Try re "pairing" the keyboard.
    ~ (Tilde) character represents the Home folder.
    For Lion:   To find the Home folder in OS X Lion, open the Finder, hold the Option key, and choose Go > Library

Maybe you are looking for

  • Webutil.client_host relative path

    Hi, I'm upgrading an old 6i client application. There are some calls to host commands that contain relative paths. ..\import\start.batFrom 10G using client_host these files are not found. Probably the paths are not relative to the location of the fmx

  • How to install TC (4th gen) as 2nd router?

    Hi, I want to install my Time Capsule as a 2nd router behind the ISP modem/router. I want to do this because my ISP demands to keep the WI-FI turned on in the modem/router to enter the hotspots all over the country. I want to have my separated networ

  • System Services Reporting is not opening from main SAP screen menu.

    Hi Team, I have upgraded kernel patch in all our three systems of DEV, QAS & PRD, from patch level 139 to 376 (Kernel 460_REL). After upgrade ll system are working fine. Yet, System>Services>Reporting option is not opening from SAP Menu, even it is n

  • Inherit protected attribute from a Super class

    Hi All, I am inheriting a standard class which has many instance protected attributes. how do i access the super classes protected attributes from the sub class.  i.e i need the value present in the super class attribute to be used in a sub class met

  • How can i activate use cellular data for facebook

    how can i activate use cellular data for facebook