You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Chris Mylonas <ch...@opencsta.org> on 2011/08/11 05:32:57 UTC

IoC services - can they come from an external jar?

Hi Tapestry Users,

It gives me great pleasure to have a question to ask this list after picking
up some tapestry deving again.

I'm playing around with a new EJB3.1 book with icedtea6 (openjdk) running on
glassfishv3.1.1.

Using jumpstart's BusinessServicesLocator(BSL) and bind() -ing it in
AppModule.java I wondered if the BSL and it's interface can come from
another jar or does it have to be in the services directory?

Thanks for your time,
Chris

P.S. how is the tapestry 5 in action book going?  i read chapter 1 about 3
or 4 months ago i think and it was an amazing explanation of a terrific
framework!  Thanks everyone :D

Re: IoC services - can they come from an external jar?

Posted by nillehammer <ta...@winfonet.eu>.
My "No" is a bit ambigous ;-)) So: No they don't have to be in the same
jar/Yes, they can come from an external jar

-----
http://www.winfonet.eu
--
View this message in context: http://tapestry.1045711.n5.nabble.com/IoC-services-can-they-come-from-an-external-jar-tp4688157p4689260.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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


Re: IoC services - can they come from an external jar?

Posted by Chris Mylonas <ch...@opencsta.org>.
To nillehammer and Thiago, thank you for answering.

Eclipse on gentoo is acting a little weird in not being able to find classes in the same project, so I thought I'd make BSL a separate jar to ease my woes :)
Trying to move away from osx to gentoo for deving on.  (don't ask why, i enjoy the painful freedom!)




On 11/08/2011, at 10:34 PM, nillehammer wrote:

>> Well, my definition of distributed configuration is different: it's the
>> ability of more than one module class to contribute configuration for a
>> given service.
> Granted. And how that works is, what I was trying to explain in my first
> reply to the question. I wanted to point out, that this feature goes far
> beyond just having services in a different jar. Admiddetly my explanation
> was a bit too clumsy or short.
> 
> -----
> http://www.winfonet.eu
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/IoC-services-can-they-come-from-an-external-jar-tp4688157p4689361.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 


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


Re: IoC services - can they come from an external jar?

Posted by nillehammer <ta...@winfonet.eu>.
> Well, my definition of distributed configuration is different: it's the
> ability of more than one module class to contribute configuration for a
> given service.
Granted. And how that works is, what I was trying to explain in my first
reply to the question. I wanted to point out, that this feature goes far
beyond just having services in a different jar. Admiddetly my explanation
was a bit too clumsy or short.

-----
http://www.winfonet.eu
--
View this message in context: http://tapestry.1045711.n5.nabble.com/IoC-services-can-they-come-from-an-external-jar-tp4688157p4689361.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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


Re: IoC services - can they come from an external jar?

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Thu, 11 Aug 2011 08:45:44 -0300, nillehammer  
<ta...@winfonet.eu> wrote:

> No, that's part of what Tapestry calls "distributed configuration" You  
> can define separate modules and pack them into separate jars.

Well, my definition of distributed configuration is different: it's the  
ability of more than one module class to contribute configuration for a  
given service. Spring and Tapestry-IoC have the ability of having  
different sources of configuration (modules) and packing them in different  
JARs, but only Tapestry-IoC has distributed configuration.

 From http://tapestry.apache.org/tapestry-ioc-configuration.html: "One of  
the key concepts in Tapestry IoC is distributed configuration. The  
distributed part refers to the fact that any module may configure a  
service. Distributed configuration is the key feature of Tapestry IoC that  
supports extensibility and modularity."

-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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


Re: IoC services - can they come from an external jar?

Posted by nillehammer <ta...@winfonet.eu>.
No, that's part of what Tapestry calls "distributed configuration" You can
define separate modules and pack them into separate jars. If you want them
used in your AppModule yo can do this in two ways:
Either use the @SubModule-annotation telling AppModule, what the other
module's class name is. Or pack a MANIFEST.MF with apropriate entry with
your jar. Tapestry will scan for that and find your module. Here you'll find
more detailed info:
http://tapestry.apache.org/tapestry-ioc-configuration.html

-----
http://www.winfonet.eu
--
View this message in context: http://tapestry.1045711.n5.nabble.com/IoC-services-can-they-come-from-an-external-jar-tp4688157p4689254.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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


Re: IoC services - can they come from an external jar?

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Thu, 11 Aug 2011 00:32:57 -0300, Chris Mylonas <ch...@opencsta.org>  
wrote:

> Hi Tapestry Users,

Hi!

> Using jumpstart's BusinessServicesLocator(BSL) and bind() -ing it in
> AppModule.java I wondered if the BSL and it's interface can come from
> another jar or does it have to be in the services directory?

Tapestry-IoC doesn't care at all about what package or JAR  you put your  
services.

-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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