Solved

how to deploy the jboss2.2.2?

Posted on 2002-03-15
2
214 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
JDeveloper 12c for 32 bit 4 85
Java JRE greater than 1.6 5 63
java jdbc batch example 8 35
servlet example 17 32
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
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…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

809 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