Home
Architecture
WebApps
Database
Administration
Web Search
News
Java Servers
Web Services
Enterprise
Learning
Contact Us
JumpPoint - Java - EJB - Servlets - JSP - JMS - JNDI - JDBC - RMI
Ok now for a little magic. The EJB we created compiles. But it isn't running anywhere yet. But we have built a connection to WebLogic established. So let's see what JDeveloper can do with this connection. It turns out that since JDeveloper "knows about" our WebLogic server it can load an EJB into it.
So that's what we're going to do. There will be plenty of instructions here. If you get stuck, you can also check JDeveloper Help - which provides an overview of the process.
First, again, make sure WebLogic is started if you haven't already. Now we'll create a deployment for it.
Now you're ready to deploy.
Point to the ejb1.deploy in the Navigator menu, Right click so the menu displays Select "Deploy to" and "WebLogicServer."
Point to the ejb1.deploy in the Navigator menu,
Right click so the menu displays
Select "Deploy to" and "WebLogicServer."
If all goes well you will see the following messages at the bottom of the screen:
Sending EAR file to remote WebLogic server... E:\Programs\jdevrc2\jdk\jre\bin\javaw.exe -Ddeploy.debug=true -classpath E:\bea\wlserver6.1\lib\weblogic.jar weblogic.deploy -username system -host authoriz-nh1pet -port 7001 -debug -component ejb1:myserver deploy password ejb1 file:/E:/Programs/jdevrc2/jdev/mywork/Workspace1/Project1/ejb1.ear Component = ejb1 Server = [Ljava.lang.String;@1 adminUrl = t3://authoriz-nh1pet:7001 url=t3://authoriz-nh1pet:7001 Admin Server Http Url = http://authoriz-nh1pet:7001 [deploy] : deploying ejb1 mydomain:Name=ejb1,Type=Application Getting the LogBroadcasterRuntimeMBean ... Admin Server URL = http://authoriz-nh1pet:7001 Uploaded file = ejb1.ear Upload file = .\config\mydomain\.wlstaging\ejb1.ear mydomain:Name=ejb1,Type=Application Verifying components ... mydomain:Name=myserver,Type=Server [deploy] : adding target : myserver for: ejb1 Verifying components ... setTargets() ... Component = ejb1 Server = myserver setDeployed(true) ... deployApplication ... [deploy$DeploymentListener] : handleNotification [deploy$DeploymentListener] : notification type: weblogic.log.J2EE.160003 MSGID = 160003 SUBSYSTEM = J2EE INFO Notification Setting logNotificationReceived to true. Done deploying ejb1 with .\config\mydomain\.wlstaging\ejb1.ear ---- Deployment finished. ---- Apr 26, 2002 11:46:02 AM You can now go to the WebLogic console to verify that "ejb1.jar" shows up in the deployed EJBs.
You can now go to the WebLogic console to verify that "ejb1.jar" shows up in the deployed EJBs.
On to ==> Run the EJB