Installation of OWL-S/UDDI matchmaker and juddi

Source: Internet
Author: User
Tags mysql command line
OWL-S/UDDI matchmaker and general juddi both need to deploy a juddi application folder under the web server, so in order to avoid conflict, we run OWL-S/UDDI matchmaker and normal juddi on two different servers.
OWL-S/UDDI matchmaker
For its installation, you only need to find the help documentation that comes with it, and it is easy to install and perform tests;
I use tomcat-5.5.17 + mysql5.5.
After the installation is successful, there is a juddi folder under the webapps folder under tomcathome, and a new database juddi is created under MySQL;
Next, you can make your own applications.
2. Common UDDI
I use Tomcat 5.0.30 + mysql5.5. Some people have reported that Tomcat 5.5 conflicts with juddi.
1. Download mysql-5.0.13-rc-win32.zip from mysql's official website and install it in c: \ Program Files \ mysql \ MySQL Server 5.0.
2.download juddi-0.9rc4.zip from the apacheofficial website, decompress it, copy juddi. War to .. \ Tomcat \ webapps \, or copy the folder juddi to this directory ;.
3. From http://www.mysql.com/downloads/api-jdbc-stable.html,
Download mysql-connector-java-3.0.17-ga.zip, unzip the mysql-connector-java-3.0.17-ga-
Copy bin. jar to ../tomcat/common/lib/(and add it to the environment variable) ../tomcat/webapps/juddi/Web-
INF/lib.; in addition, you need to add three important packages to./tomcat/common/lib/, respectively
Yes: mail. jar, activation. jar, tools. Jar (this package can be found in % java_home % \ Lib). If not, add another package.
Xerces. jar.
The following are the key steps:
4 into the juddi-0.9rc4 \ SQL \ mysql, (because I am using MySQL database), there are three files, read readme first, follow the instructions in readme operations.
To save time, I will write down the steps:
1) Open the MySQL command line tool and enter it as the root user. Enter "\. {path} \ create_database. SQL". By default
Create a juddi database in the database. Generally, this is acceptable. However, since I have previously installed the semantic juddi, a different database storage is required to avoid conflicts.
You can start create_database. SQL before executing this step, replace all the juddi in it with the name of the database you want to create
Change insert_publisher. SQL together;
2) If the previous step is successful, perform this step. Edit insert_publisher. SQL and change it to the following:
Use 'databasename ';
-- Insert into publisher (publisher_id, publisher_name, email_address, is_enabled, is_admin) values ('juddi ', 'juddi', 'Li. yong@apache.org ', 'true', 'true ');
You can modify the name of the content enclosed in quotation marks;
In the same step, you can run this file in MySQL one by one.
3) Verify: Check the database juddi. If you see the information set in step 2 in the publisher table, the data is successfully created.
5. database connection:
Go to the % atat_home % \ conf directory and edit the server. xml file.
In general, add the following root element defacontext context to the <Defacontext context reloadable = "true" crosscontext = "true">
<Resource Name = "JDBC/juddidb" Scope = "retriable" type = "javax. SQL. datasource"/>
<Resourceparams name = "JDBC/juddidb">
<Parameter>
<Name> username </Name>
<Value> username </value>
</Parameter>
<Parameter>
<Name> password </Name>
<Value> password </value>
</Parameter>
<Parameter>
<Name> URL </Name>
<Value>
JDBC: mysql: // localhost/juddiws
</Value>
</Parameter>
<Parameter>
<Name> driverclassname </Name>
<Value> org. gjt. Mm. MySQL. Driver </value>
</Parameter>
</Resourceparams>
</Defaultcontext>
The username juddi and password juddi are the passwords used to connect to the database. In the next step, set JDBC: mysql: // localhost/databasename to the database name you just created. Save.
Restart the server.
6. Authorize database connection: execute the following SQL command:
Insert into publisher (publisher_id, publisher_name, email_address, is_enabl
Ed, is_admin) values ('username', 'Password', 'juddi @ apache.org ', 'true', 'true ');
Username, password is the user name and password in step 1.
7. Now, the general juddi has been installed. Test the installation by entering http: // localhost: 8080/juddi/happyjuddi. jsp. If no red font is displayed, the installation is basically successful;

The following describes how to use the juddi client to test juddi:
Generally, the uddi4j API of UDDI is used as the client.
Here I borrow a post shared by sijipeng in w3cchina, http://webservice.org.cn/dispbbs.asp? Boolean id = 10 & id = 39472
Create a project named uddi4jdemo
Introduce package uddi4j. jar, soap. Jar (download in http://www.apache.org/dyn/closer.cgi/ws/soap)
In the uddi4j sample
Samples. Prop aggregator. Java savebusinessexample. Java findbusinessexample. Java,
It is best to import the preceding package in the compilation path of the project: mail. jar, activation. jar, tools. jar.
Publisherassertionexample. Java is placed under the default package of the project.
Because juddi has just been installed and no user is inserted, insert the user here (this step has been completed in step 2nd of step 4 and does not need to be repeated)
Insert into publisher (publisher_id, publisher_name, email_address, is_enabled, is_admin)
Values ('juddi ', 'juddi', 'juddi @ apache.org ', 'true', 'true ')
Open the samples. Prop file and modify the parameters.
Set URL
Inquiryurl = http: // localhost: 8080/juddi/inquiry
Publishurl = http: // localhost: 8080/juddi/publish
Set
Userid = juddi---the one you just set or the one you set in step 4th
Password = juddi---the one you just set or set in step 4th
This is the default setting for soap transport.
Transportclassname = org. uddi4j. Transport. apachesoaptransport
You can also use axis. At this time, the value is set to org. uddi4j. Transport. apacheaxistransport. However, the added package is not soap. jar and you need to download the axis package.
Running result
Run savebusinessexample. Java
* ********* Running savebusinessexample ***********
Get authtoken
Returned authtoken: 60bdf210-6641-11db-a066-bc0be7d6eeb5
Save 'sample business'
Returned businesskey: 60df35b0-6641-11db-a066-a0b53ce33e0e
Listing businesses starting with s after we publish
Sample business
Sample business
Sample business

RUN findbusinessexample. java
*********** running findbusinessexample ************
sample business
sample business

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.