RE: How to share hivemind registry between HiveMindFilter an ApplicationServlet?

2006-11-16 Thread Jean-Francois Poilpret
Hi Nick,

Although I don't know much about Tapestry way to create the Registry and
give access to it, what you might possibly do with hiveremoting.caucho is to
subclass net.sourceforge.hiveremoting.caucho. CauchoRemotingServlet and
override its getRegistry method to whatever is suitable with Tapestry.

As far as I understand, it seems that in Tapestry, the Registry is created
by the servlet (ApplicationServlet), what would be interesting to find out
is when it is created (is it at init, or at first request?). If at init,
then find a way to access the Registry in a static way (if available), you
might also need to subclass Tapestry's ApplicationServlet to make its
Registry accessible.

But you are right: it looks strange that tapestry 4 does not use HiveMind's
way to create the Registry, ie through the HiveMindFilter.

Hope this helps

Jean-Francois


-Original Message-
From: Nick Evgeniev [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 14, 2006 6:38 PM
To: users@tapestry.apache.org
Subject: How to share hivemind registry between HiveMindFilter an
ApplicationServlet?


Hi,

I've found recently that very simple usecase for hivemind + tapestry is
lacking of any docs. Here it goes
1. I have tapestry application rooted by ApplicationServlet
2. In the same web application I want my services to be accessed via remote
api. Hence I've downloaded hivetranse (hiveremoting package) + hessian as
adhoc solution.

The problem is that hiveremoting depends on HiveMindeFilter to create
hivemind registry while tapestry (for nonundestandable reason) does things
by their own. Hence I'm having two copy of registries containig duplicate
instances of all of my services.

Is there any way to share the registry? I've read in the docs that tapestry4
has perfect integration with hivemind (compared to tapestry3), but
unfortunatelly documentation does not go beyond this statement. :(

It would be really strange if this is impossible, as tapestry is able to
share spring registry whith no effort at all..

-- 
View this message in context:
http://www.nabble.com/How-to-share-hivemind-registry-between-HiveMindFilter-
an-ApplicationServlet--tf2628912.html#a7335935
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







___ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [slight OT] GZip compression filter

2006-10-19 Thread Jean-Francois Poilpret
Hi,

I don't use T4, so I don't tell that the following will work, but it is
probably worth a try.
HiveMind Utilities (http://hivetranse.sourceforge.net) have a hiveutils
module (ie jar) which includes a ServletFilter dedicated to GZIP compression
(in both direction if needed), you might want to take a look at it and share
the results of your experiments.

Cheers

Jean-Francois


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Friday, October 20, 2006 12:46 AM
To: users@tapestry.apache.org
Subject: [slight OT] GZip compression filter

Has anyone gotten a compression filter to work with Tap4? I guess since Tap4
has a single servlet, and uses lots of redirects or something, I always get
Response already committed for all my pages.

Thanks,
Greg







___ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Demandez à ceux qui savent sur Yahoo! Questions/Réponses
http://fr.answers.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Hivemind is doing my nut. Override FactoryDefaults?

2006-09-05 Thread Jean-Francois Poilpret
If I understand well the initial problem, ie overriding some value defined
already in FactoryDefaults, then the normal, out-of-the-box, solution with
HiveMind is to define the new value (with the same symbol name) as a
contribution to the hivemind.ApplicationDefaults.

That's exactly the idea behinf FactoryDefaults / ApplicationDefaults: module
providers (like hivetranse, let's not be afraid of self-advertising;-))
would define FactoryDefaults that are supposed to cover the standard or
most usual needs, but module users always have the possibility (not the
obligation) to override these defaults through ApplicationDefaults. That's
it!

I believe your solution is a little bit complicated for this problem.

My 2 cents

Jean-Francois

-Original Message-
From: Robert Cole [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 05, 2006 10:10 PM
To: Tapestry users
Subject: Re: Hivemind is doing my nut. Override FactoryDefaults?


I finally got it working. For reference, here's my solution:

  service-point id=MySettings
interface=org.apache.hivemind.SymbolSource
invoke-factory
construct
class=org.apache.hivemind.service.impl.DefaultSymbolSource 
 set-configuration configuration-id=ApplicationProperties
property=defaults/
/construct
/invoke-factory
  /service-point

  configuration-point id=ApplicationProperties
schema-id=hivemind.Defaults/

  contribution configuration-id=ApplicationProperties
default symbol=ignoreFailure value=true/
default symbol=newFilter value=com.db.csa.security.AFilter/
default symbol=tapestry.acegi.authenticationEntryPoint
value=null/
  /contribution

Rob Cole



 

 Jesse Kuhnert [EMAIL PROTECTED]

 

 05/09/2006 14:58
To 
 
Tapestry users users@tapestry.apache.org

 
cc 
 
Please respond to

 
Tapestry users users@tapestry.apache.org
Subject 
 
Re: Hivemind is doing my nut. Override FactoryDefaults?

 

 

 

 

 

 





I think to override a value you just simply define a new contribution
configuration point for hivemind.FactoryDefaults no?

Ie

contribution configuration-id=hivemin.FactoryDefaults
foo /
/contribution

(The code is made up and probably non functional, but you get the idea).

On 9/5/06, Robert Cole [EMAIL PROTECTED] wrote:


 Hi all,

 hopefully a very quick one. Can someone please give me a pointer as to how
 to override a value in hivemind.FactoryDefaults? Its been holding me up
 for the last 2 hours and I'm about to pull out what's left of my hair.

 So far I think that I need to create my own SymbolSource contribution
 point and then add that to the hivemind.SymbolSources contribution, and
 then add my values to my symbol source. Is that right? Can someone point
me
 in the direction of how to set up a SymbolSource?

 I've found something on HLS's website (
 http://howardlewisship.com/blog/2003_07_01_archive.html) but it could well
 be out of date.

 Any help would be very, very much appreciated.

 Thanks,

 Rob Cole

 ---

 This e-mail may contain confidential and/or privileged information. If you
 are not the intended recipient (or have received this e-mail in error)
 please notify the sender immediately and destroy this e-mail. Any
 unauthorized copying, disclosure or distribution of the material in this
 e-mail is strictly forbidden.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




--
Jesse Kuhnert
Tapestry/Dojo/(and a dash of TestNG), team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com



---

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: global hivemind service

2006-07-26 Thread Jean-Francois Poilpret
If you allow me James, although HiveMind does not provide a session-scoped
or user-scoped service model, you can find external implementations out
there...
Where? Check HiveMind Utilities hivelock module for example. I know there
are other existing code for this as well.

Cheers

Jean-Francois

-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 26, 2006 8:23 PM
To: 'Tapestry users'
Subject: RE: global hivemind service

There is no such thing as a session-scoped (or user-scoped) service model
in HiveMind.  So, the singleton model will instantiate exactly one
implementation which will be used by everyone.  If you want to lookup an ASO
in your HiveMind service, you use the ApplicationStateManager.  Just declare
a property of type ApplicationStateManager and provide a setter for it.
When HiveMind builds your service implementation (assuming you're using
BuilderFactory), it will automatically inject the ApplicationStateManager
into your implementation object.  Then, you can use it to lookup the ASO you
want by name.

-Original Message-
From: xVik [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 26, 2006 9:18 AM
To: users@tapestry.apache.org
Subject: RE: global hivemind service


i really dont know how to invoke application state object into hivemind
service.

and about singleton model.. i think it creates instance of service on first
reference and this instance is also individual for each user.. may be im
wrong

in general i need somthing like global application state object to store
some common data.
-- 
View this message in context:
http://www.nabble.com/global-hivemind-service-tf2003454.html#a5503015
Sent from the Tapestry - User forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]