User: sylvain
Date: 00/07/05 17:54:22
Modified: src/java/org/jboss/zol/mandelbrot/client MandelClient.java
Log:
updated MandelClient so that it now works with jBoss 2.
the client now uses the file jndi.properties.
Revision Changes Path
1.2 +1 -5 zola/src/java/org/jboss/zol/mandelbrot/client/MandelClient.java
Index: MandelClient.java
===================================================================
RCS file:
/products/cvs/ejboss/zola/src/java/org/jboss/zol/mandelbrot/client/MandelClient.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- MandelClient.java 2000/04/27 19:45:36 1.1
+++ MandelClient.java 2000/07/06 00:54:22 1.2
@@ -195,13 +195,9 @@
* Stateless Session Bean
*/
private void connect() {
- Properties prop = new Properties();
- prop.put(Context.INITIAL_CONTEXT_FACTORY,
- "org.jnp.interfaces.NamingContextFactory");
-
Context ctx = null;
try {
- ctx = new InitialContext(prop);
+ ctx = new InitialContext();
} catch (Exception e1) {
JOptionPane.showMessageDialog(this,
"Not able to get the initial context",