当前位置: 技术问答>java相关
请问如何将这段代码改到EJBTESTCLIENT中?
来源: 互联网 发布时间:2015-05-11
本文导语: 请问如何把这段客户端程序改到JBUILDER中的EJBTESTCLIENT的MAIN函数中呢? public class CountClient { try { Properties props=System.getProperties(); Context ctx=new InitialContext(props); CountHome Home=(CountHome)...
请问如何把这段客户端程序改到JBUILDER中的EJBTESTCLIENT的MAIN函数中呢?
public class CountClient
{
try
{
Properties props=System.getProperties();
Context ctx=new InitialContext(props);
CountHome Home=(CountHome)ctx.lookup("CountHome");
Count count[]=new Count[3];
int countVal=0;
System.out.println("Instantiating Bean......") ;
for (int i=0; i
public class CountClient
{
try
{
Properties props=System.getProperties();
Context ctx=new InitialContext(props);
CountHome Home=(CountHome)ctx.lookup("CountHome");
Count count[]=new Count[3];
int countVal=0;
System.out.println("Instantiating Bean......") ;
for (int i=0; i