Package org.jacorb.test.orb

Examples of org.jacorb.test.orb.BasicServerImpl


        org.omg.CORBA.Policy [] policies = new org.omg.CORBA.Policy[1];
        policies[0] = rootPOA.create_id_assignment_policy(IdAssignmentPolicyValue.USER_ID);

        POA poa = rootPOA.create_POA("ChildOne", rootPOA.the_POAManager(),policies);

        BasicServerImpl impl = new BasicServerImpl();
        org.omg.CORBA.Object obj = rootPOA.servant_to_reference (impl);

        poa.destroy(true, true);

        Thread root = getAOMThread ((org.jacorb.poa.POA)rootPOA);
View Full Code Here


        // need to remember the main thread here as we want
        // to verify that innerServer isn't called from another thread.
        final Thread mainThread = Thread.currentThread();

        innerServer =
            BasicServerHelper.narrow(rootPOA.servant_to_reference(new BasicServerImpl()
            {
                public boolean bounce_boolean(boolean x)
                {
                    assertSame(mainThread, Thread.currentThread());
View Full Code Here

    {
        org.omg.CORBA.Policy [] policies = new org.omg.CORBA.Policy[1];
        policies[0] = rootPOA.create_id_assignment_policy(IdAssignmentPolicyValue.USER_ID);

        POA poa = rootPOA.create_POA("ChildOne", rootPOA.the_POAManager(),policies);
        BasicServerImpl impl = new BasicServerImpl();


        org.omg.CORBA.Object obj = rootPOA.servant_to_reference (impl);
        rootPOA.reference_to_id(obj);
        try
View Full Code Here

  {
        POA poa = POAHelper.narrow(orb.resolve_initial_references("RootPOA"));

        poa.the_POAManager().activate();

        BasicServerImpl soi = new BasicServerImpl();

        // This will activate it so do deactivate first
        byte []id = poa.servant_to_id( soi );

        for (int count=0;count<100;count++)
View Full Code Here

        policies[2] = rootPoa.create_servant_retention_policy(
                org.omg.PortableServer.ServantRetentionPolicyValue.RETAIN);

        POA poa = rootPoa.create_POA("system_id", rootPoa.the_POAManager(), policies);

        BasicServerImpl soi = new BasicServerImpl();

        byte [] id = poa.activate_object(soi);

        for (int count=0;count<100;count++)
        {
View Full Code Here

    protected abstract String getGIOPMinorVersionString();

    @Test
    public void testServerWorks() throws Exception
    {
        BasicServer server = BasicServerHelper.narrow(rootPOA.servant_to_reference(new BasicServerImpl()));

        long now = System.currentTimeMillis();

        assertEquals(now, server.bounce_long_long(now));
    }
View Full Code Here

    }

    @Test
    public void testServerUsesProperGIOPVersion() throws Exception
    {
        BasicServer server = BasicServerHelper.narrow(rootPOA.servant_to_reference(new BasicServerImpl()));

        ParsedIOR ior = ((Delegate)((ObjectImpl)server)._get_delegate()).getParsedIOR();

        StringWriter out = new StringWriter();
        PrintIOR.printIOR(orb, ior, new PrintWriter(out));
View Full Code Here

    private ORB clientORB;

    @Before
    public void setUp() throws Exception
    {
        BasicServerImpl servant = new BasicServerImpl();
        BasicServer tmpServer = BasicServerHelper.narrow(rootPOA.servant_to_reference(servant));

        clientORB = this.getAnotherORB(null);

        server = BasicServerHelper.narrow(clientORB.string_to_object(orb.object_to_string(tmpServer)));
View Full Code Here

TOP

Related Classes of org.jacorb.test.orb.BasicServerImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.