Multiple connections or multiple sessions preferred

Hi All,
Is it better to create multiple connections for each sender/receiver or single connection but multiple sessions for each sender/receiver? Assume in my case that there are about few hundred receivers. Thanks.

Edit : Sorry, bad answer.
Edited by: Jerome M. on 3 févr. 2011 01:11

Similar Messages

  • Multiple sessions in a single database connection.

    I have copied the following text from Forms Developer2000
    "At runtime, Form Builder automatically establishes and manages a single connection to ORACLE. By default, one user session is created for this connection. However, the multiple-sessioning feature of ORACLE allows a single client to establish multiple sessions within a single connection. ORACLE transaction-management and read-consistency features all are implemented at the session level, so creating multiple sessions allows a single user to have multiple, independent transactions."
    If ORACLE allows a single client to establish multiple sessions within a single connection, I want to leverage on this feature in my application which uses BC4J.
    Can anybody tell me if
    1. its possible achieve this in Java(BC4J).
    2. If Yes, How?
    regards,
    vikrant

    Thank you for your valuable suggestion.
    I believe createing multiple root Application
    Modules, will create as many number of connections to
    database, hence multiple transactions.
    But What I wanted was multiple sessions in a single
    connection, who's behavior will be similar to two
    different connections.Could you tell me the advantage you're looking for in multiple sessions in one connection vs. multiple connections (where connections may be pooled)?
    Thanks.
    Sung

  • Setup for Discoverer to have multiple sessions opening in different browser

    What is the setup for Discoverer or Windows 6 browser to have multiple discoverer sessions opening in different browser windows at the same time in Discoverer 10g Plus?
    We have implemented Discoverer 10g Plus just to be used as an extract tool. We have some workbooks retrieving 200,000 or more rows from an Oracle database. It is taking 30 to 45 minutes to download. Some users are able to open multiple sessions in different browsers to download more then one worksheet at the time, but we have other users who get an error message that they can only open one session at the time. What is the setup to allow users to open more than one Discoverer session?

    Additional research in Metalink found the following:
    Hdr: 7261918 10.2 USER_JAV 10.1.2.54.25 PRODID-964 PORTID-46
    Abstract: ALLOW ABILITY TO LAUNCH TWO DISCOPLUS SESSIONS FROM SAME BROWSER CONNECTION PAGE
    *** 07/17/08 07:31 am REQUEST TEXT ***
    Please refer to bug 6656139. Need to get Discoverer Plus certified to
    support launching two plus sessions from same browser connections page when
    using SUN JRE 1.5/1.6 or higher.
    As per bug 6656139 it appears to be JVM 1.5.x limitation, because same
    actions work fine when using SUN JRE 1.4.2_xx.
    *** 07/17/08 07:31 am BUSINESS NEED ***
    Impossible to run reports against two different databases simultaniously
    using same Discoverer instace, or just several reports at the same time,
    which would save much time instead of running reports one by one.
    *** 07/19/09 11:57 pm *** (CHG: Sta->97)
    *** 07/19/09 11:57 pm RESPONSE ***
    ALSO SEE THIS FROM SUPPORT
    Error 'Unable To Connect Discoverer Server: Null' When Opening A Second Plus Session From The Same Browser [ID 790187.1]
    Cause
    Bug 6656139, JVM 1.5 : RUNNING TWO PLUS SESSIONS ERRORS WITH UNABLE TO CONNECT: NULL
    The Java Console reports the following error:
    Error: java.lang.StackOverflowError
    java.lang.StackOverflowError
    at java.awt.DefaultFocusTraversalPolicy.accept(Unknown Source)
    at java.awt.ContainerOrderFocusTraversalPolicy.getFirstComponent(Unknown Source)
    at java.awt.ContainerOrderFocusTraversalPolicy.getFirstComponent(Unknown Source)
    at javax.swing.DefaultFocusManager.getFirstComponent(Unknown Source)
    Per Bug 6656139 this problem is a limitation/bug with current Sun JRE 1.5
    and higher and needs to be addressed by Sun.
    Solution
    Currently launching two Discoverer Plus sessions from the same browser connection page is not supported/certified.
    Enhancement Request :
    Bug 7261918, ALLOW ABILITY TO LAUNCH TWO DISCOPLUS SESSIONS FROM SAME BROWSER CONNECTION PAGE
    has been logged for this issue but is still waiting on a Sun Java fix.
    Use the following workaround:
    Use JRE 1.4.2_xx until the ER is implemented and the SUN JRE bug is fixed.

  • How to open multiple sessions for one user?

    Sorry for the silly question but I couldn't find it googling or searching through this forum, so I started wondering whether it's possible in SQL Developer to open multiple sessions for one user. I'm fairly new to SQL Developer and databases in general.
    When I open SQL Developer and connect to a schema, a worksheet opens named MYSCHEMA. If I disconnect then connect, another worksheet opens, named MYSCHEMA~1. I assumed these were different sessions, but if I enter into one worksheet:
    select col1 from my_table where row_id = 1
    -- shows result is 1
    update my_table set col1 = 0 where row_id = 1
    select col1 from my_table where row_id = 1
    -- shows result is 0and then enter into the second worksheet:
    select col1 from my_table where row_id = 1
    -- shows result is 0I would have expected the second worksheet to report 1 because the first worksheet did not issue a COMMIT. Thus, I'd guess both worksheets are the same session? Is that right? If so, how do I have two sessions open simultaneously (opened by same user)?
    I'm trying to implement the code at the bottom of this post, for which testing requires at least two sessions:
    Re: Help with Procedure
    Edited by: tem on Apr 18, 2012 6:44 AM

    Thanks Jim,
    Ctrl-Shift-N doesn't do anything for me. I'm on a mac -- by experimenting it looks like command-N does what you're looking for. This appears to be the same as left-clicking on the "New" icon in the top left corner of SQL Developer, or selecting from the pull-down menu, File > New.
    This opens "Create a New" window that appears to be a wizard. What would I select at this point? Options are: Database Connection, Table, View, Package, ...
    I don't see an option for "Worksheet".
    UPDATE:
    OK, I found that if I select "SQL File", a worksheet becomes available. Perhaps this is what you intended. However, when I issue the command
    select col1 from my_table where row_id = 1;it still returns 0 instead of 1. Hmm, maybe my initial assumption was wrong -- if this is a second (e.g. different) session, should I expect the changes made in the first session in SQL Developer (the UPDATE command) WITHOUT a commit, to be observed in this second session? I thought that changes made in one session were not viewable in a different session until these changes are committed in the first session? If so, how to show this in SQL Developer? I must be missing something basic here.
    Or, is SQL Developer issuing some sort of "auto-commit" without my knowledge?
    Edited by: tem on Apr 18, 2012 8:00 AM

  • Multiple session issue

    Hi,
    I have created SAP transaction ivews in my portal with SAP Logon tickets to connect r/3. End users are having tendency to open multiple browser window using Ctrl+N. This way they dont have to login many times and can have many portal window open.
    The problem here is for each new window opned with Ctrl+n it opens a new session in R3. this way there are so many sessions are opened in R3. Is there any way we can prevent multiple sessions in R3?

    Hi Rick.
    I also meet with the same problem , situation.
    We have tried with parameter
    login/disable_multi_gui_login
    but it does not work if login come from EP SSO.
    When user open backend R/3 from EP SSO, it will not be considered as a new connection, so the parameter validation does not work.
    I check the documents. EP has some session management methism to control the too much sessions to backend system.
    And in our project, our solution is that we develop a userexit in R/3. When user login in R/3 from EP for more than 1( the number can be changed as u want ) times, the R/3 will tell user that he can only connect to R/3 for one connection, he can go on ( terminiate the old one ) or quit current.

  • Can XSQL create multiple session variables using only one database call?

    Right now if I want to set session variables for username and accesslevel, I code out like this:
    <xsql:set-session-param name="name" bind-params="username password">
    SELECT DISTINCT USERNAME
    FROM LKUP_USER
    WHERE USERNAME = ? AND PASSWORD = ? AND ACCESSLEVEL = 0
    </xsql:set-session-param>
    <xsql:set-session-param name="authlvl" bind-params="username password">
    SELECT DISTINCT ACCESSLEVEL
    FROM LKUP_USER
    WHERE USERNAME = ? AND PASSWORD = ? AND ACCESSLEVEL = 0
    </xsql:set-session-param>Is there any way to do it so that I don't have to do multiple queries to the database to set session variables? i.e., something like this:
    <xsql:set-multiple-session-param name="user authlvl" bind-params="username password">
    SELECT DISTINCT USERNAME,
    ACCESSLEVEL
    FROM LKUP_USER
    WHERE USERNAME = ? AND PASSWORD = ? AND ACCESSLEVEL = 0
    </xsql:set-multiple-session-param>Sort of like how bind-params works. Setting bind-params="username password" makes the first ? akin to username and the next ? akin to password.
    Is this functionality already in existence?
    Thanks!
    Malik Graves-Pryor

    Not currently possible to collapse into one request without doing it in a custom action handler.
    A custom action handler can:
    [list=1]
    [*]Get the current JDBC connection from the XSQLPageRequest
    [*]Get the SQL statement to perform using the function getActionElementContent
    [*]Handle any bind parameters specified an a bind-params attribute on the action element by calling handleBindVariables()
    [*]Execute and fetch the row from the query
    [*]Check to see that the return value of getPageRequest().getRequestType() equals the value "Servlet"
    [*]Cast the page request to an XSQLServletPageRequest and call getHttpServletRequest()
    [*]Call getSession() on the request
    [*]Set the session variables you want to
    [*]Close the JDBC statement
    [list]
    will consider a built-in enhancement for a future XSQL release.

  • How to invoke multiple sessions of sql*plus thru pl/sql program

    Hi
    How to invoke multiple sessions of sql*plus thru pl/sql program.
    Thanks

    How to invoke sql*plus in a procedure?????
    I have to invoke more pl/sql sessions?????No you don't "have to".
    Look at what you are trying to do.
    You have a program running inside the PL/SQL engine. This is running nicely inside the Oracle database and is perfectly capable of issuing other SQL statements, PL/SQL programs etc. inside it's nice cosy Oracle environment.
    You are asking for this PL/SQL to shell out to the operating system, run an external application, for which it will have to supply a username and password (are you planning on hard coding those into your PL/SQL?), and then that external application is supposed to run more SQL or PL/SQL against the database.
    a) Why hold all this code external to the database when it can quite happily reside on the database itself and be executed through jobs or whatever.
    b) Consider what would happen if someone were to replace the external application with their own program of the same file name... they'd be able to capture the username and password for connecting to the database, therefore a major security flaw.
    The whole idea of doing what you want through external calls to SQL*Plus is ridiculous.

  • Multiple session open

    Hi ,
    Application facing problem of multiple session pending for more that 2-3 days using JDBC Thin Client.
    I can see these all querying v$session.
    database is Oracle.
    What could be reason?
    How to find problem as this is due to issue in Oracle or JDBC end.
    Can you please gudie.
    Thanks in Advance.

    Hello,
    Most likely an applicaiton issue so you need to investigate if java application closing connection appropriately. When you query v$session, it shows you status of session , machine name, username and program used to create this session and whole lot.
    Do you have connection pooling at java level or at oracle or not at all? Also looked into following parameter to support increased number of sessions. (processes, sessions, transactions)
    Regards

  • Problem: Multiple sessions per user (automatic) ?

    Hi guys,
    I have a very bad behavior with multiple sessions in SRM 4.0 sp8.
    The problem is:
    1. When the employee enter into the system one session is created
    2. The same employee click the "Shop" link and a 2nd. session is created for the same user !
    3. The same employee click the catalog link (CCM) and a 3rd. session is created !
    Anybody knows how to solve this ?  
    Thank you !!!
    Kind regards,
    diego

    Diego
    When you logged in first time, it creates one session.
    But after that if you navigate to different transactions it shows in the second session.But it does not open new session for each link(ie Shop, confirmation, etc). Instead old session closes and new session opens.
    When it comes to CCM, obviously new session opens as you are connecting to new application by keeping open the existing one(Shop).
    But how does it matter to your application?
    Does it show any impact on the performance?
    Regards
    Jagadish

  • Multiple sessions problem

    I have struts 1.3 based portal project running on WLP 10.3.2. I am exposing a struts porlet over WSRP. when the porlet is consumed, i see multiple sessions being created for a single request. Below is the text form console. Note: I am using all the default configuration that comes when i create a new project.
    2010-09-15 11:14:42,832 DEBUG - - - V9sGMQvC5qqJyRhyZkHVhKy8ds2YVyBBbXJjyG02LQFLpBynx96x!-1496224653!1284563682831 - session created
    2010-09-15 11:14:44,986 DEBUG - - - lhNyMQvGxzb6hKm7WkpqhsQ1nh6TVghnDLdM8hsGTFxQnLswZDTG!-1496224653!1284563684986 - session created
    2010-09-15 11:14:45,000 DEBUG - - - 3qsgMQvG303NKtJKjbTh2Mt1Qpc1Lnr2lSGsFwvQJ0YW21jvl2DJ!-1496224653!1284563684999 - session created
    2010-09-15 11:14:45,011 DEBUG - - - 3Dz7MQvFKhdrRpYQ7KS8s017pCf2wz17pvhx8JpXv5D7mfJLlx5f!-1496224653!1284563685011 - session created
    2010-09-15 11:14:45,045 DEBUG - - - 0PDHMQvFWh29zwT1hhNvcQM4fvk0LhHTp1L2QZQywxLg9P4jzZH2!-1496224653!1284563685045 - session created
    2010-09-15 11:14:45,053 DEBUG - - - 48b8MQvFkpv6GgVjV5p8qvpXgwvlPnVZGpkRMcWkLCTZN7tNvzHJ!-1496224653!1284563685052 - session created
    2010-09-15 11:14:45,062 DEBUG - - - 2DMTMQvFBlPWl1zT7b6QYhYWGW0pF7z1mQVvCJ7CY8TJbkYbm1Tl!-1496224653!1284563685062 - session created
    2010-09-15 11:14:45,075 DEBUG - - - 134GMQvFsFG0Jh7WtGvgv8LSg2GLc8hTZ6vTMNGGm8c5D4vwBhbH!-1496224653!1284563685075 - session created
    2010-09-15 11:14:45,109 DEBUG - - - bz9mMQvF9Fn20qp17v1fPyHG3WWP1VVdn6rbXn5FT1y9LKhZVqK4!-1496224653!1284563685109 - session created
    2010-09-15 11:14:45,116 DEBUG - - - PhFpMQvFnJdl5v2jNhtp0GKSvrWNZJlTww2QrNdVLHLpQcRZzvbM!-1496224653!1284563685116 - session created
    2010-09-15 11:14:45,123 DEBUG - - - n4tGMQvFMGJVyRYGG5g709xjMQHwTlvpJ4Nn7J5TTPpHbrJDfG1v!-1496224653!1284563685123 - session created
    2010-09-15 11:14:45,133 DEBUG - - - 8MjGMQvFGTvDJJz34CznJ1PgSpFfyQnhL9N7sv4n9NfqvRyMrqz1!-1496224653!1284563685133 - session created
    2010-09-15 11:14:45,153 DEBUG - - - 1NTdMQvFD5nn9yJSc6tp3v7D7lnFGJdJyBScrvXFfwJSPpGFVcTy!-1496224653!1284563685153 - session created
    2010-09-15 11:14:45,158 DEBUG - - - PNvdMQvF52J1BJVvG0FQG92JzdLwZtQj0hyLLMh0gJ1C1rXYK2Pn!-1496224653!1284563685158 - session created
    2010-09-15 11:14:45,167 DEBUG - - - 6h8kMQvF2HhrhZLK835WTnvvzrbQvPdRrTYGJv8jT1vY9gwFGkps!-1496224653!1284563685167 - session created
    2010-09-15 11:14:45,233 DEBUG - - - npMJMQvFqBtGyp6TtvhtrQ1MzvQFJDYNGJmvGGQ2zwbVxbFp2LHn!-1496224653!1284563685233 - session created
    2010-09-15 11:14:45,240 DEBUG - - - G0DnMQvFkPFZpq2hNGVMyL2v1n1ZK7pR95rp4dJC2P8n4ndNypLX!-1496224653!1284563685240 - session created
    2010-09-15 11:14:45,248 DEBUG - - - 6vpkMQvF8Q9ykBjFQr2VysX6bCyb0gwzycSzzwnqRg4lYk8L5zkZ!-1496224653!1284563685248 - session created
    2010-09-15 11:14:45,255 DEBUG - - - sydnMQvF50MnDwhj40y8RRyR5DhJk2f2fJJqGL1dHp8qNbnppHn2!-1496224653!1284563685255 - session created
    2010-09-15 11:14:45,275 DEBUG - - - qYyFMQvFdXD0yY2QLbFL1TsJKPtplDsJTJknTq16Fb4rg5XMT0XT!-1496224653!1284563685275 - session created
    2010-09-15 11:14:45,335 DEBUG - - - pjjhMQvFs4JrmkcG0dK1SL2r4XGkYJ1p1kQhJQxZ0PnLdv5Qk1hQ!-1496224653!1284563685334 - session created
    Any resolution..thanks.

    Diego
    When you logged in first time, it creates one session.
    But after that if you navigate to different transactions it shows in the second session.But it does not open new session for each link(ie Shop, confirmation, etc). Instead old session closes and new session opens.
    When it comes to CCM, obviously new session opens as you are connecting to new application by keeping open the existing one(Shop).
    But how does it matter to your application?
    Does it show any impact on the performance?
    Regards
    Jagadish

  • How to avoid multiple session for the same username

    I need suggestions on implementing single user login , like My system has a user with a username jdavid and my application should not allow two different sessions for the same username jdavid , can one session peep into all other session
    to see if the any has a usernaem jdavid, I am basically looking for some pattern if any available for restricting multiple session for the same username . like jaas or any other security api provides this ?

    Store a Map<User, HttpSession> in application scope and let your application intercept on that. On login, just check if the User is already there, then get the associated HttpSession, invalidate it and replace it by the current HttpSession, else just store the current User-HttpSession pair in the map. On logout obviously remove the User-HttpSession pair from the map.

  • Multiple Sessions in CMC for the same user

    Hello,
    Version:  BOE XI R2 SP3
    A user opens an Xcelsius Dashboard.  As they are using the dashboard, multiple calls are being made through QaaWS to the database.  In CMC, we can see multiple sessions created for that user.  However, this is not 100% consistent.
    Why are there multiple sessions created for one user consuming one dashboard?  Shouldn't everything result in one session?
    Thank you,
    Scott

    Thank you Greg,
    The user shows multiple session after opening and refreshing just one Xcelsius Dashboard over and over again.  It is using QaaWS to get its data.
    Also, as you mentioned, we are also seeing problems with Logout.  Sometimes, users click the logout, but their session does not terminate.  Other times, it does terminate.  And, also, sometimes the logout button does not work.  The user is forced to just close the browser window.
    Any ideas?
    Scott

  • How do I create a program with multiple sessions?

    I need to allow multiple sessions with this program.
    I realize that it involves threading of some sort, but I'm pretty new to this area and am not sure how I should go about this.
    Here are the instructions:
    "�     Write an application that will create an online dictionary a data file will be supplied that contains a list of words and their meanings. The hash table will contain a key (the word in question) and a value (byte offset of the word meaning stored in a random access file). You will also provide methods for entering, searching and deleting words online. The program must allow for multiple sessions."
    I have most of this all done, and have a dictionaryBroker ready to write the add, delete and search methods.
    But what about the mutliple sessions?
    I'm thinking that my hashTable and RandomAccessFile classes are both going to have to be singleton.
    What I want is for multiple people to be able to run the program at the same time, but if one person adds or deletes a record, I want it to update instantly for everyone.
    But it also needs to run smoothly for everyone using it.
    Thanks for any help, I just need a little push in the right direction here to help get me going.

    Well here is the entire assignment:
    &#61607;     Write an interface for a hash table that satisfies the following criteria:
    The hash table will contain a key (String) and a value (Object)
    Allow for a specific load capacity, if the capacity is exceeded the table is rehashed. The rehash may be called independently
    Must allow for maintaining the hash table (adding modifying etc) the key will not be changed
    Must allow for retrieving information from the table
    Must allow addition using a Map object or one key, value pair at a time
    The addition using a Map and the rehash must be a two pass approach
    �     Implement the interface.
    �     Write a test routine to test all aspects of the interface. The test must calculate the efficiency of your hashing algorithm.
    �     Write an application that will create an online dictionary a data file will be supplied that contains a list of words and their meanings. The hash table will contain a key (the word in question) and a value (byte offset of the word meaning stored in a random access file). You will also provide methods for entering, searching and deleting words online. The program must allow for multiple sessions.
    Submission
    Submit your eclipse project or executable jar file through WebCT. An efficiency of 70% or better must be attained for the assignment to be graded.
    I'm in Canada, not the US.
    It says online dictionary, but I don't think we actually have to do that. I'm pretty sure I can just use a simple GUI to allow them access to the dictionary.
    So, I'm assuming that I just have to make sure that if multiple people are trying to access it at the same time it needs to update at the same time or something. The hashtable was the main part of the assignment so this part shouldn't be too large.

  • Multiple sessions with Viewer 3.3.61

    Hi,
    I have Discoverer Server set up on a single machine, using OAS as the HTTP server, and Viewer 3.3.61.
    If a user tries to run 2 queries at the same time (opens up two browser windows), one of the queries will be cancelled (usually te first query started).
    Why is this? Is this normal functionality, or do I need to set something up for multiple sessions? If I need to set something up, where can I find documentation?
    Thanks,
    Suzanne
    null

    Suzanne,
    I think this is normal for Discoverer. It seems to be that there is a session for each user login. Thus a single query for each login. This is just my observation.
    Christopher

  • How to handle multiple session in ADF using jdevloper11g

    Hello All
    i want to use the form in Multiple sessions.
    i have one sign up form. user enter only 4 to 5 fields & he may not fill the the manditory field & he left.but data base dont give the error to him. but next day he will come at the next day to complet his sign up i.e. when he commit the all detail that time all validation will hapen.
    for that i use one table without constrain to store the temarory detail.& use other table (with constrains) for final submition.
    1) i creat the view n entity for temparory table
    2) & also i create views n entity for Final table
    n i create one methos in viewRowImple file in that file i overrid create method from using this i set the value from tempary to final table...
    but when user left the manditory field then it allow to submit the data in temparory field but when i copy that data to final table(with constrain) n user submit the data then validation happn i.e. "this fild is mandatory".when i click this error message it goes to first screen.
    IS Thiis Possible.. in ADF

    Generally this can be done.
    I see a problem with your use case, which has nothing to do with jdev or java:
    How do you identify the user when he comes back to finish the form?
    For this you can't use information like session cookie or IP address because they change.
    So you have to save some information about the user which lets you identify him when he comes back. All other requirements can be implemented by ADF.
    Timo

