Skip to content
Snippets Groups Projects
Commit 61df642d authored by Faller's avatar Faller
Browse files

Fix EJB

parent 25693750
No related branches found
No related tags found
No related merge requests found
Pipeline #6598 passed with warnings
...@@ -14,7 +14,7 @@ public final class LookUp { ...@@ -14,7 +14,7 @@ public final class LookUp {
try { try {
final Context context = new InitialContext(); final Context context = new InitialContext();
final String toLookup = buildName(clazz, beanName); final String toLookup = buildName(clazz, beanName);
return clazz.cast(context.lookup(toLookup)); return clazz.cast(context.lookup("java:global/" + toLookup));
} catch (NamingException e) { } catch (NamingException e) {
throw new RuntimeException("Error Conectandose Localmente al EJB", e); throw new RuntimeException("Error Conectandose Localmente al EJB", e);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment