the subsystem of the container, so it is loaded under profile because you do not know what data source to use, there is no module in the extensions that was previously loaded by default that specifies this data source-driven module. We need to load in The module attribute in the,* Here is actually a two driver, one is the general DataSource one is xa-datasource,xa-data
Tags: des blog http io ar os java for SPhttp://blog.csdn.net/bo_hai/article/details/6076979Configuration template for Oracle-ds.xml in JBOSS. Code templates:
Here is a couple of the possible OCI configurations.For more information, see http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/java.920/a96654/toc.htmOrClearly, its better to has TNS set up properly.---
PS (Postscript): Above
" VARCHAR2 (ten bytes ) DEFAULT NULL, PRIMARY KEY ("EMPID") ); INSERT into employee (Empid,name) VALUES ("Pankaj"), insert into employee (Empid,name) VALUES (5, ' Kumar '); INSERT INTO EM Ployee (Empid,name) VALUES (1, ' Pankaj '); commit; Now let's move on to our Java programs. For have database configuration loosely coupled, I'll read them from property file.Db.properties#mysql DB Propertiesmysql_db_driver_class=com.mysql.jdbc.drivermysql_db
Problems encountered and to be solved in the company project1: In principle, in addition to their own code, the public jar should not be packaged in the ear, so the package is too large, also does not conform to the layered logic, inside the JBoss container, each ear of the packet repeat jar will be transferred to the internal JBoss, resulting in a waste of excessive server resources, An occasional exceptio
JBoss Welcome interface by visiting: http://localhost:8080, click on the JMX console under JBoss Management to enter JBoss's console.
Failure to start can be caused by the following reasons:
1 The port used by JBoss (8080,1099,1098,8083, etc.) is occupied. Typically 8080 ports are occupied (for example, Oracle occupie
(build:svntag= 5.0.BETA4 date=20080831605)] started in 30s:828ms indicates successful installation.
We can access the JBoss Welcome interface by visiting: http://localhost:8080/, click on the JMX console under JBoss Management to enter JBoss's console.
Failure to start can be caused by the following reasons:
1 The port used by JBoss (8080,1099,1098,8083, etc.) i
: "D: j2sdk1.4.2 _ 06in; D: jboss4.0in"
4. Configure JBoss in JBuilder, select Config servers of Tools, select JBoss3 +, select Enable server, and specify Home Directory.
5. Configure and test the Oracle9i data source in JBoss. Oracle has become a very popular enterprise-level database with its stability and reliability. To configure
" in the variable Value (V) column. Jboss_home value is: d:jboss4.0, add path: "d:j2sdk1.4.2_06in; d:jboss4.0in "
4, configure JBoss in JBuilder, select the Config servers of tools, then select jboss3+, select Enable server, specify home directory.
5. Configuring oracle9i data sources in JBoss and testing, Oracle becomes a very popular enterprise database with
(RIP: Because JBOSS6 uses the structured management of class Maven, that is, not to 4, the jar is basically in a Lib directory, but is introduced through the concept of module, and the module allows for the provision of dependencies and exclusions, You can also globally configure the priority of the jar in the module ingestion and service pack, and of course the most troublesome is hibernate conflict, because it is stoned to its
when removeabandoned is true;Logabandoned: If the interrupt event is logged, the default is false;C3P0 Data sourceC3P0 is an open source JDBC data source implementation project that is published in the Lib directory with Hibernate and implements the Connection and statement pools for JDBC3 and JDBC2 extension specification descriptions. The C3p0 class package is located in/lib/c3p0/c3p0-0.9.0.4.jar. Here is an Oracle data source configured using C3P0
and monitor their running status. When deploying an application, a war package only needs to be deployed to the group, all JBoss servers in the group are automatically deployed.
The configuration steps are as follows:
Environment:
Windows, JBoss EAP 6.3
Machine resources:
172.21.129.181 (master), 172.21.129.57 (slave57), 172.21.129.128 (slave128)-that is, 181 is
Soapui using-datasource to obtain parameters from the Oracle LibraryDownload MySQL and Oracle driver Pack: Http://pan.baidu.com/s/1i3sy1MHPut it under program files\smartbear\soapui-pro-5.1.2\bin\ext\.Restart SoapuiHere is an example of how to connect an Oracle library to get parameters:1, insert a step in the request,
test the success of your installation by:
Run the JBoss installation directory "Bin" Run.bat, if no exception appears in the window, and appears:
10:11:08,656 INFO [Serverimpl] JBoss (Microcontainer) [5.1.0.GA (build:svntag=Jboss_5_1_0_ga date=200905221634)] started in 1m:6s:110ms indicates successful installation.
We can access the JBoss Welcome interface by
1. Configure the data sourceTaking MySQL database configuration as an example, {JBOSS_HOME} is the installation directory of Jboss4.0.2.1, find the mysql-ds.xml under {jboss_home}/docs/examples/JCA, if ms SQL Server is the mssql-ds.xml;If it's oracle, it's oracle-ds.xml.2, modify the mysql-ds.xml's JNDI-name, connection-URL, driver-class, user-name, password elem
will set a resource called in the component naming context (component naming contexts) jdbc/mydatasource . The component naming context is represented by a prefix java:comp/env/ , so the fully qualified local resource name is: java:comp/env/jdbc/mydatasource .Using JNDI to get a data sourceConnection conn=NULL;Try{Context CTX=NewInitialContext (); Object Datasourceref=ctx.lookup ("Java:comp/env/jdbc/mydatasource"); DataSource DS=(
interface and click on the JMX console under JBoss Management to access the JBoss console. If the startup fails, it may be caused by the following reasons:the port used by JBoss (8080,1099,1098,8083, etc.) is occupied. Typically, 8080 ports are occupied (for example, Oracle occupies 8080 ports) and
interface and click on the JMX console under JBoss Management to access the JBoss console. If the startup fails, it may be caused by the following reasons:the port used by JBoss (8080,1099,1098,8083, etc.) is occupied. Typically, 8080 ports are occupied (for example, Oracle occupies 8080 ports) and
In view of the online search is not full, or write a, record, easy to browse later
1. Download Jboss-5.1.0.ga
2. Configure the JBOSS environment variable (optional)
(1) System variable NEW: Jboss_home path: D:\jboss\jboss-5.1.0.GA
(2) system variable path increased:%jboss_home%\bin
3. Configuring the
JBoss has a default data source Defaultds, and he uses the JBoss built-in HSQLDB database. In practical applications you may use different databases, such as MySQL, MSSQLServer, Oracle, and so on. Data source configuration templates for various databases you can find in the Jboss
Modify the Tomcat port to open the server under Tomcat directory --> Tomcat 5.5 --> conf -->. XML file. Modify the port. export
2. Modify the jboss4.0.2 port because the JBoss port is 8080, which is in conflict with Oracle and tomcat. Therefore, I decided to modify its port number. Open the JBoss directory --> jboss-4
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.