Cluster and ConnectionPooling

Hi,
I need your help.
I have a WLS-Cluster with 2 instances and my webApp uses connection pooling.
By looking up for connections in the pool the application get one, but it
will never be released.
In my opinion, the webApp get the connection and looses the reference to
release it.
How do I have to configure my cluster to work well with that stuff ?
Thanks a lot,
Markus.

What if the code between db.connect() and db.disconnect() throws an
exception? In that case the disconnect() would never happen and you
have basically lost a connection from your pool. Could it be that in the
clustered version the code between those calls is throwing an exception
that the non-clustered version is not being thrown??
Regards
alex
"M. Hammer" wrote:
Here it is...
But I don't think that you'll see anything in the source.
My WebApp works well standalone, but not in a CLUSTER.
By the way I put an new WLS Instance to a standalone running one,
connections will be used and never be released.
Exactly the connection will be open up in the partner-instance of the
requested one.
So, I think that the cluster make the connection-pool-request to both,
Instance 1 and 2, then on one connection, the reference is lost.
Hope you know what I mean. ;o)
public class MyServlet extends HttpServlet
public void doGet (HttpServletRequest request, HttpServletResponse
response)
throws IOException, ServletException
Db db = mySession.getDb();
if( mySession.useConnectionPooling && !mySession.useStaticDb ) {
db.connect();
if( mySession.useConnectionPooling && !mySession.useStaticDb ) {
db.disconnect();
"Michael Reiche" <[email protected]> schrieb im Newsbeitrag
news:[email protected]...
Ok, that was the code that connects. Now the code that uses it and
disconnects.
Mike
"M. Hammer" <[email protected]> wrote in message
news:[email protected]...
Ok, here it is...
public boolean connect()
Hashtable jndi_env = new Hashtable();
Context context = null;
DataSource ds = null;
if ( driverRegistered )
if( isConnected() ) {
disconnect();
if( useConnectionPooling ) {
try {
if( activateSettings ) {
//--- JNDI-Settings aus App-Property-Datei
setzen
jndi_env.put( Context.INITIAL_CONTEXT_FACTORY,
JNDI_factory_initial );
jndi_env.put( Context.PROVIDER_URL,
JNDI_provider_url );
jndi_env.put( Context.SECURITY_PRINCIPAL,
JNDI_security_principal );
jndi_env.put( Context.SECURITY_CREDENTIALS,
JNDI_security_credentials );
if( activateSettings ) {
context = new InitialContext( jndi_env );
} else {
context = new InitialContext();
ds = (DataSource)context.lookup(
myDataSource );
connection = ds.getConnection();
} catch( SQLException ex_sql ) {
return false;
} catch( NamingException ex_nam ) {
return false;
} else {
try {
connection = DriverManager.getConnection(url, login,
password);
} catch(SQLException ex) {
return false;
else
return false;
return true;
"Michael Reiche" <[email protected]> schrieb im Newsbeitrag
news:[email protected]...
Can you post the code that gets the connection, uses it, and returns
it
to
the pool?
Mike
"M. Hammer" <[email protected]> wrote in message
news:[email protected]...
Hi,
I need your help.
I have a WLS-Cluster with 2 instances and my webApp uses connectionpooling.
By looking up for connections in the pool the application get one,
but
it
will never be released.
In my opinion, the webApp get the connection and looses the
reference
to
release it.
How do I have to configure my cluster to work well with that stuff ?
Thanks a lot,
Markus.

Similar Messages

  • Some error in cluster alertlog but the cluster and database is normal used.

    hi.everybody
    i used RAC+ASM,RAC have two nodes and ASM have 3 group(+DATA,+CRS,+FRA),database is 11gR2,ASM used ASMlib,not raw.
    When i start cluster or auto start after reboot the OS,in the cluster alertlog have some error as follow:
    ERROR: failed to establish dependency between database rac and diskgroup resource ora.DATA.dg
    [ohasd(7964)]CRS-2302:Cannot get GPnP profile. Error CLSGPNP_NO_DAEMON (GPNPD daemon is not running).
    I do not know what cause these error but the cluster and database can start normal and use normal.
    I do not know whether these errors will affect the service.
    thanks everybody!

    anyon has the same question?

  • When setting up converged network in VMM cluster and live migration virtual nics not working

    Hello Everyone,
    I am having issues setting up converged network in VMM.  I have been working with MS engineers to no avail.  I am very surprised with the expertise of the MS engineers.  They had no idea what a converged network even was.  I had way more
    experience then these guys and they said there was no escalation track so I am posting here in hopes of getting some assistance.
    Everyone including our consultants says my setup is correct. 
    What I want to do:
    I have servers with 5 nics and want to use 3 of the nics for a team and then configure cluster, live migration and host management as virtual network adapters.  I have created all my logical networks, port profile with the uplink defined as team and
    networks selected.  Created logical switch and associated portprofle.  When I deploy logical switch and create virtual network adapters the logical switch works for VMs and my management nic works as well.  Problem is that the cluster and live
    migration virtual nics do not work.  The correct Vlans get pulled in for the corresponding networks and If I run get-vmnetworkadaptervlan it shows cluster and live migration in vlans 14 and 15 which is correct.  However nics do not work at all.
    I finally decided to do this via the host in powershell and everything works fine which means this is definitely an issue with VMM.  I then imported host into VMM again but now I cannot use any of the objects I created and VMM and have to use standard
    switch.
    I am really losing faith in VMM fast. 
    Hosts are 2012 R2 and VMM is 2012 R2 all fresh builds with latest drivers
    Thanks

    Have you checked our whitepaper http://gallery.technet.microsoft.com/Hybrid-Cloud-with-NVGRE-aa6e1e9a for how to configure this through VMM?
    Are you using static IP address assignment for those vNICs?
    Are you sure your are teaming the correct physical adapters where the VLANs are trunked through the connected ports?
    Note; if you create the teaming configuration outside of VMM, and then import the hosts to VMM, then VMM will not recognize the configuration. 
    The details should be all in this whitepaper.
    -kn
    Kristian (Virtualization and some coffee: http://kristiannese.blogspot.com )

  • Data Source and ConnectionPool

    This is a query for information about javax.sq.ConnectionPool and javax.sql.DataSource
    Does datasource represent one connection to a database? - if you register it through JNDI does this just register the object and every time you call it does it instatiate the connection?
    ConnectionPool - how do i set parameters regarding max and min size of the pool etc.
    Where would i use datasource and where would i use connectionpool - what factors determine what one to use?
    If you can give me information for these, particulary any examples where you would use one and not the other.
    And if possible where applicable to the Oracle classes12 implementation
    Cheers

    Hi,
    I suggest that you could reference the book, Database
    Programming with JDBC and Java 2nd Edition from
    oreilly. In the beginning of chapter 5, it has great descrption
    to answer your question. Including the relationship between
    the datasource and connectionpool, and code snippet of
    access datasource by JNDI.
    No method is found in the API doucment which show me
    how to handle the size of connectionpool. So I think that
    you may conisder your application server or database
    server document, or ldap server for further informtation.
    good luck,
    Alfred Wu

  • After bring the Cluster and ASM is up, I'm not able to start the rdbms ins.

    I am not able to bring the database up.
    Cluster and ASM is up and running.
    ORA-01078: failure in processing system parameters
    LRM-00109: could not open parameter file '/oracle/app/oracle/product/11.1.0/db_1/dbs/initTMISC11G.ora'

    That is wre the confusion is: I coud nt find it under O_H/dbs,
    However the log file indicates that it is using spfile which is located at :
    spfile = +DATA_TIER/dintw10g/parameterfile/spfile_dintw10g.ora
    Now it checks only the /dbs directory only i guess.
    Could you please how can i bring it up now.
    Just for the information: ASM instance is up.

  • Using ASM in a cluster, and new snapshot feature

    Hi,
    I'm currently studying ASM and trying to find some answers.
    From what I understand and experienced so far, ASM can only be used as a local storage solution. In other words it cannot be used by network access. Is this correct?
    How is the RDBMS database connecting to the ASM instance? Which process or what type of connection is it using? It's apparently not using listener, although the instance name is part of the database file path. How does this work please?
    How does ASM work in a cluster environment? How does each node in a cluster connect to it?
    As of 11g release 2, ASM provides a snapshot feature. I assume this can be used for the purpose of backup, but then each database should use it's own diskgroup, and I will still need to use alter database begin backup, correct?
    Thanks!

    Markus Waldorf wrote:
    Hi,
    I'm currently studying ASM and trying to find some answers.
    From what I understand and experienced so far, ASM can only be used as a local storage solution. In other words it cannot be used by network access. Is this correct?Well, you are missing one point that it would entirely depend on the architecture that you are going to use. If you are going to use ASM for a single node, it would be available right there. If installed for a RAC system, ASM instance would be running on each node of the cluster and would be managing the storage which would be lying on the shared storage. The process ASMB would be responsible to exchange messages, take response and push the information back to the RDBMS instance.
    How is the RDBMS database connecting to the ASM instance? Which process or what type of connection is it using? It's apparently not using listener, although the instance name is part of the database file path. How does this work please?Listener is not need Markus as its required to create the server processes which is NOT the job of the ASM instance. ASM instance would be connecting the client database with itself immediately when the first request would come from that database to do any operation over the disk group. As I mentioned above, ASMB would be working afterwards to carry forward the request/response tasks.
    How does ASM work in a cluster environment? How does each node in a cluster connect to it? Each node would be having its own ASM instance running locally to it. In the case of RAC, ASM sid would be +ASMn where n would be 1, 2,... , going forward to the number of nodes being a part of teh cluster.
    As of 11g release 2, ASM provides a snapshot feature. I assume this can be used for the purpose of backup, but then each database should use it's own diskgroup, and I will still need to use alter database begin backup, correct?You are probably talking about the ACFS Snapshot feature of 11.2 ASM. This is not to take the backup of the disk group but its like a o/s level backup of the mount point which is created over the ASM's ACFS mount point. Oracle has given this feature so that you can take the backup of your oracle home running on the ACFS mount point and in the case of any o/s level failure like someone has deleted certain folder from that mountpoint, you can get it back through the ACFS snapshot taken. For the disk group, the only backup available is metadata backup(and restore) but that also does NOT get the data of the database back for you. For the database level backup, you would stillneed to use RMAN only.
    HTH
    Aman....

  • Question about the Cluster and Column width in Graphs in Illustrator CS2

    How do they relate to each other? How do the Percentages work together? Is there any information about how you can mathematically figure how much area each Cluster width takes. If you make a graph and make both the cluster and column widths 100%, the entire area is filled. If you make the Column width 50% the bar will sit exactly in the center of the Cluster width, but if you make the cluster width 75%, the bars move closer together.

    Gregg,
    The set of bars that represent each row of data in the graph spreadsheet is called a "cluster".
    Let's let
       W = the width of the whole area inside the graph axes
       R = the number of rows of data
       C = the number of columns of data
    Then the maximum potential space to use for each row of data is W/R. The cluster width controls how much of this potential space is assigned to each row. This cluster space is then divided by C, giving the maximum potential width of each bar. The maximum potential width for each bar is then multiplied by the column width percentage to get the actual width of each bar.
    So the actual width of each bar is ((W/R)*Cluster width)/C)*Column width
    The graphs illustrated below have three rows of data, with two columns each. The solid colored areas in the background have the same cluster width as the main graph, but they all have a column width of 100%. This lets you see more easily how the gradient bars that have a column width of 80% are using up 80% of their potential width.
    Notice that as the Cluster percentage gets lower, the group of bars that represent a row of data get farther apart, so that you can more easily see the "clumping" of rows. When the Cluster percentage is 100%, the columns within each row are no closer to each other than they are to the columns in other rows.
    As the Column percentage gets lower, the bars for each data value occupy less of the space within their row's cluster, so that spaces appear between every bar, even in the same row.

  • ECC 6.0 installation on HPUX Cluster and oracle database

    Hi,
    I need to install ECC6.0 installation on HPUX Cluster and oracle database. Can anybody plz suggest me or send any document to me ..
    Thanks,
    venkat.

    Hi Venkat,
    Please download installation guide from below link:-
    https://websmp105.sap-ag.de/instguides
    Regards,
    Anil

  • Solaris 8 patches added to Solaris 9 patch cluster and vice versa

    Has anyone noticed this? On the Solaris 8 and 9 patch cluster readmes, it shows sol 9 patches have been added to the sol 8 cluster and sol 8 patches have been added to the sol 9 cluster. what's the deal? I haven't found any information about whether or not this is a mistake.

    Desiree,
    Solaris 9's kernel patch 112233-12 was the last revision for that particular patch number. The individual zipfile became so large that it was subsequently supplanted by 117191-xx and that has also been supplanted when its zipfile became very large, by 118558-xx.
    Consequently you will never see any newer version than 112233-12 on that particular patch.
    What does <b>uname -a</b> show you for that system?
    Solaris 8 SPARC was similarly effected, for 108528, 117000 and 117350 kernel patches.
    If you have login privileges to Sunsolve, find <font color="teal">Infodoc 76028</font>.

  • Cluster and Backup server

    Hello guys;
    I want to use a cluster oracle server and another server in another place as a backup server to copy the database on line from the cluster server.
    If I want to make the backup server a primary server if something wrong happened to the cluster server.
    what the steps should I do? or if there is any document to read I'll be thankful
    thanks in advance

    Hi,
    What do you refer by saying cluster ? If you want to have a HA (High Availability) with Active/Passive cluster then you can go with 3rd party cluster vendor, like HACMP from IBM, ServiceGuard from HP and so on. If you want to create this with Oracle technologies then you are talking about Oracle RAC One Node. Of course you always go with Oracle RAC (Real Application Cluster) if you want to have a Active/Active cluster. These are in terms of cluster and High Availability.
    There is another point if you want to create a DR (Disaster Recovery) of you primary database then you would consider implementing Oracle Dataguard.
    Oracle has a rich documentation for blueprints and best practices, my sincerely advice is to get familiar with it:
    http://www.oracle.com/technetwork/database/features/availability/maa-090890.html
    Regards,
    Sve

  • Cluster and space consumption

    I'm confused about some thing in regards to clusters. I have about 1GB wort of data when it is not in a cluster, just in a normal table. If I create a cluster and insert the data in to this cluster it consumes more space, and that was fully expected. When I tried the first few times it took 13GB of space. The table space was 30GB large and contained a few other tables. Then I cleaned out the table space so only 2% of the space was used and added another 30GB to the table space and ran the test once more. Now it is consuming more than 40GB and is still not completed. So my question is does the size the cluster consume depend on the size and available space of the tablespace it is in? Is there a way to limit the size it is allowed to use other than to put it in a separate tablespace?

    Hi Marius,
    First, by "cluster" you mean sorted cluster tables, right?
    http://www.dba-oracle.com/t_sorted_hash_clusters.htm
    So my question is does the size the cluster consume depend on the size and available space of the tablespace it is in?These are "hash" clusters, and you govern the range of hash cluster keys, and hence, the range where Oracle will store the rows.
    http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10739/hash.htm
    Oracle Database uses a hash function to generate a distribution of numeric values, called hash values, that are based on specific cluster key values. The key of a hash cluster, like the key of an index cluster, can be a single column or composite key (multiple column key). To find or store a row in a hash cluster, the database applies the hash function to the cluster key value of the row. The resulting hash value corresponds to a data block in the cluster, which the database then reads or writes on behalf of the issued statement.

  • Cluster and Read Write XML

    In my applications I allow users to save their settings. I used to do this in a Ini file. So I wrote a Vi that could write any cluster and it worked ok. When I discovered that in the newer versions of LabVIEW you could Read/Write From/To xml, I changed inmediatly because it have some advantages form me but I am having some trouble.
    Every time I want to save a cluster I have to use
    Flatten To XML -> Escape XML -> Write XML
    and to load
    Load From XML -> Unescape XML -> Unflatten from XML.
    I also do other important things each time I save or load settings. So it seems to be reasonable to put all this in just two subvi's. (One for loading, One for saving). The problem is that I want to use it with any cluster
    What I want with can be summarized as following:
    - SaveSettings.vi
    --Inputs:
    ---Filename
    ---AnyCluster
    ---Error In
    --Outputs
    ---Error Out
    -LoadSettings.vi
    Inputs:
    ---Filename
    ---AnyCluster
    ---Error In
    Outputs
    ---DataFromXML
    ---Error Out
    I have tried using variants or references and I was not able to make generic sub vi (sub vi that don't know what is in the cluster). I don't want to use a polymorphic vi because it will demand making one load/save pair per each type of settings.
    Thanks,
    Hernan

    If I am correct you still you need to wire the data type to the Variant To Data. How can you put in a subvi ALL that is needed to handle the read/write of the cluster? I don't want to put any Flatten To XML or Unflatten From XML outside.
    The solution I came out with INI files was passing a reference to a cluster control but it is real unconfortable because I have to itereate through all items.
    When a control has a "Anything" input, is there any way to wire that input to a control and remains "Anything"?
    Thanks
    Hernan

  • Cluster and transparent table

    Hi
    Can some one explain me what is meant by cluster and transparent table
    Points will be rewarded.
    Regards
    Raghu Ram.

    hi Raghu,
    just make a search about this in the ABAP Forum, there are tons of threads about the topic, here is just the most recent example:
    transparent vs pooled vs cluster tables
    hope this helps
    ec

  • Cluster and CSS

    I have successfully set up two servers in a cluster and
    started to test out an application. One issue I am having is that
    the CSS that is being imported into the page via @import
    url("screen.css") is not being found. If I do a cfinclude then it
    seems the styles seem to be somewhat working. Does anyone have any
    ideas why this is?
    Also I have images on the page with the same problem. I see
    the alt No instead of the actual image.
    <input type="image" alt="No" src="../images/N.gif"
    name="editStuSec" value="1 />

    We use an Apache web server which is different from our CF
    server. And I have tried putting the images in the web root of the
    CF server and also creating a mapping to the images. The images
    work fine if I don't go through the cluster.

  • Cluster and a Table

    What is the difference between a Cluster and a Table?

    Hi jack,
    Have a look at below  threads
    Difference between cluster and transparent table.....
    DIFFERENCE BETWEEN TRANSPARENT AND CLUSTER TABLES
    Reward points if useful.
    Regards,
    Manoj.

Maybe you are looking for

  • Unable to edit user properties in SBS Console (2011)

    Hello, When attempting to edit properties for a user in the SBS Console, I receive the following error: "Attempted to perform an unauthorized operation."  This only occurs when attempting to edit the user account properties for this single user. I un

  • Ipod has error message to connect to itunes but is locked

    ipod is locked and cannot enter passcode.

  • Webfonts not loading – Internet Explorer

    Almost finished a site in Muse and I use 2 or 3 Adobe Web Fonts. Working on a Mac and have just been testing with all the different user agents in Safari (Devlop > User Agent) It seems that it works well on pretty much all of them however certain fon

  • CIFS File Permissions Problem

    Has anyone else experienced this?  I have a remote site setup using a WAAS 574 in inline mode (connected to a 2811 router) and whenever I enable the CIFS Accelerator on the device (and the Central Office WAAS) the remote site end users start gaining

  • Error Message that my resolution is not 1024 x 768

    I downloaded Presenter 9 as a trial (Windows 7/Powerpoint 2010). When I tried to record a video from within Powerpoint, I got an error message that said my screen resolution is not 1024 x 768, even though I verified that it was set properly. I called