Solved

how to deploy the jboss2.2.2?

Posted on 2002-03-15
2
217 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
The viewer will learn how to implement Singleton Design Pattern in Java.
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.
Suggested Courses

635 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