web server - Borland Technical Publications
web server - Borland Technical Publications web server - Borland Technical Publications
Application development overview Deployment Descriptors for Application Components The application component deployment descriptors need to specify connection factory information for the Resource Adapter which the component will use. Appropriate entries are required in: 1 In the component's Sun standard deployment descriptor. For example, in ejbjar.xml, the following is required: ■ res-ref-name: shme/shmeAdapter ■ res-type: javax.resource.cci.ConnectionFactory ■ res-auth: Application | Container 2 In addition, any version specific entries can be included. For example, EJB 2.0's ressharing-scope: ■ res-sharing-scope: Shareable | Unshareable 3 In the component's Borland-specific deployment descriptor. For example, in ejbborland.xml, the following is required: ■ res-ref-name: shme/shmeAdapter ■ res-type: javax.resource.cci.ConnectionFactory 4 In addition, any version specific entries can be included. For example, EJB 1.1's cmp-resource: ■ cmp-resource: True | False The following details example deployment descriptors for two EJBs - the first written to the EJB 2.0 spec, the second written to the EJB 1.1 spec. Both the standard and Borland-specific deployment descriptors are shown. In these examples, a hypothetical Resource Adapter is referenced. EJB 2.x example ejb-jar.xml deployment descriptor This example uses container-managed persistence SHME Integration Jar Interface EJB for shmeAdapter Class /shme/test/ shmeAdapter/schema/Customer customer_bean shme/customer_bean com.shme.test.shmeAdapter.schema.CustomerHome com.shme.test.shmeAdapter.schema.CustomerRemote com.shme.test.shmeAdapter.schema.CustomerBean Stateful Container SHME Repository URL for Connector configuration repositoryUrl java.lang.String s_repository://S_APP01 Chapter 27: Using VisiConnect 275
Application development overview Location of Resource Adapter Configuration within the SHME Repository configurationUrl java.lang.String /shme/client Reference to SHME Resource Adapter shme/shmeAdapter com.shme.shmeAdapter.ConnectionFactory Container Shareable customer_bean Remote s_exec_customer_query Required This corresponds to the ejb-jar.xml above. shme/customer_bean shme/customer_bean shme/shmeAdapter eis/shmeAdapter 276 BES Developer’s Guide
- Page 235 and 236: Tibco Creating Clustered JMS Servic
- Page 237 and 238: Sonic serverUrl String localhost:72
- Page 239 and 240: Sonic Creating Clustered JMS Servic
- Page 241 and 242: OpenJMS Even though OpenJMS can be
- Page 243 and 244: OpenJMS Important If you use OpenJM
- Page 245 and 246: OpenJMS openjms.clean_messages_on_s
- Page 247 and 248: OpenJMS Table 24.1 Property Name De
- Page 249 and 250: Other JMS providers The following a
- Page 251 and 252: 240 BES Developer’s Guide
- Page 253 and 254: Creating the Interceptor Class For
- Page 255 and 256: Creating the JAR file Creating the
- Page 257 and 258: Components Components The Connector
- Page 259 and 260: System Contracts Connection Managem
- Page 261 and 262: System Contracts Security Managemen
- Page 263 and 264: Common Client Interface (CCI) Conne
- Page 265 and 266: Packaging and Deployment Figure 26.
- Page 267 and 268: Resource Adapters Resource Adapters
- Page 269 and 270: Connection management Connection ma
- Page 271 and 272: Security management with the Securi
- Page 273 and 274: Security management with the Securi
- Page 275 and 276: Resource Adapter overview Note Reso
- Page 277 and 278: Deployment Descriptors for the Reso
- Page 279 and 280: Developing the Resource Adapter Con
- Page 281 and 282: Deploying the Resource Adapter Pack
- Page 283 and 284: Application development overview 8
- Page 285: Application development overview //
- Page 289 and 290: Other Considerations Other Consider
- Page 291 and 292: Other Considerations To illustrate,
- Page 293 and 294: Other Considerations } } { cf = new
- Page 295 and 296: General syntax and usage General sy
- Page 297 and 298: Syntax and usage for iastool Table
- Page 299 and 300: Syntax and usage for java2iiop Exam
- Page 301 and 302: Syntax and usage for appclient Tabl
- Page 303 and 304: Building and running the BES exampl
- Page 305 and 306: Using the iastool command-line tool
- Page 307 and 308: Using the iastool command-line tool
- Page 309 and 310: Using the iastool command-line tool
- Page 311 and 312: Using the iastool command-line tool
- Page 313 and 314: Using the iastool command-line tool
- Page 315 and 316: Using the iastool command-line tool
- Page 317 and 318: Using the iastool command-line tool
- Page 319 and 320: Using the iastool command-line tool
- Page 321 and 322: Using the iastool command-line tool
- Page 323 and 324: Using the iastool command-line tool
- Page 325 and 326: Using the iastool command-line tool
- Page 327 and 328: Using the iastool command-line tool
- Page 329 and 330: Using the iastool command-line tool
- Page 331 and 332: Using the iastool command-line tool
- Page 333 and 334: Executing iastool command-line tool
- Page 335 and 336: 324 BES Developer’s Guide
Application development overview<br />
<br />
<br />
Location of Resource Adapter Configuration within<br />
the SHME Repository<br />
configurationUrl<br />
java.lang.String<br />
/shme/client<br />
<br />
<br />
Reference to SHME Resource Adapter<br />
shme/shmeAdapter<br />
com.shme.shmeAdapter.ConnectionFactory<br />
Container<br />
Shareable<br />
<br />
<br />
<br />
<br />
<br />
<br />
customer_bean<br />
Remote<br />
s_exec_customer_query<br />
<br />
<br />
Required<br />
<br />
<br />
<br />
This corresponds to the ejb-jar.xml above.<br />
<br />
<br />
<br />
<br />
<br />
shme/customer_bean<br />
shme/customer_bean<br />
<br />
shme/shmeAdapter<br />
eis/shmeAdapter<br />
<br />
<br />
<br />
<br />
276 BES Developer’s Guide