//package com.ilucky.ejb;
//
//import javax.naming.Context;
//import javax.naming.NamingException;
//
//import com.ilucky.ejb.service.HelloWorld;
//
//public class Client {
//
// public static void main(String[] args) {
// HelloWorld bean = doLookup();
// System.out.println(bean.sayHello()); // 4. Call business logic
// }
//
// private static HelloWorld doLookup() {
// Context context = null;
// HelloWorld bean = null;
// try {
// // 1. Obtaining Context
// context = ClientUtility.getInitialContext();
// // 2. Generate JNDI Lookup name
// String lookupName = getLookupName();
// // 3. Lookup and cast
// bean = (HelloWorld) context.lookup(lookupName);
//
// } catch (NamingException e) {
// e.printStackTrace();
// }
// return bean;
// }
//
// private static String getLookupName() {
// /*
// * The app name is the EAR name of the deployed EJB without .ear suffix.
// * Since we haven't deployed the application as a .ear, the app name for
// * us will be an empty string
// */
// String appName = "";
//
// /*
// * The module name is the JAR name of the deployed EJB without the .jar
// * suffix.
// */
// //String moduleName = "ejbmavendemo-1.0-SNAPSHOT";
// String moduleName = "ilucky-ejb-3.0-0.0.1-SNAPSHOT";
//
// /*
// * AS7 allows each deployment to have an (optional) distinct name. This
// * can be an empty string if distinct name is not specified.
// */
// String distinctName = "";
//
// // The EJB bean implementation class name
// String beanName = "HelloWorldBean";
//
// // Fully qualified remote interface name
// // final String interfaceName = "com.theopentutorials.ejb3.HelloWorld";
// final String interfaceName = "com.ilucky.ejb.service.HelloWorld";
//
// // Create a look up string name
// String name = "ejb:" + appName + "/" + moduleName + "/" + distinctName
// + "/" + beanName + "!" + interfaceName;
//
// return name;
// }
//
//}
没有合适的资源?快使用搜索试试~ 我知道了~
使用eclipse通过weblogic开发简单的ejb应用(weblogic 10.x & ejb3.x)
共32个文件
java:7个
prefs:6个
xml:6个
需积分: 50 10 下载量 118 浏览量
2017-08-21
11:51:37
上传
评论
收藏 46.33MB ZIP 举报
温馨提示
使用eclipse通过weblogic开发简单的ejb应用(weblogic 10.x & ejb3.x)
资源推荐
资源详情
资源评论
收起资源包目录
weblogic10.x&ejb3.x.zip (32个子文件)
ilucky-ejb-3.0-weblogic-client
pom.xml 5KB
.settings
org.eclipse.m2e.core.prefs 90B
org.eclipse.core.resources.prefs 155B
org.eclipse.jdt.core.prefs 243B
src
test
java
main
webapp
WEB-INF
web.xml 623B
classes
springmvc.xml 1KB
test 2KB
log4j.properties 572B
core.properties 235B
lib
test.jsp 849B
resources
study 10KB
conf.properties 23B
java
com
ilucky
ejb
servlet
TestServlet.java 1003B
ClientUtility.java 2KB
EJBDemoTest.java 1KB
Client.java 2KB
DataObject.java 136B
.project 582B
.classpath 1KB
dependency-reduced-pom.xml 3KB
wlfullclient.jar 52.46MB
ilucky-ejb-3.0-weblogic
pom.xml 2KB
.settings
org.eclipse.m2e.core.prefs 90B
org.eclipse.wst.common.project.facet.core.xml 168B
org.eclipse.core.resources.prefs 88B
org.eclipse.wst.common.component 443B
org.eclipse.jdt.core.prefs 430B
src
test
main
java
com
ilucky
ejb
EJBSessBean.java 549B
EJBDemoIntf.java 80B
.project 1KB
.classpath 1KB
ejbModule
META-INF
MANIFEST.MF 39B
共 32 条
- 1
资源评论
IluckySi
- 粉丝: 70
- 资源: 24
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功