java -Xmx 128M...for Location1 and
java -Xmx 2G...for Location 2
/myagent/:idfor a type MyAgent, invoking /myagent/1 will create a new instance of the MyAgent type. So when you say "start on run", I am assuming that you want to start a particular instance of the web agent. You can do so by sending a
commandto that Web Agent. Here is an example: https://github.com/swimos/cookbook/blob/master/web_agents/src/main/java/swim/basic/BasicPlane.java#L38
mainmethod. Currently this is the only way to do it. In our next release you will be able to instantiate new Web Agents with know URIs by adding it in the recon file where you define the plane
Hi @dsissoko, authenticating messages to and from a Swim server is nontrivial in its current form, involving code snippets that require more than an API-level understanding of Swim. While this has capabilities involving GoogleID and OpenID authenticators, we wish to simplify its usage so that it can be configured cleanly within
server.recon itself. We'll add a tutorial on this once it is complete.
The high-level overview involves defining a
swim.api.auth.Authenticator interface serves as a convenient wrapper around this, and it has two implementers,
swim.auth.OpenIdAuthenticator. Instances of these can be injected into a
That said, I recommend continuing building your app without the authentication piece, since adding it will be a simple addition to
server.recon once the core is updated.