/** * Create a new InvokerProxyBindingMetaData. * * @param delegate the delegate * @return the metadata * @throws IllegalArgumentException for a null delegate or an unknown delegate */ public static InvokerProxyBindingMetaData create(org.jboss.metadata.ejb.jboss.InvokerProxyBindingMetaData delegate) { if (delegate == null) throw new IllegalArgumentException("Null delegate"); return new InvokerProxyBindingMetaData(delegate); }
/** * An arbitary configuration to pass to the EJBProxyFactory implementation */ public Element getProxyFactoryConfig() { return getDelegate().getProxyFactoryConfig(); } }
/** * Lookup the invokers in the object registry. This typically cannot * be done until our start method as the invokers may need to be started * themselves. */ protected void setupInvokers() throws Exception { ObjectName oname = new ObjectName(invokerMetaData.getInvokerMBean()); Invoker invoker = (Invoker) Registry.lookup(oname); if(invoker == null) { throw new RuntimeException("invoker is null: " + oname); } homeInvoker = beanInvoker = invoker; }
ci = (EJBProxyFactory) cl.loadClass(imd.getProxyFactory()).newInstance(); ci.setContainer(container); ci.setInvokerMetaData(imd); ((XmlLoadable) ci).importXml(imd.getProxyFactoryConfig());
Element proxyConfig = invokerMetaData.getProxyFactoryConfig(); Element endpointInterceptors = MetaData.getOptionalChild(proxyConfig, "endpoint-interceptors", null); if (endpointInterceptors == null)
context.setValue(InvocationKey.JNDI_NAME, jndiBinding); context.setInvoker(beanInvoker); log.debug("seting invoker proxy binding for stateful session: " + invokerMetaData.getName()); context.setInvokerProxyBinding(invokerMetaData.getName()); context.setValue(InvocationKey.EJB_HOME, home); context.setValue("InvokerID", Invoker.ID);
Element proxyConfig = invokerMetaData.getProxyFactoryConfig(); Element clientInterceptors = MetaData.getOptionalChild( proxyConfig,
/** * Get the class name of the org.jboss.ejb.EJBProxyFactory implementation * used to create proxies for this configuration * * @return the proxy factory */ public String getProxyFactory() { return getDelegate().getProxyFactory(); }
/** * Create a new InvokerProxyBindingMetaData. * * @param delegate the delegate * @return the metadata * @throws IllegalArgumentException for a null delegate or an unknown delegate */ public static InvokerProxyBindingMetaData create(org.jboss.metadata.ejb.jboss.InvokerProxyBindingMetaData delegate) { if (delegate == null) throw new IllegalArgumentException("Null delegate"); return new InvokerProxyBindingMetaData(delegate); }
if (ipbmd != null) String invokerName = ipbmd.getInvokerMBean(); if (invokerName != null)
Element proxyFactoryConfig = imd.getProxyFactoryConfig(); String webCL = MetaData.getOptionalChildContent(proxyFactoryConfig, "web-class-loader"); if (webCL != null)
context.setValue(InvocationKey.JNDI_NAME, jndiBinding); context.setInvoker(beanInvoker); context.setInvokerProxyBinding(invokerMetaData.getName()); context.setValue(InvocationKey.EJB_HOME, home);
/** * An arbitary configuration to pass to the EJBProxyFactory implementation */ public Element getProxyFactoryConfig() { return getDelegate().getProxyFactoryConfig(); } }
/** * Get an invoker proxy binding by name * * @param name the name * @return the invoker proxy binding */ public InvokerProxyBindingMetaData getInvokerProxyBindingMetaDataByName(String name) { org.jboss.metadata.ejb.jboss.InvokerProxyBindingMetaData delegate = getDelegate().getInvokerProxyBinding(name); if (delegate == null) return null; else return new InvokerProxyBindingMetaData(delegate); }
ObjectName oname = new ObjectName(invokerMetaData.getInvokerMBean()); jrmp = (InvokerHA)Registry.lookup(oname); if (jrmp == null)
Element proxyConfig = invokerMetaData.getProxyFactoryConfig(); Element activationConfig = MetaData.getOptionalChild(proxyConfig, "activation-config"); if (activationConfig != null)
/** * Get the detached invoker MBean service name associated with the proxy * * @return the invoker name */ public String getInvokerMBean() { return getDelegate().getInvokerMBean(); }
/** * Get an invoker proxy binding by name * * @param name the name * @return the invoker proxy binding */ public InvokerProxyBindingMetaData getInvokerProxyBindingMetaDataByName(String name) { org.jboss.metadata.ejb.jboss.InvokerProxyBindingMetaData delegate = getDelegate().getInvokerProxyBinding(name); if (delegate == null) return null; else return new InvokerProxyBindingMetaData(delegate); }
Element proxyConfig = invokerMetaData.getProxyFactoryConfig(); checkActivationConfig("maxMessages", MetaData.getOptionalChildContent(proxyConfig, "MaxMessages")); checkActivationConfig("minSession", MetaData.getOptionalChildContent(proxyConfig, "MinimumSize"));