Re: [JBoss-user] design question

2003-09-22 Thread Tim McAuley
Check out this framework. We're currently using it and it does the job quite nicely. http://opensymphony.com/propertyset/ Hope it helps, Tim - To make the coding a little easier we just added in one extra class file "SettingsProxy" which allowed settings retrieval like this: SettingsPr

RE: [JBoss-user] Design Question

2002-07-10 Thread Brian Topping
[Just got Jon's email as I typed this, so I guess it's academic, but still interesting...] > -Original Message- > From: Marc Zampetti [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 10, 2002 10:15 AM > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] Design

Re: [JBoss-user] Design Question

2002-07-10 Thread Marc Zampetti
I'm not sure I understand the desire to not have the key in a persistence store. This would mean that if your systems (or jBoss) crashes, your site is unusable until a human being inputs a new key. If you are worried about putting the stuff on a Internet-accessible machine, put another copy of

RE: [JBoss-user] Design Question

2002-07-09 Thread Brian Topping
How about using an entity bean against a separate data source pointing at a memory DB such as hypersonic? You could configure it not to cache, then when the process died, your single data entry would go with it. To prime the db, the operator would hit an operator page that also had access to tha

RE: [JBoss-user] design question

2001-10-02 Thread Craig Johannsen
Some advantages of session beans: 1.) Access via RMI. No need for a web server. You can use a Java thin-client approach. The client is mainly user-interface code. The session beans contain some business logic and make use of data access objects that interface to your legacy application. Rath

Re: [JBoss-user] Design Question...

2001-07-31 Thread Richard Kasperowski
Tim Yates wrote: > Yeah, the reason we do it this way (and not via HTTP sessions or cookies), > is that it was decided early on that it should be possible to style the site > differently dependant on the device that was accessing it, and we couldn't > guarantee that storing the HTTPSession, or us

RE: [JBoss-user] Design Question...

2001-07-30 Thread Dan - Blue Lotus Software
2001 11:34 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Design Question... another way to approach this is through the datbase itself, writing a trigger to remove the data and setting a schedule for processing. most modern rdbms systems have similar implementations - Original Me

Re: [JBoss-user] Design Question...

2001-07-30 Thread Toby Hede
lt;[EMAIL PROTECTED]> Sent: Tuesday, July 31, 2001 3:15 AM Subject: Re: [JBoss-user] Design Question... > Hey Tim, > > If I correctly understand your qutestion, this is more of a servlet type session management issue. Take a look at the javax.servlet.http.HttpSessionBindingListen

Re: [JBoss-user] Design Question...

2001-07-30 Thread C Murphy @ Intechtual
Hey Tim, If I correctly understand your qutestion, this is more of a servlet type session management issue. Take a look at the javax.servlet.http.HttpSessionBindingListener interface. It's basically a callback interface for when a session expires. Objects in the session, that implement the

Re: [JBoss-user] Design Question...

2001-07-30 Thread Tim Yates
rk on any of the four major browsing devices... - Original Message - From: Mike Abney <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 30, 2001 5:28 PM Subject: Re: [JBoss-user] Design Question... > Sorry, just re-read this. So... you're making your own

Re: [JBoss-user] Design Question...

2001-07-30 Thread Mike Abney
> When a user hits the site, they get allocated a unique 48 character session > ID (allocated by me). If they then login, I tie that sessionId to a userId > (both rows in seperate tables) > > But I have a design question... They can log-out, but many do not > (obviously), so what would be the be

Re: [JBoss-user] Design Question...

