/** * Gets the container jndi name used in the object name * * @return the jndi name suitable for use as the jndi name */ public String getContainerObjectNameJndiName() { return getHome() != null ? getJndiName() : getLocalJndiName(); }
/** * Gets the container jndi name used in the object name * * @return the jndi name suitable for use as the jndi name */ public String getContainerObjectNameJndiName() { return getHome() != null ? getJndiName() : getLocalJndiName(); }
protected void createService() throws Exception { // Initialize the dataStore // Find HASessionState that we will use // String sessionStateName = org.jboss.metadata.ClusterConfigMetaData.DEFAULT_SESSION_STATE_NAME; ClusterConfigMetaData config = con.getBeanMetaData ().getClusterConfigMetaData (); if (config != null) sessionStateName = config.getHaSessionStateName (); Context ctx = new InitialContext (); try { this.sessionState = (HASessionState)ctx.lookup (sessionStateName); } finally { ctx.close(); } this.localNodeName = this.sessionState.getNodeName (); this.appName = this.con.getBeanMetaData ().getJndiName (); this.sessionState.subscribe (this.appName, this); }
/** * Get an invoker binding * * @param invokerName the invoker proxy binding name * @return the jndi name */ public String getInvokerBinding(String invokerName) { InvokerBindingMetaData binding = getDelegate().determineInvokerBinding(invokerName); String bindingName = binding.getJndiName(); if(bindingName == null || bindingName.length() == 0) { bindingName = isMessageDriven() ? getEjbName() : getJndiName(); } return bindingName; }
/** * Stores the container reference and the application and bean JNDI * names. * * @param container set by the container initialization code */ public void setContainer(Container container) { super.setContainer(container); if (container != null) { applicationName = container.getEjbModule().getName(); beanName = container.getBeanMetaData().getJndiName(); } }
ObjectName ejbModName = EJBModuleFactory.getEJBModuleName(ejbModule.getServiceName()); String ejbName = metaData.getEjbName(); String jndiName = metaData.getJndiName(); String localJndiName = metaData.getLocalJndiName(); int type = EJB.STATELESS_SESSION_BEAN;
ObjectName ejbModName = getObjectName(unit, ejbModule.getServiceName().getCanonicalName()); String ejbName = metaData.getEjbName(); String jndiName = metaData.getJndiName(); String localJndiName = metaData.getLocalJndiName(); int type = EJB.STATELESS_SESSION_BEAN;
/** * Get an invoker binding * * @param invokerName the invoker proxy binding name * @return the jndi name */ public String getInvokerBinding(String invokerName) { InvokerBindingMetaData binding = getDelegate().determineInvokerBinding(invokerName); String bindingName = binding.getJndiName(); if(bindingName == null) { bindingName = isMessageDriven() ? getEjbName() : getJndiName(); } return bindingName; }
ubmd.setHome(bmd.getHome()); ubmd.setLocalHome(bmd.getLocalHome()); ubmd.setJndiName(bmd.getJndiName()); ubmd.setLocalJndiName(bmd.getLocalJndiName());
ubmd.setHome(bmd.getHome()); ubmd.setLocalHome(bmd.getLocalHome()); ubmd.setJndiName(bmd.getJndiName()); ubmd.setLocalJndiName(bmd.getLocalJndiName());
ubmd.setHome(bmd.getHome()); ubmd.setLocalHome(bmd.getLocalHome()); ubmd.setJndiName(bmd.getJndiName()); ubmd.setLocalJndiName(bmd.getLocalJndiName());