You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by "Steve K." <sk...@comcast.net> on 2002/08/01 19:09:23 UTC
Turbine Design Patterns and Scalability
Hi,
I'm in the architecural design stage of a project and I'm trying to plan for
scalability.
I am pretty much in exactly the same situation that Simon was when he posted
his "design paralysis" questions many months ago in:
http://archives.apache.org/eyebrowse/ReadMsg?listName=turbine-user@jakarta.a
pache.org&msgId=288749
Are there any best practices for turbine scalability (and/or j2ee
integration)?
Any suggestions are welcome since I haven't seen many threads on this type
of thing.
I'm particularly interested in hearing the experiences of anyone who has
adopted a model like the one described in the posting above.
I guess my main quandry is how to keep the benefits of using peers, but
without coupling it to the presentation layer and without adding undue
complexity.
BTW, i'm running 2.2dev on red hat 7.1, postgres 7.2, and tomcat 4.0
Thanks,
Steve K.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Turbine Design Patterns and Scalability
Posted by Rodney Schneider <rl...@arcalink.com>.
On Fri, 2 Aug 2002 03:09, you wrote:
> Hi,
>
> I'm in the architecural design stage of a project and I'm trying to plan
> for scalability.
> I am pretty much in exactly the same situation that Simon was when he
> posted his "design paralysis" questions many months ago in:
>
>
http://archives.apache.org/eyebrowse/ReadMsg?listName=turbine-user@jakarta.apache.org&msgId=288749
>
> Are there any best practices for turbine scalability (and/or j2ee
> integration)?
> Any suggestions are welcome since I haven't seen many threads on this type
> of thing.
See this thread for some interesting discussion:
http://www.mail-archive.com/cgi-bin/htsearch?config=turbine-user_jakarta_apache_org&words=Semi-Newbie+Is+newapp+push+or+pull
> I'm particularly interested in hearing the experiences of anyone who has
> adopted a model like the one described in the posting above.
I don't have the time to understand the above posting completely, but it
seems a bit complex to me.
> I guess my main quandry is how to keep the benefits of using peers, but
> without coupling it to the presentation layer and without adding undue
> complexity.
I would suggest the method mentioned in this post by Scott Weaver:
http://www.mail-archive.com/turbine-user%40jakarta.apache.org/msg07858.html
That is, use pull tools rather than Screen classes wherever possible,
encapsulate all database interaction within Turbine services, use the Action
Event model along with Intake for form validation and processing, and cache
database query results when necessary for performance.
> BTW, i'm running 2.2dev on red hat 7.1, postgres 7.2, and tomcat 4.0
Hope that helps,
-- Rodney
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
tdk example doesn't initialize
Posted by peter neubauer <pe...@yahoo.se>.
Hi,
trying to build the TDK example, I get the following:
[peter@peter build]$ ant init
Buildfile: build.xml
, Turbine vs
init:
init-tasks:
set-os:
set-windows2000:
set-windowsNT:
set-windows98:
set-unix:
unix-ext:
windows-ext:
ext:
[echo] Platform = unix
[echo] Extension = sh
create-database:
[echo] create-database.sh
[torque-create-db]
/home/peter/installable/tdk/webapps/newapp/WEB-INF/src/sql/create-database.sh
[exec] mysqladmin: DROP DATABASE newapp failed;
[exec] error: 'Can't drop database 'newapp'. Database doesn't
exist'
init-tasks:
turbine-sql:
[echo] +------------------------------------------+
[echo] | |
[echo] | Generating SQL for Turbine base system! |
[echo] | |
[echo] +------------------------------------------+
[torque-sql], Turbine vs
/home/peter/installable/tdk/webapps/newapp/WEB-INF/src/sql/turbine-schema.sql
BUILD FAILED, Turbine vs
java.lang.VerifyError: (class:
org/apache/turbine/torque/engine/database/transform/XmlToAppData,
method: parseFile signature:, Turbine vs
(Ljava/lang/String;)Lorg/apache/turbine/torque/engine/database/model/AppData;) Incompatible object argument for function call
at
org.apache.turbine.torque.TorqueSQLTask.initControlContext(TorqueSQLTask.java:153)
at org.apache.velocity.texen.ant.TexenTask.execute(TexenTask.java)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:166)
at org.apache.tools.ant.Task.perform(Task.java:317)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:334)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:368)
at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:144) at
org.apache.tools.ant.Task.perform(Task.java:317)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:334)
at org.apache.tools.ant.Project.executeTarget(Project.java:1, Turbine
vs 306)
at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
at org.apache.tools.ant.Main.runBuild(Main.java:606)
at org.apache.tools.ant.Main.start(Main.java:195)
at org.apache.tools.ant.Main.main(Main.java:234)
Total time: 3 seconds, Turbine vs
java.lang.VerifyError: (class:
org/apache/turbine/torque/engine/database/transform/XmlToAppData,
method: parseFile signature:, Turbine vs
(Ljava/lang/String;)Lorg/apache/turbine/torque/engine/database/model/AppData;) Incompatible object argument for function call
at
org.apache.turbine.torque.TorqueSQLTask.initControlContext(TorqueSQLTask.java:153)
at org.apache.velocity.texen.ant.TexenTask.execute(TexenTask.java)
at, Turbine vs
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:166)
at org.apache.tools.ant.Task.perform(Task.java:317)
at org.apache.tools.ant.Target.execute(Target.java:309), Turbine vs
at org.apache.tools.ant.Target.performTasks(Target.java:334)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:368)
at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:144) at
org.apache.tools.ant.Task.perform(Task.java:317), Turbine vs
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:334)
at org.apache.tools.ant.Project.executeTarget(Project.java:1, Turbine
vs 306)
at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
at org.apache.tools.ant.Main.runBuild(Main.java:606), Turbine vs
at org.apache.tools.ant.Main.start(Main.java:195)
at org.apache.tools.ant.Main.main(Main.java:234)
(class:
org/apache/turbine/torque/engine/database/transform/XmlToAppData,
method: parseFile signature:
(Ljava/lang/String;)Lorg/apache/turbine/torque/engine/database/model/AppData;) Incompatible object argument for function call
I see that the newapps database was created in mysql, so the connection
should be ok. But there are no tables, so I guess it's somewhere in
between?
Any ideas?
Thanks!
/peteer
_____________________________________________________
Gratis e-mail resten av livet p� www.yahoo.se/mail
Busenkelt!
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>