I did all things as pointed i this tutorial, without errors: http://www.techbrothersit.com/2015/07/how-to-setup-replication-with-alwayson.html
I works fine when I failover replicas from one to another.
But when I powered off primary replica: 1. failover will take place. 2. secondary become primary, listener works good and data are still availiable. 3. But transactional replication stops.
What needs to be fixed to make replication working even though primary replica is dead.