We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 32
Setup EJB 3 Message Driven
Bean(MDB) on Oracle Weblogic
11gR1(10.3) using Eclipse Create a new EAR project which will hold the MDB EJB EAR version 1.4 indicates that J2EE 5.0 Server Tools are currently not installed. If installed, EAR version 5.0 would be available. J2EE 5.0 Server Tools are required for this presentation To install J2EE 5.0 Server Tools, create a new Server Environment Click on “Download Additional Server Adapters” Choose Oracle Weblogic Server Tools and click Next Accept and click Finish Choose Oracle Weblogic Server 11gR1 and click Next Give a name to the Server Environment and click Finish Go back to Create EAR Project Wizard and create a new project Give a name to the Project. Choose the Runtime as created in the previous step. Choose EAR version 5.0. Leave the rest as defaults. Make sure Generate Deployment Descriptor is checked EAR project is created with the circled contents. To create an MDB, create a new EJB Project Give a name to the EJB project. Make sure the project is added to EAR created previously. Leave everything to defaults and click Finish Add Message Driven Bean to the EJB project just created Enter Java Package, Class name and the JNDI of the destination, Queue in this example. Leave everything to defaults and click Finish MDB gets created with the above contents Deploy the EAR bundled along with EJB and Run on Server Choose a Weblogic Server and click Next Give a name to Server and leave everything as default and click Next Click Next Click Next Click Finish. EAR Project would be running on Server To make sure that the MDB is deployed properly, create a MessageGenerator class that adds a message to the queue. Running the class from Eclipse typically results in the above Exception For the class to run from Eclipse, make sure that you remove “WebLogic System Libraries” Add weblogic.jar to the MessageGenerator “Run Configurations…” THANK YOU