User: juha
Date: 00/08/26 02:43:52
Modified: src/java/org/jboss/zol/shoppingcart/client ShopClient.java
Log:
Updated to work with jBoss 2 libs and removed references to the
EjbossClientContextFactory. ShoppingCart is *the* legacy app for
jBoss. Err.. was.
Revision Changes Path
1.2 +4 -4 zola/src/java/org/jboss/zol/shoppingcart/client/ShopClient.java
Index: ShopClient.java
===================================================================
RCS file:
/products/cvs/ejboss/zola/src/java/org/jboss/zol/shoppingcart/client/ShopClient.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ShopClient.java 2000/04/27 19:45:36 1.1
+++ ShopClient.java 2000/08/26 09:43:52 1.2
@@ -90,13 +90,13 @@
* Connect to the server
*/
private void connect() {
- Properties prop = new Properties();
- prop.put(Context.INITIAL_CONTEXT_FACTORY,
- "org.jboss.naming.spi.EjbossClientContextFactory");
+// Properties prop = new Properties();
+// prop.put(Context.INITIAL_CONTEXT_FACTORY,
+// "org.jboss.naming.spi.EjbossClientContextFactory");
Context ctx = null;
try {
- ctx = new InitialContext(prop);
+ ctx = new InitialContext(/*prop*/);
} catch (Exception e1) {
JOptionPane.showMessageDialog(this,
"Not able to get the initial context",