Glad to help! I did this just last week with the BETA PROD 1 binary under
RedHat 6.2. Very nice!!
To jboss.conf, add
<!--
-- For using Oracle for JBoss CMP. From jBoss CVS
jbossweb/manual/adv_config.html
--
-->
<MLET CODE="org.jboss.jdbc.XADataSourceLoader"
ARCHIVE="jboss.jar,classes12_01.zip" CODEBASE="../lib/ext/">
<ARG TYPE="java.lang.String" VALUE="[PoolName]">
<ARG TYPE="java.lang.String"
VALUE="org.jboss.minerva.xa.XADataSourceImpl">
</MLET>
To jboss.jcml, add
<mbean name="DefaultDomain:service=XADataSource,name=[PoolName]">
<attribute name="URL">jdbc:oracle:thin:@[hostname]:1521:[SID]</attribute>
<attribute name="JDBCUser">scott</attribute>
<attribute name="Password">tiger</attribute>
</mbean>
Substitute your pool name for [PoolName], your hostname for [hostname]
(localhost works for me), and your Oracle SID for [SID].
Close jboss.jcml before starting jBoss--it will add a lot of other
attributes to the Oracle mbean tag.
Hey, to anyone trying to run the O'Reilly "Enterprise Java Beans, 2d ed"
examples, I got the Ch 4 cabin bean loaded in jBoss and accessed with the
Client_1.java example. I can post the jaws.xml, jboss.xml, etc. here if
y'all want it (along with notes on the pitfall that almost killed it!).
At 16:09 10/2/2000 +0200, Marcel Ruff wrote:
>Hi,
>
>i have some problems getting jboss configured
>with Oracle 8.1.6 on Linux.
>I am using the new Oracle thin JDBC driver
>classes12_01.jar and the jboss from today (using cvs).
>
>I followed the hints in bugzilla etc.:
>
>- cp classes12_01.jar to JBOSS_HOME\lib\ext
>
><MLET CODE="org.jboss.jdbc.DataSourceImpl"
>ARCHIVE="jboss.jar,jdbc2_0-stdext.jar,classes12_01.jar"
>CODEBASE="../lib/ext/">
> <ARG TYPE="java.lang.String"
>VALUE="jdbc:oracle:thin:@localhost:1521:Marcel">
> <ARG TYPE="java.lang.String" VALUE="Oracle">
> <ARG TYPE="java.lang.String" VALUE="oracle.jdbc.driver.OracleDriver">
> <ARG TYPE="java.lang.String" VALUE="Marcel">
> <ARG TYPE="java.lang.String" VALUE="Marcel">
></MLET>
>
>added
>jdbc.drivers=org.hsql.jdbcDriver,jdbc.idbDriver,oracle.jdbc.driver.OracleDriver
>
>
>When starting jboss i get the following error:
>
>...
>[Classpath] Added
>library:file:/home/dekra/jboss.cvs/dist/lib/ext/classes12_01.jar
>...
>[Configuration] Initialized
>javax.management.ReflectionException: The MBean class could not be
>loaded by the specified loader
> at
>com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:754)
> at javax.management.loading.MLet.getMBeansFromURL(MLet.java:540)
> at javax.management.loading.MLet.getMBeansFromURL(MLet.java:369)
> at org.jboss.Main.<init>(Main.java:119)
> at org.jboss.Main.<init>(Main.java:94)
> at org.jboss.Main$1.run(Main.java:84)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.jboss.Main.main(Main.java:75)
>
>
>Is there anybody out there who has Oracle running with jboss
>and can give me a hint what i do wrong?
>
>thanks,
>
>Marcel
>
>
>--
>Marcel Ruff
>mailto:[EMAIL PROTECTED]
>http://www.lake.de/home/lake/swand/
>http://www.xmlBlaster.org
>
>
>--
>--------------------------------------------------------------
>To subscribe: [EMAIL PROTECTED]
>To unsubscribe: [EMAIL PROTECTED]
>Problems?: [EMAIL PROTECTED]
--------------------------------------------------------------------------
Thad Humphries "Who is this that darkens my counsel
Web Development Manager With words without knowledge?"
Phone: 540/675-3015, ext. 225 - Job 38:1, NIV
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]