JMS Process build error

I created a process model which subscribes to a document through JMS.
I get the following exception when i try to build and upload:
Error creating Destinations for JMS triggers for process: “SampleProcessJMS” version: “1” on logicalserver: “Default”. Please make sure you have configured and are running your Broker.
Error: Build of process “SampleProcessJMS” failed. The log file might have more information.
com.webmethods.jms.admin.WmJMSAdminException: [BRM.10.4011] JMS: Unable to connect to Broker at “:6849”: Connection timed out: connect

My IS and Broker’s are on different hosts and we’re running wM 8.2 SP2.
Can anyone please let me know how to get rid of this error.