[jboss-user] [EJB 3.0] - Creating SqlResultSetMapping on the fly?

2008-03-08 Thread rjstanford
I've currently got a native query that, as normal, is generating a ListObject[]. It's dynamically created, and the number of columns returned will change based on the user request (this is part of our reporting engine). That works well. My actual goal is to modify the return types so that,

[jboss-user] [EJB 3.0] - Re: Cast an SqlResultSetMapping class

2008-03-08 Thread rjstanford
Should be something like the following: Query q01 = createNativeQuery(queryString, getData01); | for (Object[] arr : q01.getResultList()) { | Klass01 k01 = (Klass01)arr[0]; | Klass02 k02 = (Klass02)arr[1]; | // business logic goes here | } When dealing with odd mappings,

[jboss-user] [JBoss Seam] - Re: HTTPS redirection

2007-11-02 Thread rjstanford
Yes, if we didn't mind running on a custom version of Seam. The ideal solution here would be for Seam to allow us to override their functionality, just as we do for user authentication... that way there wouldn't be any problem, most people could continue to use the look-for-https-string

[jboss-user] [JBoss Seam] - Re: HTTPS redirection

2007-11-01 Thread rjstanford
Does this process work with external SSL decoding? We need to be able to mark certain pages as requiring SSL (or at least make sure that links to the contain https:// on them); but we're setting up external SSL decoders so the Seam app will never actually see any SSL traffic. Is there some

[jboss-user] [JBoss Seam] - Re: HTTPS redirection

2007-11-01 Thread rjstanford
In fact, it would appear according to this JIRA that there is a problem - any thoughts as to a solution? Surely we're not the only volume-oriented business planning to move forward in this way - I'd like to think its a solved problem :-) http://jira.jboss.com/jira/browse/JBSEAM-1024 View

[jboss-user] [JBoss Seam] - Re: Pageflow problems with back button

2007-10-30 Thread rjstanford
Did you ever figure out what the resolution for this was? We're having similar issues - someone submits a page which (in our case) creates a new object and adds it to a collection. They then press back, which since it was the same HTML page should show the same page but about the new

[jboss-user] [JBoss Seam] - Re: s:fileUpload not actually sending output?

2007-10-25 Thread rjstanford
That certainly seems to have been the culprit. I think its because Trinidad automatically (somehow) installed a filter even though nothing was put into web.xml about it that removed the image and placed it into its own UploadedFiles object - so Seam never saw that it was sent, which is

[jboss-user] [JBoss Seam] - Re: s:fileUpload not actually sending output?

2007-10-24 Thread rjstanford
Its a bit of a late response, but I'm not seeing any such code. We're using Seam 2.0.0.B1 running on JBoss 4.2.1.GA if it makes a difference. It seems from looking through the debugger at the tree that it is being seen as a multipart request; checking the request facade shows that, as an

[jboss-user] [JBoss Seam] - Re: s:fileUpload not actually sending output?

2007-10-24 Thread rjstanford
GOT IT - For anyone else who's searching and finds this ... We had the trinidad jars in our library, even though we weren't using them. We were referencing the namespace in the xmlns section of the page, but that was it. Removing the reference and the jar files themselves suddenly made

[jboss-user] [JBoss Seam] - Re: Excel support in Seam: any interest?

2007-10-19 Thread rjstanford
Did the x:/ library ever get opened up? If this is available, I'd love to take a look at it. We're about to be generating really basic (yet functionally important to our customers) XLS reports, and this would be all we needed. View the original post :

[jboss-user] [JBoss Seam] - Re: s:fileUpload not actually sending output?

2007-10-03 Thread rjstanford
Thanks, I'll pull the code down and try that breakpoint. As for the examples, I've been looking at the wiki one - are there any other files (other than those that I posted above) that I should be checking? View the original post :

[jboss-user] [JBoss Seam] - s:fileUpload not actually sending output?

2007-10-02 Thread rjstanford
I've been struggling with getting s:fileUpload to work with our application; from reading the message boards it seems as if we're doing everything right, but obviously something's missing. This is with Seam 2.0.0.B1, fwiw. Our components.xml file contains: web:multipart-filter

[jboss-user] [EJB 3.0] - Re: Working example por OneToMany cascade remove?

2007-10-02 Thread rjstanford
So is it a fair statement to say that delete cascading does not and will not work on OneToMany relationships? How inconvenient. We're using a stateful session bean (Seam) which allows us to keep changing the object model until the user is ready to either a) save or b) cancel. On a cancel its

[jboss-user] [JBoss Seam] - Re: Sortable columns, the simplest Trinidad way?

2007-09-13 Thread rjstanford
Ellen, Did you ever get this working with the simple configuration you were after? -Richard View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4084022#4084022 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4084022

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Getting generated ID by sequence

2007-09-13 Thread rjstanford
I'm having a similar problem - using MySQL as the backend (not that I think it matters) and just the default @GeneratedValue option. I've seen references in other sites that imply that if you use a generated value, the Id will be updated as soon as you call persist(). In our case, before

[jboss-user] [JBoss Seam] - Re: Seam-Managed Persistence Context

2007-09-04 Thread rjstanford
Sorry to resurrect a dead thread, but it seems pretty relevant. Is there a way to correctly use SMPCs to have a truly extended context for use with, say, a Session scope entity bean? I have a currentUser bean that's in session scope, and it has references to various other components - I'm

[jboss-user] [JBoss Seam] - Re: Seam-Managed Persistence Context

2007-09-04 Thread rjstanford
Fantastic, that's the way I'll proceed then. For something like this, where would you suggest having the factory? I don't really like adding that into the datamodel piece (although that seems to be very common for example-scale apps); is it more realistic to have a generic Factory class that

[jboss-user] [JBoss Seam] - Re: Seam-Managed Persistence Context

2007-09-04 Thread rjstanford
I should add that I'm currently doing mostly extended persistence in SFSBs, but I do have the occasional LIE where I wasn't exepcting one (and have ended up with a bit more in the way of defensive .merge() calls than I really like). View the original post :

[jboss-user] [Installation, Configuration DEPLOYMENT] - Splitting EJB components into multiple jar files

2007-08-05 Thread rjstanford
I'm splitting an existing Seam project into multiple EJB jars - one for the data model, one for the services, et cetera. During startup, I get this INFO log: 13:50:20,144 INFO [Component] Component: register, scope: EVENT, type: STATEFUL_SESSION_BEAN, class: com.kimbia.actions.RegisterAction,

[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Splitting EJB components into multiple jar files

2007-08-05 Thread rjstanford
One more piece of information - earlier in the log, this was output: 13:50:17,113 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=Company.ear,jar=Stateful.jar,name=RegisterAction,service=EJB3 with dependencies: | 13:50:17,114 INFO [JmxKernelAbstraction]

[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Splitting EJB components into multiple jar files

2007-08-05 Thread rjstanford
More possibly useful (or misleading) information.. changing the web.xml file to read core:init jndi-pattern=#{ejbName}/local debug=false / makes two changes - first, Seam states: 14:16:17,124 INFO [Component] Component: register, scope: EVENT, type: STATEFUL_SESSION_BEAN, class:

[jboss-user] [Installation, Configuration DEPLOYMENT] - Virtual Hosts within an EAR

2007-07-30 Thread rjstanford
Is there any way - even a JBoss specific way - to indicate multiple virtual hosts for a single EAR? This would allow simple deployment (and caching, etc) for an application that presented 3 WAR files, each on a different hostname. This can be emulated, cruftily, by having each WAR installed in

[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: JBoss AS 4.2.0 with MySQL

2007-07-25 Thread rjstanford
That fixed it - thanks! The wiki page made sense, unfortunately I had no idea that the name was sensitive so I didn't even think to look for that type of information. And the name here was different than our normal pattern (which was chosen randomly). This information would make a fantastic

[jboss-user] [Installation, Configuration DEPLOYMENT] - JBoss AS 4.2.0 with MySQL

2007-07-25 Thread rjstanford
While setting up a new server I've been having a really hard time getting it to see a local MySQL database. The error message isn't particularly descriptive (to me at least) and I'm reaching the end of the useful google threads. Let me go through the steps that I've followed: The

[jboss-user] [JBoss Tools (users)] - Re: Exadel Plugins available in opensource

2007-06-29 Thread rjstanford
Its wonderful to see some good progress here. Are there plans to bring the RichFaces package to OSX as well? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4059266#4059266 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Exadel, JBoss and Seam

2007-04-30 Thread rjstanford
Is there any chance that we're going to see an update to the IDE availability coinciding with JavaOne? Or am I only dreaming fond dreams? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4041993#4041993 Reply to the post :

[jboss-user] [JBoss Seam] - Clustering Best Practicies

2007-04-25 Thread rjstanford
This may be better suited for one of the other forums, but it doesn't quite fit there, so... These days, its a reasonable assumption that most commercial applications are going to be deployed into a clustered environment - for failover if nothing else, but most of them benefit from increased

[jboss-user] [JBoss Seam] - Re: Clustering Best Practicies

2007-04-25 Thread rjstanford
I should add that I have read through (or at least searched through) the EJB3, Cluster, and Seam forums before asking this - a lot of the information seems to be old, or possibly incorrect, and in at least one part I saw a recent update from Gavin saying to read the docs rather than looking

[jboss-user] [Clustering/JBoss] - DB/Cluster Practice Question

2007-04-09 Thread rjstanford
We're planning to use JBoss to do clustering for a HA webapp in the near future. The question that I'm toying with is one of tying the JBoss cluster to a database cluster. Our original plan was just to use Oracle RAC, but there's certainly an investment there and it goes up fast if you need

[jboss-user] [JBoss Seam] - Re: Multiple Domain Quesiton

2007-04-08 Thread rjstanford
fhh wrote : You said: | P.S.: When I said the the hostname I use to reach your machine is entirely under my control I was not talking about http referers. I was refering to the idea of the original poster to make security depend on the hostname you use to access the site. I generally agree

[jboss-user] [JBoss Seam] - Multiple Domain Quesiton

2007-04-06 Thread rjstanford
I should preface this by saying that I'm very familiar with Struts, somewhat with Spring, but new to Seam and full-fledged EJB apps in general. So this may be a stupid question, but I can't find a good answer anywhere (probably searching on the wrong stuff). Anyway... I'm modelling a new

[jboss-user] [JBoss Seam] - Re: Multiple Domain Quesiton

2007-04-06 Thread rjstanford
Very cool, and thanks for the response. Would it be appropriate to use security rules to send 404s if someone tried to access one of the control domain pages through a non-control hostname? Or would that be a perversion of the security system and there's a much easier way to do it? I don't

[jboss-user] [JBoss Seam] - Re: Multiple Domain Quesiton

2007-04-06 Thread rjstanford
I agree - let me explain myself a little better. With this setup, there's effectively one control application that contains a large number of potentially useful URLs. The display sites, generated by the same app, contain a much smaller list of URLs. When a non-control user (who doesn't even

[jboss-user] [JBoss Seam] - Re: Multiple Domain Quesiton

2007-04-06 Thread rjstanford
One more clarification - I realize that this problem would disappear if I had one application servicing all of the (multiple-hostname) contant requests, and a totally separate application handling the administrative tasks. But from my reading of the Seam/J2EE docs that would mean that I'd lose

[jboss-user] [JBoss Seam] - Re: Multiple Domain Quesiton

2007-04-06 Thread rjstanford
Felix, No, not terribly high volume. However, the non-admin pages are high volume. The reason that I want cache visibility (preferably using the transparent entity bean caching, not actually using pojoCache directly) is that updates made to the database through the control side should be

[jboss-user] [JBoss Seam] - Re: Multiple Domain Quesiton

2007-04-06 Thread rjstanford
Great - that looks like exactly what I was needing. So really I can use actions to replace a lot of what I was using filters to do before. Very cool, and very much the Seam way of doing business. Thanks a ton! View the original post :