Hi,

I tried to create multiple MicroservicesRunner objects on different ports
as follows;

public class Application {
    public static void main(String[] args) {

        new MicroservicesRunner()
                .addExceptionMapper(new EntityNotFoundMapper(), new
CustomerNotFoundMapper())
                .deploy(new CustomerService())
                .start();

        new MicroservicesRunner(8081)
                .addExceptionMapper(new EntityNotFoundMapper(), new
InvoiceNotFoundMapper())
                .deploy(new InvoiceService())
                .start();
    }
}


Looks like this is not supported. I'm getting "Problem accessing:
/customer/XXX. Reason: Not Found" error.

It fails because NettyTransportContextHolder is a singleton. Therefore
messing up MSF4J message handlers. Is this by design? If so shouldn't we
print a warning if a developer tries to do this?

Thanks.

-- 
Akila Ravihansa Perera
WSO2 Inc.;  http://wso2.com/

Blog: http://ravihansa3000.blogspot.com
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to