Mauricio: I just needed clarification.I thought in case of localtak service we dont need a taskserver but in code snippet ipaddress,port has been configured.
Im working with hornetq and thought some example would work for me.( https://community.jboss.org/message/745805#745805 )