Maybe you are looking for

  • Airdrop on Macs running Mavericks, Yosemite with iOS 8 iDevices

    Found this information in discussion with Apple Advisors (and wasted a lot of time doing so) only to find a clear disconnect between KB articles.The current basic article clearly states that any Mac newer than 2012 can use AirDrop: In order to transf

  • Top N rows based on aggregate function

    Hi, I need to get a report in the following format F_A F_B F_C Count_comb 100 200 300 5 100 201 300 5 100 202 301 4 100 203 111 3 Here, the Count_comb column gives the count of records which have the same (F_A + F_B + F_C) combination. The requiremen

  • Quick Time won't delete!

    I tryed to remove Quick Time from my computer but it says it can't and I need it off of my computer. Can anyone help?

  • Set Regional Options in Default Domain Policy

    I want to configure the Regional Options for English UK, Location UK (to get the UK keyboard as the default keyboard as logons can be a problem as it is different to the US (default) keyboard) The problem is when I go to the Policy (Default Domain) R

  • Ausdruck bzw. Online Entwicklung von Bildern mit PSE 3

    Hallo werte Fachleute Ich habe wahrscheinlich eine "Newbie- Frage", aber sicherlich eine sehr wichtige. Habe ich folgenden Sachverhalt VOR Ausdruck/Online Entwicklung der Fotos richtig verstanden? a.) Die erstmaligen Skalierungsmaße eines Bildes (Bil