Exemple #1
0
 private static JndiName createJndiName(String container, String cache) {
   return JndiNameFactory.createJndiName(
       JndiNameFactory.DEFAULT_JNDI_NAMESPACE,
       InfinispanExtension.SUBSYSTEM_NAME,
       "cache",
       container,
       cache);
 }
 public static ContextNames.BindInfo createChannelBinding(String channel) {
   return ContextNames.bindInfoFor(
       JndiNameFactory.createJndiName(
               JndiNameFactory.DEFAULT_JNDI_NAMESPACE,
               JGroupsExtension.SUBSYSTEM_NAME,
               CHANNEL,
               channel)
           .getAbsoluteName());
 }
 private static ContextNames.BindInfo createCacheContainerBinding(
     String jndiName, String container) {
   JndiName name =
       (jndiName != null)
           ? JndiNameFactory.parse(jndiName)
           : JndiNameFactory.createJndiName(
               JndiNameFactory.DEFAULT_JNDI_NAMESPACE,
               InfinispanExtension.SUBSYSTEM_NAME,
               "container",
               container);
   return ContextNames.bindInfoFor(name.getAbsoluteName());
 }