edgent-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dale LaBossiere <dml.apa...@gmail.com>
Subject Re: Trying register an application via the registerJar command
Date Fri, 16 Sep 2016 17:32:28 GMT
I haven’t digested the complete email message yet, but try removing those three lines before
provider.start() and try again.
IotProvider already create/registers those services (described in its javadoc).  I guess I
wouldn’t be surprised if these extra additions might much things up.

— Dale

> On Sep 16, 2016, at 1:17 PM, Susan Cline <home4slc@pacbell.net> wrote:
> 
> I’ve gotten a step further, but I am still having problems.
> ...
> 
> public class RegisterJarExample {
> 		IotProvider provider = new IotProvider(topology -> new IotpDevice(topology, configFile));
> 		/*
> 		 * Not sure if I need the next few lines or not ...
> 		 */
> 		JsonControlService control = new JsonControlService();
> 		provider.getServices().addService(ControlService.class, control); 
> 		ApplicationService appService = AppService.createAndRegister(provider, provider);
> 		provider.start();
> 		
> 		logger.info("Here is some info");
> 	}
> 	
> }


Mime
View raw message