Solved

how to deploy the jboss2.2.2?

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
strCount chalenge 3 50
wordmultiple challenge 12 90
HashMap Vs TreeMap 12 49
mockito example issue 8 35
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

760 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now