Package com.sun.jini.start

Examples of com.sun.jini.start.SharedActivatableServiceDescriptor.create()


        ServiceStarter.getActivationSystem(
            desc.getActivationSystemHost(),
      desc.getActivationSystemPort(),
      config);
    try {
                    created = (Created)desc.create(config);
              if (created != null &&
            created.proxy instanceof SharedGroup) {
      // service proxy from create() is already prepared
            SharedGroup sg = (SharedGroup)created.proxy;
      try {
View Full Code Here


      if (transformer != null) {
    desc = (SharedActivatableServiceDescriptor)
           transformer.transform(desc);
      }
      created = (SharedActivatableServiceDescriptor.Created)
          desc.create(starterConfig);
  } catch (ConfigurationException e) {
      throw new TestException("Configuration problem for "
                                   + serviceName, e);
  } catch (Exception e) {
      throw new TestException("Problem creating service for "
View Full Code Here

                sga.getSharedGroupLog().toString(),
                new String[] { config },
    true);
        try {
            Created created =
                (Created)badCodebase.create(EmptyConfiguration.INSTANCE);
      throw new TestException(
          "Created proxy: " + created.proxy
    + " with a badcodebase descriptor: " + badCodebase);
        } catch (UnmarshalException e) {
      logger.log(Level.INFO, "Expected Failure -- with a badcodebase descriptor: "
View Full Code Here

                sga.getSharedGroupLog().toString(),
                new String[] { config },
    true);
        try {
            Created created =
                (Created)badPolicy.create(EmptyConfiguration.INSTANCE);
      throw new TestException(
          "Created proxy: " + created.proxy
    + " with a bad policy descriptor: " + badPolicy);
        } catch (ActivationException e) {
      logger.log(Level.INFO, "Expected Failure with a bad policy descriptor: "
View Full Code Here

                sga.getSharedGroupLog().toString(),
                new String[] { config },
    true);
        try {
            Created created =
                (Created)badClasspath.create(EmptyConfiguration.INSTANCE);
      throw new TestException(
          "Created proxy: " + created.proxy
    + " with a bad classpath descriptor: " + badClasspath);
        } catch (ActivationException ae) {
      if (ae.getCause() instanceof ClassNotFoundException) {
View Full Code Here

                sga.getSharedGroupLog().toString(),
                new String[] { config },
    true);
        try {
            Created created =
                (Created)badImpl.create(EmptyConfiguration.INSTANCE);
      throw new TestException(
          "Created proxy: " + created.proxy
    + " with a bad impl descriptor: " + badImpl);
        } catch (ActivationException ae) {
      if (ae.getCause() instanceof ClassNotFoundException) {
View Full Code Here

                sga.getSharedGroupLog().toString() + "bogus",
                new String[] { config },
    true);
        try {
            Created created =
                (Created)badLog.create(EmptyConfiguration.INSTANCE);
      throw new TestException(
          "Created proxy: " + created.proxy
    + " with a bad log descriptor: " + badLog);
        } catch (IOException e) {
      logger.log(Level.INFO, "Expected Failure with a bad log descriptor: "
View Full Code Here

                sga.getSharedGroupLog().toString(),
                new String[] { sga.getSharedGroupLog().toString() },
    true);
        try {
            Created created =
                (Created)badConfig.create(EmptyConfiguration.INSTANCE);
      throw new TestException(
          "Created proxy: " + created.proxy
    + " with a bad config descriptor: " + badConfig);
        } catch (ActivationException e) {
      logger.log(Level.INFO, "Expected Failure with a bad config descriptor: "
View Full Code Here

    antiMercuryProxyPreparer,
    noOpProxyPreparer,
    true);
        try {
            SharedActivatableServiceDescriptor.Created created =
                (SharedActivatableServiceDescriptor.Created)antiMercuryInnerProxy.create(
        EmptyConfiguration.INSTANCE);
      throw new TestException(
          "Created proxy: " + created.proxy
    + " with a bad inner proxy descriptor: "
    + antiMercuryInnerProxy);
View Full Code Here

    noOpProxyPreparer,
                antiMercuryProxyPreparer,
    true);
        try {
            SharedActivatableServiceDescriptor.Created created =
                (SharedActivatableServiceDescriptor.Created)antiMercuryOuterProxy.create(
        EmptyConfiguration.INSTANCE);
      throw new TestException(
          "Created proxy: " + created.proxy
    + " with a bad outer proxy descriptor: "
    + antiMercuryOuterProxy);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.