Proble with multi-threaded app using the same connection

have a multi-threaded app. The threads all share the
same connection. They all do some selects / updates.
The OS is NT 4.0 and the application server is weblogic
Some times I am getting the error "java.sql.SQLException: Io exception: not in streaming mode"
and some times I am getting "java.sql.SQLException: Io exception: Protocal violation
Any Ideas?
Regards
Suresh

Don't create threads.... Your threads should if they are necessary be reusable, your threads should call the connections it needs from the cache service with let's say a max number of N pools (each pool a max number of M connections), if the connection domain asked exists on cache a connection is asked for corresponding pool, if the connection domain is not on cache the less used domain is thrown away (all inner connections closed first) and substituted by the new one requested. While the pool is not full keep creating connections as the request came (and all existing connections are being held and not released), when M connections exists, a request should wait till a connection is released.
If you can have 20 threads asking for the same connection and the max number of connections on pool is M=10, then yopur threads will wait for a connection being released. All this must be synchronized. You should set M the closest as possible to the normal number of requests you can imagine to happen the same time. You should get connection use it and release it right away if you can have a lot of requests.
I hope this helps you.

Similar Messages

  • I set up "Find My Iphone App" using the same apple id and password on two iphones. Now the app only finds the phone that I did the setup on first. Do I need a different apple id and password on each phone for the app to run correctly?

    I setup two iphones on "Find My Iphone App" Using the same apple id on each phone. Now the app finds only the phone I setup first. Do I need to use two different apple ids? If your answer is yes then how do I errase the setup in the second phone and assign a new id?

    As TJBUSMC1973 states, and as I said earlier, the Find My iPhone app has nothing to do with your use of Find My iPhone. The app is just used if necessary to locate another iOS device from that particular iOS device. To see if both of your devices are being located in Find My iPhone, log into www.icloud.com and select Find My iPhone. Both of the devices should appear. If they do not, then go into whichever of the devices does not appear and make sure that Find My iPhone is activated. It has to be activated through iCloud, and for both to show on the same map, they both have to have the same iCloud ID.

  • Is it possible to have 2 different output config XML files and index the data into 2 endeca apps using the same indexing component ProductCatalogSimpleIndexingAdmin

    Hi ,
    We have a catalog that defines 2 types of products (they have too many different properties), so wanted to keep them on two different MDEX engines and serve the applications requests. Here DB catalog and front end ATG application is same for both the MDEX instances.
    Is it possible to have 2 different output config XML files and index the data into 2 endeca apps using the same indexing component ProductCatalogSimpleIndexingAdmin?
    Thanks
    Dev

    Hi, also have had some problem some monthes ago - I created separete component ProductCatalogSimpleIndexingAdminSecond. After that one of my colleage gave me some advice:
    The creating separate component like ProductCatalogSimpleIndexingAdmin for the second IOC is possible way for resolving your situation. But I afraid that this way will be required creating mane duplicates for already existed components.
    In my opinion the better way is the following:
    starting from AssemblerApplicationConfiguration and ApplicationConfiguration component. It contains details for connecting between ATG and Endeca. Of course you should configure different components for different Endeca Apps.
    After that:
    Find all components that uses AssemblerApplicationConfiguration and ApplicationConfiguration. Customize these components for using one or another  *Configuration component depending on what index works. (many variants released it: the most simple global custom component with flag.)
    Then customize the existed ProductCatalogSimpleIndexingAdmin. Using one or another IOC  and setting the flag in global custom component when index started. You can add some methods into your custom ProductCatalogSimpleIndexingAdmin like:
    Execute baseline index for both IOC (one by one)
    Execute baseline for IOC 1
    Execute baseline for IOC 2.
    Note: you should be afraid about incremental (partial) index in this configuration. But resolving conflicts in incremental index should be done after full implementation these changes.
    Regards

  • Can 2 different users with 2 different Iphones use the same itunes to backup each phone separately? if not how can I have a backup for 2 different iphones on the same laptop?

    can 2 different users with 2 different Iphones use the same itune program to backup each phone separately? if not how can I have a backup for 2 different iphones on the same laptop?

    Here is your answer:
    http://support.apple.com/kb/HT1495

  • Can two people with their own iPhones use the same computer and iTunes?

    Can two people with their own iPhones use the same computer and iTunes?

    Yes. My wife and I each have our own Apple ID and used the same computer to sync our phones with iTunes. The best way to do this is set up separate user accounts on the computer. If you are logged in to your account on the computer and your wife wants to sync here phone, you would log out and she would log in. These keeps all your stuff separate and avoids a ton of confusion.

  • TS1702 i downloaded the GV app to my iphone but i'm trying to set up the app and it says it can't connect to google when i try to sign in to my google account.... any ideas what's wrong? i can access my gmail account just fine with my gmail app on the sam

    i downloaded the GV app to my iphone but i'm trying to set up the app and it says it can't connect to google when i try to sign in to my google account.... any ideas what's wrong? i can access my gmail account just fine with my gmail app on the same phone

    What's a GV app?

  • Need to connect to upgraded Oracle EBS R12 version from R11. The current ODI set up is pointing to R11, Can i use the same connection to point to R12? Please hele experts..

    Need to connect to upgraded Oracle EBS R12 version from R11. The current ODI set up is pointing to R11, Can i use the same connection to point to R12? Please hele experts...
    Rp

    1. in physical connections part can i use the same work schema
    2. Can i use same contexts created or do i need to create everything as new and then try?
    Thanks,
    Rp.
    Hi,
    As you mentioned that you just upgraded the database, so the data is same and schema is same you can connect with the same work schema.
    Yes, you can use the same contexts , but need to do Reverse Engineering for your new database.
    And about data server, i think you also have no need to create new data server, if hostname,sid and port etc are same as these were with R11(consult with your DBAs regarding it)

  • Do I need to purchase an iPad with cellular to use imaps or can I purchase an iPad with wifi only and use the data connection on my iPhone.

    Do I need to purchase an iPad with cellular to use imaps or can I purchase an iPad with wifi only and use the data connection on my iPhone.
    My aim is to have maps on the bigger iPad screen.

    the wifi version don't have an gps chip

  • Obiee 11g and custom j2ee app using the same cookie name

    Hi,
    I wrote a same j2ee web application. i'am using authentification through a realm configured in the web.xml.
    This web app is deployed in the same weblogic than obiee 11g. What i want to do is to embed my application in a dashboard using an iframe tag, and use the same login from analytics to my custom web app.
    In this article http://docs.oracle.com/cd/E11035_01/wls100/security/thin_client.html#wp1039551, it is said that by default, all web apps in the sames weblogic server are using the same cookie name so that they share authentification between them. However, i have read in the web that analytics in obiee 11g is using a cookie with the name "ORA_BIPS_NQID".
    In the weblogic.xml of my custom application, i set the cookie-name parameter to ORA_BIPS_NQID. However, in the dashbord, it still prompt for authentification to my custom web app.
    How can we share authentification between analytics and a custom web app in the same weblogic ?
    NB : I dont want to pass the username et password through the url.
    Thanks.

    By default, if you don't specify a cookie-name in the weblogic.xml configuration file, the weblogic server create a cookie named JSESSIONID for your application. For exemple, if two applications use the default configuration, both of them will use the same cookie name which is JSESSIONID. In this case, when you log in the first application, your are automaticaly logged in the second application with the same credentials. I have already test this kind of integration and it works perfectly. You only need that the two applications are deployed in the same weblogic server.
    Now, i want to have the same behaviour between obiee 11g and my custom application deployed in the same weblogic server. I read somewhere in the web that obiee 11g presentation service (analytics) is configured with a cookie-name value = "ORA_BIPS_NQID". So in the weblogic.xml configuration file of my web app, i specify a cookie-name value = "ORA_BIPS_NQID" to have the same cookie-name between the two application. But, it still not work. It prompt for authentification in the dashboards.
    I now, that such an integration is possible, because the other bi applications (mapviewer, bipublisher,...) are actually other web applications. However when using, for exemple, maps in dashbords, the mapviwer application automaticaly user the credentials of the user connected in analytics.

  • Two web apps using the same EJB client jar

    I am currently deploying two web apps on a server. Both web apps use an EJB client
    jar (the same jar) to access EJB's and both apps work when tested independently.
    The problem arises when I log into app A and then log into app B. As soon as
    I do app A loses it's references to the EJBHomes, and other classes.
    It seems a classloader is unloading the first classes and instances loaded by
    the first app and then loading them from app B's client.jar.
    If I put the client.jar in the system classpath everything is fine, but that's
    just a hack.
    Is it not possible to deploy two web apps on a server using the same client.jar's
    in their own WEB-INF/lib's?

    Joe,
    As Pravin mentions, the checking of those boxes in Workbench triggers scheduled jobs within the EAC that kicks off the scripts at the appropriate time/day. But as you've noticed, there's not a ton of flexibility and you don't get cron or Windows Scheduler-type capabilities.
    If you need to do something special, you can manually kick off the report generation scripts from your control directory using the runcommand.bat (or sh) script or place the command into a cron/Windows Scheduler job:
    For example, to kick off the WeeklyReports job, you would do this:
    runcommand.sh WeeklyReports runSo, assuming you go down the route of creating multiple ReportGenerators and scripts, you would create a job to kick off the new script you've created at the appropriate time.
    Hope that helps,
    Patrick
    http://branchbird.com

  • Collecting data from advantech-usb4704 with two different apps at the same time

    I wonder if I can access to Advantech-4704 with two different applications at the same time?
    I use this block in my vis.
    I have enough ports, but inputs are needed in completely different applications. Do I have to close one of them or can they run simultaneously?
    Thankyou!

    Dear gtu,
    as nathand said, usually it is not supported to access the same physical resource simultaneously from multiple programs. In case of DAQmx for instance, you will get an error message which says that the resource is already reserved. I suppose the same would happen with your driver, however it might be worth a try.
    One workaround could be however if you revise your applications and merge the codes if it is possible so that no concurent resource allocation takes place.
    Best Regards,
    Adam Cseh
    Applications/Systems Engineer
    National Instruments

  • ARD over internet to multiple macs using the same connection

    Hi, I know the topic has been covered to enable ARD over the net, however all the solutions I see require port forwarding which in essence makes only one computer using the internet connection available, how do you make it so multiple macs can use the one internet connection to send/receive ARD requests? is there a way to change the port ARD uses on individual macs and then forward the ports ? or do I have to go down the VPN path ? or is there a better solution for this kind of setup, thanks Ash

    Precisely.
    Cheers, Joel
    \[ Note, the reason I didn't use 5900 and 5901 was for clarity to make it obvious that they are arbitrary choices on the external side, but also because sometimes using 5901+ gets confusing. Depending on your VNC server software, which port on the internal side that you choose to use between 5900-5920 actually means something (resolution, color depth, etc) to the server software. If you can keep it all straight in your head though, and point them all to the right internal port (5900 usually), no harm in it. If you don't mind adding some awful "security through obscurity," you probably shouldn't have VNC service open to the internet on 5900 anyway. Either way, you should also probably limit connections to those internal machines now that they are "directly reachable" from the 'net. In your firewall they should both have default-deny policies for incoming requests unless they're from your known-safe external addresses.]
    Message was edited by: Joel D. Reid

  • Cannot work with two Swing app. at the same time.

    Hi guys,
    I bring this problem here may somebody experienced that.
    I developed two client side applications(applets). Locate them on Apache/Tomcat. There is also a Index.html file with two links, so when user clicks on each link the associated application will downloaded on his/her PC and ready to work. (In index.html I used JavaScript function window.open(?) to load the applications)
    Now please see this scenario:
    1-I ran/loaded both application in two separate browsers(IE5.5). And tried to work with them(minimized one and work with another). Soon I faced unexpected frizzing/locking or very slow running on both applications.
    2-Then closed/killed one of them(killed IE). Then re-executed same application again. The application loaded with the last activated screen . Seems it never killed and it was still alive.
    3- The only way to successfully working is one by one. Means execute & work with one, then kill that, and then execute and work with another.
    To Debug:
    When both applications were running(each on it?s own IE), I opened the Task Manager and saw there was only one IEXPLORER.EXE was running, also there was only one Java VM (a little bird icon) on right-bottom of the screen.
    I believe this causes the problem. Seems they both running in the same session. Since I opened two applications in two IE I was expected to see two IEXPLORER.EXE with two JVM. Am I right? Do you think so?
    Note that the two app. have no Communication with each other.
    Any way, Now I am seeking to find the solution. My primary mind says probably I should not use window.open(..) in index.html to load the applications.
    Would appreciate any command on this.

    I am also facing the same problem !
    Since this may be a very late reply , if any body has a solution pls share!
    What I understand is that when we use javascript:window.open() it opens a new browser window
    but under same JVM. This is helpful if we need to have a 'Close window' button/link in the newly opened window and use javascript:window.close() there. Then browser will not show us the confirmation dialog box 'Webpage you are viewing is trying to close the window. Do you wish to Proceed?'
    But if we want a new JVM for each opened link and also donot want the popup dialog to be displayed when we close the browser from there..what do we do??

  • How can i synchronize different contacts and different calendars with different iOS devices using the same Apple ID and iTune ID?

    I have the following situation. 1 Apple ID. 1 iTune account. I have 2 ipads and 2 iPhones
    1- I would like to have a set of 1 ipad and 1 iphone (mine) sharing the same contacts and calendar entries (synching from outlook)
    2- I would like to have another set of 1 ipad and 1 iphone (my wife's) sharing contacts and calendar entries but obviously these would be a different set of contacts and calendar entries than mine
    How can I set up my four devices to do this?
    Thanks for your help
    Cheers

    Have your wife log in to her user account on the laptop. Launch iTunes, then connect her phone to the computer with the USB cable. Sync. That should put back all apps and media. Since you already upgraded her to iOS 5 she'll have to manually enter all her settings and preferences, and organize her home screens.

  • Problem with multi icloud account on the same Lion.

    Hi,
    my boss have some trouble to create an iCloud account with your PC (bleah... yes a simple pc).
    I've helped him to enable his Apple ID trough Lion Contacts/Email/Address/Calendars Preference Panel. After the correct enable of his Apple Id (not me.com) i've tried to enable @me.com account.
    Successful.... but on my Apple ID not in his. ****!!!!
    Can i remove this account from my Apple ID, or easy delete the [email protected] account?
    best regards

    Hello Jovi Guitarist,
    If I understand correctly you are unable to use the password reset email that gets sent because you cannot identify the email address that one of the iPads is registered to, and you cannot reset the security questions because the date of birth is being rejected. At this point you may need to reach out to the Account Security team for additional assistance. Keep in mind you will need to verify the account information to receive support. 
    If you forgot the answers to your Apple ID security questions
    If you can't reset your security questions
    If you couldn't send a reset email, don't have a rescue email address, or can't access email at your rescue email address, contact Apple Support. Apple may ask you to generate a temporary support PIN to verify your identity. After you reset your security questions, you might want to update your rescue email address. 
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

Maybe you are looking for

  • Problem while making incoming  payment entries

    I am making check incoming payment entries in SAP-B1. As we receive check payment entries, it is crediting clearing check account & debiting account receivables. Please let us know how do  bank account will be credited & clearing check account will b

  • Pages. How Do You Change Default Settings?

    Is it possible to set new defaults to shapes and fonts without having to start over with a new template? I've got too many Pages files and would like to see the defaults changed in these.

  • Error installing Oracle 10gR2 on Solaris Express Developer Edition

    Hi I'm trying to install Oracle Db 10gR2 on Solaris Express Developer Edition 1/08 for x86 but it fails with the following link error: INFO: /export/home/u01/app/oracle/oracle/product/10.2.0/db_1/bin/genclntsh INFO: ld: fatal: INFO: symbol `ntcontab'

  • Trying to buy music but error

    when trying to purchase music from the itunes store.. a notice comes up saying "could not purchase. an unknown error occurred (11111)." this has been happening for days and even after i updated my itunes.. please help!

  • What is the process of vendor subranges

    Hi All, Please explain the process of vendor subranges with all the steps. Regards, Jana