关于j2ee tutorial中的Packaging the Enterprise Application Client ???
wgwhn 2003-12-15 08:29:58 在j2ee tutorial中介绍session bean部分,给了些例子,然后配置,用j2ee1.4.2 application server中的DeployTool工具打包客户端应用程序:
Packaging the Enterprise Application Client
Create a new application client in RosterApp by selecting FileNewApplication Client.
In the JAR File Contents screen:
Select RosterApp under Create New AppClient Module in Application.
Enter RosterClient under AppClient Name.
Click Edit.
Navigate to <INSTALL>/j2eetutorial14/examples/ejb/cmproster/build/.
Select the client and util directories.
Click Add.
Click OK.
Click Next.
In the General screen:
Select client.RosterClient under Main Class.
Select (Use container-managed authentication) under Callback Handler Class.
Click Next.
Click Finish.
之后,执行下面步骤:
Setting the Enterprise Bean Reference
Select RosterClient in deploytool's tree.////没有RosterClient这一节点???
Select the EJB Refs tabbed pane.
Click Add.
In the Add Enterprise Bean Reference dialog:
In the Coded Name field enter ejb/SimpleRoster.
In the EJB Type field select Session.
In the Interfaces field select Remote.
In the Home Interface field enter roster.RosterHome.
In the Local/Remote Interface field enter roster.Roster.
Click OK.
Select the row you just added.
Under Sun-specific Settings for ejb/SimpleRoster select JNDI Name.
In the JNDI Name field select RosterEJB.
Select FileSave.
怎么看不到没有RosterClient节点????
无论我做多少次Packaging the Enterprise Application Client ,总是看不到RosterClient这一节点,
其他例子也是这样,总是看不到 ...Client节点??????????