If you are using NetBeans IDE, you need to add the remote server in order to deploy the message-driven bean there. To do so, perform these steps:
In NetBeans IDE, click the Services tab.
Right-click the Servers node and choose Add Server. In the Add Server Instance dialog, perform these steps:
Select Sun Java System Application Server (the default) from the Server list.
In the Name field, specify a name slightly different from that of the local server, such as Sun Java System Application Server (1).
For the Platform Folder location, you can either browse to the location of the Application Server on the remote system or, if that location is not visible from the local system, use the default location on the local system.
Select the Register Remote Domain radio button.
Type the system name of the host in the Host field.
Type the administrative username and password for the remote system in the Admin Username and Admin Password fields.
There may be a delay while NetBeans IDE registers the remote domain.