Neoview Workload Management Services Guide (R2.5)

Connection Attribute Expressions
The connection attributes of the client session must match all the connection attribute expressions
in the connection rule for the connection rule to be considered true. When the connection attributes
of the client session match all the expressions in the connection rule and the connection rule
evaluates to true, the NDCS server assigns the client session to the service associated with the
connection rule.
Connection Attributes in a Client Application
Table 5-1 shows the connection attributes that can be set in a client application.
Table 5-1 Connection Attributes in a Client Application
.NET ApplicationODBC ApplicationJDBC Application
Connection
Attribute
Session = session-name in the
connection string
SQL_ATTR_SESSIONNAME
sessionName property
Session name
Application =
application-name in the
connection string
SQL_ATTR_APPLNAME
applicationName
property
Application name
same as ODBCSet during loginSet during loginClient login role
(not the user
name)
same as ODBCSet in the Microsoft ODBC
Administrator or the DSN
connection string
serverDataSource
property
Data source name
In a .NET application, set the session and application names in the connection string, as this
example shows:
string conn =
"Driver={HP ODBC 2.0};Server=TCP:server-host-name/18650;ServerDSN=TDM_Default_DataSource;
Uid=role.user;Pwd=password;Session=mySession;Application=myApp";
The session and application values are case-sensitive.
To set the connection attributes in JDBC and ODBC applications, see the Neoview ODBC Drivers
Manual or the Neoview JDBC Type 4 Driver Programmer's Reference, respectively.
Connection Attribute Expressions in a Connection Rule
You can specify up to four different expressions in a connection rule to define these connection
attributes:
Connection Rule ExpressionConnection Attribute
SESSION expressionSession name
APPL expressionApplication name
LOGIN expressionClient login role (that is, the
Neoview role of the user who logs
on, not the user name)
DSN expressionData source name
The NDCS server evaluates the expressions in the order in which you specify them in the
connection rule.
Order of the Connection Rules
The order of the connection rules plays an important role in determining which service to assign
to the client session. For example, the connection attributes of the client session might match the
72 Configuring Rules