[jboss-jira] [JBoss JIRA] (AS7-4223) Failure to load balance clustered SLSB

Paul Ferraro (JIRA) jira-events at lists.jboss.org
Thu Mar 22 12:47:48 EDT 2012


    [ https://issues.jboss.org/browse/AS7-4223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678726#comment-12678726 ] 

Paul Ferraro commented on AS7-4223:
-----------------------------------

I see.  Thanks Jaikiran.
We effectively need something like @Clustered(partitionName="") from AS5/6.  In our case, we need something to indicate the cache container in which to find the cache containing the client mappings.  We can do this in 2 stages.  First add weak affinity using the default sfsb cache container - then add the ability to specify the client mapping cache independently.
                
> Failure to load balance clustered SLSB
> --------------------------------------
>
>                 Key: AS7-4223
>                 URL: https://issues.jboss.org/browse/AS7-4223
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: Clustering, EJB
>    Affects Versions: 7.1.1.Final
>            Reporter: Graeme Wallace
>            Assignee: Paul Ferraro
>              Labels: eap6_need_triage
>
> The following code points to an EJB which is specified as clustered via the jboss-ejb3.xml - however it always connects to the first node in remote.connections.
>        Properties properties = new Properties();
>         properties.put("endpoint.name", "farecompare-client-endpoint");
>         properties.put("remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED", "false");
>         properties.put("remote.connections", "cmc5101,cmc5102");
>         properties.put("remote.connection.cmc5101.host", "cmc5-101");
>         properties.put("remote.connection.cmc5101.port", "4447");
>         properties.put("remote.connection.cmc5101.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS", "false");
>         properties.put("remote.connection.cmc5102.host", "cmc5-102");
>         properties.put("remote.connection.cmc5102.port", "4447");
>         properties.put("remote.connection.cmc5102.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS", "false");
>         PropertiesBasedEJBClientConfiguration configuration = new PropertiesBasedEJBClientConfiguration(properties);
>         final ContextSelector ejbClientContextSelector = new ConfigBasedEJBClientContextSelector(configuration);
>         final ContextSelector previousSelector = EJBClientContext.setSelector(ejbClientContextSelector);
>         final Hashtable jndiProperties = new Hashtable();
>         jndiProperties.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
>         final Context context = new InitialContext(jndiProperties);
>         LocationModuleAPI locationModule = (LocationModuleAPI) context.lookup(
>   "ejb:locationmodule/xxi-framework-location-finder-module-ejb//LocationModuleSessionBean!com.xxi.framework.locationfindermodule.api.LocationModuleAPI");

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list