I recommend to use Infinispan as a module, not the infinispan bits which are included in WildFly - this is a restricted version and only for internal purpose.
See the documentation and examples on Infinispan Homepage - Infinispan
1 of 1 people found this helpful
There's nothing explicitly restricted about the version of infinispan bundled in WildFly - only that the module in which it is packaged is not exported to deployments by default (in general, only the JEE modules are auto-exported to deployments). The mechanism for adding dependencies on private modules to a deployment is documented here:
stejas7 In what way do you want to use Infinispan in WF10?