Re: performance slowdown for 100,000 users, all with same PSML

2004-11-17 Thread Michael Rothrock
I can verify that I saw this behavior on PostgreSQL back on 1.4, so I suspect it's not DB dependant. I use a custom authentication class and do my own caching, so never really pursued it. (And, in fact, forgot about it until this message jogged my memory.) -- Michael On 11/17/04 8:58 AM, Dan

Re: Downloading files with portlets.

2004-08-11 Thread Michael Rothrock
To do this, I created a service that, given a file, caches the file and generates a random string (actually, a base-64-encoded 128 bit random number). The caller then uses this string as a parameter on the download url. The raw screen grabs the string from the parameter, and fetches the file

Re: Getting back to the original port page (JSP pages and actions)

2004-07-29 Thread Michael Rothrock
The original template is stored in the registry. Read it from the registry and, upon completion of your action, set the template back to the original one. FWIW, I have arrived at a point where I place the template selection logic in buildNormalContext, including Step 1..n templates for

Re: Getting back to the original port page (JSP pages and actions)

2004-07-29 Thread Michael Rothrock
a portlet. Can you elaborate? -Original Message- From: Michael Rothrock [mailto:[EMAIL PROTECTED] Sent: Thursday, July 29, 2004 2:18 PM To: Jetspeed Users List Subject: Re: Getting back to the original port page (JSP pages and actions) The original template is stored in the registry

Re: Template question

2004-06-29 Thread Michael Rothrock
I use JSPs, but I think the approach that I use will work for Velocity as well. Basically, what I do is add template selection logic to buildNormalContext. In that method, I look at the current state of the portlet (more on that in a sec) and then select the appropriate template. For example, if

Automated unit tests on actions

2004-06-14 Thread Michael Rothrock
From watching the maven questions go by, it just dawned on me that people have methods for automated unit tests on their actions. I would LOVE automated unit tests, but haven't really figured anything out short of putting up a test server and using something like curl to fire off requests. There

Re: Display DB image

2004-05-10 Thread Michael Rothrock
Actually, the content type has already been set long before the portlet gets called. You need to start at the beginning of the render pipeline, specifically with the screen. You have to create your own screen. Do this by extending org.apache.turbine.modules.screens.RawScreen, implementing

Re: Help with VelocityPortletAction

2004-05-06 Thread Michael Rothrock
You can exit your buildNormalContext method without doing anything by setting a flag in the request. Put the following line in your action: rundata.getRequest().setAttribute(skip_normal, new Boolean(true)); And put the following at the start of buildNormalContext: Boolean reqVal = (Boolean)

Re: Anyone using displaytag lib with jetspeed

2004-05-04 Thread Michael Rothrock
I long ago established the habit of surrounding the body of my actions with try/catch blocks to be sure that I see the exceptions that would otherwise be hidden. My boilerplate action code looks something like this: public void doXxx(RunData rundata, Portlet portlet) { Log.debug(

Re: Anyone using displaytag lib with jetspeed

2004-05-04 Thread Michael Rothrock
In retrospect, it seems we didn't give enough detail. If you look into the jetspeed code that dispatches events, you'll see that it traps exceptions from the doXxx methods without logging them (at least, that¹s what it did the last time I walked through it). Even if your method threw an

Re: Anyone using displaytag lib with jetspeed

2004-05-04 Thread Michael Rothrock
that the page developers can use that instead of all the java we have to give them. Any other ideals? David Boyd _ This mailbox protected from junk email by Matador from MailFrontier, Inc. http://info.mailfrontier.com -Original Message- From: Michael Rothrock [mailto

Re: ContentType

2003-10-15 Thread Michael Rothrock
This would suggest that the best way to approach this problem would be to create a custom screen class where you can create custom getContentType and getContent methods, as is typical for downloading files. You could then reference this in the embed tag. -- Michael On 10/15/03 8:32 AM, Stuart

Getting a Portlet instance entry

2003-09-18 Thread Michael Rothrock
Ok, I'm trying to get an instance of a Portlet object so I can check permissions like so: JetspeedSecurity.checkPermission((JetspeedUser) data.getUser(), portlet, view) I'm doing this in left.jsp, so I need to generate the instance by name. After much trial and error, I've discovered a method

Determining if a user has view permission for a portlet

2003-09-17 Thread Michael Rothrock
I'm trying to programmatically determine if a user has view permission for a named portlet and, after spending some quality time with this problem, I'm stumped. I'm doing this in left.jsp, but strictly using java. I've tried this: PortletEntry entry = (PortletEntry)

Re: Postgesql Problem

2003-08-30 Thread Michael Rothrock
Search the archives for the message that starts thusly: * From: Michael Rothrock * Subject: Re: AW: Newbie: Can't Jetspeed get starting with postgresql * Date: Wed, 02 Apr 2003 20:21:54 -0800 Oh, I forgot a rather important step: On 8/29/03 2:45 PM, Roland Jernej [EMAIL PROTECTED

Re: datasourcefactory issue

2003-08-18 Thread Michael Rothrock
I have a similar issue running jetspeed/tomcat/postgresql/linux. The error appears to result from too many connections to the db, and is solved by restarting tomcat. This indicates (to me, anyway) that something in jetspeed is grabbing but not releasing db connections. I haven't had time to

Confusion with buildNormalContext and do[Action]

2003-08-14 Thread Michael Rothrock
Hello! I've just started playing with b5 and I'm a bit confused over when buildNormalContext is called. I recall that the behavior in b3 was that buildNormalContext was called automatically after actions were executed. However, it seemed to change in b4 such that I had to explicitly call

Re: Best Practices in Design

2003-05-27 Thread Michael Rothrock
For action-to-jsp, I use the following code: In the action class: public class foo extends JspPortletAction { public static final String RET_SPECIAL_PREFIX = foo-special-; public void doCoolness(RunData rundata, Portlet portlet) { String jspeid = portlet.getID();

Re: AW: Newbie: Can't Jetspeed get starting with postgresql

2003-04-02 Thread Michael Rothrock
NB, it seems to have issues with postgresql 7.3, but 7.2 (I'm using 7.2.3-5.80) appears to work. -- Michael On 4/1/03 6:55 PM, Michael Rothrock [EMAIL PROTECTED] wrote: I'm in the process of deploying on postgresql as well, so I spent some time investigating this. Just to be sure my own

Re: AW: Newbie: Can't Jetspeed get starting with postgresql

2003-04-02 Thread Michael Rothrock
and change the sql scripts and the torque.properties file? Could you attach the complete set of files you have changed? Thanks in advance. Jamie. --- Michael Rothrock [EMAIL PROTECTED] wrote: NB, it seems to have issues with postgresql 7.3, but 7.2 (I'm using 7.2.3-5.80) appears to work

Re: AW: Newbie: Can't Jetspeed get starting with postgresql

2003-04-02 Thread Michael Rothrock
that one) and the coffee tables--I didn't bother with the demo data. -- Michael On 4/2/03 8:17 PM, Michael Rothrock [EMAIL PROTECTED] wrote: Ok, but at this point I've gone on to tweak some files for performance. Specifically, I'm using sequences instead of the idTable, so I had to change a few

Re: AW: Newbie: Can't Jetspeed get starting with postgresql

2003-04-01 Thread Michael Rothrock
I'm in the process of deploying on postgresql as well, so I spent some time investigating this. Just to be sure my own settings didn't break anything, I started with a completely clean CVS dist, and a completely new deployment. 1) I modified the turbine-postgres.sql file, adding the

Re: Multiple Torque Adapters

2003-03-21 Thread Michael Rothrock
as expected. You'd have to implement your own caching mechanism to get the equivalent Manager functionality. -- Michael On 3/21/03 11:36 AM, Michael Rothrock [EMAIL PROTECTED] wrote: Ah, right. When I looked into that initially, I read the first paragraph of the introduction and noted the line usage

Re: Multiple Torque Adapters

2003-03-20 Thread Michael Rothrock
On 3/20/03 8:58 AM, McIntyre, Kevin [EMAIL PROTECTED] wrote: Jetspeed must be the default adapter. A second adapter can be used but Criteria must specify the adapters name upon construction. The example I gave, setDbName, can be called after Criteria construction. Another alternative: you can

Re: R: jsp portlet and Maximize action

2003-02-26 Thread Michael Rothrock
I think you can just add the variable js_peid with the peid of the portlet to be maximized to the users temp data. (It might be js-peid, it's been a while since I saw it.) -- Michael On 2/26/03 11:03 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I tried your solution but it doesn't work.

Re: Action question

2003-02-26 Thread Michael Rothrock
On 2/26/03 2:31 PM, Ryan Christianson [EMAIL PROTECTED] wrote: My question is how can I provide extra information for this Action so that my doPerform method can use this information. I looked into how jsp It depends on the origin of the extra information. If it's from the form, then you can

Re: Dynamic image generation

2003-02-19 Thread Michael Rothrock
I have a similar problem in that I need users to be able to download files from a portlet that exist as byte streams in my app. I was thinking about (1) or (3), but it would be tricky to guarantee that the user accessing the given stream from the servlet was authorized to view the appropriate

Write up: synchronizing content across portlets

2003-02-13 Thread Michael Rothrock
I've been investigating ways to synchronize content across multiple portlets. As someone else needed this information, I've written it up and am posting this summary to the list. Comments welcome. Design Objective: I would like to have a portlet that presents a list of objects. When a user

Re: Portlet render/action execution order

2003-02-10 Thread Michael Rothrock
As this is something I need to work out, I'm continuing to investigate this. My current line of exploration is around using Turbine actions. I'm trying to see if I can use a base Turbine action to set session level information prior to any portlet being rendered. (I also need to see if I can

Portlet render/action execution order

2003-02-07 Thread Michael Rothrock
Armed with my newly acquired JSP Action skills, I now suddenly have another question: What is the execution order of actions and portlet rendering? Are all portlets with actions executed first? Can I guarantee order of execution? In looking over the debug log, it appears that portlets are

Handy tip for JSP actions

2003-02-06 Thread Michael Rothrock
After many, many frustrating hours of examining registry entries, JSP templates, and tracing functions (via debug statements, no less), I've finally managed to get JSP actions working. As I suspected while I was debugging, it ended up being a very stupid, but easy, mistake. In the hopes that

Re: JSP vs Velocity

2003-01-29 Thread Michael Rothrock
I would say that it works perfectly well for my strategy, but I believe there's still an issue over how JSPs handle actions. I've been pushing that one off, but I will eventually reach a point where I can't ignore it. FWIW, my strategy is to prototype in JSP, then move the code into a class that

Re: portlet object in doUpdate()

2003-01-27 Thread Michael Rothrock
Since I'm about to be working on this, let me ask a related question: has anyone gotten JSP actions to work with GET? Thanks! -- Michael On 1/27/03 1:09 AM, Pierre Henry [EMAIL PROTECTED] wrote: Hi Wei, I had the same problem last week (see my mail with title Tricky behavior with JSP

Re: Getting URL for current page

2002-12-20 Thread Michael Rothrock
remember what changes it had, but if i remember right i coudln't use addQueryData with that last one. - Original Message - From: Michael Rothrock [EMAIL PROTECTED] To: Jetspeed Users List [EMAIL PROTECTED] Sent: Thursday, December 19, 2002 9:00 PM Subject: Getting URL for current page

Site map (was: Re: 1600 users (was Is anyone REALLY usingJetspeed?))

2002-12-17 Thread Michael Rothrock
I notice that you have a site map link across the bottom--do you generate that automatically (the map, not the link)? If so, how do you go about it? (Code samples would be ideal, but I'd be happy with just a quick description too.) Thanks! -- Michael On 12/17/02 12:30 AM, Moore, Richard [EMAIL

Re: Jetspeed development?

2002-12-14 Thread Michael Rothrock
On 12/14/02 5:43 PM, Joe [EMAIL PROTECTED] wrote: [...] I think that you must admit however, that the organisations that can get the *most* benefit out of [...] You're casting Jetspeed into a specific role with this comment. If you take the abstract view, Jetspeed allows you to have several

Action Event class not found

2002-12-12 Thread Michael Rothrock
Ok, I've been trying to figure this out for a while now, and I've had no luck with either the jetspeed-user or turbine-user archives, so I thought I'd see if anyone can help. I'm pretty sure it's a lame configuration error. I'm trying to create an ActionEvent. The purpose of this is to set

Re: Datbase Access

2002-12-11 Thread Michael Rothrock
Jetspeed includes Torque which is designed for just such a purpose. Look here: http://jakarta.apache.org/turbine/torque/ Torque is beautiful. -- Michael On 12/11/02 9:52 PM, Javed Mahmud [EMAIL PROTECTED] wrote: Further to my email I would like to clarify what I want exactly to do. Rather

Re: Jetspeed Proxy set up question

2002-11-11 Thread Michael Rothrock
I don't know Tomcat well enough to do this, but I think another viable approach would be to use split DNS let the Jetspeed box and the proxy resolve to the same name. On the internal DNS server the name would resolve to the Jetspeed box, while externally it would point to the proxy. Just a

Re: Need help with getPaneByName

2002-10-31 Thread Michael Rothrock
to the Linux box for that. :-/ Thanks for the tip! -- Michael On 10/30/02 11:39 AM, David Sean Taylor [EMAIL PROTECTED] wrote: -Original Message- From: Michael Rothrock [mailto:michael;michaelrothrock.com] Sent: Wednesday, October 30, 2002 10:17 AM To: Jetspeed Users List Subject

Need help with getPaneByName

2002-10-30 Thread Michael Rothrock
Hello! I'm becoming a bit frustrated by what should be an easy task: creating a link to activate a different pane on a menu pane. Right now, I have two panes, Home and Features. I have a Velocity portlet on Home that should have a link to Features. I tried the following: