Package net.jini.export

Examples of net.jini.export.Exporter


    /**
     * Default Constructor requiring no arguments.
     */
    public ParticipantImpl() throws RemoteException {
  Configuration c = getConfiguration();
  Exporter exporter = QAConfig.getDefaultExporter();
  if (c instanceof com.sun.jini.qa.harness.QAConfiguration) { 
      try {
    exporter = (Exporter) c.getEntry("test",
             "transactionParticipantExporter",
             Exporter.class);
      } catch (ConfigurationException e) {
    throw new RemoteException("Configuration Error", e);
      }
  }
  proxy = exporter.export(this);
    }
View Full Code Here


     * This method performs all actions mentioned in class description.
     */
    public void run() throws Exception {
        // action step 1
        ActivationID aid = new FakeActivationID(logger);
        Exporter exporter = new FakeExporter(logger);
        ActivationExporter activationExporter =
                new ActivationExporter(aid, exporter);

        // action step 2
        // action step 3
View Full Code Here

     * This method performs all actions mentioned in class description.
     */
    public void run() throws Exception {
        // action step 1
        ActivationID aid = new FakeActivationID(logger);
        Exporter exporter = new FakeExporter(logger);
        ActivationExporter activationExporter = new ActivationExporter(aid,
                exporter);
        // action step 2
        // action step 3

View Full Code Here

    /**
     * This method performs all actions mentioned in class description.
     */
    public void run() throws Exception {
        ActivationID aid = new FakeActivationID(logger);
        Exporter exporter = new FakeExporter(logger);
        ActivationExporter activationExporter =
          new ActivationExporter(aid, exporter);
        Remote fup = new MethodSetProxy(logger);
        Remote result = activationExporter.export(fup);
        assertion(result instanceof Proxy);
View Full Code Here

     * This method performs all actions mentioned in class description.
     */
    public void run() throws Exception {
        // action step 1
        ActivationID aid = new FakeActivationID(logger);
        Exporter exporter = new FakeExporter(logger);
        ActivationExporter activationExporter =
                new ActivationExporter(aid, exporter);

        // action step 2
        // action step 3
View Full Code Here

    /**
     * This method performs all actions mentioned in class description.
     */
    public void run() throws Exception {
        ActivationID aid = new FakeActivationID(logger);
        Exporter exporter = new FakeExporter(logger);
        ActivationExporter activationExporter =
          new ActivationExporter(aid, exporter);
        Remote fup = new MethodSetProxy(logger);
        Remote result = activationExporter.export(fup);
        assertion(result instanceof Proxy);
View Full Code Here

{
    private Object proxy;

    RemoteListener() throws RemoteException {
  try {
      Exporter exporter = QAConfig.getDefaultExporter();
      Configuration c = QAConfig.getConfig().getConfiguration();
      if (c instanceof com.sun.jini.qa.harness.QAConfiguration) {
    exporter = (Exporter) c.getEntry("test",
             "normListenerExporter",
             Exporter.class);
      }
      proxy = exporter.export(this);
  } catch (ConfigurationException e) {
      throw new RemoteException("Configuration problem", e);
  }
    }
View Full Code Here

        if(inShutdown.get())
            return null;
        Object adminProxy = null;
        try {
            if (admin == null) {
                Exporter adminExporter = getAdminExporter();
                if (contextMgr != null)
                    admin = new ProvisionMonitorAdminImpl(this,
                                                          adminExporter,
                                                          contextMgr.getContextAttributeLogHandler());
                else
View Full Code Here

     * Override getExporter, creating a BeanInvocationLayerFactory
     * for the Exporter instead of of the BasicILFactory
     */
    @Override
    protected Exporter getExporter(Configuration config) throws Exception {
        Exporter exporter = (Exporter)config.getEntry(COMPONENT,
                                                      "serverExporter",
                                                      Exporter.class,
                                                      null);
        if(exporter==null) {
            String host = HostUtil.getHostAddressFromProperty(Constants.RMI_HOST_ADDRESS);
            exporter = new BasicJeriExporter(TcpServerEndpoint.getInstance(host, 0),
                                             new BeanInvocationLayerFactory(),
                                             false,
                                             true);
        }
        logger.debug("[{}] using exporter {}", bean.getClass().getName(), exporter.toString());
        return exporter;
    }
View Full Code Here

     *
     * @throws ConfigurationException If there are errors reading the configuration
     */
    public static Exporter getExporter(Configuration config, String component, String entry) throws ConfigurationException {

        Exporter exporter = (Exporter)config.getEntry(component, entry, Exporter.class, null);
        if(exporter==null) {
            exporter = (Exporter)config.getEntry(DEFAULT_COMPONENT, ENTRY_NAME, Exporter.class, null);
            if(exporter==null) {
                try {
                    exporter = new BasicJeriExporter(getServerEndpoint(), new BasicILFactory(), false, true);
View Full Code Here

TOP

Related Classes of net.jini.export.Exporter

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.