In my previous blog, I made the code examples available for first four chapters of EJB 3 In Action for WebLogic 10. However I did not provide you instructions to run these examples (Chapter 2-4) for WebLogic 10.
Chapter 3 depends upon a JDBC DataSource and Chapter 4 uses JDBC DataSource and a JMS Queue.
- Download examples from here and unzip to a directory say c:\ejb3inaction\weblogic
- Set the environment variables for your server as follows:
%BEA_HOME%/wlserver_10.0/samples/domains/wl_server/setExamplesEnv
- Change to your directory to the directory
cd c:\ejb3inaction\weblogic
ant CreateResources
This will configure resources such as JDBC DataSource, JMS Connection Factory, Queues, etc.
4. To deploy the application, you can use WLS Admin Console. If you prefer you can use ant to deploy the application for a specific chapter.
cd chapter2
ant
- To run the application client:
ant run
1 comment:
Interesting Article
EJB 3 Online Training | Java Online Training
Java Online Training from India | Core Java Online Training
Post a Comment