I don't know why i am getting this exception here becuase i am using the application managed persistence context and resource local transaction.
Generelly resource local transactions can be used in Java SE client, but i am using in a Stateful Bean, but i should be able to use it here without any problem here.