you should really provide bit more info...
do you have <distributable /> in your app's web.xml?
do you have infinispan & clustering enabled in your configuration?
in standalone mode that would be standalone-ha.xml or standalone-full-ha.xml, in domain mode, full profile...
Thanks for the reply,
We have apache web server for load balancing and request come to apache web server and then it will forward to repective jboss instances. We are not using clustering as of now , just load balancing.
We did in jboss 7.2 by specifying "instance-id" on web subsystem in domain mode but we are not able to find such configuration in wildfly.
instance-id configuration in wildfly is the same as in AS7, but instead of the web subsystem, it is defined in the undertow subsystem. Despite tomaz's comments, this configuration works independently of any other clustering configuration, and can will work with stateless, non-distributable web applications as well as stateful distributable applications.