From: David J. <dav...@ad...> - 2003-04-14 23:04:31
|
I might have missed something but I think everything you show is fine. You might not need the manifest classpath reference. david jencks On 2003.04.14 10:22 Percy Christian wrote: > So as you suggested I created an ear file. > All that works perfectly now thanks for the suggestion. > I had to perform that job a long time but I have always delayed it. > This was the right time to force me to do my homework. > > Now I also followed with interest the discussion on the: > SAR datasource dependency > > I am using a MYSQL database in my (jboss-3.2.0RC4_tomcat-4.1.18) > installation. > I read in that thread that I could also deploy the > mysql-opentastrader-ds.xml as well as the > mysql-connector-java-3.0.6-stable-bin.jar which would be very need of > course as it would relieve me from the job of configuring these items on > each new JBoss installation. > Sadly enough I am not so experienced as the guys conversation on how to > do > it. > I will resume what I understood and maybe someone can then fill in my > gabs > and correct my misassumptions. > > I simply add both the mysql-opentastrader-ds.xml and the > mysql-connector-java-3.0.6-stable-bin.jar in the root of my ear. > > They mentioned: > You should also be able to deploy then explicitly inside an .ear by > mentioning them as service modules in a jboss-app.xml next to > application.xml > In my ear I have to create a jboss-app.xml in the META-INF directory. > That file should contain > > <jboss-app> > <module> > <service>mysql-opentastrader-ds.xml</service> > </module> > <module> > <service>mysql-connector-java-3.0.6-stable-bin.jar</service> > </module> > </jboss-app> > > I also have in that directory an application.xml file. I am not sure if I > > have to add anyting in there. For the moment contains: > > <application> > <display-name>Opentas Trader</display-name> > <description>Trader for opentas</description> > > <module> > <ejb>opentastraderDeployment.jar</ejb> > </module> > > </application> > > Then the said something of a Class-Path: Manifest entry from the EAR file > Class-Path: thedriver.jar > > What do the mean with thedriver.jar should that be > mysql-connector-java-3.0.6-stable-bin.jar? It is confusing for me as > this > was the very first time they mention thedriver.jar! > > And finally they spoke about adding something in the (I presume) > -ds.xml > file > > <datasources> > <classpath codebase="path-in-ear" archives="yourjdbc.jar"/> > <!-- regular datasource definition goes below --> > ... > </datasources> > > should I read that as > > <datasources> > <classpath codebase="" > archives="mysql-connector-java-3.0.6-stable-bin.jar"/> > <local-tx-datasource> > <jndi-name>OpentasTraderDataSource</jndi-name> > <connection-url>jdbc:mysql://localhost:3306/opentastrader</connection-url> > <driver-class>com.mysql.jdbc.Driver</driver-class> > <user-name>opentas</user-name> > <password>opentas</password> > </local-tx-datasource> > </datasources> > > Are there any other dependencies I have to add in the manifests of my > other > jars or are those independent from that? > > Thanks very much for any enlightments. > > Percy Christian > > > _________________________________________________________________ > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > JBoss-user mailing list > JBo...@li... > https://lists.sourceforge.net/lists/listinfo/jboss-user > > |