How should this test client look like if I want to use Borland app. server 4.5, instead of Weblogic???
package ejbobserverpattern;
public class Tester
{
public static void main (String[] args)
{
try
{
Foobar f = new Foobar();
EJBObserverProxy obs = new EJBObserverProxy (
"weblogic.jndi.WLInitialContextFactory",
"t3://localhost:7003",
RemoteObserver.class.getName()
);
f.addObserver (obs);
f.setSomething("0");
f.notifyObservers ("2");
}
catch (Exception e)
{
// e.printStackTrace();
System.out.println(e);
}
}
}
-
Observer pattern with Borland appserver 4.5 (0 messages)
- Posted by: jhg jhg
- Posted on: March 20 2002 16:45 EST