I did it by having two server configuration say default and default1. But the problem is I had to run two instances of JBOSS(I ran through ECLIPSE plugin)
I ran 1 jboss with server configuration as "default" and ran the other one "default1".
app1 was deployed in "default". The server-config.xml of this configuration was configured for http at port 8080
app2 was deployed in "default1". The server-config.xml of this configuration was configured for https at port 8443.
My requirement is to run both the apps with one instance of JBOSS and it will be best inside the same JBOSS configuration.
Thanks and Regards,
Software developer (Apps),