How to close connection iBATIS

hi ,
we are using iBATIS for our application.Alhough iBATIS closes its connection on its own ,still we have certain open connection from our application which is causing issues while running the application.we are able to make connection using JDBC with Oracle thin driver in iBATIS but while establishing connection using JNDI and connection pooling it keeps connection open in database and sometimes gives out of memory error as connections are not getting closed properly.
SqlMapConfig.xml we are using for JNDI is :
<transactionManager type="JDBC">
<dataSource type="JNDI">
<property name="DataSource" value="jdbc/DataSource_Dpps" />
<property name="JDBC.DefaultAutoCommit" value="true" />
<property name="DefaultAutoCommit" value="true" />
<property name="SetAutoCommitAllowed" value="true" />
</dataSource>
</transactionManager>
Can any one suggest how to overcome this issue and how to close the connection in iBATIS explicitly while using JNDI and how to specify connection pool size(if any) .
Regards,
Anika

TopLink and iBATIS are generally alternative solutions. Since you are posting on a TopLink forum the best I can suggest is that you consider replacing your usage of iBATIS with TopLink.
http://www.oracle.com/technology/products/ias/toplink/index.html
Besides that I would recommend filing a bug or starting a discussion on the iBATIS forum.
Doug

Similar Messages

  • How to close connection to mail server?

    hi and good day all.
    how do i close a connection to a mail server?
    this is how i connected to one:
         try{
                   props = System.getProperties();
              session = Session.getDefaultInstance(props, null);
              store = session.getStore("pop3");
              store.connect(host, user, password);
              System.out.println("Opening inbox "+ user + " at " + host + "...");
                   folder = store.getDefaultFolder();
              if (folder == null) { //throw new Exception("No default folder");
              System.err.println("No Default Folder Available.");
              folder = folder.getFolder("INBOX");
              if (folder == null) throw new Exception("No POP3 INBOX");
              folder.open(Folder.READ_WRITE);     
    please.help...
    thanks.

    you can continue with :
         try {
         objFolder.open(Folder.READ_WRITE);                    
         } catch (MessagingException me) {
              objFolder.open(Folder.READ_ONLY);
    Messages[] msgs = objFolder.getMessages();
         FetchProfile objFP = new FetchProfile();
         objFP.add(FetchProfile.Item.ENVELOPE);
         objFP.add(FetchProfile.Item.FLAGS);
         objFP.add("X-Mailer");
         objFolder.fetch(msg, objFP);
    // close down
    objFolder.close()
    store.close()

  • How to close connection to GraphicsEnvironment / x-server

    Hello all.
    I have a long-running terminal-application which has a command to bring up a (swing) gui to monitor current execution state. The gui can be closed but the application will keep running.
    This application is running on a remote server, and I am running it from my local machine through ssh. (All of this is happening on Linux)
    Now, in order to be able to close the ssh connection without having to exit the running application I am using a software called screen that allows me to detach the process from the terminal. I can then logout from the ssh session without killing the process. Unfortunately this only works until opening the GUI, because once I did that the ssh connection cannot be closed anymore without exiting the application.
    Note that even closing the GUI (i.e. calling dispose on the JFrame that carries it) does not help. After some trying around I found that as soon as I instantiate any gui components - without even showing them at all - the problem occurs. E.g. the code below reproduces the problem.
    import javax.swing.*;
    public class Main
         public static void main(String[] args)
              new JPanel();  // commenting this out stops the issue from reproducing.
              while(true) 
                   // This is where the application is still doing stuff. I have closed the gui, and want to log off now.
                   Thread.yield();
    }I discussed this on LinuxQuestions.org and you can find the link to the thread below. It also contains additional background information on my question.
    http://www.linuxquestions.org/questions/showthread.php?p=4894628#post4894628
    Based on this discussion my current assumption is that as soon as any swing components are instantiated the class sun.awt.X11GraphicsEnvironment comes in and starts to make a connection to the X-Window server. The main reason why I believe that it's that particular class is that I am getting the following exception when I try to run the above code without enabling x11 fowarding in the ssh connection.
    Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:186)
            at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
            at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:112)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:186)
            at java.awt.Toolkit$2.run(Toolkit.java:849)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:841)
            at sun.swing.SwingUtilities2$AATextInfo.getAATextInfo(SwingUtilities2.java:121)
            at javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLookAndFeel.java:1564)
            at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:147)
            at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1599)
            at javax.swing.UIManager.setLookAndFeel(UIManager.java:530)
            at javax.swing.UIManager.setLookAndFeel(UIManager.java:570)
            at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1320)
            at javax.swing.UIManager.initialize(UIManager.java:1407)
            at javax.swing.UIManager.maybeInitialize(UIManager.java:1395)
            at javax.swing.UIManager.getUI(UIManager.java:991)
            at javax.swing.JPanel.updateUI(JPanel.java:126)
            at javax.swing.JPanel.<init>(JPanel.java:86)
            at javax.swing.JPanel.<init>(JPanel.java:109)
            at javax.swing.JPanel.<init>(JPanel.java:117)
            at Main.main(Main.java:7)This is also why I posted this question in this category, I hope this was appropriate.
    I think that in order to be able to close the running ssh connection gracefully (i.e. without killing my application in the process) I have to find a way to close this connection to the X-Window server in the java application.
    Could anybody enlighten me how to tell the JVM to cut the connection to the x-server? Or, obviously, let me know if I am on the wrong track :-)
    Many thanks in advance either way.

    you can continue with :
         try {
         objFolder.open(Folder.READ_WRITE);                    
         } catch (MessagingException me) {
              objFolder.open(Folder.READ_ONLY);
    Messages[] msgs = objFolder.getMessages();
         FetchProfile objFP = new FetchProfile();
         objFP.add(FetchProfile.Item.ENVELOPE);
         objFP.add(FetchProfile.Item.FLAGS);
         objFP.add("X-Mailer");
         objFolder.fetch(msg, objFP);
    // close down
    objFolder.close()
    store.close()

  • How to Close connection and Exit

    Hello,Can anyone tell me how to exit from an WebDynpro application and R/3  Connection on click of a  push button say (EXIT)
    Thanks...

    Hi,
    Have a look at this thread as well,to force log off from the portal etc.
    Log off from web Dynpro application
    Regards,
    LM
    Message was edited by: L.M

  • When and How to close database connection in JSP?

    Hi there,
    I am using MySQL and JDBC 3.0, in my system, When and How to close database connection in JSP?
    Thanks in advance.
    Lonely Wolf
    <%@ page session="true" language="java" %>
    <jsp:include page="checkauthorization.jsp" />
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
    <%--
    Execute query, with wildcard characters added to the
    parameter values used in the search criteria
    --%>
    <sql:query var="availablecomputerList" dataSource="jdbc/Bookingcomputer" scope="request">
    SELECT * FROM computer where status=0
    order by s_code
    </sql:query>
    <html>
    <head>
    <title>Search Result</title>
    </head>
    <body bgcolor="white">
    <center>
    <form action="checkin.jsp" method="post">
    <input type="submit" value="Back to Check-in Page">
    </form>
    <c:choose>
    <c:when test="${availablecomputerList.rowCount == 0}">
    Sorry, no available computer found.
    </c:when>
    <c:otherwise>
    The following available computers were found:
    <table border="1">
    <th>Computer</th>
    <th>Description</th>
    <th>Status</th>
    <c:forEach items="${availablecomputerList.rows}" var="row">
    <tr>
    <td><c:out value="${row.s_code}" /></td>
    <td><c:out value="${row.description}" /></td>
    <td><c:out value="${row.status}" /></td>
    </tr>
    </c:forEach>
    </table>
    </c:otherwise>
    </c:choose>
    </center>
    </body>
    </html>

    when should you close the connection? when you're done with it.
    how should you close the connection? like this: conn.close();
    that said, doing this in a JSP page is bad form and not recommended
    JSP's typically don't contain ANY business or data logic

  • How to close timeout  connection in SQLDBC ?

    Hello,
    I use SQLDBC to access MAXDB 7.7.0.7.16 database, i have the following issue :
    When a connection reach timeout, I close the connection, and the release the connexion, and then I create a new connection
    To close connection I call my Disconnect function
                        The call close method return "Not connected", but It seems that the underlying Socket is not closed and the Database user task is not closed.
    So the number of task grow until it reach the maximun.
    Where is my error ?
    How can I be sure to close the database user task ?
    IDBError CMaxDBConnection::Disconnect()
         IDBError hr;
         if (m_pConnection)          
              EDPTRACE_DBG_INF(L"CMaxDBConnection::Disconnect %1", EDPMASK_TRC_CONNECTIONS) << (DWORD)m_pConnection;
              SQLDBC_Retcode rc = m_pConnection->close();
              if (SQLDBC_OK != rc)
                   hr = convertError(rc, m_pConnection->error(), L"CMaxDBConnection::Disconnect");               
              m_pParent->m_pEnvironment->releaseConnection(m_pConnection);
              m_pConnection = NULL;
         return hr;
    Regards
    Yann

    MAXDB 7.7.07.16 (WINDOWS 2008 R2 (64 bits) Client program in 32bits.
    Hello
    I have code a small program to illustrate my issue.
    When I create a connection with SQLDBC it create 2 user tasks in the MAXDB task Manager
    One uer task  APPPLICATION SERVER, SESSION TIMOUT, ... filled.
    T425  10 0x16AC User      2688* Command wait        823 0            76 20691065(s)
    and One User task with no session tiemout.
    T111   8 0x15B8 User       2688 Command wait       3009 0            76 24900501(s)
    T111                  USER             ( pid = 2688       ) -
    dispatcher_cnt: 2                                     command_cnt   : 2
    exclusive_cnt : 30                                    self_susp_cnt : 0
    state_vwait   : 0          state_vsleep  : 0          state_vsusp   : 0
    same_ukt_coll : 0        
    when I close the connection the task T111 is never remove !!
    Do you have any idea ?
    I try to delete environment but It does not work.
    Regards
    Yann.
    Here is the code  :
    // SQLDBC.cpp : Defines the entry point for the console application.
    #include "stdafx.h"
    #include "SQLDBC.h"
    using namespace SQLDBC;
    static void parseArgs(int argc, wchar_t **argv);
    static SQLDBC_Connection *connectDB();
    SQLDBC_Environment *g_env;
    typedef struct ConnectArgsT {
      bstrt username;
      bstrt password;
      bstrt dbname;  
      bstrt host;    
      bstrt request;    
    } ConnectArgsT;
    ConnectArgsT connectArgs;
    void exitOnError(SQLDBC_ErrorHndl &err);
    int _tmain(int argc, _TCHAR* argv[])
         SQLDBC_Retcode ret;
       parseArgs(argc, argv);
       for (int j = 0 ; j < 10 ; ++j)
            for (int i = 0 ; i < 100 ; ++ i)
                 SQLDBC_Connection *conn = connectDB();
                 ret = conn->close();
                 ret = conn->disconnect();
                 g_env->releaseConnection(conn);
            delete g_env;
            g_env = NULL;
       return 0;
    SQLDBC_Connection *connectDB()
      char errorText[200];
      SQLDBC_Retcode rc;
      if (g_env == NULL)
    Every application has to initialize the SQLDBC library by getting a
    reference to the ClientRuntime and calling the SQLDBC_Environment constructor.
           SQLDBC_IRuntime *runtime;      
           runtime = SQLDBC::GetClientRuntime(errorText, sizeof(errorText));
           if (!runtime) {
              fprintf(stderr, "Getting instance of the ClientRuntime failed %s\n", errorText);          
           g_env = new SQLDBC_Environment(runtime);      
    Create a new connection object and open a session to the database.
      SQLDBC_Connection *conn = g_env->createConnection();
      printf("Connecting to '%s' on '%s' as user '%s'\n",
             (char)connectArgs.dbname, (char)connectArgs.host, (char*)connectArgs.username);
      rc = conn->connect(connectArgs.host, connectArgs.dbname,
                         connectArgs.username, connectArgs.password);
      if(SQLDBC_OK != rc) {
        fprintf(stderr, "Can't connect to '%s'.\nERROR: %d:'%s'\n",
                connectArgs.dbname, conn->error().getErrorCode(), conn->error().getErrorText());
        exit(1);
         conn->setAutoCommit(SQLDBC_TRUE);
      return conn;
    static void parseArgs (int argc, wchar_t **argv)
      connectArgs.username = "ESKDBADM";
      connectArgs.password = "DELORME";
      connectArgs.dbname = "EDP350";
      connectArgs.host = "ly-delorme"; 
    void exitOnError(SQLDBC_ErrorHndl &err)
      if(err) {
        fprintf(stderr, "Execution stopped %d:'%s'", err.getErrorCode(), err.getErrorText());
        //exit(1);
    Yann.

  • How to close JDBC client connections in JSP (9IDS Jdeveloper)

    Can anyone tell me how to close JDBC connections neatly through JSP in Oracle 9IDS Jdeveloper.
    I have a developer who has deployed a WAR file (comprising JSP page) to the Tomcat webserver.
    The page works fine except that it always leaves a JDBC client connection after the user closes the internet explorer window.
    I've tried using dead connection detection without success.
    At the operating system level, I have a script that can kill these sessions but I would prefer if theres some way the connection can be closed neatly through the JSP application.

    Hi:
    At database level you can:
    See CONNECT_TIME and IDLE_TIME options to CREATE/ALTER PROFILE
    Joao

  • Open ports slow down my internet connection. How to close them? What to do?

    My MacBook Pro has massive problems with internet connectivity. At times the connection is blazingly fast, at times unbelievably slow.
    I've spoken to my internet provider who was able to inform me that my computer opens up 500-700 ports which is probably what's slowing down the network connectivity. When I'm online with the MacBook Pro, the web gets unstable – also for other connected devices like iPad etc.
    The web supporter asked me to run an anti-virus scan which I did – with no results. The problem persists. When my MacBook Pro is not online, there are approximately 15 ports open, when I log on the web that number increases to between 500 and 700.
    Is this normal?
    Can anyone tell me how to solve this issue?
    How do I figure out which application opens these ports? (and how to close them?)
    I tried logging into another user account on the computer and the problem seemed to disappear, indicating that it is caused by something run only on my user account.
    Hope someone can help me..

    Open ports don't slow down your computer. The tech support person you spoke to doesn't know what they are talking about.
    Basically, when you are using a web browser, opening a page means that the browser needs to open a connection for each element in the page (e.g., it needs to grab each picture, CSS, and JavaScript file that the page requires). This could be a couple of dozen, or it could be hundreds (and there's no telling what Flash content on the page will do). The browser tries to mitigate things a bit using a cache (you might check to make sure the cache is turned on, but this is the default setting). However, this is how all browsers work and how the whole system is designed to operate. You cannot "close" any ports, and they don't linger open, they remain open only as long as data is being transferred. This is expected and appropriate behavior.
    The most likely culprit is that you are receiving poor DNS service from your service provider. Every time the computer sees an address like 'http://www.google.com', it needs to send out a request to figure out what numerical address goes with the human-readable name. If the DNS service your system is assigned to use doesn't respond lightning-quick, your experience is going to be very sluggish.
    You might want to add an external DNS service to your list of DNS providers. Go to System Preferences > Network, select the network you are using on the left (Ethernet or AirPort), and click the 'Advanced' button. Click on the 'DNS' tab, then press the '+' button under the left panel. I would add the OpenDNS.com DNS servers. Add the following DNS addresses:
    {quote}
    208.67.222.222
    208.67.220.220
    {quote}
    Click the 'OK' button. And then the 'Apply' button to save the changes.
    That will probably fix the problem. If it doesn't the next most likely issue is either network congestion (e.g., your ISP's network is just too busy; a very common thing for small ISPs and cable Internet service), or the remote site that you are trying to contact is simply not performing so well.

  • How will my connection to databse close?

    Can someone tell me how this would work ?
    If I connect to the database and if the username and password is correct I redirect the user to a website using :
    response.sendRedirect(response.encodeRedirectUrl("http:....");
    Right now I have it this way:
    if (rs.next()) {
    response.sendRedirect(response.encodeRedirectUrl("http.........."));
    and then I close the connections...
    rs.close();
    stmt.close();
    connection.close();
    Then if the user is valid will my connection close ? If not how do I close the connection ??

    Can someone tell me how this would work ?
    If I connect to the database and if the username and
    password is correct I redirect the user to a website
    using :
    response.sendRedirect(response.encodeRedirectUrl("http:
    Right now I have it this way:
    if (rs.next()) {
    response.sendRedirect(response.encodeRedirectUrl("http.
    and then I close the connections...
    rs.close();
    stmt.close();
    connection.close();
    Then if the user is valid will my connection close ?
    If not how do I close the connection ??
    close the connection before redirecting the page.
    if (rs.next()) {//after validation close the connection here
    rs.close();
    stmt.close();
    connection.close();
    response.sendRedirect(response.encodeRedirectUrl("http........."));

  • How to close all active connections in Times ten database

    Hi,
    I am new to Times Ten database.
    Uisng ttsatus utility I am able to find our the active conenctions but not sure how to close this. I m using windows as OS
    Request your help in this regards
    Regards,
    Harmeet

    Is there a way to manually kill a lock from a transaction or roll back transaction etc.
    In oracle, we just kill the user session.
    I have an issue with read-only cache, stuck with the below lock.
    I end up in bouncing the dameon (!!@!@)
    stopping cachemanager took time.. but still this lock was active.
    ========================
    [ttadmin:lmmk672@MARTD] /psimofmmk2/TimesTen/palmttd1/bin > ttXactAdmin palmttd1
    2012-05-31 13:48:23.872
    /psimofmmk2/TimesTen/data/palmttd1/data/palmttd1
    TimesTen Release 11.2.2.2.0
    Outstanding locks
    PID Context TransID TransStatus Resource ResourceID Mode SqlCmdID Name
    Program File Name: timestensubd
    12743 0x2aafe00008c0 138.1298 Active Database 0x01312d0001312d00 IX 0
    Program File Name: timestenorad
    13824 0x2aaff8199410 12.83968 Active Database 0x01312d0001312d00 IX 0
    Command 21019064176 S 21019064176
    Table 1732240 W 21018623224 PALM_DBO.EXTRNL_AVAILABILITY_COMBD
    Row BMUFVUAAAAaAAAAJBu S 21018623224 SYS.TABLES
    Row BMUFVUAAAA3AAAAEhq Sn 21018623224 SYS.CACHE_GROUP
    Table 1732480 S 21018623224 PALM_DBO.T10_TEST
    Row BMUFVUAAAAaAAAAIBv S 21018623224 SYS.TABLES
    Row BMUFVUAAAA3AAAADhr Sn 21018623224 SYS.CACHE_GROUP
    Table 1732528 S 21018623224 PALM_DBO.EXCHANGE_TIME
    Row BMUFVUAAAAaAAAALBv S 21018623224 SYS.TABLES
    Row BMUFVUAAAA3AAAAEhr Sn 21018623224 SYS.CACHE_GROUP

  • I want to writte C# code for 503 Service Unavailable error to web application page immediate close connection any page loaded

    Here is a ticket regarding our current client web application (  Image data add, edit , delete in folder with form data in MSSQL Database) that using code c#, web form, ajax, VS2008, MSSQL Server2008 , it appears that there is an error where the HTTP
    503 error occurs. 
    . Below is a conversation with Host Server support assistant.Can you take a look at it? 
    Ben (support) - Hi 
    Customer - We're having an issue with our windows host 
    Ben (support) - What's the issue? 
    Customer - 503 errors 
    Ben (support) - I am not getting any 503 errors on your site, is there a specific url to duplicate the error? 
    Customer - no, it comes and goes without any change Customer - could you have access to any logs ? 
    Ben (support) - Error logs are only available on Linux shared hosting, however with this error it may be related to you reaching your concurrent connections 
    Ben (support) - You can review more about this at the link \ 
    Customer - probably yes - how can we troubleshoot ? 
    Ben (support) - http://support.godaddy.com/help/article/3206/how-many-visitors-can-view-my-site-at-once 
    Ben (support) - This is something you need to review your code and databases to make sure they are closing the connections in a timely manner 
    Customer - we're low traffic, this is an image DB to show our product details to our customers 
    Customer - ahhhh, so we could have straying sessions ? 
    Ben (support) - Correct Customer - any way you could check if it's the case ? 
    Customer - because it was working previously 
    Ben (support) - We already know that's the case as you stated the 503 errors don't happen all the time if it were issue on the server the the 503 would stay. 
    Customer - so our 2/3 max concurrent users can max out the 200 sessions 
    Customer - correct ? 
    Customer - is there a timeout ? 
    Ben (support) - no that's not a time out concurrent connections are a little different then sessions and or connections. Lets say for an example you have 5 images on your site and 5 7 users come to your site this is not 7 concurrent connections but 35. They
    do close after awhile hence why the 503 error comes and goes. You can have these connections close sooner using code but this is something you have to research using your favorite search engine 
    Customer - thank you so much 
    Customer - I'm surprised that this just started a few weeks ago when we haven't changed anything for months 
    Customer - any changes from your side ? lowering of the value maybe ? 
    Customer - I'm trying to understand what I can report as a significant change 
    Ben (support) - We haven't touched that limit in years 
    Ben (support) - This could just be more users to your site than normal or even more images 
    Customer - I was thinking that could be it indeed 
    Customer - so I need to research how to quickly close connections when not needed 
    Ben (support) - Correctly 
    Ben (support) - correct 
    Customer - thanks !! 
    Ben (support) - Your welcome 
     Analysis : 
     The link provided tells us : All Plesk accounts are limited to 200 simultaneous visitors. 
     From what Ben (support) says and a little extra research, if those aren't visitors but connections then it's quite easy to max out, especially if the connections aren't closed when finished using. I'd suggest forwarding this to Kasem to see what he thinks. 
    Cheers, 
    Customer

    Hi Md,
    Thank you for posting in the MSDN forum.
    >>
    I want to writte C# code for 503 Service Unavailable error to web application page immediate close connection any page loaded.
    Since
    Visual Studio General Forum which discuss VS IDE issue, I am afraid that you post the issue in an incorrect forum.
    To help you find the correct forum, would you mind letting us know more information about this issue? Which kind of web app you develop using C# language? Is it an ASP.NET Web Application?
    If yes, I suggest you could post the issue directly on
    ASP.NET forum, it would better support your issue.
    Thanks for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

  • How do I connect to one computer to another?

    Hi, I had to buy a new computer, with Lion OS last July. Then someone put a new hard drive into my old computer, as SnowLeopard. Every time I do one thing on the SL computer, something else gets lost - & I have to reconfigure stuff. Some things won't let me change some settings either.
    My problem is, I've been trying to find out how to connect & "share" the documents, photos, internet, printer, etc. from the Lion to the SL, but none of the 'suggested" helps do that. Our daughter's mac has no problem sharing the internet (we have DSL Wi-Fi). I've tried to copy those to a USB, but instead of just copying the App, the App moved off the sidebar to the USB! AGUH!
    I have lots of questions, like:
    Is sync to connect to the other computer or only iPhones, iPads, etc.? Can I & how do I do that (sync) to the other computer? Should I do that from the SL or the Lion? I do want to keep the SL on this one (not too thrilled with how Lion is set up).
    What exactly is AirPort? Is that how the "wi-fi" connects? & is it different than Earthnet?
    Other questions can wait ... &
    Thank you & many blessings to anyone who can help me.

    Eustace, sorry, but all that seems Greek to me! I am computer savvy, had one since 1991, but this is all new to me. I'm not this new sharing networks savy. We've never had 2 computers! It took me all night after I wrote this, just to connect to our E-mail accounts, & only after I'd written all the Mail data from the Lion on paper!
    Don't even (& never will ; } have a cell/iPhone, iPad, etc. (ah, unless my son-in-law gets a new one & passes his old one on here!)  Sad thing is, there's nothing in any "mac helps" on the net or either computer, that shows how to connect the 2, so I can work on 1 while my hubby is working on the other. The 2 computers are in different rooms, so a cable wouldn't do.
    Chapter 2 ;=}
    OK, I have a Verizon DSL wi-fi. & I was able to "share" the HD of the other computer, but that won't do if we both need to be on the computers! I did drag over some items, but only a few of the documents come through & I can't figure out why all didn't?
    And when I tried to drag my photo's & other apps (Genealogy, widgits, etc.), not only wouldn't they go onto this desktop, they stopped at the edge of the shared one & plopped themselves onto that desktop (?); they also moved off of the sidebar on the shared Lion? Odd, since that doesn't (usually) happen when I'm draging things to an External Drive?
    I first tried to put documents & photos, etc, at first, on a ED, but they moved off the sidebar too. (so I came to mac support discussions!) I realize they are still on the HD, but it's a pain-in-a-neck to retrieve.
    & By the by, when I put my "Mail" as Earthnet, all disappears! But in "AirPort" it all comes in again.
    Today even the "shared" HD doesn't show anywhere, though I never ejected it!
      AGUH! "What a mess this is turning out to be, Oli!"
    So, are you saying I should move the 2 closer & connect, since I have dozens of Documents & ton's of photos? Problem is, I don't want to turn this into Lion (i'm not fond of most changes they made).
    Maybe the problem is; on the SL comuter Finder has all under "Apple" & the Lion is under my name? But, alas again, no mac help's show how to change that either! I'll just have to call my mac-son-in-law (he works on them) to walk me through this.
    I'm a step by step kind of gal. Guess my dyslexia is in full gear. If I don't write something down, I forget how to do it, hense I can't remember how I got to share the other HD!!!
    & what about this FIrewire - & what is it. Mac's explination is also Greek! & what is "bluetooth" should that be on / activated?
    I do appreciate your trying to help. Sorry I'm so dense!
    Kathy LPV

  • How do I connect a new Thunderbolt MBP to and old 23" HD Cinema Display ADC port

    A question Im sure many have asked but I cant find a straight forward answer.
    I simply will be buying a new thunderbolt MBP 15 and NEED to connect it an old 23" Apple Cinema Display that uses the old ADC connector.
    Can I do it and if so how? I realise theres a potential under powering issue?
    Thanks

    Hello Sigh
    I am sure there is no way to get your ADC connector display to function with your new Mac Book Pro.
    I tried everying I could and gave up and purchased a 24" Apple refurbbished Cinema Display for $599 + tax on 4/27/2011. The Apple part number is FBXXXXL/A, Model A1287.
    Gave my  year 2002 ADC 22" display to a friend.
    d
    Sent- Tuesday, August 9, 2011-- 3:49 PM(Pacific Time)
    Don Macdonald
    < Edited by Host >
    Re: How do I connect a new Thunderbolt MBP to and old 23" HD Cinema Display ADC port Jul 8, 2011 4:58 PM (in response to Russy47)
    Got my new MBP 2011 today. Hooked it up to my 23" Apple Cinema Display fine, using the Apple DVI to ADC converter > Mini Display port adaptors. I could then mirror display, but only at 1440 x 900 resolution.
    My dream is to have it like my old laptop--I mostly leave it shut, and main display is on the Cinema Display. So far, if I close the laptop lid on my new MBP, display shuts off. Also, can't get it to bump up the resolution to 1920.
    Sigh.

  • How to close email notifications to senders from HP eprintCenter?

    Hi,
    How to close email notifications to senders from HP eprintCenter?
    Thank you.

    Hi Jack7363,
    Welcome to the HP Support Forums. I gather that you would like to know how to turn off notifications from HP’s ePrintCenter.
    To better assist you, would you please supply some additional information:
    What make/model/product number of HP printer do you have? How Do I Find My Model Number or Product Number?
    How is the printer connected (USB cable, ethernet, or wireless)?
    Do you have an HP Connected account or HP ePrintCenter account?
    Are the emails coming [email protected]?
    Thank you.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • How to handle Connection in a SLSB

    I am reading EJB in j2ee tutorial 1.4 and in the Bank example I saw that for each private method, first a connection is obtained then work is completed and then the connection is closed.
        private void updateChecking(double amount) throws SQLException {
            makeConnection();
            releaseConnection();
        private void updateSaving(double amount) throws SQLException {
            makeConnection();
            releaseConnection();
        public void transferToSaving(double amount)
            throws InsufficientBalanceException {
            checkingBalance -= amount;
            savingBalance += amount;
            try {
                updateChecking(checkingBalance);
                if (checkingBalance < 0.00) {
                    context.setRollbackOnly();
                    throw new InsufficientBalanceException();
                updateSaving(savingBalance);
            } catch (SQLException ex) {
                throw new EJBException("Transaction failed due to SQLException: " +
                    ex.getMessage());
        }Is this the recommended approach? I find it problemetic that one Logical Unit of Work "the transferToSaving() method" is opening and closing Connection twice.
    I am thinking that a better approach would be to get Connection in transferToSaving() method then pass Connection as an argument to both updateChecking() and updateSaving() methods.
        private void updateChecking(Connection conn, double amount) throws SQLException {
        private void updateSaving(Connection conn, double amount) throws SQLException {
        public void transferToSaving(double amount)
            throws InsufficientBalanceException {
            checkingBalance -= amount;
            savingBalance += amount;
            try {
                makeConnection();
                updateChecking(checkingBalance);
                if (checkingBalance < 0.00) {
                    context.setRollbackOnly();
                    throw new InsufficientBalanceException();
                updateSaving(savingBalance);
            } catch (SQLException ex) {
                throw new EJBException("Transaction failed due to SQLException: " +
                    ex.getMessage());
            } finally {
            releaseConnection();
        }Am i right? If yes then how come the guys at Sun are recommending a wrong approach?
    Thanks

    What is your question really about? You seem to be
    going in circles.
    Ok. Here is my question refined:
    I am reading SLSB EJB in j2ee tutorial 1.4 and in the Bank example I saw that for each business private method, first a connection is obtained then work is completed and then the connection is closed. For example:
    public class BankBean implements SessionBean, SessionSynchronization {
        private Connection con;
        public void transferToSaving(double amount) throws InsufficientBalanceException {
            checkingBalance -= amount;
            savingBalance += amount;
            try {
                updateChecking(checkingBalance);
                if (checkingBalance < 0.00) {
                    context.setRollbackOnly();
                    throw new InsufficientBalanceException();
                updateSaving(savingBalance);
            } catch (SQLException ex) {
                throw new EJBException("Transaction failed due to SQLException: " +
                    ex.getMessage());
        private void updateChecking(double amount) throws SQLException {
            makeConnection();
            String updateStatement =
                "update checking set balance =  ? " + "where id = ?";
            PreparedStatement prepStmt = con.prepareStatement(updateStatement);
            prepStmt.setDouble(1, amount);
            prepStmt.setString(2, customerId);
            prepStmt.executeUpdate();
            prepStmt.close();
            releaseConnection();
        private void updateSaving(double amount) throws SQLException {
            makeConnection();
            String updateStatement =
                "update saving set balance =  ? " + "where id = ?";
            PreparedStatement prepStmt = con.prepareStatement(updateStatement);
            prepStmt.setDouble(1, amount);
            prepStmt.setString(2, customerId);
            prepStmt.executeUpdate();
            prepStmt.close();
            releaseConnection();
        private void makeConnection() {
            try {
                InitialContext ic = new InitialContext();
                DataSource ds = (DataSource) ic.lookup(dbName);
                con = ds.getConnection();
            } catch (Exception ex) {
                throw new EJBException("Unable to connect to database. " +
                    ex.getMessage());
        private void releaseConnection() {
            try {
                con.close();
            } catch (SQLException ex) {
                throw new EJBException("releaseConnection: " + ex.getMessage());
    }Is this the recommended approach? I find it problemetic that one Logical Unit of Work "the transferToSaving() method" is opening and closing Connection twice.
    I am thinking that a better approach would be to first get Connection in transferToSaving() method then call both updateChecking() and updateSaving() methods and then close Connection in transferToSaving() method.
    So I would make following changes in the above code:
    public void transferToSaving(double amount) throws InsufficientBalanceException {
            checkingBalance -= amount;
            savingBalance += amount;
            try {
                makeConnection();
                updateChecking(checkingBalance);
                if (checkingBalance < 0.00) {
                    context.setRollbackOnly();
                    throw new InsufficientBalanceException();
                updateSaving(savingBalance);
            } catch (SQLException ex) {
                throw new EJBException("Transaction failed due to SQLException: " +
                    ex.getMessage());
            } finally {
                releaseConnection();
        private void updateChecking(double amount) throws SQLException {
            String updateStatement =
                "update checking set balance =  ? " + "where id = ?";
            PreparedStatement prepStmt = con.prepareStatement(updateStatement);
            prepStmt.setDouble(1, amount);
            prepStmt.setString(2, customerId);
            prepStmt.executeUpdate();
            prepStmt.close();
        private void updateSaving(double amount) throws SQLException {
            String updateStatement =
                "update saving set balance =  ? " + "where id = ?";
            PreparedStatement prepStmt = con.prepareStatement(updateStatement);
            prepStmt.setDouble(1, amount);
            prepStmt.setString(2, customerId);
            prepStmt.executeUpdate();
            prepStmt.close();
        }Am i right? If yes then how come the guys at Sun are recommending a wrong approach?
    Thanks

Maybe you are looking for

  • Performance of FCStudio 3 on Mac Pro 8 core ?

    I decided to upgrade to FCS 3 (already purchased) from FCE. Further, an upgrade from my old G4 to an 8 core MacPro 4,1 (ddr3, direct connect {no FSB), Nehalem, 6GB ram, but not yet purchased), since FCS3 requires an Intel Mac. I just found out by sea

  • Photoshop CS 2 crashing... can anyone help?

    Hi all, I have read through the forums and found a few threads that had some ideas in it, most notably repairing my disk persmissions, which I did. I could not find the "photoshop preferences" to delete them like someone suggested. However I still ge

  • Can't get Microsoft Word to launch

    I cannot get my microsoft word to launch.  Have used it for 7 years with no problem.

  • 3 questions about the evalution license ?

    Hi - I have some questions about the Weblogic Server Eval license. Before I start let me just say I'm not trying to rip BEA off, I just want to know what's possible. 1. Firstly what happens after the 30 days does the server just not work or only work

  • Multiple Application Interactions In Bpel

    Hello, I developed a composite like [http://docs.oracle.com/cd/E25054_01/dev.1111/e10224/bp_interact.htm#BABCHDGI] . I developd 3 Proceses(AsynchBpelProcessA.bpel,AsynchBpelProcessB.bpel,AsynchBpelProcessC.bpel) Porblem when ever i invoke "AsynchBpel