Skip to content

Commit

Permalink
cambios nico comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico committed Dec 27, 2024
1 parent ed86d34 commit 226054d
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package net.lacnic.elections.ws.app;

import java.util.HashMap;
import java.util.Hashtable;

import javax.naming.Context;
Expand All @@ -12,7 +13,6 @@
import net.lacnic.elections.ejb.ElectionsMonitorEJB;
import net.lacnic.elections.utils.Constants;


public class AppContext {

private static final Logger appLogger = LogManager.getLogger("servicesAppLogger");
Expand All @@ -21,12 +21,11 @@ public class AppContext {

private ElectionsMonitorEJB monitorBeanRemote;


private AppContext() {
try {
final Hashtable<String, String> jndiProperties = new Hashtable<>();
final HashMap<String, String> jndiProperties = new HashMap<>();
jndiProperties.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
final Context context = new InitialContext(jndiProperties);
final Context context = new InitialContext(new Hashtable<>(jndiProperties));

String monitorEjb = Constants.EJB_PREFIX + Constants.JAR_NAME + "/ElectionsMonitorEJBBean!net.lacnic.elections.ejb.ElectionsMonitorEJB";

Expand Down

0 comments on commit 226054d

Please sign in to comment.