Java EE Tutorial Instance installation

Source: Internet
Author: User
Tags config resource client
J2ee
This section describes the installation of each representative instance, the original English document is located in the following path: j2ee1.4/samples/docs/list.html





Duke ' s Bookstore



1 compile.

Switch to j2ee1.4 Amples\webapps\bookstore\bookstore1 RC

1 Execute asant clean., this is clear



2 Execute Asant Core, which is compiled





2 Start the Pointbase database and prepare the data



1) Execute <pointbase_install_dir>/tools/serveroption/startserver.bat script

2) Start server



3) Switch to j2ee1.4 Amples\webapps\bookstore\bookstore1 RC, run:

Asant Deploy







3 run



In the browser type: Http://






4 Build Javadoc



Run under the j2ee1.4 amples\webapps\bookstore\bookstore1 RC:

Asant Javadocs







Stateless Sessionbean



location:j2ee1.4 AMPLES/EJB/STATELESS/SIMPLE/SRC







Stateful Sessionbean-cartbean

location:d:\devs\j2ee1.4 AMPLES\EJB tateful imple RC

Run:



CD <install_dir>/domains/<domain_name>/applications/j2ee-apps/stateful-simple/



Run:appclient-client Stateful-simpleclient.jar-name Cartclient–textauth







CMP Customer



location:d:\devs\j2ee1.4 Amples\ejb\cmp\cmpcustomer RC

1 Establish a JDBC connection resource on the console named: Jdbc/cmpcustomer



2 Creating connection pools: Cmpcustomer-pool



run:http://localhost:8080/customer/







Storagebin (bmp-simple) application



location:d:\devs\j2ee1.4 amples\ejb\bmp imple RC



How to Run:



In:d:\devs\j2ee1.4\domains\domain1\applications\j2ee-apps\bmp-simple



Run:



Appclient-client Bmp-simpleclient.jar-name Storagebinclient-textauth







Mdb

location:d:\devs\j2ee1.4 Amples\ejb\mdb imple RC





Defining resources

1 log on to the server, click Connection factories at the Java Message Service, and then select New



2 Input:



JNDI-NAME:JMS/MYQCF Type:javax.jms.QueueConnectionFactory resource:select Enabled checkbox



3 Click Destination Resources Point New, enter:



Jndi-name:jms/myqueue Type:javax.jms.Queue resource:select Enabled checkbox







4 run:



In:d:\devs\j2ee1.4\domains\domain1\applications\j2ee-apps\mdb-simple



Run



Appclient-client mdb-simpleclient.jar-name Simplemessageclient–textauth-xml D:\Devs\J2EE1.4\domains\domain1\ Config Un-acc.xml











The installed instance and run path are as follows:

Name



Url



Duke ' s Bookstore

Http://localhost:8080/bookstore1/enter



Stateless Sessionbean

Http://localhost:8080/helloworld



Stateful

D:\Devs\J2EE1.4\domains\domain1\applications\j2ee-apps Tateful-simple







Appclient-client Stateful-simpleclient.jar-name Cartclient–textauth



Cmp

http://localhost:8080/customer/



Bmp

D:\Devs\J2EE1.4\domains\domain1\applications\j2ee-apps\bmp-simple







Appclient-client Bmp-simpleclient.jar-name Storagebinclient-textauth



Mdb

D:\Devs\J2EE1.4\domains\domain1\applications\j2ee-apps\mdb-simple







Appclient-client mdb-simpleclient.jar-name Simplemessageclient–textauth-xml D:\Devs\J2EE1.4\domains\domain1\ Config Un-acc.xml




Related Article

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.