P R E F A C E
Table of Listings
Listing 2 1, JBoss30.bat script file_____________________________________________________________________________19
Listing 2 2, JBoss init.d shell script ________________________________________________________________________21
Listing 2 3, JBoss go shell script_____________________________________________________________________________22
Listing 4 1, The default configuration for the JNDI service _________________________________________________35
Listing 4 2, A sample jndi.properties file for connecting to a remote JBoss server______________________36
Listing 4 3, A sample ejb jar.xml descriptor illustrating the ENC elements _______________________________37
Listing 4 4, The corresponding sample jboss.xml descriptor to the ejb jar.xml descriptor_______________38
Listing 8 1, A sample login configuration for the XMLLoginConfigservice.__________________________________65
Listing 8 2, The server/default/conf/jboss service.xml descriptor security services configuration.___74
Listing 8 3, A sample ejb jar.xml descriptor illustrating the use of the security elements. ___________75
Listing 8 4, The jboss.xml descriptor that specifies the security domains for the Listing 8 3 ejb
jar.xml descriptor. _________________________________________________________________________________________________79
Listing 8 5, A sample jboss web.xml descriptor illustrating specifying the security domain for a war.
________________________________________________________________________________________________________________________80
Listing 9 1, Entity Local Home Interface ________________________________________________________________________82
Listing 9 2, Entity Local Interface ______________________________________________________________________________82
Listing 9 3, Entity Implementation Class ________________________________________________________________________83
Listing 9 4, The ejb jar.xml Entity Declaration _______________________________________________________________84
Listing 9 5, The jbosscmp jdbc.xml Entity Mapping _____________________________________________________________85
Listing 9 6, Collection Valued cmr field Abstract Accessor Declaration ____________________________________88
Listing 9 7, Single Valued cmr field Abstract Accessor Declaration _________________________________________88
Listing 9 8, The ejb jar.xml Relationship Declaration ________________________________________________________89
Listing 9 9, The jbosscmp jdbc.xml Relationship Mapping Template ___________________________________________90
Listing 9 10, The jbosscmp jdbc.xml Foreign Key Mapping ______________________________________________________93
Listing 9 11, The jbosscmp jdbc.xml Relation table Mapping __________________________________________________94
Listing 9 12, Finder Declaration _________________________________________________________________________________95
Listing 9 13, ejbSelect Declaration ______________________________________________________________________________95
Listing 9 14, The ejb jar.xml Query Declaration _______________________________________________________________96
Listing 11 1, looking up a QueueConnectionFactory ____________________________________________________________102
Listing 11 2, looking up a TopicConnectionFactory ____________________________________________________________102
Listing 11 3, the definition for a Queue Named "testQueue" _________________________________________________103
Listing 11 4, the definition for a Topic Named "testTopic" _________________________________________________103
Listing 11 5, the source code for a simple MDB________________________________________________________________104
Listing 11 6, the ejb jar.xml deployment descriptor__________________________________________________________104
Listing 11 7, the jboss.xml deployment descriptor ____________________________________________________________105
Listing 10 12 1, * service.xml files look like this: ________________________________________________________106
Listing 13 1, the JaasSecurityDoman and EmbeddedCatalinaSX MBean configurations for setting up Tomcat
4.x to use SSL as its primary connector protocol. ____________________________________________________________122
Listing 13 2, the JaasSecurityDoman and EmbeddedCatalinaSX MBean configurations for setting up Tomcat
4.x to use both non SSL and SSL enabled HTTP connectors. ____________________________________________________122
Listing 13 3, An example virtual host configuration. ________________________________________________________124
Listing 13 4, An example jboss web.xml descriptor for deploying a WAR to the
www.starkinternational.com virtual host ________________________________________________________________________125
Listing 13 5, an example EmbeddedCatalinaSX MBean configuration that supports integration with Apache
using the Ajpv13 protocol connector.____________________________________________________________________________125
Page 6 of 139
6
footer
Our partners:
PHP: Hypertext Preprocessor Cheap Web Hosting
JSP Web Hosting
Ontario Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Java Hosting
Cheapest Hosting
Visionwebhosting.net Business web hosting division of Vision Web Hosting Inc.. All rights reserved