锘??xml version="1.0" encoding="utf-8" standalone="yes"?>中文字幕免费在线观看,av亚洲精华国产精华精华,eeuss在线观看http://www.aygfsteel.com/yellowstonemay/category/41740.htmlzh-cnSat, 19 Sep 2009 04:54:35 GMTSat, 19 Sep 2009 04:54:35 GMT60create EAR project in glassfish bundle for eclipsehttp://www.aygfsteel.com/yellowstonemay/articles/295649.htmlyellowstoneyellowstoneSat, 19 Sep 2009 03:01:00 GMThttp://www.aygfsteel.com/yellowstonemay/articles/295649.htmlhttp://www.aygfsteel.com/yellowstonemay/comments/295649.htmlhttp://www.aygfsteel.com/yellowstonemay/articles/295649.html#Feedback0http://www.aygfsteel.com/yellowstonemay/comments/commentRss/295649.htmlhttp://www.aygfsteel.com/yellowstonemay/services/trackbacks/295649.html

Finally our project consits of three modules.

  1. EJB module with the  workflow components and also webservices
  2. Web module which contains the business logic of our business process. Things like forms and search pages
  3. EAR module which fits all together an represents the deployment unit which we will provide to our system integrator.
Start your Eclipse Workbench:


Build the EJB Module :
start using the first Eclipse JEE Wizard -> create EJB module

then enter your project name and check on the "EAR member", click next

from next wizard page, choose if to create a EJB  client JAR module and click finish.


Now  your Workspace structure should look like this:


ejb-jar.xml

The ejb-jar.xml deployment descriptor is used to provide unique names of the workflow ejb components. As the ejbs in JEE 5 use annotations to declare there behaviour there is no need for an ejb deployment descriptor. But when you plan to develop more then one application the names of the EJB need to be unique.

sun-ejb-jar.xml

The  sun-ejb-jar.xml descriptor is the glassfish specific descriptor.


Build the Web Module

Now we can create our web project were we put in all our application logic. Start again the Eclipse New-Project-Wizard and select "Web->dynamic web module



click finish, you will get:


Notice that the web project is already added to as a EAR module.
now, you can develop your EJB module and WEB module. After you finish your coding, you can deploy them. It is very simple to do this, just right click the MyFistAppEar project and choose "run on server":

then you can directly choose "finish" on following wizard page:

the myFirstAppEAR will be automatically deployed to glassfish application server.
Hope from console window, you can see following message that prove your deployment is done correctly.
deploy:
     [exec] Command deploy executed successfully.
deploy-url-message:
     [echo] Application Deployed at: http://localhost:8082/myFirstAppEAR


Let us go to glassfish admin console to see what happen on the application server:

and you will see glassfish admin web page:
-->input username admin and password "adminadmin"
-->choose the "Enterprise Application" in the left menu bar
you will see  that myFirstAppEAR is in the list on the right window like following:

click the "myFirstAppEAR", you can see more detail, like EJB module and WEB module in it.



]]>
主站蜘蛛池模板: 威海市| 通山县| 巴林右旗| 聊城市| 通榆县| 麟游县| 曲阜市| 泾川县| 呼伦贝尔市| 南部县| 鄂温| 兴山县| 大新县| 民和| 光泽县| 黄平县| 元谋县| 大英县| 黔西| 吉木乃县| 特克斯县| 定襄县| 南投市| 深水埗区| 布尔津县| 九龙坡区| 闸北区| 阿瓦提县| 城固县| 庆云县| 彰化县| 禹州市| 斗六市| 含山县| 保亭| 卢湾区| 沙洋县| 华蓥市| 苗栗市| 武川县| 定襄县|