In a conventional JBoss server, deploying any packages is simple: the archive file to deploy should be copied to the relevant server folder in JBoss. For example, simply copy an archive file to the C:\jboss4\server\default\deploy folder to deploy the module. If JBoss is running it detects the change and dynamically deploys the contents.
When programming using JBoss IDE, there is another way to deploy packages.
In the Project Explorer View right click the calculator.jar file and select Run As > Run on Server context menu:
Select the JBoss 4 EJB 3.0 Server server and click the Next button.
Make sure the calculator.jar is in the Configured projects pane.
Click the Finish button.
In the Console View, you should see some deployment activity. The Session EJB is now deployed:
13:34:47,242 INFO [Ejb3Deployment] EJB3 deployment time took: 297 13:34:47,461 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=calculator.jar,name=StatelessCalculatorBean,service=EJB3 with dependencies: 13:34:47,757 INFO [EJBContainer] STARTED EJB: by.iba.ejb.StatelessCalculatorBean ejbName: StatelessCalculatorBean 13:34:47,851 INFO [EJB3Deployer] Deployed: file:/C:/jboss4/server/default/deploy/calculator.jar
Verify the Remote Bean interface is available now via JNDI.
Open JMX Console in your browser and select the service=JNDIView link:
Invoke the java.lang.String list() method to output JNDI info as text by clicking HTML form button:
You can see in the global JNDI namespace the Remote Interface (StatelessCalculator) is available at the global JNDI name StatelessCalculatorBean/remote.
![]() ![]() ![]() ![]() ![]() ![]() |
![]() |
![]() |