JBoss datasource configuration

JBoss, a good open source server, I won't say much about the related introduction.

 

Is a server, you can manage the data source. For example, there are many applications running on the server, and each application has its own data source name. At this time, we can hand over the management of the data source to the server.

Of course, it is not what you want to give, it must be done according to the management mechanism of the server.

 

First, we need to copy our database driver files to the server\default\lib directory

Then, write the data source connection file as required. The format can refer to the sample given by JBoss. The directory of the sample is: jboss-4.2.2.GA\docs\examples\jca, for example

The configuration file of oracle is: oracle-ds.xml

Finally, copy the edited file to the directory server\default\deploy

 

Description: Data source file name naming rules *-ds.xml. After configuration, start Jboss, open the browser, visit http://localhost:8082/jmx-console/, click jboss.jca on the left side of the page, and you can view the configured data source information on the right side

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326308887&siteId=291194637