Skip to content

Commit 660dc86

Browse files
committed
Emphasize setting connectionClass
1 parent af97fdf commit 660dc86

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

doc/api.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,15 +265,19 @@ String connectionClass
265265
```
266266

267267
The Connection class value defines a logical name for connections.
268+
Most single purpose applications should set `connectionClass` when
269+
using a connection pool or DRCP.
270+
268271
When a pooled session has a connection class, Oracle ensures that the
269272
session is not shared outside of that connection class.
270273

271274
The connection class value is similarly used by
272275
[Database Resident Connection Pooling](#drcp) (DRCP) to allow or
273276
disallow sharing of sessions.
274277

278+
275279
For example, where two different kinds of users share one pool, you
276-
might set ```connectionClass``` to 'HR' for connections that access a
280+
might set `connectionClass` to 'HR' for connections that access a
277281
Human Resources system, and it might be set to 'OE' for users of an
278282
Order Entry system. Users will only be given sessions of the
279283
appropriate class, allowing maximal reuse of resources in each case,

0 commit comments

Comments
 (0)