简体   繁体   中英

how to run simple ejb program?

I use myeclipse and jboss5.0.1 server.mysql is the database that i use.

I want to run simple ejb program on myeclipse.

Assuming the program is a jar file containing EJB's, the basic steps to go through for running an EJB Project through eclipse are:

  • Import / create the project in your workspace as an "EJB Project" ie File > New > EJB Project. This will add the facets to allow you to deploy on your server.
  • Register the JBoss application server with eclipse. Window > Preferences > Server > Runtime Environment > Add
  • Right click the EJB Project and select Run As > Run On Server and select Manually define a new server. Then select JBoss.

You should then be able to start and stop the server through myeclipse.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM