Squeezing & Persisting with Business Objects [was: Is it safe to inject HiveMind services into an ASO?]

2006-05-04 Thread Paul Field
is a sensible idea? I'm happy to write and share some code but I've only just started on T4/HiveMind and wouldn't mind some feedback before I head down a dumb path. Paul -- Paul Field Global Markets Research IT Deutsche Bank news <[EMAIL PROTECTED]> wrot

RE: Is it safe to inject HiveMind services into an ASO?

2006-05-04 Thread James Carman
nStateObjectProvider. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Mark Reynolds Sent: Thursday, May 04, 2006 11:33 AM To: tapestry-user@jakarta.apache.org Subject: Re: Is it safe to inject HiveMind services into an ASO? Expanding on what James said and following up on a hint

Re: Is it safe to inject HiveMind services into an ASO?

2006-05-04 Thread Mark Reynolds
/pooled hivemind service, 3) the ApplicationStateManager is injected into the proxy, 4) when a method is called on the proxy, it looks up the ASO (which is the correct one due to the proxy being threaded) and passes through the method call. I inject the proxy into any service/dao that needs

Tapestry, HtmlUnit and HiveMind services

2006-05-03 Thread Rob Dennett
I am trying to create tests for a Tapestry application that injects various services into page classes. How can I tell Tapestry to use mock services inside of my tests? For example, I have a page that displays some data from the database. This page doesn’t work because the database has no dat

accessing the hivemind registry from a test class

2006-05-02 Thread Rob Dennett
I want to access a hivemind service in order to set some data for a test. I was using RegistryBuilder.constructDefaultRegistry, but it occurs to me that I don’t want to construct one as that’s already being done by Tapestry, I just want to access it. Is there a way to do that? Thanks for

RE: Is it safe to inject HiveMind services into an ASO?

2006-05-02 Thread James Carman
estry-user@jakarta.apache.org Subject: Is it safe to inject HiveMind services into an ASO? I would like to use an ASO that contains a business object. However, I can't store the business object directly in the ASO because (a) it will be serialized into the session (along with a lot of related obj

Is it safe to inject HiveMind services into an ASO?

2006-05-02 Thread Paul Field
n(Region region) { regionId = region.getId(); } } What I would really like to do is use HiveMind to inject the DAO and make my ASO something like this: public class Preferences implements Serializable { private transient RegionDAO dao; private long regionId; public vo

Re: Hivemind service registration configuration

2006-04-28 Thread Paul Field
You need to prefix the id of the module onto the 'simple' id of the service point to get the full id. For example: ... etc... In this example, the full service id is mymodule.MyService And you'd do this in Tapestry: @InjectObject("service:mymodule.MyService") Paul "sp y" <[EMA

Hivemind service registration configuration

2006-04-27 Thread sp y
Thanks for your attention. I've created a custom service, but I've problem on injecting the service @InjectObject("service:MyService"). The configuration goes here. I've tried to register it under infrastructure and it works, im inject the service with @InjectObject("infrast

RE: tapestry, hivemind, spring

2006-04-24 Thread James Carman
Please do. I might get rid of the HiveMind utils stuff. There's a bug in HiveMind that doesn't let me use my transaction interceptor with other interceptors. But, I can probably get around that by using CGLIB (not javassist) to generate the proxy classes. -Original Message-

Re: tapestry, hivemind, spring

2006-04-24 Thread Hans L
Hi Chris, Thanks for the response. That's neat; I didn't realize the spring: prefix worked in the hivemodule.xml as well. I guess I should have taken that leap of faith & tried that first. :) In the long run, I'd like to get this all working cleanly in HiveMind, but in

Re: tapestry, hivemind, spring

2006-04-24 Thread Hans L
Thanks, James. I'll play around with this & if I get any transaction annotation support working I'll send it along. Hans James Carman wrote: Well, you can find all the source code at the hivemind project at JavaForge. Here's the source repositorie

Re: tapestry, hivemind, spring

2006-04-24 Thread Chris Nelson
Spring DAOs, so perhaps I will have something to share on that. I'll need it for the current project, but haven't got to it yet. I feel your pain on having to deal with both Hivemind and Spring, but don't have a good answer. I love some of the excellent ideas in HM, but I don'

RE: tapestry, hivemind, spring

2006-04-24 Thread James Carman
Well, you can find all the source code at the hivemind project at JavaForge. Here's the source repositories for it all. http://www.carmanconsulting.com/svn/public/tapernate/trunk http://svn.javaforge.com/svn/hivemind/spring-hibernate3/trunk http://svn.javaforge.com/svn/hivemind/hivemind-

Re: tapestry, hivemind, spring

2006-04-24 Thread Hans L
r some of the jars in tapernate (e.g. spring-transaction.jar, spring-hibernate.jar), but was unable to do so. I don't need @Transactional, though it is kinda nice :) I am leaning toward trying to do everything in HiveMind (but using Spring, as you do); I just need to learn how to do the

RE: tapestry, hivemind, spring

2006-04-24 Thread James Carman
Well, of course I'm going to say to use HiveMind, but use the Spring stuff inside HiveMind (like I do). That is, use HiveMind to wire everything together. If you *really* want to use the @Transactional annotations, I suppose I could be coerced into writing some code that supports it (co

tapestry, hivemind, spring

2006-04-24 Thread Hans L
ment James' EntityPropertyPersistenceStrategy; however, it looks like the only way to configure Tapestry is via Hivemind services. So, I think my only options are: 1- modify the hivemodule.xml and EntityPropertyPersistenceStrategy to use DefaultSpringBeanFactoryHolder to allow me to pull my sessi

Re: Hivemind

2006-04-22 Thread Mark Reynolds
Ted, I ran into this same problem. As far as I can tell, Hivetranse will not reuse a single hibernate Session across multiple transactions. Normally it will close the session after a transaction. If you use the DeferSessionClose option, it will keep the session around, but still create a new

Re: Hivemind

2006-04-22 Thread Ted Steen
yes On 4/22/06, Raul Raja <[EMAIL PROTECTED]> wrote: > Do you have the following in your hivemodule.xml? > > > > > > Ted Steen wrote: > > Hi. > > > > This is a subset of my hivemodule.xml > > > >> interface="org.hibernate.Session"> > >> service-id="hivetranse.hibernate

Re: Hivemind

2006-04-22 Thread Raul Raja
Do you have the following in your hivemodule.xml? Ted Steen wrote: Hi. This is a subset of my hivemodule.xml

Hivemind

2006-04-22 Thread Ted Steen
Hi. This is a subset of my hivemodule.xml

RE: Hivemind problem with tapestry 4

2006-04-11 Thread James Carman
Where are your HiveMind/Tapestry libraries stored? Are you using a "global" (server-wide) library? Other folks have had trouble with using this configuration in Jetty. Does the same thing happen if you put all your jars in the WEB-INF/lib directory inside your webapp? -Origin

Re: Hivemind problem with tapestry 4

2006-04-11 Thread Rodnei Couto
esttry 4.01 / hivemind / hibernate using jetty. i'm not using spring []'s Rodnei Couto Jesse Kuhnert escreveu: It's not tapestry OR hivemind...Not sure who the ultimate culprit is but it's obviously a classloader or someone in the classloader type of issue.

Re: Hivemind problem with tapestry 4

2006-04-11 Thread Jesse Kuhnert
H... That brings us to the culprits being either hibernate or jetty. Are you using maven2 in eclipse as well? On 4/11/06, Rodnei Couto <[EMAIL PROTECTED]> wrote: > > tapesttry 4.01 / hivemind / hibernate using jetty. > > i'm not using spring > > []'s > Ro

Re: Hivemind problem with tapestry 4

2006-04-11 Thread Rodnei Couto
tapesttry 4.01 / hivemind / hibernate using jetty. i'm not using spring []'s Rodnei Couto Jesse Kuhnert escreveu: It's not tapestry OR hivemind...Not sure who the ultimate culprit is but it's obviously a classloader or someone in the classloader type of issue. I'm ru

Re: Hivemind problem with tapestry 4

2006-04-11 Thread Jesse Kuhnert
It's not tapestry OR hivemind...Not sure who the ultimate culprit is but it's obviously a classloader or someone in the classloader type of issue. I'm running with hivemind / tap / spring / hibernate using jetty. What are you running with? On 4/11/06, Rodnei Couto <[EMAIL

Re: Hivemind problem with tapestry 4

2006-04-11 Thread Rodnei Couto
If i try to inject the propertie how a application object, a had a ClassCastException when try to use the getPropertie method. Example Hivemind Home.page Home.java public abstract HelloWorldImp getValor(); when i do getValor() in Home.java, i give a

RE: Hivemind problem with tapestry 4

2006-04-11 Thread James Carman
ia annotations. -Original Message- From: Rodnei Couto [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 11, 2006 2:31 PM To: Tapestry users Subject: Re: Hivemind problem with tapestry 4 i'm not using annotations, because i can't change my projet to java 5 yet. I made this example in h

Re: Hivemind problem with tapestry 4

2006-04-11 Thread Rodnei Couto
i'm not using annotations, because i can't change my projet to java 5 yet. I made this example in hivemind, without tapestry, and work fine. Didn't work with hivemind and tapestry together. []'s Rodnei Couto Jesse Kuhnert escreveu: Don't know yet, but I don't

RE: Hivemind problem with tapestry 4

2006-04-11 Thread James Carman
PM To: Tapestry users Subject: Re: Hivemind problem with tapestry 4 Don't know yet, but I don't think it's hivemind's problem. Will know for sure in the next couple minutes. On 4/11/06, James Carman <[EMAIL PROTECTED]> wrote: > > Jesse, > > Does it work using

Re: Hivemind problem with tapestry 4

2006-04-11 Thread Jesse Kuhnert
om: Jesse Kuhnert [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 11, 2006 2:19 PM > To: Tapestry users > Subject: Re: Hivemind problem with tapestry 4 > > How lucky for you! I'm running into the same exact problem now. When I > find > a solution I'll let people know. >

RE: Hivemind problem with tapestry 4

2006-04-11 Thread James Carman
Jesse, Does it work using annotations? -Original Message- From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 11, 2006 2:19 PM To: Tapestry users Subject: Re: Hivemind problem with tapestry 4 How lucky for you! I'm running into the same exact problem now. When I f

Re: Hivemind problem with tapestry 4

2006-04-11 Thread Jesse Kuhnert
How lucky for you! I'm running into the same exact problem now. When I find a solution I'll let people know. On 4/11/06, Rodnei Couto <[EMAIL PROTECTED]> wrote: > > Hi list, > > I'm migrating my aplication from tapestry 3 to tapestry 4. I made this > hivemind

Hivemind problem with tapestry 4

2006-04-11 Thread Rodnei Couto
Hi list, I'm migrating my aplication from tapestry 3 to tapestry 4. I made this hivemind helloWorld example with tapestry to learn, but this didn't work. The version of hivemind is 1.1.1. Somebody can help me? The exception is: org.apache.hivemind.ApplicationRuntimeException Error

Re: Java Native library and Hivemind/Tapestry

2006-04-11 Thread Andreas Bulling
Sorry, just to complete my first posting: The exception is java.lang.UnsatisfiedLinkError: Native Library already loaded in another classloader And concerning Hivemind I thought that perhaps a singleton service would solve the problem

Java Native library and Hivemind/Tapestry

2006-04-11 Thread Andreas Bulling
exception. I've searched the web and there seem to be several possibilities to solve this problem... But as I have the feeling that with Hivemind/Tapestry perhaps other and better solutions exist I wanted to hear from your experience first. Anyway I'm also interested in how you solved this probl

Re: [Announce]: HiveMind Utilities 0.6.0 released.

2006-04-04 Thread Nick Faiz
systematic wrapping of runtime exceptions into TransactionExceptions) As a matter of fact, the major change that was performed in HiveMind Utilities was more the change of the build system, rather than real functional improvements. But this step wa simportant for me because it helped me switch fro

RE: [Announce]: HiveMind Utilities 0.6.0 released.

2006-04-04 Thread Jean-Francois Poilpret
ping HibernateException (Note that for version 0.7.0, I intend to add a flag to disable the systematic wrapping of runtime exceptions into TransactionExceptions) As a matter of fact, the major change that was performed in HiveMind Utilities was more the change of the build system, rather than real functi

Re: [Announce]: HiveMind Utilities 0.6.0 released.

2006-04-03 Thread Nick Faiz
, I am glad to announce the new release of the HiveMind Utilities project on SourceForge. This release fixes several bugs and bring a few new features. Besides, it is based on a new build system, more flexible than the previous one. For more information, take a look at http

[Announce]: HiveMind Utilities 0.6.0 released.

2006-04-03 Thread Jean-Francois Poilpret
Hello, I am glad to announce the new release of the HiveMind Utilities project on SourceForge. This release fixes several bugs and bring a few new features. Besides, it is based on a new build system, more flexible than the previous one. For more information, take a look at http

Re: Simple property Hivemind service.

2006-04-03 Thread Adam Zimowski
Mike, I took your advice and dropped Hivemined on this one. A property file did very well here. Thanks as always. On 4/3/06, Mike Snare <[EMAIL PROTECTED]> wrote: > The only way I see HiveMind benefitting you here is if you foresee > this service as re-usable AND the values changing

Re: Simple property Hivemind service.

2006-04-03 Thread Mike Snare
The only way I see HiveMind benefitting you here is if you foresee this service as re-usable AND the values changing. If that's the case, you could probably use the service interface plus an implementation bean (you'd still have to write it) along with the set statements you provided.

Re: Simple property Hivemind service.

2006-04-03 Thread Adam Zimowski
Funny you ask. My original "markup" was a Constants interface, but I want to move these out to a configuration file. I could create a simple property file, but I thought Tapestry way of things is to move all that boilder plate code onto the framework, in this case let Hivemind co

Re: Simple property Hivemind service.

2006-04-03 Thread Mike Snare
public String getFileMailPassChange(); >public String getFileMailPassReset(); >public String getFileImageHe(); >public String getFileImageShe(); >public String getFileImageGroup(); > } > > Can I use hivemind to set up values for this interface, and

Simple property Hivemind service.

2006-04-03 Thread Adam Zimowski
(); public String getFileMailPassChange(); public String getFileMailPassReset(); public String getFileImageHe(); public String getFileImageShe(); public String getFileImageGroup(); } Can I use hivemind to set up values for this interface, and have hivemind

Re: Hivemind startup error

2006-04-02 Thread Adam Zimowski
codec-1.3.jar commons-fileupload-1.0.jar commons-logging-1.0.4.jar commons-logging-api-1.0.4.jar hivemind-1.1.1.jar hivemind-jmx-1.1.1.jar hivemind-lib-1.1.1.jar javassist-3.0.jar ognl-2.6.7.jar oro-2.0.8.jar tapestry-4.0.jar tapestry-annotations-4.0.jar tapestry-contrib-4.0.jar tapestry-portlet-4.

Re: Hivemind startup error

2006-04-01 Thread James Carman
There's really no such thing as a "HiveMind DTD." Since HiveMind allows you to specify schemas for parameters/configurations, the format of the XML is pretty much up to you (aside from the standard stuff). > Sure. I'm missing XML schema declaration at the top. Could tha

Re: Hivemind startup error

2006-04-01 Thread James Carman
Adam, Where do you have your hivemind/tapestry jar files? Are they in WEB-INF/lib? HiveMind will attempt to load all /META-INF/hivemodule.xml classpath resources. So, maybe it's not finding the tapestry jar file on the classpath, so it's not finding its hivemodule.xml file. Ther

Re: Hivemind startup error

2006-04-01 Thread Adam Zimowski
Hmm > > there must be some small configuration bit I'm missing > > > > :-( > > > > On 4/1/06, Leonardo Quijano Vincenzi <[EMAIL PROTECTED]> wrote: > > > That would be a problem with Tapestry initialization, instead of > > Hivemind.

Re: Hivemind startup error

2006-04-01 Thread Jesse Kuhnert
ration bit I'm missing > > :-( > > On 4/1/06, Leonardo Quijano Vincenzi <[EMAIL PROTECTED]> wrote: > > That would be a problem with Tapestry initialization, instead of > Hivemind. > > > > -- > > Ing. Leonardo Quijano Vincenzi > > DTQ Software &

Re: Hivemind startup error

2006-04-01 Thread Adam Zimowski
a problem with Tapestry initialization, instead of Hivemind. > > -- > Ing. Leonardo Quijano Vincenzi > DTQ Software > > > Adam Zimowski wrote: > > If I comment out "offending" contributions, I get another hivemind > > exception clearly stating someth

Re: Hivemind startup error

2006-04-01 Thread Leonardo Quijano Vincenzi
That would be a problem with Tapestry initialization, instead of Hivemind. -- Ing. Leonardo Quijano Vincenzi DTQ Software Adam Zimowski wrote: If I comment out "offending" contributions, I get another hivemind exception clearly stating something is wrong with hivemind setup. Bu

