# ActiveMQ
Bus.Factory.CreateUsingActiveMq(cfg =>
{
cfg.Host("localhost", h =>
{
h.Username(TestUsername);
h.Password(TestPassword);
h.UseSsl();
});
});
# Amazon MQ
Amazon MQ uses ActiveMQ, so the same transport is used. There are some additional configuration concerns that must be addressed.
Bus.Factory.CreateUsingActiveMq(cfg =>
{
cfg.Host("{your-id}.mq.us-east-2.amazonaws.com", h =>
{
h.Username(TestUsername);
h.Password(TestPassword);
});
});
When the amazonaws domain is present in the host, the configuration is automatically setup to be compatible with Amazon MQ (including SSL, etc.).