Refactor EJBClient.java
This commit is contained in:
parent
1b59823654
commit
38eef2d1c0
|
@ -45,8 +45,7 @@ public class EJBClient {
|
||||||
final String distinctName = "";
|
final String distinctName = "";
|
||||||
final String beanName = "HelloWorld";
|
final String beanName = "HelloWorld";
|
||||||
final String viewClassName = HelloWorld.class.getName();
|
final String viewClassName = HelloWorld.class.getName();
|
||||||
final String toLookup = "ejb:" + appName + "/" + moduleName
|
final String toLookup = String.format("ejb:%s/%s/%s/%s!%s", appName, moduleName, distinctName, beanName, viewClassName);
|
||||||
+ "/" + distinctName + "/" + beanName + "!" + viewClassName;
|
|
||||||
return (HelloWorld) context.lookup(toLookup);
|
return (HelloWorld) context.lookup(toLookup);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue