J2EE store is any store that supports JCA. Slide's J2EEStore is for any RDBMS. You can deploy a database driver in the App server and access it via Slide's J2EEStore. Refer the App Server's manual for deploying DataStores.
For JBoss (when accessing from servlet side code): 1. The sample files for the different databases are in docs/examples/jca Copy the applicable ds.xml file to server/default/deploy and change the properties to match those of your system. 2. In web.xml: Add the following before <security-constraint> <resource-ref> <res-ref-name>jdbc/DefaultDS</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>SERVLET</res-auth> </resource-ref> 3. In jboss-web.xml: <resource-ref> <res-ref-name>jdbc/DefaultDS</res-ref-name> <jndi-name>java:/DefaultDS</jndi-name> </resource-ref> where DefaultDS is the jndi-name you provided in the ds.xml file above For access from EJB you need to do similar setup in ejb-jar.xml and jboss.xml inside meta-inf. Also note that currently Slide uses only Connection Pooling of the J2EE server and does its own TxMgmt. Hope this helps. Regards, Ritu > -----Original Message----- > From: Slide Tao [mailto:[EMAIL PROTECTED] > Sent: Friday, April 09, 2004 3:40 PM > To: [EMAIL PROTECTED] > Subject: what is J2EE store?? > > > hi, > > I have used JDBC Store and File Store, but don't know what is > J2EE store. I > have read the J2EEStore how-too, and still have no idea of > J2EEStore. Who > can tell what it is??? > > and if I want to use J2EEStore, do I need set web.xml and > server.xml as > following?? Any reply would be appreciated. > > web.xml > <resource-ref> > <description>Testing Tomcat-wide datasource usage</description> > <res-ref-name>jdbc/mtx</res-ref-name> > <res-type>javax.sql.DataSource</res-type> > <res-auth>Container</res-auth> > </resource-ref> > > server.xml > <DefaultContext debug="99"> > <Resource name="jdbc/mtx" auth="Container" > type="javax.sql.DataSource"/> > <ResourceParams name="jdbc/mtx"> > <parameter> > <name>user</name> > <value>bar</value> > </parameter> > <parameter> > <name>password</name> > <value>foo</value> > </parameter> > <parameter> > <name>driverClassName</name> > <value>org.hsqldb.jdbcDriver</value> > </parameter> > <parameter> > <name>driverName</name> > <value>jdbc:hsqldb:slide</value> > </parameter> > </ResourceParams> > </DefaultContext> > > _________________________________________________________________ > Add photos to your e-mail with MSN 8. Get 2 months FREE*. > http://join.msn.com/?page=features/featuredemail > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]