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