Varying Performance for different windows users
Hi all, We have a J2EE application build using struts, EJB and oracle as database. This is behaving strange. When X user logs into windows machine and access the application, performance measures are different when user Y logs into the same windows machine. Could anyone please help me to solve this problem? Regards, Viral - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Performance
Hi all, I have a application developed through Struts. Application is behaving very strangely on performance side. Performance measures are different depending on the user who is logged in to the machine. Is there any relation between Windows User Profile and application performance? Regards, Viral
RE: struts and ibatis
BTW, What is iBATIS? -Original Message- From: Kelly Goedert [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 3:41 PM To: Struts Users Mailing List Subject: struts and ibatis Hello, has anyone ever used iBATIS in a production environment? Is it stable enough? Kelly - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Pagination Support
Hi all, Do struts have any support for pagination purpose? By pagination, I mean, displaying the data retrieved from database in JSP page in fixed slots... Thanks & Regards, Viral - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FW: Singleton pattern to business delegate
Any reply…?? -Original Message- From: Viral_Thakkar Sent: Tuesday, December 30, 2003 7:03 PM To: Struts Users Mailing List Subject: Singleton pattern to business delegate Hi, Below text I found from sun java forum. “The pattern catalog describes the business delegate as containing an instance of an EJBObject where as the service locator can optionally cache an EJBHome object. The former avoids repeated JNDI lookups and creating an EJB whilst the later just avoids repeated JNDI lookups. Using this strategy, the delegate looks up the home interface and creates an instance of an EJB on creation; it has a one-to-one relationship with it. We don’t really want the delegate to have to create an EJB from the home interface in every method so it should therefore contain an instance member. This all means the delegate can’t be a singleton; it can't share that EJBObject with multiple clients.” Is there any another pattern which is useful to apply to business delegate classes? Thanks & Regards, Viral - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FW: Stateful session bean
Any response...??? -Original Message- From: Viral_Thakkar Sent: Tuesday, December 30, 2003 7:26 PM To: Struts Users Mailing List Subject: RE: Stateful session bean Assuming HttpSession is the place where I will store reference of business delegate; can I store the ValueObject(VO) object also at HttpSession (session)? By storing the VO in session, can we achieve the reduction in network traffic in operations like update, which will take data from screen, update VO object of session, use this VO only to update the screen and pass this VO to EJB to update the database. Here we are reducing the network traffic by not expecting VO back from EJB. Is this seems logical? Please advice. Thanks & Regards, Viral -Original Message- From: Nimmons, Buster [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 7:16 PM To: 'Struts Users Mailing List' Subject: RE: Stateful session bean Even though it seems this is a general J2EE related question it is not. Unlike most, this individual described the entire environment so that we may have a better understanding of the question. Which was, "should store reference of business delegate in the HttpSession so that another Action class (some another event in same session) can refer to the existing stateful session bean instance" that seems like a logical STRUTS related question to me. Now to answer the question. HttpSession would be the logical place to store the reference to resources needed across multiple HTTP requests -Original Message- From: SasiDharma Tharmarajah [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 7:36 AM To: Struts Users Mailing List Subject: RE: Stateful session bean I suppose this user group mainly caters for struts and strust related issues... May b u shd try posting it to [EMAIL PROTECTED] or [EMAIL PROTECTED] sasi -Original Message- From: Viral_Thakkar [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 7:29 PM To: Struts Users Mailing List Subject: Stateful session bean Hi all, Please confirm the below understanding of mine. Architecture: Action --> Business Delegate --> Session Bean --> Database Business delegate will hold a reference of session bean, this uses Service locator pattern to get Home Object reference. It will have business methods which will invoke corresponding methods on session EJB. In case of stateless session bean, I don't seem any problem but if I have to use stateful session bean then I think I should store reference of business delegate in the HttpSession so that another Action class (some another event in same session) can refer to the existing stateful session bean instance through business delegate which can be accessed from HttpSession. Please reply. Thanks & Regards, Viral - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Stateful session bean
Assuming HttpSession is the place where I will store reference of business delegate; can I store the ValueObject(VO) object also at HttpSession (session)? By storing the VO in session, can we achieve the reduction in network traffic in operations like update, which will take data from screen, update VO object of session, use this VO only to update the screen and pass this VO to EJB to update the database. Here we are reducing the network traffic by not expecting VO back from EJB. Is this seems logical? Please advice. Thanks & Regards, Viral -Original Message- From: Nimmons, Buster [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 7:16 PM To: 'Struts Users Mailing List' Subject: RE: Stateful session bean Even though it seems this is a general J2EE related question it is not. Unlike most, this individual described the entire environment so that we may have a better understanding of the question. Which was, "should store reference of business delegate in the HttpSession so that another Action class (some another event in same session) can refer to the existing stateful session bean instance" that seems like a logical STRUTS related question to me. Now to answer the question. HttpSession would be the logical place to store the reference to resources needed across multiple HTTP requests -Original Message- From: SasiDharma Tharmarajah [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 7:36 AM To: Struts Users Mailing List Subject: RE: Stateful session bean I suppose this user group mainly caters for struts and strust related issues... May b u shd try posting it to [EMAIL PROTECTED] or [EMAIL PROTECTED] sasi -Original Message- From: Viral_Thakkar [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 7:29 PM To: Struts Users Mailing List Subject: Stateful session bean Hi all, Please confirm the below understanding of mine. Architecture: Action --> Business Delegate --> Session Bean --> Database Business delegate will hold a reference of session bean, this uses Service locator pattern to get Home Object reference. It will have business methods which will invoke corresponding methods on session EJB. In case of stateless session bean, I don't seem any problem but if I have to use stateful session bean then I think I should store reference of business delegate in the HttpSession so that another Action class (some another event in same session) can refer to the existing stateful session bean instance through business delegate which can be accessed from HttpSession. Please reply. Thanks & Regards, Viral - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Stateful session bean
Are there any other alternatives available for this situation? Thanks, Viral -Original Message- From: Nimmons, Buster [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 7:16 PM To: 'Struts Users Mailing List' Subject: RE: Stateful session bean Even though it seems this is a general J2EE related question it is not. Unlike most, this individual described the entire environment so that we may have a better understanding of the question. Which was, "should store reference of business delegate in the HttpSession so that another Action class (some another event in same session) can refer to the existing stateful session bean instance" that seems like a logical STRUTS related question to me. Now to answer the question. HttpSession would be the logical place to store the reference to resources needed across multiple HTTP requests -Original Message- From: SasiDharma Tharmarajah [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 7:36 AM To: Struts Users Mailing List Subject: RE: Stateful session bean I suppose this user group mainly caters for struts and strust related issues... May b u shd try posting it to [EMAIL PROTECTED] or [EMAIL PROTECTED] sasi -Original Message- From: Viral_Thakkar [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 7:29 PM To: Struts Users Mailing List Subject: Stateful session bean Hi all, Please confirm the below understanding of mine. Architecture: Action --> Business Delegate --> Session Bean --> Database Business delegate will hold a reference of session bean, this uses Service locator pattern to get Home Object reference. It will have business methods which will invoke corresponding methods on session EJB. In case of stateless session bean, I don't seem any problem but if I have to use stateful session bean then I think I should store reference of business delegate in the HttpSession so that another Action class (some another event in same session) can refer to the existing stateful session bean instance through business delegate which can be accessed from HttpSession. Please reply. Thanks & Regards, Viral - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Singleton pattern to business delegate
Hi, Below text I found from sun java forum. “The pattern catalog describes the business delegate as containing an instance of an EJBObject where as the service locator can optionally cache an EJBHome object. The former avoids repeated JNDI lookups and creating an EJB whilst the later just avoids repeated JNDI lookups. Using this strategy, the delegate looks up the home interface and creates an instance of an EJB on creation; it has a one-to-one relationship with it. We don’t really want the delegate to have to create an EJB from the home interface in every method so it should therefore contain an instance member. This all means the delegate can’t be a singleton; it can't share that EJBObject with multiple clients.” Is there any another pattern which is useful to apply to business delegate classes? Thanks & Regards, Viral - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Stateful session bean
Hi all, Please confirm the below understanding of mine. Architecture: Action à Business Delegate à Session Bean à Database Business delegate will hold a reference of session bean, this uses Service locator pattern to get Home Object reference. It will have business methods which will invoke corresponding methods on session EJB. In case of stateless session bean, I don’t seem any problem but if I have to use stateful session bean then I think I should store reference of business delegate in the HttpSession so that another Action class (some another event in same session) can refer to the existing stateful session bean instance through business delegate which can be accessed from HttpSession. Please reply. Thanks & Regards, Viral - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Refresh -submit relation
Could you please provide some more details about this? -Original Message- From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 09, 2003 5:54 PM To: Struts Users Mailing List Subject: Re: Refresh -submit relation Hi You need to use the concept of saveTokens Which prevent yoyr form from getting submitted twice Cheers gary - Original Message - From: "Viral_Thakkar" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, December 09, 2003 5:17 PM Subject: Refresh -submit relation > I have a page for upload functionality which uploads the files to a > folder. > > Here I am referring the struts example for uploading of files and I am > inserting the record in table at the same time. > > This upload is working fine but problem is when I refresh the browser > page, the page is getting submitted again. Due to this duplicate records > are inserted in the database. > > Is there any way, to stop the page to submit on refresh? > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Refresh -submit relation
I have a page for upload functionality which uploads the files to a folder. Here I am referring the struts example for uploading of files and I am inserting the record in table at the same time. This upload is working fine but problem is when I refresh the browser page, the page is getting submitted again. Due to this duplicate records are inserted in the database. Is there any way, to stop the page to submit on refresh? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: downloading of files
Can u please look at http://www.mail-archive.com/[EMAIL PROTECTED]/msg15750.html and tell me what code need to go in the download action class? -Original Message- From: Firat TIRYAKI [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 5:39 PM To: Struts Users Mailing List Subject: Re: downloading of files well, if you want to authenticate users to download the files, your software should handle the direct file requests (for example http://localhost/download/x.gif), because the direck file requests does not call action servlet in a standart struts designed web.xml file. With a servlet you can manage the direct requests, URLs like the example above. Let me give you the web.xml part to give you the idea DownloadAccessor DownloadAccessor com.mypackage.DownloadAccessor 10 DownloadAccessor /downloads/* F. - Original Message - From: "Viral_Thakkar" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, December 08, 2003 1:55 PM Subject: RE: downloading of files Should I write the action class for the download functionality or servlet code required? -Original Message- From: Firat TIRYAKI [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 3:45 PM To: Struts Users Mailing List Subject: Re: downloading of files Define a download accessor class (that you'll write using servlet functionality) in the web.xml file that manages the file when requested. F. - Original Message - From: "Viral_Thakkar" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, December 08, 2003 12:00 PM Subject: RE: downloading of files I have a screen which provides support to upload and download the files. To upload the files, I am using the struts example. Now, I need to know how to implement the "download/display details" functionality. Regards, Viral -Original Message- From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 3:14 PM To: Struts Users Mailing List Subject: Re: downloading of files I assume that your Action prompts the user (the guy using the browser) to save the file ? Viral_Thakkar wrote: >Is there any struts support to download the files? > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: downloading of files
Should I write the action class for the download functionality or servlet code required? -Original Message- From: Firat TIRYAKI [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 3:45 PM To: Struts Users Mailing List Subject: Re: downloading of files Define a download accessor class (that you'll write using servlet functionality) in the web.xml file that manages the file when requested. F. - Original Message - From: "Viral_Thakkar" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, December 08, 2003 12:00 PM Subject: RE: downloading of files I have a screen which provides support to upload and download the files. To upload the files, I am using the struts example. Now, I need to know how to implement the "download/display details" functionality. Regards, Viral -Original Message- From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 3:14 PM To: Struts Users Mailing List Subject: Re: downloading of files I assume that your Action prompts the user (the guy using the browser) to save the file ? Viral_Thakkar wrote: >Is there any struts support to download the files? > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: downloading of files
I have a screen which provides support to upload and download the files. To upload the files, I am using the struts example. Now, I need to know how to implement the "download/display details" functionality. Regards, Viral -Original Message- From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 3:14 PM To: Struts Users Mailing List Subject: Re: downloading of files I assume that your Action prompts the user (the guy using the browser) to save the file ? Viral_Thakkar wrote: >Is there any struts support to download the files? > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
downloading of files
Is there any struts support to download the files? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html:form tag
Yes, u r rite. Thanks kadir for prompt reply. -Original Message- From: Kathiresan Murugesan [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 2:06 PM To: Viral_Thakkar Subject: RE: html:form tag Hi You can use the name attribute value you given in your form bean mapping in your struts-config.xml. That will be the name of your form. kadir -Original Message- From: Viral_Thakkar To: Struts Users Mailing List Sent: 12/8/2003 1:53 PM Subject: html:form tag I am converting a html form to .jsp page. Html file contains following form code. tag. This form name is getting used by few javascript functions. At present I have this line in .jsp page for form tag. Which attribute in the html:form tag represents the "name" attribute of "form" tag? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
html:form tag
I am converting a html form to .jsp page. Html file contains following form code. tag. This form name is getting used by few javascript functions. At present I have this line in .jsp page for form tag. Which attribute in the html:form tag represents the "name" attribute of "form" tag? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts upload functionalities
Hi all, Is there reference documentation or code available which explains the upload (uploading of documents) functionality? Thanks in advance. Regards, Viral - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to access HttpSession in EJB code?
Is there any way, I can access the object from session in the EJB bean method? I am keeping the profile object in HttpSession, once the user gets successfully logged-in. Now I want to access few values from this profile object which is kept inside session. The application flow is as below : Struts Action --> Business Delegate --> Session Façade... Thanks, Viral - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HAPPY DIWALI!
Happy Diwali !!! -Original Message- From: SasiDharma Tharmarajah [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 4:47 PM To: Struts Users Mailing List; Abhijeet Mahalkar Subject: RE: HAPPY DIWALI! Happy Deepavali :-) r sasi > -Original Message- > From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 22, 2003 4:50 PM > To: Struts Users Mailing List; Abhijeet Mahalkar > Subject: HAPPY DIWALI! > > > Aapko Naye Saal me... > > Chandragupt Ki Shakti > Meerabai Ki Bhakti > > Ramchandra Ka Gyan > Karan Ka Daan > > Einstein Ki Buddhi > Nobel Prize Ki Siddhi > >Gandhi Ki Ahimsa > India Ki Parampara > > Vajpayee Ki Maryada >Nizaam Ki Sampada > >Michael Jordan Ki Salary >Abdul Kalam Ki Vocabulary > >Bhagat Singh Ka Deshprem > Sweetheart Ka Amarprem > > Microsoft Ke Share > Rupiyo Ke Dher > > Tata Ke Senses > Ambani Ke Licenses > > Birla Ka Bangla >Daler Ka Bhangra > >Amitabh Ki Style >Madhuri Ki Smile > > Shahrukh Ki Personality > Aishwarya Ki Popularity > > Worldtour Ka Ticket > Tendulkar Ka Wicket > > Administrator Ke Passwords >Jokes Ke Forwards > > Mercedez Ki Car > Diamond Ka Haar > > Aur Logon Ka Dher Saraa Pyar Prapt Ho... > > Wish you a Happy Diwali and a Prosperous New Year > > Regards > Abhijeet Mahalkar > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: struts error on console screen.
Thanks Caroline for the info -Original Message- From: Caroline Lauferon [mailto:[EMAIL PROTECTED] Sent: Thursday, October 16, 2003 6:15 PM To: Struts Users Mailing List Subject: Re: struts error on console screen. this is not an error message, but an information message!! It informs you that the MessageResources are being configured from your file org.apache.struts.action.ActionResources, and that if there is no message for the key you ask for, null will be returned. Hope it helps! Caroline Does anybody have an idea on following error? [INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.action.ActionResources', returnNull=true I am getting this error on console. Regards, Viral -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
struts error on console screen.
Hi all, Does anybody have an idea on following error? [INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.action.ActionResources', returnNull=true I am getting this error on console. Regards, Viral - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
log4j setup
Please let me know what are the steps one need to do to configure the log4j. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tool to diagnose J2EE/Struts/Oracle problem
Hi hari, Could you provide some more info on using the toplink w.r.t to struts, EJB and oracle database. I would like to see few lines of toplink code. Thanks, Viral -Original Message- From: hari_s [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 10:06 AM To: 'Struts Users Mailing List' Subject: RE: Tool to diagnose J2EE/Struts/Oracle problem I think you should try toplink from oracle for your connection to database. -Original Message- From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 9:52 AM To: Struts Users Mailing List Subject: Tool to diagnose J2EE/Struts/Oracle problem I am havng a No resource Available problem with my J2EE/Struts/Oracle application. It is saying I don't have any more Oracle connections available. Even I am closing the result set, statement and connection, I am still running into the problem. When I use the Oracle DBA monitor tool, it shows that I have 10 'inactive' connection but then my app will give the 'no resource available' error. So it looks like somehow it is not reusing those inactive connections. Does Gabage Collection release those connections? Does anyone have this problem before? So I am looking for a better 'tool' to find out why GC doesn't release those connections or if those 10 'inactive' connections are actually available to be re-used. Can someone give me a suggestion on this tool or how to troubleshoot the problem? Thanks Stella - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Service Locator class
This search results in classes which uses the ObjectInputStream and OutputStream. I am interested in a class which is not using this serializable funda. -Original Message- From: Paananen, Tero [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 7:24 PM To: 'Struts Users Mailing List' Subject: RE: Service Locator class > Can anyone provide me the Service Locator class? http://www.google.com/search?q=ServiceLocator+Java -TPP - This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, retention, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message. Also, email is susceptible to data corruption, interception, tampering, unauthorized amendment and viruses. We only send and receive emails on the basis that we are not liable for any such corruption, interception, tampering, amendment or viruses or any consequence thereof. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Service Locator class
Hi all, Can anyone provide me the Service Locator class? Regards, Viral - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Any potential drawbacks with this design
Better extend the RequestProcessor class. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, September 08, 2003 2:24 PM To: [EMAIL PROTECTED] Subject: Any potential drawbacks with this design Hi All, Please give me your comments/suggestions on the below design. I need to perform some common functionality across all the application action classes, so I have written an abstract MyOwnAction class inheriting from STRUTS Action class. All application action classes will be extending MyOwnAction class. I have overridden the execute() method in MyOwnAction class in which I am doing my desired common functionality. I am also publishing an abstract method executeTask() which should be overridden by the all the application action classes The executeTask() method is called by the execute() method of MOwnAction class. Basically the executeTask() is now the method where the application action classes will write the application code as opposed to execute(). Regards Sreekant G - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Exception framework Usage
Thanks Navjot for reply. Please provide your input on the directory structure.(at web layer and also at application layer) or exception classes should be at root level? Also let me know whether your base exception classes (AppException and AppRuntimeException) extend from Exception or EJBException or something else? For each different type of exception situation, should we have different exception classes or just a set of classes solve the purpose? -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: Monday, September 01, 2003 6:23 PM To: Struts Users Mailing List Subject: RE: Exception framework Usage hi viral, You are thinking in the right direction. That's the way i do it. I have got 2 base exception classes. AppException and AppRuntimeException. 1. The exceptions that come under the purview of the business logic and these can be handled somehow at the controller/model layer to alter the flow of control MUST extend AppException. 2. The exceptions that does not come under the purview of the business logic and raise because of the system or network problems MUST extend AppRuntimeException. However, one must use some common sense to decide which exception should go where. Say, we are connecting to some URL and it may throw TimeoutException. which is not a checked exception. We must be ready to capture this and throw some checked exception. The caller may catch the exception and try connecting againmay be thrice ;-) and if still no luck the caller passes on the message to PRESENTATION. So your code will not be cluttered with "throws XRuntimeException" and tthese exceptions MUST be handled back at CONTROLLER layer only. MODEL layer should just handle CHECKED exceptions. Examples At Controller => DuplicateEmailException extends AppException (we may display the same form showing error on top) At Model => InsufficientBalanceException extends AppException (we may charge as much as he has got and rest of the amount we will accomodtae in next invoice) DatabaseAccessException extends AppRuntimeException ( as there is hardly anything we can do about this. We MAY show some nice "SORRY" page and/or may LOG this exception somewhere) BTW, there is some nice article on "Exception handling" on IBM Developer site. Do check. hope this helps and suggestions are welcome. Navjot Singh -Original Message- From: Viral_Thakkar [mailto:[EMAIL PROTECTED] Sent: Monday, September 01, 2003 5:50 PM To: Struts Users Mailing List Subject: Exception framework Usage Hi, Please suggest the exception framework in a scenario in a following scenario. Struts Action class a Business Delegate --> EJB a OR Mapping (Top link) a Domain classes Please validate the below lines. There will be three layers at which we need to handle the exception. At EJB layer, at business delegate and at struts layer. 1.. EJB layer (session bean) methods will throw the (Application) business exceptions along with RemoteException. In the catch block it will throw the EJBException (in case of checked system exceptions like NamingException). 2.. At business delegate layer, we will throw the application exceptions in the catch block rather than EJBException to decouple the web layer and EJB layer. 3.. At struts layer, in the Action class's execute(), we will catch all these business exceptions. Please provide your valuable inputs. Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Exception framework Usage
Hi, Please suggest the exception framework in a scenario in a following scenario. Struts Action class à Business Delegate --> EJB à OR Mapping (Top link) à Domain classes Please validate the below lines. There will be three layers at which we need to handle the exception. At EJB layer, at business delegate and at struts layer. EJB layer (session bean) methods will throw the (Application) business exceptions along with RemoteException. In the catch block it will throw the EJBException (in case of checked system exceptions like NamingException). At business delegate layer, we will throw the application exceptions in the catch block rather than EJBException to decouple the web layer and EJB layer. At struts layer, in the Action class’s execute(), we will catch all these business exceptions. Please provide your valuable inputs. Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : Remote and local EJB
I think this part we need to explore. Even I don't know about this configuration but if we can find solution to this then nothing like that... Otherwise configuration using the external properties/xml files always there... :) But still I think we need to have code for both , accessing remote and local EJBs in the EJB client program (business delegate) and it will read some file and will execute only one of the block (remote or local)... Wht u all say..??? -Original Message- From: Shashank Dixit [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 6:00 PM To: Struts Users Mailing List Cc: Viral_Thakkar Subject: RE: RE : Remote and local EJB you mean you can mention these in ejb-jar.xml? How? Shashank S. Dixit Software Analyst. Datamatics Ltd. Contact: 28291253 ext 146 Mobile: 9820930075 Be brave against all odds. Never give up. -Original Message- From: Viral_Thakkar [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 3:35 PM To: [EMAIL PROTECTED]; Struts Users Mailing List Subject: RE : Remote and local EJB This seems to be good idea. I think EJB configuration files may also help us to achieve the same. -Original Message- From: Shashank Dixit [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 2:29 PM To: Viral_Thakkar; Struts Users Mailing List Subject: RE: RE : Remote and local EJB You can have properties file where you can define which interface should you consider for calling EJBs. SO that you dont have to change your code to serve your purpose. Let me know what do you think Shashank S. Dixit Software Analyst. Datamatics Ltd. Contact: 28291253 ext 146 Mobile: 9820930075 Be brave against all odds. Never give up. -Original Message- From: Viral_Thakkar [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 11:30 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: RE : Remote and local EJB If we know that EJBs and struts classes will reside in same JVM then why we should also invoke the stateless session bean remotely? We can invoke that session bean using the local interface... rite .? Although I agree that in furure, we may deploy web and app classes on different machines, so that's why I am looking for a solution where we can take advantage of both local and remote interface of EJB. I would say we should prefer the local EJB call instead of remote EJB call as far as possible. Viral -Original Message- From: Shashank Dixit [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 10:29 AM To: Struts Users Mailing List; Viral_Thakkar; [EMAIL PROTECTED] Subject: RE: RE : Remote and local EJB Hi Viral Ideally there should be one stateless session bean within action class and business component EJBs so that you have only one remote call and all other EJB calls are local. You should always program considering different tiers on different machines, although you are using the web and app tier on same machine now. Let me know what do you think on this. Shashank S. Dixit Software Analyst. Datamatics Ltd. Contact: 28291253 ext 146 Mobile: 9820930075 Be brave against all odds. Never give up. -Original Message----- From: Viral_Thakkar [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 9:40 AM To: Struts Users Mailing List; Piper, James D CECOM SEC EPS Subject: RE : Remote and local EJB Thanks Jim. I am using the oracle 9iAS. I also developed the EJB which supports both remote and local access. I am also able to invoke this EJB from my action class. I accessed this EJB using the remote and also using local interface separately. The reason why I want this EJB to be deployed both as local and remote is that at present EJB will be accessed by the struts action class, both are in same JVM so I can access the EJB using the local interface. In future when we do clustering then at that time, EJB bean may be at different server, in different JVM, at that time struts action class should dynamically find the remote EJB. One way I think, we can handle such situation in the catch block of the NamingException() while accessing the local bean, we need to lookup the remote EJB. But it seems that this is not the good programming practice. So I am looking for some design pattern or framework, which supports the solution to this problem. Thanks, Viral -Original Message- From: Piper, James D CECOM SEC EPS [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 7:49 PM To: Viral_Thakkar Subject: RE: RE : Remote and local EJB So let me see if I understand what it is you are wanting to accomplish. It sounds like you have a bunch of EJBs, a Struts application and several servers. You would like http requests coming in to be 'evaluated' by your application and then based on some information within that request (i.e. users name, users ip address, users browsers type, users preference selection, or possibly even the current servers load) invoke either a local or a remo
RE : Remote and local EJB
This seems to be good idea. I think EJB configuration files may also help us to achieve the same. -Original Message- From: Shashank Dixit [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 2:29 PM To: Viral_Thakkar; Struts Users Mailing List Subject: RE: RE : Remote and local EJB You can have properties file where you can define which interface should you consider for calling EJBs. SO that you dont have to change your code to serve your purpose. Let me know what do you think Shashank S. Dixit Software Analyst. Datamatics Ltd. Contact: 28291253 ext 146 Mobile: 9820930075 Be brave against all odds. Never give up. -Original Message- From: Viral_Thakkar [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 11:30 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: RE : Remote and local EJB If we know that EJBs and struts classes will reside in same JVM then why we should also invoke the stateless session bean remotely? We can invoke that session bean using the local interface... rite .? Although I agree that in furure, we may deploy web and app classes on different machines, so that's why I am looking for a solution where we can take advantage of both local and remote interface of EJB. I would say we should prefer the local EJB call instead of remote EJB call as far as possible. Viral -Original Message- From: Shashank Dixit [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 10:29 AM To: Struts Users Mailing List; Viral_Thakkar; [EMAIL PROTECTED] Subject: RE: RE : Remote and local EJB Hi Viral Ideally there should be one stateless session bean within action class and business component EJBs so that you have only one remote call and all other EJB calls are local. You should always program considering different tiers on different machines, although you are using the web and app tier on same machine now. Let me know what do you think on this. Shashank S. Dixit Software Analyst. Datamatics Ltd. Contact: 28291253 ext 146 Mobile: 9820930075 Be brave against all odds. Never give up. -Original Message- From: Viral_Thakkar [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 9:40 AM To: Struts Users Mailing List; Piper, James D CECOM SEC EPS Subject: RE : Remote and local EJB Thanks Jim. I am using the oracle 9iAS. I also developed the EJB which supports both remote and local access. I am also able to invoke this EJB from my action class. I accessed this EJB using the remote and also using local interface separately. The reason why I want this EJB to be deployed both as local and remote is that at present EJB will be accessed by the struts action class, both are in same JVM so I can access the EJB using the local interface. In future when we do clustering then at that time, EJB bean may be at different server, in different JVM, at that time struts action class should dynamically find the remote EJB. One way I think, we can handle such situation in the catch block of the NamingException() while accessing the local bean, we need to lookup the remote EJB. But it seems that this is not the good programming practice. So I am looking for some design pattern or framework, which supports the solution to this problem. Thanks, Viral -Original Message- From: Piper, James D CECOM SEC EPS [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 7:49 PM To: Viral_Thakkar Subject: RE: RE : Remote and local EJB So let me see if I understand what it is you are wanting to accomplish. It sounds like you have a bunch of EJBs, a Struts application and several servers. You would like http requests coming in to be 'evaluated' by your application and then based on some information within that request (i.e. users name, users ip address, users browsers type, users preference selection, or possibly even the current servers load) invoke either a local or a remote EJB. For example maybe you have an EJB that does some realy heavy calculatations like a ray-tracer and for some important users you want the results to come back faster than for other less important users. So you make your ray tracing EJB and deploy it on both the local server (i.e. the same one running your Struts app) and on some other EJB server far far away. Then register them both in your ejb-jar.xml with different names ie. RayTraceLocal and RayTraceRemote. So now to access either the remote or the local EJB depending on the request you write your Struts action class to first evaluate the HTTP request to figure out if this request is coming from the important user or not and then as appropriate either do your jndi lookup for the RayTraceLocal or the RayTraceRemote. As far as I know there is not any built in mechanics within Struts for doing this kind of thing, its up to you to write an Action class that invokes the backend EJB you want. I think some EJB servers give you some flexability and increase performance when using EJBs that are
RE: RE : Remote and local EJB
If we know that EJBs and struts classes will reside in same JVM then why we should also invoke the stateless session bean remotely? We can invoke that session bean using the local interface... rite .? Although I agree that in furure, we may deploy web and app classes on different machines, so that's why I am looking for a solution where we can take advantage of both local and remote interface of EJB. I would say we should prefer the local EJB call instead of remote EJB call as far as possible. Viral -Original Message- From: Shashank Dixit [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 10:29 AM To: Struts Users Mailing List; Viral_Thakkar; [EMAIL PROTECTED] Subject: RE: RE : Remote and local EJB Hi Viral Ideally there should be one stateless session bean within action class and business component EJBs so that you have only one remote call and all other EJB calls are local. You should always program considering different tiers on different machines, although you are using the web and app tier on same machine now. Let me know what do you think on this. Shashank S. Dixit Software Analyst. Datamatics Ltd. Contact: 28291253 ext 146 Mobile: 9820930075 Be brave against all odds. Never give up. -Original Message- From: Viral_Thakkar [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 9:40 AM To: Struts Users Mailing List; Piper, James D CECOM SEC EPS Subject: RE : Remote and local EJB Thanks Jim. I am using the oracle 9iAS. I also developed the EJB which supports both remote and local access. I am also able to invoke this EJB from my action class. I accessed this EJB using the remote and also using local interface separately. The reason why I want this EJB to be deployed both as local and remote is that at present EJB will be accessed by the struts action class, both are in same JVM so I can access the EJB using the local interface. In future when we do clustering then at that time, EJB bean may be at different server, in different JVM, at that time struts action class should dynamically find the remote EJB. One way I think, we can handle such situation in the catch block of the NamingException() while accessing the local bean, we need to lookup the remote EJB. But it seems that this is not the good programming practice. So I am looking for some design pattern or framework, which supports the solution to this problem. Thanks, Viral -Original Message- From: Piper, James D CECOM SEC EPS [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 7:49 PM To: Viral_Thakkar Subject: RE: RE : Remote and local EJB So let me see if I understand what it is you are wanting to accomplish. It sounds like you have a bunch of EJBs, a Struts application and several servers. You would like http requests coming in to be 'evaluated' by your application and then based on some information within that request (i.e. users name, users ip address, users browsers type, users preference selection, or possibly even the current servers load) invoke either a local or a remote EJB. For example maybe you have an EJB that does some realy heavy calculatations like a ray-tracer and for some important users you want the results to come back faster than for other less important users. So you make your ray tracing EJB and deploy it on both the local server (i.e. the same one running your Struts app) and on some other EJB server far far away. Then register them both in your ejb-jar.xml with different names ie. RayTraceLocal and RayTraceRemote. So now to access either the remote or the local EJB depending on the request you write your Struts action class to first evaluate the HTTP request to figure out if this request is coming from the important user or not and then as appropriate either do your jndi lookup for the RayTraceLocal or the RayTraceRemote. As far as I know there is not any built in mechanics within Struts for doing this kind of thing, its up to you to write an Action class that invokes the backend EJB you want. I think some EJB servers give you some flexability and increase performance when using EJBs that are within the same container - WebLogic I know lets you specify both a remote and a local name for each EJB then provides better performance when using the local one - Possible even the high end WebLogic stuff will do automatic load balancing between EJB server so that your calls to jndi lookup return references to EJBs on whatever server is being currently used less. But these kind of load balancing issues you would need to talk with your EJB server provider and then build your Struts actions to invkoke those EJBs in the way the EJB server provider specified to get the benefits of load balancing. Good Luck, Jim Piper -Original Message- From: Viral_Thakkar [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 8:27 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE : Remote and local EJB Thanks for the reply
RE : Remote and local EJB
Thanks Jim. I am using the oracle 9iAS. I also developed the EJB which supports both remote and local access. I am also able to invoke this EJB from my action class. I accessed this EJB using the remote and also using local interface separately. The reason why I want this EJB to be deployed both as local and remote is that at present EJB will be accessed by the struts action class, both are in same JVM so I can access the EJB using the local interface. In future when we do clustering then at that time, EJB bean may be at different server, in different JVM, at that time struts action class should dynamically find the remote EJB. One way I think, we can handle such situation in the catch block of the NamingException() while accessing the local bean, we need to lookup the remote EJB. But it seems that this is not the good programming practice. So I am looking for some design pattern or framework, which supports the solution to this problem. Thanks, Viral -Original Message- From: Piper, James D CECOM SEC EPS [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 7:49 PM To: Viral_Thakkar Subject: RE: RE : Remote and local EJB So let me see if I understand what it is you are wanting to accomplish. It sounds like you have a bunch of EJBs, a Struts application and several servers. You would like http requests coming in to be 'evaluated' by your application and then based on some information within that request (i.e. users name, users ip address, users browsers type, users preference selection, or possibly even the current servers load) invoke either a local or a remote EJB. For example maybe you have an EJB that does some realy heavy calculatations like a ray-tracer and for some important users you want the results to come back faster than for other less important users. So you make your ray tracing EJB and deploy it on both the local server (i.e. the same one running your Struts app) and on some other EJB server far far away. Then register them both in your ejb-jar.xml with different names ie. RayTraceLocal and RayTraceRemote. So now to access either the remote or the local EJB depending on the request you write your Struts action class to first evaluate the HTTP request to figure out if this request is coming from the important user or not and then as appropriate either do your jndi lookup for the RayTraceLocal or the RayTraceRemote. As far as I know there is not any built in mechanics within Struts for doing this kind of thing, its up to you to write an Action class that invokes the backend EJB you want. I think some EJB servers give you some flexability and increase performance when using EJBs that are within the same container - WebLogic I know lets you specify both a remote and a local name for each EJB then provides better performance when using the local one - Possible even the high end WebLogic stuff will do automatic load balancing between EJB server so that your calls to jndi lookup return references to EJBs on whatever server is being currently used less. But these kind of load balancing issues you would need to talk with your EJB server provider and then build your Struts actions to invkoke those EJBs in the way the EJB server provider specified to get the benefits of load balancing. Good Luck, Jim Piper -Original Message----- From: Viral_Thakkar [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 8:27 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE : Remote and local EJB Thanks for the reply. I agree with this solution, but this does not solve the problem of accessing the remote and local EJBs depending on the request. -Original Message- From: Laurent MARQUEZ [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2003 10:11 PM To: 'Struts Users Mailing List' Subject: RE : RE : Remote and local EJB 1-See on http://www-106.ibm.com/developerworks/java/library/j-ejb1022.html for pattern business delegate. 2-You must declare your EJB Local or remote or both interface in your web.xml, Like this foo example: #ejb-ref> # # ejb/fr.artal.FooHome # # # Session # # # fr.artal.FooHome # # # fr.artal.Foo # # # FooEJB # # 3-Call your delegate interface, in your action class: import org.apache.struts.action.Action; #Public class FooAction extends Action #{ # //~ Static fields/initializers - # # public static final String ID = "ID"; # public static final String NAME = "NAME"; # # //~ Methods # protected ActionForward execute( # ActionMapping mapping, # ActionForm form, # HttpServletRequest request, # HttpServletResponse response) # throws Exception { # # Integer id = n
RE: Session expired
It seems that there are two solutions for same problem, one using the RequestProcessor and other one using the servlet 2.3 Filter. Which one is the better solution from performance point of view or other parameters if any, we can use to find better solution? Viral -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 9:29 PM To: Struts Users Mailing List Subject: RE: Session expired On Tue, 19 Aug 2003, Filip Polsakiewicz wrote: > Date: Tue, 19 Aug 2003 14:12:40 +0200 > From: Filip Polsakiewicz <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: Struts Users Mailing List <[EMAIL PROTECTED]> > Subject: RE: Session expired > > My problem is, that I already have something around 60 jsps. Now it would be > nice to have a workaround so that i don't have to adapt all my jsps and > actions. > If you have followed the recommended Struts design practice of flowing *all* requests through the controller servlet, then it's really easy to do this -- subclass RequestProcessor and override one of the processXxx methods to perform this check for you. If you have direct hyperlinks to JSP pages, then you can use a Filter if you're on a Servlet 2.3 or later container; otherwise, you're stuck having to modify your 60 pages. If you have to modify things anyway, you're strongly encouraged to follow the recommended design pattern and flow things through the controller, so you can do things like this in one place. Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : Remote and local EJB
Thanks for the reply. I agree with this solution, but this does not solve the problem of accessing the remote and local EJBs depending on the request. -Original Message- From: Laurent MARQUEZ [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2003 10:11 PM To: 'Struts Users Mailing List' Subject: RE : RE : Remote and local EJB 1-See on http://www-106.ibm.com/developerworks/java/library/j-ejb1022.html for pattern business delegate. 2-You must declare your EJB Local or remote or both interface in your web.xml, Like this foo example: #ejb-ref> # # ejb/fr.artal.FooHome # # # Session # # # fr.artal.FooHome # # # fr.artal.Foo # # # FooEJB # # 3-Call your delegate interface, in your action class: import org.apache.struts.action.Action; #Public class FooAction extends Action #{ # //~ Static fields/initializers - # # public static final String ID = "ID"; # public static final String NAME = "NAME"; # # //~ Methods # protected ActionForward execute( # ActionMapping mapping, # ActionForm form, # HttpServletRequest request, # HttpServletResponse response) # throws Exception { # # Integer id = null; # FooData fooData = null; # # if (form != null) # { # // using the form displayed in the view to get the foo id # String id = (String)PropertyUtils.getSimpleProperty(form, "id"); # # # // using business delegate pattern to interface with EJB session # FooDelegate FooDelegate = new FooDelegate(); # # # fooData = FooDelegate.getFoo(id); # } # if (fooData != null) # { # // set the request attribute # String name = fooData .getName(); # # request.setAttribute(ID, id); # request.setAttribute(NAME, name); # } # } #} 4- you can now, use the request object to display all the foo fields in your view(JSP) Example foo data: #<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> #<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> # # # # # # # # Foo: # # #Id: <%= request.getAttribute("ID") %> # # # # # #Name: <%= request.getAttribute("NAME") %> # # # # # # # -Message d'origine- De : Viral_Thakkar [mailto:[EMAIL PROTECTED] Envoyé : lundi 18 août 2003 11:39 À : Struts Users Mailing List Objet : RE: RE : Remote and local EJB Business delegate pattern explains on how to use the business delegate class. This pattern explains its usage and benefits. Here I am interested in a solution which supports remote and local EJB access depending on request. Any idea on this...??? -Original Message- From: Laurent MARQUEZ [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2003 1:07 PM To: 'Struts Users Mailing List' Subject: RE : Remote and local EJB Yes, you can interface EJB with Jakarta Struts I use the pattern business delegate See chapter 13 Of Programming Jakarta struts -Message d'origine- De : Viral_Thakkar [mailto:[EMAIL PROTECTED] Envoyé : lundi 18 août 2003 07:35 À : Struts Users Mailing List Objet : Remote and local EJB Is there any struts support or any one has idea on following problem? I am developing an application in which I require to develop an EJB with local and remote interface. Local or remote EJB should be invoked depending on the request. How one can identify this? Any framework which support this local and remote EJB development and access? -Original Message- From: Robert Leland [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2003 9:39 AM To: [EMAIL PROTECTED] Subject: [Validator] The Validator Wiki needs you ! There is now a Commons Validator Wiki ! Beware this is only a shell to start collecting tips, FAQs, and examples for using validator. You can make a much needed contribution ! http://nagoya.apache.org/wiki/apachewiki.cgi?ValidatorProjectPages This is also great opportunity to delete all those old emails you have been saving ! Come on, there must be hundreds, and put them on the web ! Then they are instantly available from any web browser: * At work, Your Desk Your Co-worker's Desk * At home * At a remote s
RE: Session Scope inside Filter
Thanks Craig. -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2003 9:22 PM To: Struts Users Mailing List Subject: Re: Session Scope inside Filter On Mon, 18 Aug 2003, Viral_Thakkar wrote: > Date: Mon, 18 Aug 2003 16:03:22 +0530 > From: Viral_Thakkar <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: Struts Users Mailing List <[EMAIL PROTECTED]> > Subject: Session Scope inside Filter > > Is session available in servlet filter code? > > Inside the doFilter() method of servlet filter (servlet 2.3 feature), > can I access the session to retrieve a object from it? > Yes, using the same techniques that you normally do. The only twist is you have to cast the incoming ServletRequest to HttpServletRequest in order to access the getSession() method. Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
log4j configuration and usage
I have log4j 1.2.8 version. Can anyone please tell me the log4j configuration required to do, for its use for logging and how to use log4j? Example would be better. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Session Scope inside Filter
Is session available in servlet filter code? Inside the doFilter() method of servlet filter (servlet 2.3 feature), can I access the session to retrieve a object from it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: RE : Remote and local EJB
Business delegate pattern explains on how to use the business delegate class. This pattern explains its usage and benefits. Here I am interested in a solution which supports remote and local EJB access depending on request. Any idea on this...??? -Original Message- From: Laurent MARQUEZ [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2003 1:07 PM To: 'Struts Users Mailing List' Subject: RE : Remote and local EJB Yes, you can interface EJB with Jakarta Struts I use the pattern business delegate See chapter 13 Of Programming Jakarta struts -Message d'origine- De : Viral_Thakkar [mailto:[EMAIL PROTECTED] Envoyé : lundi 18 août 2003 07:35 À : Struts Users Mailing List Objet : Remote and local EJB Is there any struts support or any one has idea on following problem? I am developing an application in which I require to develop an EJB with local and remote interface. Local or remote EJB should be invoked depending on the request. How one can identify this? Any framework which support this local and remote EJB development and access? -Original Message- From: Robert Leland [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2003 9:39 AM To: [EMAIL PROTECTED] Subject: [Validator] The Validator Wiki needs you ! There is now a Commons Validator Wiki ! Beware this is only a shell to start collecting tips, FAQs, and examples for using validator. You can make a much needed contribution ! http://nagoya.apache.org/wiki/apachewiki.cgi?ValidatorProjectPages This is also great opportunity to delete all those old emails you have been saving ! Come on, there must be hundreds, and put them on the web ! Then they are instantly available from any web browser: * At work, Your Desk Your Co-worker's Desk * At home * At a remote site * Even from that better paying job you have been waiting for ! No emailing yourself hundreds of emails, just give your Notice ! ;-) We really do need you ! -- Robert Leland [EMAIL PROTECTED] -- Java, J2EE, Struts, Web Application Development 804 N. Kenmore Street +01-703-525-3580 Arlington VA 22201 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Remote and local EJB
Is there any struts support or any one has idea on following problem? I am developing an application in which I require to develop an EJB with local and remote interface. Local or remote EJB should be invoked depending on the request. How one can identify this? Any framework which support this local and remote EJB development and access? -Original Message- From: Robert Leland [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2003 9:39 AM To: [EMAIL PROTECTED] Subject: [Validator] The Validator Wiki needs you ! There is now a Commons Validator Wiki ! Beware this is only a shell to start collecting tips, FAQs, and examples for using validator. You can make a much needed contribution ! http://nagoya.apache.org/wiki/apachewiki.cgi?ValidatorProjectPages This is also great opportunity to delete all those old emails you have been saving ! Come on, there must be hundreds, and put them on the web ! Then they are instantly available from any web browser: * At work, Your Desk Your Co-worker's Desk * At home * At a remote site * Even from that better paying job you have been waiting for ! No emailing yourself hundreds of emails, just give your Notice ! ;-) We really do need you ! -- Robert Leland [EMAIL PROTECTED] -- Java, J2EE, Struts, Web Application Development 804 N. Kenmore Street +01-703-525-3580 Arlington VA 22201 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Should extend any struts components ?
While developing the J2EE application using struts, should I extend the ActionServlet, RequestProcessor etc... classes to make them my project specific? If yes, which components and what are the advantages one can get? -Original Message- From: Robert Leland [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2003 9:39 AM To: [EMAIL PROTECTED] Subject: [Validator] The Validator Wiki needs you ! There is now a Commons Validator Wiki ! Beware this is only a shell to start collecting tips, FAQs, and examples for using validator. You can make a much needed contribution ! http://nagoya.apache.org/wiki/apachewiki.cgi?ValidatorProjectPages This is also great opportunity to delete all those old emails you have been saving ! Come on, there must be hundreds, and put them on the web ! Then they are instantly available from any web browser: * At work, Your Desk Your Co-worker's Desk * At home * At a remote site * Even from that better paying job you have been waiting for ! No emailing yourself hundreds of emails, just give your Notice ! ;-) We really do need you ! -- Robert Leland [EMAIL PROTECTED] -- Java, J2EE, Struts, Web Application Development 804 N. Kenmore Street +01-703-525-3580 Arlington VA 22201 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Best place to hook the Security Call
Hi Max, Thanks a lot for your reply. Referring to the last para of your mail, should we still require the single list of roles... I mean each role named "c1234.admin" for company #1234 and role named "c5678.admin" for company #5678 ??? Thanks, Viral -Original Message- From: Max Cooper [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 3:56 PM To: Struts Users Mailing List Subject: Re: Best place to hook the Security Call One approach would be to use a proprietary programmatic security system. You would have to check for a (user,company,role) combination for requests that have security requirements. This may in fact be the best way to handle your requirements, given that the same HTTP requests (/editCompany.do) will likely be used for many operations across different companies. You could "flatten" the company/role space into a single list of roles that follow some convention. For instance, the "admin" role for the company with id=1234 could be mapped to the single role named "c1234.admin" or something like that. Then you could check to see if the current user has that role when deciding if they should be able to perform some admin action for company #1234. This approach can be used in conjunction with the programmatic system I described in the first paragraph. An advantage is that you can use the standard isUserInRole() call to check for access, but you will still need some proprietary way to create the role name to check for. You could always have a utility class with some methods like this: boolean isUserInRoleForCompany(HttpRequest request, String rolename, Company company) { String role = generateCompanyRoleName(company, rolename); return request.isUserInRole(role); } String generateCompanyRoleName(Company company, String rolename) { return "c" + Integer.toString(company.getId()) + "." + rolename; } One potential downside to this flattening, however, is that you may end up with a huge number of roles. While this, in itself, may not be a big deal, some containers and realms do things like load every role a user has into memory as part of their Principal object. If a given user only has a handful of roles at a handful of companies, this may still not be a big issue. But it is something to watch out for as you decide on a solution. If the large number of roles is a problem, you would have to write your own methods to do the checking. This isn't so bad from the Action programmer's standpoint, as they would be calling an application-specific method to determine access anyway (like my isUserInRoleForCompany() example above). The downside is that you would have to do the db lookup yourself (as the implementor of these methods), rather than being able to rely on the isUserInRole() method and your realm implementation to do the lookup for you. People have asked about this kind of thing for SecurityFilter before. Perhaps there is some opportunity to offer some kind of support, but you'd still have to plug-in a piece of code to dig the company id (or equivalent information) out of the request. SecurityFilter might allow you to map URLs to some implementation class that would generate a role name that it would check for, or perhaps, more flexibly, allow the class to decide if access should be granted or not directly. This is an interesting area to explore, but there are no plans for this support now, so it would be a while before this kind of thing makes it into SecurityFilter. I do like that it separates security from the implementation of the request handling code (Action, JSP, etc.), but it is unclear whether it would be worth the added complexity to me at this point. Your requirements do make this option attractive, though, and I know others have to do similar things. Any feedback in this area is welcome (perhaps on the SecurityFilter forum so we don't waste struts-user bandwidth: http://sourceforge.net/forum/forum.php?forum_id=200424). -Max SecurityFilter Dude - Original Message - From: "Viral_Thakkar" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, August 04, 2003 9:22 PM Subject: RE: Best place to hook the Security Call I have an authorization requirement as below. 1. A user can have a role for a specific company. 2. A user can have many roles for a specific company. 3. A user can have different roles specific to different companies. It means a user can have few roles for Company (lets say ABC Inc.) and can have few roles (same or different) for some other Company (lets say XYZ Inc.) User Access level changes for each request depending on the role and the company (company, which exist at that point). Please help in suggesting the authorization framework I can use for such requirement. Can SecurityFilter component help me in implementing this requirement? If yes, how..?? Thanks..
RE: Best place to hook the Security Call
I have an authorization requirement as below. 1. A user can have a role for a specific company. 2. A user can have many roles for a specific company. 3. A user can have different roles specific to different companies. It means a user can have few roles for Company (lets say ABC Inc.) and can have few roles (same or different) for some other Company (lets say XYZ Inc.) User Access level changes for each request depending on the role and the company (company, which exist at that point). Please help in suggesting the authorization framework I can use for such requirement. Can SecurityFilter component help me in implementing this requirement? If yes, how..?? Thanks.. -Original Message- From: Jones, Marty B. [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 6:19 PM To: Struts Users Mailing List Subject: RE: Best place to hook the Security Call This is what I mentioned earlier. We needed more security flexability that what the normal servlet container supports so we had to write our own security handler. The struts framework has a method hook in the RequestProcessor class that will allow you to verify the users access rights for each request. The method is processPreprocess. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 7:34 AM To: Struts Users Mailing List Subject: Re: Best place to hook the Security Call I agree with Alen, but at the same time if all the containers are supporting J2EE security standards then porting to different containers should not be an issue. SecurityFilter as I just browsed through seems interesting but all the latest J2EE containers will have to support Servlet 2.3 for using the same. Alternatively whatif I write my own security piece by looking up LDAP for A&A (authentication and authorization) and this piece would be called from some place in the STRUTS control flow so that for everyrequest security would be validated. Thanks Sreekant G. TCS AMBATTUR "Alen Ribic" <[EMAIL PROTECTED]To: "Struts Users Mailing List" > <[EMAIL PROTECTED]> cc: 08/04/2003 04:25 Subject: Re: Best place to hook the Security Call PM Please respond to "Struts Users Mailing List" If I'm not mistaken, this approach is container specific hence would make deployment on difference container(s) not as smooth as one would wish. I may be wrong so please correct me! I'm not very clued up in this area. ;) I have privilege working with servlet 2.3 and am now using SecurityFilter component (www.securityfilter.org) to handle my auth. Very simple! --Alen >Best place would be using container J2EE security, such as JDBC realms. >[EMAIL PROTECTED] wrote: > Which is the best place to hook the security call for an application in the > STRUTS framework so that for every request security check is made. Does > STRUTS provide integration with any Security framework ? > > thanks in advance. > Sreekant G. > > > > > > > This mail was scanned by Interscan Virus Wall of Mailserver at Cathedral Road TCS Chennai > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Vic Cekvenich, Struts Instructor, 1-800-917-JAVA Advanced Struts Training, mentoring and project recovery in North East. Open Source Portal Content Management basicPortal software. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Best place to hook the Security Call
I have an authorization requirement as below. 1. A user can have a role for a specific company. 2. A user can have many roles for a specific company. 3. A user can have different roles specific to different companies. It means a user can have few roles for Company (lets say ABC Inc.) and can have few roles (same or different) for some other Company (lets say XYZ Inc.) User Access level changes for each request depending on the role and the company (company, which exist at that point). Please help in suggesting the authorization framework I can use for such requirement. Can SecurityFilter component help me in implementing this requirement? If yes, how..?? Thanks.. -Original Message- From: Jones, Marty B. [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 6:19 PM To: Struts Users Mailing List Subject: RE: Best place to hook the Security Call This is what I mentioned earlier. We needed more security flexability that what the normal servlet container supports so we had to write our own security handler. The struts framework has a method hook in the RequestProcessor class that will allow you to verify the users access rights for each request. The method is processPreprocess. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 7:34 AM To: Struts Users Mailing List Subject: Re: Best place to hook the Security Call I agree with Alen, but at the same time if all the containers are supporting J2EE security standards then porting to different containers should not be an issue. SecurityFilter as I just browsed through seems interesting but all the latest J2EE containers will have to support Servlet 2.3 for using the same. Alternatively whatif I write my own security piece by looking up LDAP for A&A (authentication and authorization) and this piece would be called from some place in the STRUTS control flow so that for everyrequest security would be validated. Thanks Sreekant G. TCS AMBATTUR "Alen Ribic" <[EMAIL PROTECTED]To: "Struts Users Mailing List" > <[EMAIL PROTECTED]> cc: 08/04/2003 04:25 Subject: Re: Best place to hook the Security Call PM Please respond to "Struts Users Mailing List" If I'm not mistaken, this approach is container specific hence would make deployment on difference container(s) not as smooth as one would wish. I may be wrong so please correct me! I'm not very clued up in this area. ;) I have privilege working with servlet 2.3 and am now using SecurityFilter component (www.securityfilter.org) to handle my auth. Very simple! --Alen >Best place would be using container J2EE security, such as JDBC realms. >[EMAIL PROTECTED] wrote: > Which is the best place to hook the security call for an application in the > STRUTS framework so that for every request security check is made. Does > STRUTS provide integration with any Security framework ? > > thanks in advance. > Sreekant G. > > > > > > > This mail was scanned by Interscan Virus Wall of Mailserver at Cathedral Road TCS Chennai > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Vic Cekvenich, Struts Instructor, 1-800-917-JAVA Advanced Struts Training, mentoring and project recovery in North East. Open Source Portal Content Management basicPortal software. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Best place to hook the Security Call
Please let me know which files need to develop for implementing the security filter component which is available at www.securityfilter.org -Original Message- From: Vic Cekvenich [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 7:14 PM To: [EMAIL PROTECTED] Subject: Re: Best place to hook the Security Call The Struts tags support the getRole, etc.; which are part of JAAS. Also, extending JAAS w/ Struts is easy, for example detecting a new login and adding additional information. (all in the basicPortal.com bestPractice Struts sample) .V [EMAIL PROTECTED] wrote: > So where does JAAS (Java Authentication and Authorization Service) come > into picture in the J2EE world ? The other day I was reading a whitepaper > that said STRUTS provides integration with JAAS. What would that mean ? > > Thanks > Sreekant G. > TCS AMBATTUR > > > > "Viral_Thakkar" > <[EMAIL PROTECTED]To: "Struts Users Mailing List" > fosys.com> <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>, > <[EMAIL PROTECTED]> > 08/04/2003 06:51 cc: > PM Subject: RE: Best place to hook the Security Call > Please respond to > "Struts Users > Mailing List" > > > > > > > What I understood from the "Security Filter" component is that we need > to extend the SimpleSecurityRealmBase class and need to override the > methods specified in that class. > > But still I m not clear on the complete configuration ...i mean the > exact steps to follow to use this filter component for A & A reqt. > > If anyone already implemented this filter then please guide me on the > approach example code will be more useful... > > Thanks. > > > > > > > > -Original Message- > From: Alen Ribic [mailto:[EMAIL PROTECTED] > Sent: Monday, August 04, 2003 6:34 PM > To: Struts Users Mailing List > Subject: Re: Best place to hook the Security Call > > Security is really my week side but AFAIK your Container Manager > Security > does have certain container specific configurations and even requirement > for > additional java classes to be coded. > > As I said "Security Filter" component has a small, simple realm > interface > that is portable across different servers. > > --Alen > > > - Original Message - > From: <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Monday, August 04, 2003 2:34 PM > Subject: Re: Best place to hook the Security Call > > > >>I agree with Alen, but at the same time if all the containers are >>supporting J2EE security standards then porting to different > > containers > >>should not be an issue. SecurityFilter as I just browsed through seems >>interesting but all the latest J2EE containers will have to support > > Servlet > >>2.3 for using the same. Alternatively whatif I write my own security > > piece > >>by looking up LDAP for A&A (authentication and authorization) and this >>piece would be called from some place in the STRUTS control flow so > > that > >>for everyrequest security would be validated. >> >>Thanks >>Sreekant G. >>TCS AMBATTUR >> >> >> >> "Alen Ribic" >> <[EMAIL PROTECTED]To: "Struts Users > > Mailing List" > >> > > > <[EMAIL PROTECTED]> > >> cc: >> 08/04/2003 04:25 Subject: Re: Best > > place to > hook the Security Call > >> PM >> Please respond to >> "Struts Users >> Mailing List" >> >> >> >> >> >> >>If I'm not mistaken, this approach is container specific hence would > > make > >>deployment on difference container(s) not as smooth as one would wish. >>I may be wrong so please correct me! I'm not very clued up in this > > area. > ;) > >>I have privilege working with servlet 2.3 and am now using > > SecurityFilter > >>compone
RE: Best place to hook the Security Call
Which files we need to develop (write/extend) to use this security filter component ..??? Thanks. -Original Message- From: Alen Ribic [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 6:34 PM To: Struts Users Mailing List Subject: Re: Best place to hook the Security Call Security is really my week side but AFAIK your Container Manager Security does have certain container specific configurations and even requirement for additional java classes to be coded. As I said "Security Filter" component has a small, simple realm interface that is portable across different servers. --Alen - Original Message - From: <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, August 04, 2003 2:34 PM Subject: Re: Best place to hook the Security Call > > I agree with Alen, but at the same time if all the containers are > supporting J2EE security standards then porting to different containers > should not be an issue. SecurityFilter as I just browsed through seems > interesting but all the latest J2EE containers will have to support Servlet > 2.3 for using the same. Alternatively whatif I write my own security piece > by looking up LDAP for A&A (authentication and authorization) and this > piece would be called from some place in the STRUTS control flow so that > for everyrequest security would be validated. > > Thanks > Sreekant G. > TCS AMBATTUR > > > > "Alen Ribic" > <[EMAIL PROTECTED]To: "Struts Users Mailing List" > > <[EMAIL PROTECTED]> >cc: > 08/04/2003 04:25 Subject: Re: Best place to hook the Security Call > PM > Please respond to > "Struts Users > Mailing List" > > > > > > > If I'm not mistaken, this approach is container specific hence would make > deployment on difference container(s) not as smooth as one would wish. > I may be wrong so please correct me! I'm not very clued up in this area. ;) > > I have privilege working with servlet 2.3 and am now using SecurityFilter > component (www.securityfilter.org) to handle my auth. Very simple! > > --Alen > > > >Best place would be using container J2EE security, such as JDBC realms. > > >[EMAIL PROTECTED] wrote: > > Which is the best place to hook the security call for an application in > the > > STRUTS framework so that for every request security check is made. Does > > STRUTS provide integration with any Security framework ? > > > > thanks in advance. > > Sreekant G. > > > > > > > > > > > > > > This mail was scanned by Interscan Virus Wall of Mailserver at Cathedral > Road TCS Chennai > > > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > -- > Vic Cekvenich, > Struts Instructor, > 1-800-917-JAVA > > Advanced Struts Training, mentoring and > project recovery in North East. > Open Source Portal Content Management > basicPortal software. > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Best place to hook the Security Call
What I understood from the "Security Filter" component is that we need to extend the SimpleSecurityRealmBase class and need to override the methods specified in that class. But still I m not clear on the complete configuration ...i mean the exact steps to follow to use this filter component for A & A reqt. If anyone already implemented this filter then please guide me on the approach example code will be more useful... Thanks. -Original Message- From: Alen Ribic [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 6:34 PM To: Struts Users Mailing List Subject: Re: Best place to hook the Security Call Security is really my week side but AFAIK your Container Manager Security does have certain container specific configurations and even requirement for additional java classes to be coded. As I said "Security Filter" component has a small, simple realm interface that is portable across different servers. --Alen - Original Message - From: <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, August 04, 2003 2:34 PM Subject: Re: Best place to hook the Security Call > > I agree with Alen, but at the same time if all the containers are > supporting J2EE security standards then porting to different containers > should not be an issue. SecurityFilter as I just browsed through seems > interesting but all the latest J2EE containers will have to support Servlet > 2.3 for using the same. Alternatively whatif I write my own security piece > by looking up LDAP for A&A (authentication and authorization) and this > piece would be called from some place in the STRUTS control flow so that > for everyrequest security would be validated. > > Thanks > Sreekant G. > TCS AMBATTUR > > > > "Alen Ribic" > <[EMAIL PROTECTED]To: "Struts Users Mailing List" > > <[EMAIL PROTECTED]> >cc: > 08/04/2003 04:25 Subject: Re: Best place to hook the Security Call > PM > Please respond to > "Struts Users > Mailing List" > > > > > > > If I'm not mistaken, this approach is container specific hence would make > deployment on difference container(s) not as smooth as one would wish. > I may be wrong so please correct me! I'm not very clued up in this area. ;) > > I have privilege working with servlet 2.3 and am now using SecurityFilter > component (www.securityfilter.org) to handle my auth. Very simple! > > --Alen > > > >Best place would be using container J2EE security, such as JDBC realms. > > >[EMAIL PROTECTED] wrote: > > Which is the best place to hook the security call for an application in > the > > STRUTS framework so that for every request security check is made. Does > > STRUTS provide integration with any Security framework ? > > > > thanks in advance. > > Sreekant G. > > > > > > > > > > > > > > This mail was scanned by Interscan Virus Wall of Mailserver at Cathedral > Road TCS Chennai > > > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > -- > Vic Cekvenich, > Struts Instructor, > 1-800-917-JAVA > > Advanced Struts Training, mentoring and > project recovery in North East. > Open Source Portal Content Management > basicPortal software. > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Best place to hook the Security Call
Can you please throw more light on how you are using the servlet 2.3 Filter feature for authentication purpose? thanks -Original Message- From: Alen Ribic [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 4:26 PM To: Struts Users Mailing List Subject: Re: Best place to hook the Security Call If I'm not mistaken, this approach is container specific hence would make deployment on difference container(s) not as smooth as one would wish. I may be wrong so please correct me! I'm not very clued up in this area. ;) I have privilege working with servlet 2.3 and am now using SecurityFilter component (www.securityfilter.org) to handle my auth. Very simple! --Alen >Best place would be using container J2EE security, such as JDBC realms. >[EMAIL PROTECTED] wrote: > Which is the best place to hook the security call for an application in the > STRUTS framework so that for every request security check is made. Does > STRUTS provide integration with any Security framework ? > > thanks in advance. > Sreekant G. > > > > > > > This mail was scanned by Interscan Virus Wall of Mailserver at Cathedral Road TCS Chennai > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Vic Cekvenich, Struts Instructor, 1-800-917-JAVA Advanced Struts Training, mentoring and project recovery in North East. Open Source Portal Content Management basicPortal software. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Direct ValueObject creation rather than ActionForm.
Yes, I agree that it is not good programming to replace the ActionForm with ValueObject. But let me know your view about having both ActionForm and ValueObject and use some kind of mapping to get the ValueObject instance from the ActionForm instance. Example is available at http://www.mycgiserver.com/~andrej/technical/struts/struts.jsp Here usage of vo = FormToVOMapper.map(form, new ExampleVO()); is shown. Please suggest me whether this is good to use such mapping to get the valueobject instance and also do they support all possible datatypes and different mappings. Thanks. -Original Message- From: Kalra, Ashwani [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 10:57 AM To: 'Struts Users Mailing List' Subject: RE: Direct ValueObject creation rather than ActionForm. One drawback. ActionForm classes import classes from http packages. which binds it to the particular layer. Cheers Ashwani Kalra http://www.geocities.com/ashwani_kalra/ > -Original Message- > From: Andrew Hill [mailto:[EMAIL PROTECTED] > Sent: Friday, August 01, 2003 10:47 AM > To: Struts Users Mailing List > Subject: RE: Direct ValueObject creation rather than ActionForm. > > > This is quite a common idea that many people new to struts > have. There are > quite a few reasons why your ActionForm and your value object > are different > objects. (Indeed the very reason ActionForm is implemented as > a class rather > than an interface is specifically to discourage people from > using their > ActionForm as a value object.) If you search the list > archives you will see > numerous threads discussing the reasons why this is in fact a > very bad idea > indeed. > -Original Message- > From: Viral_Thakkar [mailto:[EMAIL PROTECTED] > Sent: Friday, 1 August 2003 13:05 > To: [EMAIL PROTECTED] > Subject: Direct ValueObject creation rather than ActionForm. > > > I have a idea here. Why we require ActionForm class if we can have > ValueObject and that we can pass to the service layer. > > > > Can we create the instance of ValueObject class only rather than > ActionForm instance from the request data? > > > > Thanks > > > > > > This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst & Young Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Direct ValueObject creation rather than ActionForm.
Yes, I agree that it is not good programming to replace the ActionForm with ValueObject. But let me know your view about having both ActionForm and ValueObject and use some kind of mapping to get the ValueObject instance from the ActionForm instance. Example is available at http://www.mycgiserver.com/~andrej/technical/struts/struts.jsp Here usage of vo = FormToVOMapper.map(form, new ExampleVO()); is shown. Please suggest me whether this is good to use such mapping to get the valueobject instance and also do they support all possible datatypes and different mappings. Thanks. -Original Message- From: Kalra, Ashwani [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 10:57 AM To: 'Struts Users Mailing List' Subject: RE: Direct ValueObject creation rather than ActionForm. One drawback. ActionForm classes import classes from http packages. which binds it to the particular layer. Cheers Ashwani Kalra http://www.geocities.com/ashwani_kalra/ > -Original Message- > From: Andrew Hill [mailto:[EMAIL PROTECTED] > Sent: Friday, August 01, 2003 10:47 AM > To: Struts Users Mailing List > Subject: RE: Direct ValueObject creation rather than ActionForm. > > > This is quite a common idea that many people new to struts > have. There are > quite a few reasons why your ActionForm and your value object > are different > objects. (Indeed the very reason ActionForm is implemented as > a class rather > than an interface is specifically to discourage people from > using their > ActionForm as a value object.) If you search the list > archives you will see > numerous threads discussing the reasons why this is in fact a > very bad idea > indeed. > -Original Message- > From: Viral_Thakkar [mailto:[EMAIL PROTECTED] > Sent: Friday, 1 August 2003 13:05 > To: [EMAIL PROTECTED] > Subject: Direct ValueObject creation rather than ActionForm. > > > I have a idea here. Why we require ActionForm class if we can have > ValueObject and that we can pass to the service layer. > > > > Can we create the instance of ValueObject class only rather than > ActionForm instance from the request data? > > > > Thanks > > > > > > This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst & Young Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Direct ValueObject creation rather than ActionForm.
Please let me know the consequences of the approach I mentioned. Thanks. -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 10:47 AM To: Struts Users Mailing List Subject: RE: Direct ValueObject creation rather than ActionForm. This is quite a common idea that many people new to struts have. There are quite a few reasons why your ActionForm and your value object are different objects. (Indeed the very reason ActionForm is implemented as a class rather than an interface is specifically to discourage people from using their ActionForm as a value object.) If you search the list archives you will see numerous threads discussing the reasons why this is in fact a very bad idea indeed. -Original Message- From: Viral_Thakkar [mailto:[EMAIL PROTECTED] Sent: Friday, 1 August 2003 13:05 To: [EMAIL PROTECTED] Subject: Direct ValueObject creation rather than ActionForm. I have a idea here. Why we require ActionForm class if we can have ValueObject and that we can pass to the service layer. Can we create the instance of ValueObject class only rather than ActionForm instance from the request data? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Direct ValueObject creation rather than ActionForm.
I have a idea here. Why we require ActionForm class if we can have ValueObject and that we can pass to the service layer. Can we create the instance of ValueObject class only rather than ActionForm instance from the request data? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Distributed components placing
In a typical distributed web application using the struts framework. The flow designed is as below : StrutsController --> ActionForm --> Action --> Business Delegate (Uses Service Locator) --> Session Facade. Details : The query is whether Business delegate component should be part of client jar file or it should be part of server jar file? I think, business delegate and service locator will be part of client jar file as business delegate is used inside the Struts Action class execute() method. And service locator will be used by busiess delegate to get the session facade. If service locator component is required at session facade also then should we keep service locator component in server jar also? Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]