Difference between OraclePooledConnection and Connection
Hi,
Can someone help me in finding the difference between using oracle.jdbc.pool.OracleConnectionPoolDataSource with OraclePooledConnection and oracle.jdbc.pool.OracleConnectionPoolDataSource with Connection.
Thanks in advance.
Sindhiya V.
Hello
In order to get the meaning of terms Connection and Session let's define first the term Flow.
The definition of a Flow is historically accepted as:
A unidirectional sequence of packets between 2 network endpoints that have the following 7 things in common:
1. Source IP address
2. Destination IP address
3. L3 Protocol type
4. Source port
5. Destination port
6. Tos (Type of Service)
7. Input interface
The terms Connection and Session can have many different meanings depending on the framework that they are used, but it can be said that:
Connection: A bidirectional Flow
Session: Many connections between the same source and same destination
HTH
Similar Messages
-
Difference between session and connection
Not sure this is the right place for this, but I am not able to find a proper definition between these 2 terms.
What is the difference between session and connection, theoritically speaking ?Hello
In order to get the meaning of terms Connection and Session let's define first the term Flow.
The definition of a Flow is historically accepted as:
A unidirectional sequence of packets between 2 network endpoints that have the following 7 things in common:
1. Source IP address
2. Destination IP address
3. L3 Protocol type
4. Source port
5. Destination port
6. Tos (Type of Service)
7. Input interface
The terms Connection and Session can have many different meanings depending on the framework that they are used, but it can be said that:
Connection: A bidirectional Flow
Session: Many connections between the same source and same destination
HTH -
Difference between Datasource and Connection Pool
Hi,
What is the major difference between Datasource and Connection Pool.
Both the Datasource with JNDI and Connectio Pool will serve the pool of connections. Then what is the difference.
regards,
RajA datasource is not implicitly a connection pool. You can configure that in the datasource properties. A connection pool is also not implicitly a datasource. You can create your own connection pool using the java.sql interfaces. A datasource just gives the ability to acquire the connections and access the database through JNDI. A connection pool just gives the ability to reuse a set of connections which are created/closed/controlled by the connection pool logic.
-
Difference between closing the connection before and after committing user transaction?
I was wondering what's the difference between closing the connection before committing
the transaction versus closing the connection after committing the transaction?...
for e.g....
Scenario 1.........
UserTransaction useretran;
usertran.begin();
Connection con = datasource.getCOnnection();
// do bunch of stuff...
conn.close();
usertran.commit()
Scenario 2...
UserTransaction useretran;
usertran.begin();
Connection con = datasource.getCOnnection();
// do bunch of stuff...
usertran.commit()
conn.close();
thanks....
Srini
Hi. As long as you're sure there's a transaction going on, and the connection
is a transaction-aware object (from a TxDataSource), either will be fine.
In the first scenario the actual semantics of the close() call are less than
normal, because we really don't close the connection or return it to the
pool until the actual transaction commits, and in the second case, we have
already taken the connection out of your service as of the commit().
The second scenario is the usual coding style. If there's ever a chance your
code will get non-transaction-aware connections, it is crucial to close
connections, and I always recommend putting the close() in a finally block
so it's guaranteed to happen.
Joe
srinivas wrote:
I was wondering what's the difference between closing the connection before committing
the transaction versus closing the connection after committing the transaction?...
for e.g....
Scenario 1......... UserTransaction useretran; usertran.begin(); Connection con =
datasource.getCOnnection(); // do bunch of stuff... conn.close(); usertran.commit()
Scenario 2... UserTransaction useretran; usertran.begin(); Connection con = datasource.getCOnnection();
// do bunch of stuff... usertran.commit() conn.close();
thanks....
Srini -
Difference between passive and active data connection mode for FTP
Hi,
Does any body have the idea of passive and active data connection mode for the transport protocol FTP.
I have one server with FTP, I have to pick the data from this FTP to XI.
What is the difference between active and passive data connection? Does XI supports both the connections?
Thanks & Regards
Katta Mohan ReddyHi
According to SAP Note - 821267
Q: Does the File Adapter support active data connections when connecting to an FTP server?
A: Up to and including SP14, the File Adapter exclusively uses passive data connections. Starting with SP15, active connections will be available.
Difference between active and passive,
You can definitely refer to the site mentioned by Suraj
cheers
Sameer -
What is the difference between HTTPS URL connection and SSLSocket conn
What is the difference between HTTPS URL connection and SSLSocket connection
The difference is that they are different protocols, or rather one protocol layered over the other. If you're within a LAN you will use SSL, if it's a Web service you will use HTTPS.
-
What is the difference between BO Designer connect BW QUERY and BW CUBEuFF1F
HI friend,
What is the difference between BO Designer connect BW QUERY and BW CUBE?
which one is better?
Best regards.
HowardHi Howard,
You can use autorization variables in SAP BW and maitain the security there, using that you can apply diferent security not only at Infoobject levet you can apply security per BEX Query.
Here is some informaion about BEX and SAP BusinessObjects
BI metadata feature _______SAP OLAP BAPI support level
Characteristics (incl. Time and Unit)_______ InfoCube/BEx Query
Hierarchies_______ InfoCube/BEx Query
Basic Key Figures_______ InfoCube/BEx Query
Navigational Attributes_______ BEx Query only
Display Attributes_______ InfoCube/BEx Query
Calculated Key Figures / Formulas_______ BEx Query only
Restricted Key Figures_______ BEx Query only
Custom Structures_______ BEx Query only
Variables_______ BEx Query only
I hope this help you.
BEst regards,
Fede -
Hey just wanted to know what is the reason i would connect my external hardrive to the extreme and what is the difference between LAN and WAN ehternet. I know one is local and other is wide but can someone explain in simpler terms.
Connecting a hard drive to the Airport Extreme makes it available to be shared across all the computers on your network.
WAN (Wide Area Network) is your connection to the internet
LAN (Local Area Network) is your internal (or local) ethernet connections (computers, printers, etc...)
AirPort Base Station: About the WAN and LAN Ports -
Difference between Terminal server connection and MSTSC remote desktop connection
Hi everyone , Wats the main difference between Terminal server connection and MSTSC remote desktop connection? Well both are used to connect a server remotely. right!
Are there any much difference between them?RDP is a protocol and MSTSC is the RDP client.
In the situation you are referring to, you use MSTSC (RDP Client) in both cases, but when you connect to a client PC (Windows 7, Windows XP, etc) you can only connect if nobody is using that PC at the moment, if you connect to a server you can work along with
some other users. Server OS supports 2 connections by default, if you want more people you need Remote Desktop Services and RDS licenses.
Thanks,
сила в справедливости -
What is the difference between PUSH and FETCH
I am a little confused. I use my iphone for both my personal POP email accounts and my business exchange account. I am trying to save as much battery as I can so I turned off push and set everything to manual...but now when I try and get may mail....it either says "connecting" or "checking for new mail" at the bottom of the screen and nothing happens from there.
What is the best way to setup this situation for the most battery life? I don't need it to automatically download emails just when I open the email accout would be nice.
I also noticed that when I delete an email from my iphone on my exchange account, it also deletes is on my desktop at work...I need to turn this off...is it possible?Hi maxum25,
The difference between push and fetch is that:
When using push, the server sends a signal to the iphone and lets it know that an email is coming its direction. Kind of like receiving a call. The iphone does not need to do anything except receive the email.
When using fetch, the iphone has to wake up every so often and send a request to the server to see if there is any new email waiting for it on the server to download. This takes more time because the iphone sends a request, the server says yes there is some, the iphone says ok give me the new email.
Now the exchange email uses active sync to keep all changes on the exchange server and mobile device in sync. This is automatic and is the nature of exchange and active sync. In order to keep this from happening you would need to talk to your IT dept. and see if they have an imap or pop alternative. Even using imap reflects the changes back to the server.
Hope this helps. -
What is the difference between start() and run()
Hi:
what is the difference between start() and the run()???
in my app, i have
Console.debug( "starting thread to listen for clients" );
_server = new Server( this );
_server.start();
_server extends Thread..
why everytime i use server.start(); my app will terminate on it is own, even though in my servr.run() method, i have a while loop
and if i call _server.run() explicitly in my code, that while loop will be in execution
can someone let me know??
thnxwhat is the difference between start() and the
run()???start() is a method on Thread that tells it to start.
run() is a method in the object that the thread executes.
why everytime i use _server.start(); my app will
terminate on it is own, Err.... I'm not convinced this is true. It'll throw an IllegalThreadStateException, if you try to restart an existing thread.
If that's what you're saying.
even though in my _servr.run()
method, i have a while loopI don't see the connection. Are you saying that the while loop never terminates, and you don't see why the thread is terminating?
and if i call _server.run() explicitly in my code,
that while loop will be in executionIf you call server.run() explicitly, then run() will be executed in the same thread that you called it in. -
Hello everybody,
I am absolutely a beginner in working with Captivate and furthermore my technological know how is not that good.
So, I have problems to understand if the export formats SWF and F4V are both capable to be published in the Internet as streaming video and as progressive Download? Well so, I do not really understand the difference between streaming and progessive download either?
Furthermore I was asking myself if this issue depends on how I imported flash videos (there are these two options) in my Captivate project during the production phase?
I would be very thankful for some helping information!
Greetings,
Mareike the beginnerWelcome to our community
I'm not certain I fully understand the differences myself, but will toss out what I believe to be true about the formats. Hopefully, if I'm incorrect in my bellief, someone with more definitive knowledge will chime in.
It was explained to me a couple of years back and is my understanding that "streaming" only applies to a video based format such as F4V, FLV and it doesn't apply to SWF. With SWF, you may specify a preload value. So when the SWF transmits from the web server to the PC, a certain percentage has to be received before play begins. But that's not streaming. It's preloading.
For streaming to occur, the web server establishes a communication channel between the server and the destination PC. This channel is monitored to see what speed is in use. Only enough information is then transmitted to be comfortable at that speed. If the speed improves during the connection, the server serves data at a faster rate. If the connection degrades, the information transmitted is also scaled back so as to accommodate the lower speed.
With SWF, after it has all been downloaded, a savvy user is able to poke around in their temporary internet files and save the SWF for play later. With streaming, this isn't possible because as the stream is viewed, it evaporates from memory.
Seriously hoping others will chime in here to confirm or deny this.
Cheers... Rick
Helpful and Handy Links
Begin learning Captivate 5 moments from now! $29.95
Captivate Wish Form/Bug Reporting Form
Adobe Certified Captivate Training
SorcererStone Blog
Captivate eBooks -
Difference between CHAR and VARCHAR2 datatype
Difference between CHAR and VARCHAR2 datatype
CHAR datatype
If you have an employee name column with size 10; ename CHAR(10) and If a column value 'JOHN' is inserted, 6 empty spaces will be inserted to the right of the value. If this was a VARCHAR column; ename VARCHAR2(10). How would it handle the column value 'JOHN' ?The CHAR datatype stores fixed-length character strings, and Oracle compares CHAR values using blank-padded comparison semantics.
Where as the VARCHAR2 datatype stores variable-length character strings, and Oracle compares VARCHAR2 values using nonpadded comparison semantics.
This is important when comparing or joining on the columns having these datatypes;
SQL*Plus: Release 10.2.0.1.0 - Production on Pzt Au 6 09:16:45 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> conn hr/hr
Connected.
SQL> set serveroutput on
SQL> DECLARE
2 last_name1 VARCHAR2(10) := 'TONGUC';
3 last_name2 CHAR(10) := 'TONGUC';
4 BEGIN
5 IF last_name1 = last_name2 THEN
6 DBMS_OUTPUT.PUT_LINE ( '-' || last_name1 || '- is equal to -' || last_name2
|| '-');
7 ELSE
8 DBMS_OUTPUT.PUT_LINE ( '-' || last_name1 || '- is NOT equal to -' || last_n
ame2 || '-');
9 END IF;
10 END;
11 /
-TONGUC- is NOT equal to -TONGUC -
PL/SQL procedure successfully completed.
SQL> DECLARE
2 last_name1 CHAR(6) := 'TONGUC';
3 last_name2 CHAR(10) := 'TONGUC';
4 BEGIN
5 IF last_name1 = last_name2 THEN
6 DBMS_OUTPUT.PUT_LINE ( '-' || last_name1 || '- is equal to -' || last_name2
|| '-');
7 ELSE
8 DBMS_OUTPUT.PUT_LINE ( '-' || last_name1 || '- is NOT equal to -' || last_n
ame2 || '-');
9 END IF;
10 END;
11 /
-TONGUC- is equal to -TONGUC -
PL/SQL procedure successfully completed.
Also you may want to read related asktom thread - "Char Vs Varchar" http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1542606219593
and http://tahitiviews.blogspot.com/2007/05/less-is-more-more-or-less.html
Best regards. -
What's the difference between thunderbolt and mini displayport?
I'm trying to connect my Macbook with a monitor and I'm thinking of what cable to get. I will have to connect using a (Thunderbolt to HDMI cable) or a (mini displayport to HDMI cable).
I was wondering what's the difference between Thunderbolt and mini displayport
Thanks@bontistic: it is not true that only the Macbook Air supports Thunderbolt. All models(!) support thunderbolt: also the Macbook Pro's and Mini's. Eg.: http://www.apple.com/nl/macbookpro/features.html#thunderbolt
My Macbook Pro from 2011 already supported Thunderbolt... -
Whats the difference between list and lov ?
Whats the difference between list and lov ?
i can do the same things with a list what an lov can do .
infact a list is more better. cause the list doesnt hold/show a range of values, and only has the items value iteself.
while the lov can get all the values of items depending on the query.
like
select ename, job, sal from emp
will show all the three items values in lov?Also, if you're looking in the US store, the prices are:
- Airport Express (small, no ac) $99 - Has audio out for speaker connection using Airplay. Can share a USB printer only.
- Airport Extreme (larger, ac) $199 - No audio out, can share a USB printer or hard drive.
- Time Capsules (2TB, 3TB at $299, $399) - have ac wireless and a backup hard drive for Time Machine which the other Airports do not have.
Matt
Maybe you are looking for
-
PCUI - Open new url or bsp with a Toolbar Button
Hi all, I have a PCUI custom application (CRM_BSP_FRAME)and i want open a new url or bsp with my button on the toolbar of result list. Important: Without modification of standard. Thx in Advance Regards. Manuel
-
How do i split a line in a csv file and populate a combobox and a textbox with the parts
What I'm trying to do is split the line and fill a combobox and with the selecteditem and the textbox with the value of the combobox selecteditem which is the second part of the line split. Thanks in advance for the help or suggestions.
-
Mac Mini sound continually turning down
My mac mini sound is continually turning down. When I hit the sound up button, the sound goes up for a millisecond and then goes back down. It is really annoying because the sound up icon is in the middle of my screen. This problem has been occurring
-
hi need help i am new user i got a ipad from one of my friends when ever i am trying to purchase any game or trying to download free games its showing old ipad users name and asking for password . how to change that ??????
-
Cannot install hamachi because of previous version
I am on Windows 7 x64 and I am attempting to install the newest hamachi, but I cannot because hamachi says it found a previous version which I attempted to uninstall but it refuses telling me it cannot find hamachi-update.exe located in windows appda