Re: Hivemind startup error

2006-04-01 Thread Adam Zimowski
If I comment out "offending" contributions, I get another hivemind exception clearly stating something is wrong with hivemind setup. But Resin is seeing hivemind JARs ! How weird...?? 500 Servlet Exception org.apache.hivemind.ApplicationRuntimeException: Ser

Re: Hivemind startup error

2006-04-01 Thread Adam Zimowski
Very weird, isn't it? I've been on it all night.. Resin 3.0.18, Tap 4.0, hivemind 1.1.1. JDK 1.5, Slackware Linux. Adam On 4/1/06, Leonardo Quijano Vincenzi <[EMAIL PROTECTED]> wrote: > Weird... which versions of Tapestry / Hivemind ? > > -- > Ing. Leonardo Qui

Re: Hivemind startup error

2006-04-01 Thread Leonardo Quijano Vincenzi
Weird... which versions of Tapestry / Hivemind ? -- Ing. Leonardo Quijano Vincenzi DTQ Software Adam Zimowski wrote: Sure. I'm missing XML schema declaration at the top. Could that be it? I also don't have a hivemind DTD. 500 Servlet Exception org.apache.hivemind.ApplicationRuntim

Re: Hivemind startup error

2006-04-01 Thread Adam Zimowski
Sure. I'm missing XML schema declaration at the top. Could that be it? I also don't have a hivemind DTD. 500 Servlet Exception org.apache.hivemind.ApplicationRuntimeException: Error at file:/opt/opendating/webapps/WEB-INF/classes/META-INF/hivemodule.xml, line 12: Module org.open

Re: Hivemind startup error

2006-04-01 Thread Leonardo Quijano Vincenzi
Adam Zimowski wrote: Hi, I'm trying to deploy my app to Resin, but I'm getting exception from Hivemind on startup about unknown configuration point tapestry.services.ApplicationServices. When testing it under Tomcat the app works just fine, so I'm guessing something Hivemind want

Hivemind startup error

2006-04-01 Thread Adam Zimowski
Hi, I'm trying to deploy my app to Resin, but I'm getting exception from Hivemind on startup about unknown configuration point tapestry.services.ApplicationServices. When testing it under Tomcat the app works just fine, so I'm guessing something Hivemind wants is missing. I basica

Re: Hivemind version of Virtual Library?

2006-03-29 Thread Pedro Viegas
Not sure about that, but if you're interested in wireing up hibernate POJOs with Hivemind check out the HiveMind Utils project... http://hivetranse.sourceforge.net/ Regards, On 3/28/06, Rob Dennett <[EMAIL PROTECTED]> wrote: > > Does there exist a HiveMind version of Vir

Hivemind version of Virtual Library?

2006-03-27 Thread Rob Dennett
Does there exist a HiveMind version of Virtual Library, the example app that comes with the Tapestry download? I mean one that uses POJOs wired together using HiveMind and Hibernate rather than EJBs? Thanks for your help, Rob -- No virus found in this outgoing message. Checked by AVG Free

Re: Application State Objects and Hivemind...

