Thanks Darren and other for constant and quick support.
I have one quick query.
Currently we are passing management realm user name and password in client ejb properties file.
remote.connection.default.username=admin
remote.connection.default.password=admin
How can I pass user name and password (Above parameters) programatically?