User: janaudy
Date: 00/09/13 03:22:11
Modified: webstore/src/org/jboss/zol/webstore/common JNDIContext.java
Log:
Works with jBoss 2 now.
Revision Changes Path
1.3 +10 -7 zola/webstore/src/org/jboss/zol/webstore/common/JNDIContext.java
Index: JNDIContext.java
===================================================================
RCS file:
/products/cvs/ejboss/zola/webstore/src/org/jboss/zol/webstore/common/JNDIContext.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- JNDIContext.java 2000/08/27 20:05:31 1.2
+++ JNDIContext.java 2000/09/13 10:22:11 1.3
@@ -25,22 +25,25 @@
/**
* Return the initial context
+ *
+ * Modified on September, 12th, to reflect the changes made by Luan
+ *
* @return the JNDI initial context
*/
public InitialContext getInitialContext() {
InitialContext ic = null;
try {
-// Hashtable h = new Hashtable();
-// h.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
-// h.put(Context.PROVIDER_URL, "localhost");
-// h.put(Context.URL_PKG_PREFIXES, "org.jboss.naming");
-
- ic = new InitialContext(/*h*/);
+ Hashtable h = new Hashtable();
+ h.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
+ h.put(Context.PROVIDER_URL, "127.0.0.1:1099");
+ h.put(Context.URL_PKG_PREFIXES, "org.jnp.interfaces");
+
+ ic = new InitialContext(h);
} catch (Exception e) {
e.printStackTrace();
}
-
+
return ic;
}
}