2006-03-26 Thread GbT
Original Message- From: GbT [mailto:[EMAIL PROTECTED] Sent: Sunday, March 26, 2006 11:41 AM To: Tapestry users Subject: Re: Application State Objects and Hivemind... I put it in WEB-INF with no success... I set up the log4j with those strings: log4j.rootLogger=warn

Re: Application State Objects and Hivemind...

2006-03-26 Thread Brian K. Wallace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 James Carman wrote: > There were 8 replies before I realized that. I'm out of coffee, so I have > an excuse. Java developers should never run out of coffee! Amen! -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (MingW32) iD8DBQFEJseVaCoPKRow/gA

RE: Application State Objects and Hivemind...

2006-03-26 Thread James Carman
State Objects and Hivemind... Damn. I gotta start reading the posts more closely. Another cup of coffee for me... On 3/26/06, James Carman <[EMAIL PROTECTED]> wrote: > I think I know what's wrong. Try renaming your file to hivemodule.xml not > hivemind.xml. > > -Origi

Re: Application State Objects and Hivemind...

2006-03-26 Thread Mike Snare
; From: GbT [mailto:[EMAIL PROTECTED] > Sent: Sunday, March 26, 2006 11:41 AM > To: Tapestry users > Subject: Re: Application State Objects and Hivemind... > > I put it in WEB-INF with no success... I set up the log4j with those > strings: > log4j.rootLogger=warn, R > log

RE: Application State Objects and Hivemind...

2006-03-26 Thread James Carman
I think I know what's wrong. Try renaming your file to hivemodule.xml not hivemind.xml. -Original Message- From: GbT [mailto:[EMAIL PROTECTED] Sent: Sunday, March 26, 2006 11:41 AM To: Tapestry users Subject: Re: Application State Objects and Hivemind... I put it in WEB-INF wi

Re: Application State Objects and Hivemind...

2006-03-26 Thread GbT
log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n log4j.logger.org.apache.catalina=DEBUG, R log4j.logger.org.apache.hivemind=DEBUG but in the module load section of hivemind I don't see com.mypackage at all. Il giorno 26/m

Re: Application State Objects and Hivemind...

2006-03-26 Thread Mike Snare
Exactly. You need to set up log4j by placing an appropriate log4j.properties file in the classpath for the server. Since all you are trying to do is check to make sure the module is being loaded, I again propose contributing a simple primitive service to EagerLoad whose constructor contains a pri

Re: Application State Objects and Hivemind...

2006-03-26 Thread GbT
Where should I check for the log? In tomcat.log, catalina.out or what? In those I don't see nothing for hivemind... Thanks Il giorno 26/mar/06, alle ore 16:55, James Carman ha scritto: Do you have logging turned on? Does HiveMind say that it's parsing the module descript

Re: Application State Objects and Hivemind...

2006-03-26 Thread Brian K. Wallace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Make sure your hivemodule.xml is either in WEB-INF/ or classes/META-INF otherwise it will not be processed. HTH Brian GbT wrote: > Hi to all, > I am in trouble getting application state objects to work... I want to > use a class named Visita in my pa

Re: Application State Objects and Hivemind...

2006-03-26 Thread Mike Snare
If you're not sure how to set up logging correctly for tap/hm, try contributing a simple service to EagerLoad (primitive service model) with a println statement in the constructor. -Mike On 3/26/06, James Carman <[EMAIL PROTECTED]> wrote: > Do you have logging turned on? Does Hiv

RE: Application State Objects and Hivemind...

2006-03-26 Thread James Carman
Do you have logging turned on? Does HiveMind say that it's parsing the module descriptor for the "com.mypackage" module? -Original Message- From: GbT [mailto:[EMAIL PROTECTED] Sent: Sunday, March 26, 2006 9:54 AM To: Tapestry users Subject: Re: Application State Objec

Re: Application State Objects and Hivemind...

2006-03-26 Thread GbT
Yes it's in the classes directory... I don't understand what could be wrong... my Home.html is: value="ognl:currentMenu" element="li"> Menu name Il giorno 26/mar/06, alle ore 16:17, Mike Snare ha scritto: Hmm. Looks

Re: Application State Objects and Hivemind...

2006-03-26 Thread Mike Snare
Hmm. Looks ok (but I don't use annotations, either). Are you sure that the hivemodule.xml file is being copied over to the classes directory? Check that. I find it easier (for webapps) to just drop it directly in the WEB-INF directory. Since you're typically running tomcat with the docBase poi

Application State Objects and Hivemind...

2006-03-26 Thread GbT
Hi to all, I am in trouble getting application state objects to work... I want to use a class named Visita in my package com.mypackage... and write this hivemind.xml file in src/META-INF as explained in Kent Tong book:

Re: AW: tapestry hivemind oc4j

2006-03-23 Thread Martijn Hinten
Exactly. Thanks Jan. Jan Vissers wrote: In package org.apache.hivemind.util.URLResource (Hivemind 1.1.1) change existing newResource method to: protected Resource newResource( String path ) { if(path.startsWith("jndi:")) { path = "jar:file:///"

Re: AW: tapestry hivemind oc4j

2006-03-22 Thread Jan Vissers
In package org.apache.hivemind.util.URLResource (Hivemind 1.1.1) change existing newResource method to: protected Resource newResource( String path ) { if(path.startsWith("jndi:")) { path = "jar:file:///" + path.substring(5); int endOfJar = path

Re: AW: tapestry hivemind oc4j

2006-03-22 Thread Theo vN
Hi Martijn Can you please post / mail me / point where I can find the "hack"? I'm trying to use Orionserver without success. Thanks On 10/18/05, Martijn Hinten <[EMAIL PROTECTED]> wrote: > Why not hack it? It is just Java code. I have the hack for both Hivemind

RE: Hivemind object in squeeze adaptor

2006-03-22 Thread James Carman
No problem. Glad to help. Don't feel bad. I'm a HiveMind committer and I seem to learn something new when I start playing around with it in my projects! :-) > It works great now! Thanks for your help. I'm still not that fluent in > hivemind. I learn something every

RE: Hivemind object in squeeze adaptor

2006-03-22 Thread Denis Souza
It works great now! Thanks for your help. I'm still not that fluent in hivemind. I learn something every time I need to use it. -Original Message- From: James Carman [mailto:[EMAIL PROTECTED] Sent: quarta-feira, 22 de março de 2006 17:45 To: 'Tapestry users' Subject: RE:

Re: Hivemind object in squeeze adaptor

2006-03-22 Thread Jason Dyer
same results. > > > -Original Message- > From: James Carman [mailto:[EMAIL PROTECTED] > Sent: quarta-feira, 22 de março de 2006 17:24 > To: 'Tapestry users' > Subject: RE: Hivemind object in squeeze adaptor > > If HiveMind sees a "writable" p

RE: Hivemind object in squeeze adaptor

2006-03-22 Thread James Carman
ROTECTED] Sent: Wednesday, March 22, 2006 3:40 PM To: 'Tapestry users' Subject: RE: Hivemind object in squeeze adaptor Here it is... In my hivemodule.xml: My squeeze adaptor class (I left out most of the body of the squeeze and unsqueeze methods so it wouldn't take

RE: Hivemind object in squeeze adaptor

2006-03-22 Thread Denis Souza
plicationStateManager" as the setter method, but with the same results. -Original Message- From: James Carman [mailto:[EMAIL PROTECTED] Sent: quarta-feira, 22 de março de 2006 17:24 To: 'Tapestry users' Subject: RE: Hivemind object in squeeze adaptor If HiveMind sees a "

RE: Hivemind object in squeeze adaptor

2006-03-22 Thread James Carman
If HiveMind sees a "writable" property of a type for which it has exactly one matching service point, it will set that property. I know this works, because I do it in one of my own services. Can you post some code and your applicable hivemodule.xml file contents? -Original Message

RE: Hivemind object in squeeze adaptor

2006-03-22 Thread Denis Souza
... still not happening. The state manager remains null. Anyway I don't really understand how it could work. What's the logic with this "autowire"? How does hivemind know to fill it in? -Original Message- From: James Carman [mailto:[EMAIL PROTECTED] Sent: quarta-f

RE: Hivemind object in squeeze adaptor

2006-03-22 Thread James Carman
Drop the set-object altogether. HiveMind will "autowire" it. -Original Message- From: Denis Souza [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 22, 2006 3:04 PM To: 'Tapestry users' Subject: RE: Hivemind object in squeeze adaptor I did, it just won't allo

RE: Hivemind object in squeeze adaptor

2006-03-22 Thread Denis Souza
ent: quarta-feira, 22 de março de 2006 16:53 To: 'Tapestry users' Subject: RE: Hivemind object in squeeze adaptor Try adding a "setter" to your implementation class... public class MySqueezeAdaptor { private ApplicationStateManager stateManager; public void set

RE: Hivemind object in squeeze adaptor

2006-03-22 Thread James Carman
rom: Denis Souza [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 22, 2006 2:47 PM To: 'Tapestry users' Subject: Hivemind object in squeeze adaptor Hi, I'm implementing a squeeze adaptor for my app and I was wondering how I could inject other hivemind objects or services into it.

Hivemind object in squeeze adaptor

2006-03-22 Thread Denis Souza
Hi, I'm implementing a squeeze adaptor for my app and I was wondering how I could inject other hivemind objects or services into it. I would have guessed something like this: .but of course, it doesn't work. Can anyone help? Thanks, Denis

RE: [HiveMind] Fw: JAR issue

2006-03-18 Thread James Carman
ginal Message- From: Korbinian Bachl [mailto:[EMAIL PROTECTED] Sent: Saturday, March 18, 2006 4:13 AM To: 'Tapestry users' Subject: AW: [HiveMind] Fw: JAR issue Hi James, excuse me, but what is "tapernate" ? - wikipedia doenst know it, google gives mo no hompeage or projectpag

AW: [HiveMind] Fw: JAR issue

2006-03-18 Thread Korbinian Bachl
Regards Korbinian > -Ursprüngliche Nachricht- > Von: James Carman [mailto:[EMAIL PROTECTED] > Gesendet: Samstag, 18. März 2006 00:30 > An: 'Tapestry users' > Betreff: RE: [HiveMind] Fw: JAR issue > > For an example, you can download my example application which >

RE: [HiveMind] Fw: JAR issue

2006-03-17 Thread James Carman
For an example, you can download my example application which contains multiple hivemodules (hivemind, hivemind-lib, tapestry, tapernate, spring-transaction, spring-hibernate3, etc.): http://www.carmanconsulting.com/svn/public/tapernate-example/trunk -Original Message- From: James

RE: [HiveMind] Fw: JAR issue

2006-03-17 Thread James Carman
lto:[EMAIL PROTECTED] Sent: Friday, March 17, 2006 4:54 PM To: Tapestry users Subject: Re: [HiveMind] Fw: JAR issue > The hivemind jar file will have its own hivemodule.xml file in it when you > deploy your application. HiveMind loads *all* hivemodule.xml files it finds > on the classpath. Th

Re: [HiveMind] Fw: JAR issue

2006-03-17 Thread John Coleman
I have never seen this function of HiveMind to locate hivemodule.xml files work. I put the module files in the application root directory or even in the same directory as the file that loads the registry and HM never finds them. I always have to specify a META-INF directory on the classpath. And

Re: [HiveMind] Fw: JAR issue

2006-03-17 Thread Jesse Kuhnert
hivemind shouldn't care about the existance of 1 or 20 hivemodule.xml files, but if you duplicate " module names" it will complain. You might double check that you haven't done that. On 3/17/06, John Coleman <[EMAIL PROTECTED]> wrote: > > > > >

Re: [HiveMind] Fw: JAR issue

2006-03-17 Thread John Coleman
> The hivemind jar file will have its own hivemodule.xml file in it when you > deploy your application. HiveMind loads *all* hivemodule.xml files it finds > on the classpath. That's what I thought James, I have even tried placing my applications hivemodule in the root of the JAR

RE: [HiveMind] Fw: JAR issue

2006-03-17 Thread James Carman
The hivemind jar file will have its own hivemodule.xml file in it when you deploy your application. HiveMind loads *all* hivemodule.xml files it finds on the classpath. -Original Message- From: John Coleman [mailto:[EMAIL PROTECTED] Sent: Friday, March 17, 2006 4:10 PM To: Tapestry

Re: [HiveMind] Fw: JAR issue

2006-03-17 Thread Jesse Kuhnert
]> wrote: > > anyone here have an idea how to do this please? > > > - Original Message - > From: John Coleman > To: hivemind-user@jakarta.apache.org > Sent: Friday, March 17, 2006 7:30 PM > Subject: JAR issue > > > I'm trying to JAR my application using An

[HiveMind] Fw: JAR issue

2006-03-17 Thread John Coleman
anyone here have an idea how to do this please? - Original Message - From: John Coleman To: hivemind-user@jakarta.apache.org Sent: Friday, March 17, 2006 7:30 PM Subject: JAR issue I'm trying to JAR my application using Ant, but both my applications hivemodule.xml and the Hive

R: A JBoss EJB3 hivemind service

2006-03-12 Thread Giampaolo Tomassoni
e the EJB3 service is not that different in scope from the EJBProxyFactory, which is supplied by the hivemind library, I'm going to contact the hivemind people to see if it may fit there. If it doesn't fit even there, I can just use it and observe silence: after all it may be regarded as som

Re: A JBoss EJB3 hivemind service

2006-03-11 Thread Jesse Kuhnert
ould fit > perfectly in the honeycomb project. > > Marcus ? Jesse ? > > > Cheers > > Hugo > > Giampaolo Tomassoni wrote: > > I created a JIRA issue ( > http://issues.apache.org/jira/browse/TAPESTRY-882 ) about a small hivemind > service capable of injecting a javax.

  1   2   3   4   >