I'm trying to get a remote handle on the HAPartition to use with HA-RMI and
to monitor the partition.  The problem is that my reference to HAPartition
is always null.  Using EJTool's JNDI brower I can clearly see the JNDI entry
is there and is a org.jboss.ha.framework.server.HAPartitionImpl.

        public static void main(String[] args)
        {
                System.setProperty(
                        "java.naming.provider.url",
                        "localhost:11100,localhost:21100");
                System.setProperty(
                        "java.naming.factory.initial",
                        "org.jnp.interfaces.NamingContextFactory");
                System.setProperty("java.naming.factory.url.pkgs",
"org.jboss.naming");
                try
                {
                        InitialContext ctx = new InitialContext();
                        HAPartition partition =
(HAPartition)ctx.lookup("HAPartition/DefaultPartition");
                        if(partition == null)
                        {
                                System.out.println("partition is null");
                        }
                }
                catch (Exception e)
                {
                        e.printStackTrace();
                }
        }

Kevin Christmas
AmeriPath IT - Dallas



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to