In a conventional JBoss server, undeploying any packages is simple: the deployed archive file should be deleted from the relevant server folder in JBoss. For example, simply delete an archive file from the C:\jboss4\server\default\deploy folder to undeploy the module. If JBoss is running it detects the change and dynamically undeploys the contents.
When programming using JBoss IDE, there are several other ways to undeploy package.
Open J2EE Perspective: Window > Open Perspective > Other... > J2EE.
In the Servers View, expand the JBoss 4 EJB 3.0 Server and right click on calculator.jar EJB module. Select Remove. This will undeploy calculator.jar EJB module.

Another way to undeploy package from JBoss server.
Open JBoss AS Perspective: Window > Open Perspective > Other... > JBoss AS.
In the JBoss Server View, expand the JBoss 4 EJB 3.0 Server / Modules and right click on calculator.jar EJB module. Select Remove. This will undeploy calculator.jar EJB module.

OPTIONALLY: Stop the JBoss server by right clicking and selecting Stop menu item:

|
|
|
|
Hosting provided by PerfoHost: KVM VPS. Unix VPS. Windows VPS. VPN. Domains. Dedicated servers. Colocation.