Re: Tapestry in distributed environment

2014-09-02 Thread Mugat Gurkowsky
this works like charm- thanks a lot



On Fri, Aug 29, 2014 at 4:26 PM, Daniel Jue  wrote:

> For instance, in my project, see this BeforeSuite annotated method:
>
>
> https://github.com/Sotera/graphene/blob/master/graphene-parent/graphene-util/src/test/java/graphene/util/fs/PropertiesFileSymbolProviderTest.java
>
>
> On Fri, Aug 29, 2014 at 10:24 AM, Daniel Jue  wrote:
>
> > Another good place to look is in any of the unit or integration tests for
> > frameworks or apps that use Tapestry.  You often want to start up a
> > registry there so you can import modules to wire up DAOs, services, etc.
> >
> >
> > On Fri, Aug 29, 2014 at 8:50 AM, Thiago H de Paula Figueiredo <
> > thiag...@gmail.com> wrote:
> >
> >> On Fri, 29 Aug 2014 08:39:50 -0300, Mugat Gurkowsky <
> zenpunk...@gmail.com>
> >> wrote:
> >>
> >>  hello,
> >>>
> >>
> >> Hi!
> >>
> >>
> >>  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.
> >>>
> >>
> >> Have you seen http://tapestry.apache.org/starting-the-ioc-registry.html
> ?
> >> :D
> >>
> >> --
> >> Thiago H. de Paula Figueiredo
> >> Tapestry, Java and Hibernate consultant and developer
> >> http://machina.com.br
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> >> For additional commands, e-mail: users-h...@tapestry.apache.org
> >>
> >>
> >
>


Re: Tapestry in distributed environment

2014-08-29 Thread Daniel Jue
For instance, in my project, see this BeforeSuite annotated method:

https://github.com/Sotera/graphene/blob/master/graphene-parent/graphene-util/src/test/java/graphene/util/fs/PropertiesFileSymbolProviderTest.java


On Fri, Aug 29, 2014 at 10:24 AM, Daniel Jue  wrote:

> Another good place to look is in any of the unit or integration tests for
> frameworks or apps that use Tapestry.  You often want to start up a
> registry there so you can import modules to wire up DAOs, services, etc.
>
>
> On Fri, Aug 29, 2014 at 8:50 AM, Thiago H de Paula Figueiredo <
> thiag...@gmail.com> wrote:
>
>> On Fri, 29 Aug 2014 08:39:50 -0300, Mugat Gurkowsky 
>> wrote:
>>
>>  hello,
>>>
>>
>> Hi!
>>
>>
>>  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.
>>>
>>
>> Have you seen http://tapestry.apache.org/starting-the-ioc-registry.html?
>> :D
>>
>> --
>> Thiago H. de Paula Figueiredo
>> Tapestry, Java and Hibernate consultant and developer
>> http://machina.com.br
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>


Re: Tapestry in distributed environment

2014-08-29 Thread Daniel Jue
Another good place to look is in any of the unit or integration tests for
frameworks or apps that use Tapestry.  You often want to start up a
registry there so you can import modules to wire up DAOs, services, etc.


On Fri, Aug 29, 2014 at 8:50 AM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Fri, 29 Aug 2014 08:39:50 -0300, Mugat Gurkowsky 
> wrote:
>
>  hello,
>>
>
> Hi!
>
>
>  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.
>>
>
> Have you seen http://tapestry.apache.org/starting-the-ioc-registry.html?
> :D
>
> --
> Thiago H. de Paula Figueiredo
> Tapestry, Java and Hibernate consultant and developer
> http://machina.com.br
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: Tapestry in distributed environment

2014-08-29 Thread Thiago H de Paula Figueiredo
On Fri, 29 Aug 2014 08:39:50 -0300, Mugat Gurkowsky   
wrote:



hello,


Hi!

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.


Have you seen http://tapestry.apache.org/starting-the-ioc-registry.html? :D

--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

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



RE: Tapestry in distributed environment

2014-08-29 Thread Tony Nelson
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