ivargrimstad / snoopee

SnoopEE - The Lean Microservice Framework for Java EE
http://snoopee.agilejava.eu/
MIT License
17 stars 6 forks source link

Implicit host and port registration #14

Open jGauravGupta opened 6 years ago

jGauravGupta commented 6 years ago

If host, port & serviceRoot is not configured than snoopee should implicit detect and register.

For e.g :

This config can be replaced with :

snoopee:
   snoopeeService: 192.168.99.100:8081/snoopee-service/

So snoopee should detect host & port and as EnableSnoopEEClient annotation applied on ApplicationConfig so it should also implicit detect ApplicationPath resource path.

ivargrimstad commented 6 years ago

It is a compelling idea. Just a little unsure how this would work in a containerized environment. It probably has to be supplied with ENV or SYSTEM properties anyway. Which is currently supported...

But I will be happy to look at it if you have any ideas.