RE: Distributed web services: Tomcat or Jboss?
Unless EJB would provide a significant advantage in this type of project, I was not planning on using EJB. But would they offer advantages? In case I can do without - do you have any recommendation as for container, frameworks, tools? Thanks Matt -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Dienstag, 18. September 2007 17:26 To: Tomcat Users List Subject: Re: Distributed web services: Tomcat or Jboss? -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matthias, Matthias Klein wrote: As I am starting a new project, I am unsure whether to use Tomcat/Axis or the Jboss product line. Any idea? Do you need EJBs? If you do, then you'll need JBoss. If you don't need EJBs, I would recommend not using a full EJB server. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG7+4P9CaO5/Lv0PARAk4TAJ9L/pHXYLA+V3JQ2NIfL8dSHyJHSgCgjASN kjupf2F0dGd8/vi4IlVNVAo= =IEqE -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Distributed web services: Tomcat or Jboss?
Good points, thanks -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Dienstag, 18. September 2007 17:39 To: Tomcat Users List Subject: Re: Distributed web services: Tomcat or Jboss? -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mattias, Matthias Klein wrote: Unless EJB would provide a significant advantage in this type of project, I was not planning on using EJB. But would they offer advantages? I personally dislike EJBs, but my experience was a long time ago... perhaps things have improved. In case I can do without - do you have any recommendation as for container, frameworks, tools? I believe JBoss uses Tomcat as the servlet container, so JBoss basically builds on Tomcat to provide and EJB container, MQ-style messaging, and (probably) SOAP services (possibly even using AXIS). If I were doing it, I'd stick to Tomcat, but that's mostly because I know it best. I can configure Tomcat to do exactly what I want and add services (such as AXIS) as needed, rather than removing them which is what I imagine you'd have to do with JBoss. It just seems that JBoss offers many services you don't need, so why bother with the added complexity? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG7/EI9CaO5/Lv0PARAsRyAJ90rJlx2VyJUxsat+m9ojLtH6gb8gCgoH/Y TA17Yo4twOrBr5b+7+KDdz4= =euh+ -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Handling file downloads?
Hi everyone, What is the best method of handling files that are to be offered for download? I have a web application that uses JSF as presentation framework. This web app is available as both stand-alone application in Tomcat as well as portlet deployed within a portlet container that relies on tomcat. This app is supposed to deliver files. For instance, it renders a button or link and when a user clicks on it, one of the two following things should happen: 1. the file is offered for download so the user can just download it 2. the file is a html file and should be displayed in a new browser window, thereby obtaining embedded objects (e.g. images that the html file refers to) However, this functionality should be offered to users depending on their access rights. If user B is not allowed to download file X, he should not be able to. What is the best method / way of handling this? The simple way of storing all files in something like %CATALINA_HOME%/webapps/files and then just render a download link referring to a file within won't work because everyone could access the files via URL. (Plus I don't like storing the files within CATALINA_HOME. What if I want to store them anywhere in the file system of the host?) In addition, some files have to be altered for some persons (e.g. before being delivered to user A, file X.html has to be processed and altered to meet the needs of user A. ONLY user A should see the altered X.html (X_altered_for_user_A.html). So this above approach looks dirty to me and doesn't live up to my expectations. But how does one deal with this offering files for download issue in a good, elegant way? There must be some nice way because like every CMS that uses tomcat offers just that. Any idea? Thanks a lot Matt - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]