I am very new to this forum, could anyone please let me know if the question is posted in correct section.
It should be permanent. Do you have this module under JBoss AS Server in Servers View after restart? What status is shown in brackets for your deployed module?
IDE stops server at exit. So after restart you probably need to start server again before running the test.