Solved

how to deploy the jboss2.2.2?

Posted on 2002-03-15
2
215 Views
Last Modified: 2010-03-31
hi everybody,
  I try to run an very simple entity bean with CMP at jboss2.2.2. I use mySQL database, and I have copied the mySQL JDBC driver jar file to the jboss\lib\ext directory.
I also can write a JAWS file for my bean, the problem is that i don't know how to change some files under the jboss\conf\default directory.
thanks.
0
Comment
Question by:lisayan
  • 2
2 Comments
 

Accepted Solution

by:
cxj97c earned 50 total points
ID: 6871597
Hi

I am not sure exactly what your problem is but, the files that you need to change in the jboss\conf\ is jboss.jcml!!

jboss.jcml:
Add "org.gjt.mm.mysql.Driver," to the other list of drivers

Note, don't forget the comma. The line should read something like:

     <attribute name="Drivers">org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver</attribute>


<mbean code="org.jboss.jdbc.XADataSourceLoader" name="DefaultDomain:service=XADataSource,name=mySQLDB">
<attribute name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl</attribute>
<attribute name="PoolName">mySQLDB</attribute>
<attribute name="URL">jdbc:mysql://host/databasename</attribute>
<attribute name="JDBCUser">username</attribute>
<attribute name="Password">password</attribute>
</mbean>

hope it helps.
0
 

Expert Comment

by:cxj97c
ID: 6871606
Also make sure that "mySQLDB" part matches to the one in standardjaws.jcml

0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
egit plugin on eclipse 8 82
login jsp example 24 68
ejb stateless example 2 27
printf performancy 11 71
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question