2001-07-30 Thread Mike Abney
This question is more servlet-interest oriented than JBoss oriented. You might want to check out that mailing list. (http://archives.java.sun.com/archives/servlet-interest.html) The typical way I have handled this in the past is to put the userId (if not the entire User*) into the HTTPSession whe

Re: [JBoss-user] Design Question...

2001-07-30 Thread Tim Yates
Sorry, by "the site", I meant "our website" - Original Message - From: Tim Yates <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 30, 2001 4:45 PM Subject: [JBoss-user] Design Question... > When a user hits the site, they get allocated a unique 48 character session > ID (a

RE: [JBoss-user] Design question - Singleton

2001-07-05 Thread Frank Marx
: [JBoss-user] Design question - Singleton The EJB spec forbids an enterprise Bean to use read/write static fields. This restriction is part of the contract with the EJB Container to control the bean lifecycle, e.g. by transparently distributing bean instances across multiple JVMs. I understand

Re: [JBoss-user] Design question - Singleton

2001-07-05 Thread Fred Loney
The EJB spec forbids an enterprise Bean to use read/write static fields. This restriction is part of the contract with the EJB Container to control the bean lifecycle, e.g. by transparently distributing bean instances across multiple JVMs. I understand GemStone was big on spawning JVMs. The st

RE: [JBoss-user] Design question - Singleton

2001-07-05 Thread Frank Marx
] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Thursday, July 05, 2001 12:23 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [JBoss-user] Design question - Singleton It sounds like there is a problem with your design if you are trying to do this - the EJB

RE: [JBoss-user] Design question - Singleton

2001-07-05 Thread Frank Marx
Hi, is it not possible to have a static field in the Session Bean, I mean it is not made persistent anyway. Have you tried this approach with the static field ? Frank ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/li

Re: [JBoss-user] Design question - Singleton

2001-07-05 Thread Alex . Devine
It sounds like there is a problem with your design if you are trying to do this - the EJB container controls all instance creation, so you can't really create a true Singleton bean. What are you trying to do? There are many other ways to get Singleton-like functionality with EJBs. I'm assuming t

Re: [JBoss-user] Design question

2001-07-02 Thread danch
Adam Young wrote: > If you want to make it read only, will JBoss allow you to write the > remote interface such that it only has getters?The M-H book suggests > not even exposing the remote interface for enitity beans. Certainly it > would be preferable to have on the getters available to

Re: [JBoss-user] Design question

2001-07-02 Thread Adam Young
If you want to make it read only, will JBoss allow you to write the remote interface such that it only has getters?The M-H book suggests not even exposing the remote interface for enitity beans. Certainly it would be preferable to have on the getters available to most clients. [EMAIL PR

Re: [JBoss-user] Design Question

2001-05-17 Thread Hunter Hillegas
d the value objects? Hunter > From: "DeGreef, Chris J. (AIT)" <[EMAIL PROTECTED]> > Reply-To: [EMAIL PROTECTED] > Date: Wed, 16 May 2001 15:39:04 -0400 > To: "'[EMAIL PROTECTED]'"<[EMAIL PROTECTED]> > Subject: RE: [JBoss-user] Design Ques

RE: [JBoss-user] Design Question

2001-05-16 Thread marc fleury
|Something to note. I found that "useBean" is kind of misleading for EJB |developers because it doesn't refer to Entreprise Beans to me. I sure does refers to EJB to me, javabeans as EJB is a standard pattern (hide the EJB semantics), marc ___ JBo

Re: [JBoss-user] Design Question

2001-05-16 Thread Dovan Nguyen
Chris, Yes I did experiment this approach and it worked great. Many people may think we are adding too many layers to accomplish the tasks but I believe this approach gives a very clean separation between the biz logic and presentation layers. Something to note. I found that "useBean" is kind o

RE: [JBoss-user] Design Question

2001-05-16 Thread DeGreef, Chris J. (AIT)
I have had good luck with a similar design. Here is what I do in cases like this. Most of this was found by reading articles / books and trial and error. In a JSP file I use the "useBean" to create / find a bean that resides in the same VM as the servlet engine. This bean follows the command p

Re: [JBoss-user] Design Question

2001-05-16 Thread danch (Dan Christopherson)
Hunter Hillegas wrote: > Okay... Starting the design on my first ever EJB/JBoss project. It's only > going to be accessible via the Web... > > I want to make sure I make an educated decision on the design. > > This is what I'm thinking: > > Requests come in via a servlet, which invokes methods