All you need to do is build the registry.  This is the shell of a main class 
(in groovy).

@Slf4j
class Main {

    static void main(String[] args) {

       // this is the module you wish to load, you may of course add several
        RegistryBuilder registryBuilder = new RegistryBuilder();
        registryBuilder.add(AtlasImporterModule);

        // I keep configs in modules, DevMode, DemoMode, etc
        Class clz = Class.forName("com.starpoint.instihire.api.services." +
                StringUtils.capitalize(config.env) + "Mode");
        registryBuilder.add(clz);

        Registry registry = registryBuilder.build();
        registry.performRegistryStartup();

        // registry is up
        SomeService svc = registry.getService(SomeService)
       svc.doSomething();

       // shut down the registry when you are done
        registry.shutdown();
    }
}


Hope that helps

Tony
ps.  I apologize in advance if the formatting gets messed up, I am sending this 
from a web based mail.
________________________________________
From: Mugat Gurkowsky [zenpunk...@gmail.com]
Sent: Friday, August 29, 2014 7:39 AM
To: users@tapestry.apache.org
Subject: Tapestry in distributed environment

hello,

i am currently using tapestry for a web-project which i am developing. the
project is meant to work with a lot of data, and requires a lot of
processing power.

in order to overcome the problems of so much data and processing-power, i
intend to use distributed calculations, which will be running on
drone-clients which distribute the data as well as the processing.

i would like to be able to use tapestry IoC (especially injections) in the
drone-clients, but i have run into problems with that. in the
documentations i have not seen any way which would make use of Tapestry IoC
from a java-main without the ise of a web-server, so i wanted to ask you
how i could do that best.

thanks in advance for help
zenpunk

Since 1982, Starpoint Solutions has been a trusted source of human capital and 
solutions. We are committed to our clients, employees, environment, community 
and social concerns.  We foster an inclusive culture based on trust, respect, 
honesty and solid performance. Learn more about Starpoint and our social 
responsibility at http://www.starpoint.com/social_responsibility

This email message from Starpoint Solutions LLC is for the sole use of  the 
intended recipient(s) and may contain confidential and privileged  information. 
 Any unauthorized review, use, disclosure or distribution is prohibited.  If 
you are not the intended recipient, please contact the sender by reply email 
and destroy all copies of the original message.  Opinions, conclusions and 
other information in this message that do not relate to the official business 
of Starpoint Solutions shall be understood as neither given nor endorsed by it.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to