Solution: MIME-types [off topic]
Thank's to Roger Mosher! This works... /korre -Original Message- From: Roger Mosher [mailto:[EMAIL PROTECTED]] Sent: den 15 februari 2001 13:43 To: Orion-Interest Subject: Re: MIME-types [off topic] K. Granted I am not distributing XML so I set the content type to "application/zip", but the trick to get the SAVE AS dialog for me was the Content-Dispostion header. My code (in a servlet) goes something like this... response.setContentType("application/zip"); response.setContentLength(len); response.setHeader("Content-Disposition","attachment;filename=\"somename.ext \" "); Works most of the time except certain buggy versions of IE 5.5 for which a patch is available from Microsoft (so I believe). Hope this helps? - Original Message - From: "Konstantin Polyzois" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Thursday, February 15, 2001 5:34 AM Subject: MIME-types [off topic] > This is a little off topic... > > I am developing an app where there will be some xml-files generated. I want > the user to save these to his hard drive. The problem is that Internet > Exploder always displays xml. Is there some MIME type or some trick to make > Exploder pop up a "save as dialog" instead? I have thought about letting the > user "right click" an anchor and letting him "choose save target as.." but I > think it is a little uggly. > > /korre >
RE: Security between applications?
Securing datasources is no match for Weblogic. I do not know how Orion handles this. /korre -Original Message- From: Cliff Rowley [mailto:[EMAIL PROTECTED]] Sent: den 13 februari 2001 20:09 To: Orion-Interest Subject: Security between applications? Greetings, We are currently evaluating the various J2EE solutions available for a venture that we hope to deliver to the world in a few months. Whilst reading the documentation for each, I dont appear to be able to configure Orion to suit the way the project will work. In order for our application to be of any use, we need to be able to implement a fair amount of security, since JSP pages may be at the mercy of people who are not us. Basically the application will provide a farm of hosts on which we will be offering certain services. Each application needs to have a data source that it, and only it has access to. The current problem as I see it is that if I define a connection in data-sources.xml, then every web application deployed on the server or cluster of servers has access to it. We need some way of securing that while still being able to use EJB in all its glory. We need to be able to offer the opportunity of creating and editing content without compromising the security of other applications on the system. Could anyone give us some tips and pointers on this? Thanks Cliff Rowley
MIME-types [off topic]
This is a little off topic... I am developing an app where there will be some xml-files generated. I want the user to save these to his hard drive. The problem is that Internet Exploder always displays xml. Is there some MIME type or some trick to make Exploder pop up a "save as dialog" instead? I have thought about letting the user "right click" an anchor and letting him "choose save target as.." but I think it is a little uggly. /korre
RE: Any news from Orion yet??
"Weblogic (and the high priced products like Websphere) are great..." Speaking as someone who has done development using Websphere (3.0 & 3.02): It sucks! Don't use it for anything but JSP or servlets. It has so many flaws that I don't even want to get in to them!! /korre -Original Message- From: Kemp Randy-W18971 To: Orion-Interest Sent: 2001-02-12 13:58 Subject: RE: Any news from Orion yet?? Weblogic (and the high priced products like Websphere) are great, if you want to pay the price. They come with nice tools like front end gui's, good documentation, paid support, etc. But if you look for the opinions of developers who have used these products, and compared them to Orion, jboss, etc., they would say the EJB capacies are no better then the other high priced products. In order of ranking, here's how I look at the other products. 1 Orion -- This product is ready now, but I haven't seen anyone from this list run a Sears store on it. 2. Jboss (www.jboss.org) -- The founders are very bright, have five hundred developers on the projects, have EJB heavies contributing to the list, and it's a very easy to use product. Personally, even though it is ready for production now, I would wait for it to mature a bit more. It's like a fine wine -- drink it now, and it is OK, or allow it to age a bit then drink it (like jboss 3.0 final). 3. Openejb (www.openejb.org) - this project has a very bright and well known person heading it, and it is slated to be intergrated with Tomcat and Apache. It has yet to prove itself, as it is not yet ready for production release. But it has good future promise. 4. Jonas (www.evidian.com/jonas) - This is a good product, but it is not as advanced as the other two open source products and I don't think they have as many people behind them. 5. Enhydra enterprise (www.enhydra.org). If you like the enhydra application server, this product has potential. But it is not production ready yet and it intergrates with the jonas server. In summary, Orion is here now but can it run Sears? Jboss is ready but I would let it mature a bit more for production environments. Openejb and Enhydra have great potential, but they are not ready yet and have to prove themselves. Jonas is OK but I prefer the other open source alternatives. -Original Message- From: Anthony W. Marino To: Orion-Interest Sent: 2/11/01 9:06 AM Subject: Re: Any news from Orion yet?? On another note, can you and/or someone, qualify/quantify what you mean by the following previously made statement : "For the most part, Orion is still very much ahead of the pack, and the speed is stil EXCELLENT." ? In the Apache Tomcat list I asked the following question: "Can someone suggest to me what Apache and/or other OpenSource products could be integrated to compete with functionally and/or considered in the same category as BEA WebLogic? I don't necessarily need all of what BEA has to offer at this time, however, I would like to know, generally, what it would take to get there without the big $ price tag." Thank You, Anthony On Monday 15 January 2001 15:20, you wrote: > On Mon, 15 Jan 2001, Jason Boehle wrote: > > WL6 has support for EARs. They also support all of the EJB 2.0 spec > > except for dependent objects. In fact, I am currently using WL6 for > > development instead of Orion, due to the apparent lack of development > > going on in the Orion team on EJB 2.0. I had suggested to my boss that > > we use Orion, as I had been lurking and following it for several months, > > and saw that it always met the latest specs first, etc. - now I feel dumb > > for doing so, as they haven't had a new release in several months... > > Of course, this is a little unfair - weblogic hadn't had a new release for > several months, either. They've just had a major release recently, which > makes it seem like they're more active than Orion, when that's not > necessarily the case. It might be, but that's not implied by the situation > at present. > > For the most part, Orion is still very much ahead of the pack, and the > speed is stil EXCELLENT. While I'm very much looking forward to a new > round of released bug fixes, I'm still waiting for some things to shake > out before I abandon ship. > > > -Original Message- > > From: Santosh Kumar [mailto:[EMAIL PROTECTED]] > > Sent: Monday, January 15, 2001 12:57 AM > > To: Orion-Interest > > Subject: Re: Any news from Orion yet?? > > > > > > Hi kevin, > > As far as i have known WL5.1 or <, there is no concept of ear > > files, does 6.0 include > > that. Doesn't the J2EE mandate (I am not sure!) the use of EAR = WAR + > > JAR + CAR(or JAR)? > > To deploy the JPS1.1.1 on Orion, it is a piece of cake, while deploying > > on WLS, i have to > > unpack the EAR files and dis-integrate them which is contrary to the > > essence of packaging the ear files, > > Even meddling with the ugly weblogic.properties frustrates one and all. > > Is that true with all W
RE: HTTPS from Orion Java Bean
Are you using the exact same JDK in both cases? With the exact same libraries? We had some trouble with Weblogic always using their implementation of ssl and used the following to override it: if(url.indexOf("https")!=-1){ URLStreamHandler h =(URLStreamHandler) new com.sun.net.ssl.internal.www.protocol.https.Handler(); sparBankenURL = new URL(null,url,h); } plus of course: the jsse.jar in the classpath and associated entries in the $JAVA_HOME/jre/lib/security/java.security file. I am not saying you should do it like this but it is nicer as it throws "ClassNotFoundExceptions" instead of "no implementation found". /korre -Original Message- From: Tim Endres To: Orion-Interest Cc: Geoff Marshall Sent: 2001-02-06 02:25 Subject: Re: HTTPS from Orion Java Bean Since I have no code, I can only guess... Sounds to me like you are getting a different URLConnection subclass in the two cases. I would try to print out the connection that you are getting to see what it is. Then you will need to see if you can correct the problem from there. tim. > Hello all! > > I've written a bean that calls a credit card processing gateway from a Java > bean. It is very simple and executes an https://... request. Then it reads > the entire contents of the web page. > > And it works if I run my AuthBean class from the command line. But when I > attempt to use AuthBean, calling it from an Orion JSP, I get a runtime > error: > > SSL not implemented. > > So I looked at all I did to enable the j2sdkee1.2.1 to work with SSL and > tried to somehow apply that to Orion, but I came up blank. > > I read through the SSL help page and it doesn't seem to address the problem > I'm having. > > Any help would be appreciated! > > > -- > > -Geoff Marshall, Director of Development > > ... > t e r r a s c o p e (415) 951-4944 > 54 Mint Street, Suite 110 direct (415) 625-0349 > San Francisco, CA 94103 fax (415) 625-0306 > ... > >
RE: Servlet loading twice if init() not finished?
There should be only one servlet instance per VM according to Servlet spec 2.2 chapter 3.2. Unless of course the servlet is implementing "SingleThreadModel". /korre -Original Message- From: Tim Endres To: Orion-Interest Sent: 2001-02-01 02:23 Subject: Re: Servlet loading twice if init() not finished? I believe that is perfectly normal behavior. Init() is called whenever a servlet instance is created, and they may be created at any time and in any number (unless you specify a limit in your servlet engine, or you use the single threaded model for your servlet, which I do not recommend for obvious reasons). This is why your servlet must be written for a multi-threaded environment. The only workaround I can think of, if you can not redesign your code, is to use a Singleton to get the loading done, and make the Singleton synchronized. tim. > Hi, > > i have a servlet as a front component in my webapp; the servlet has also the > task of loading objects from a db during his inizialization. Loading the > objects takes some time & i have encountered a situation wich i didn't > expected & wich i'm not sure if i'm doing something wrong or it is orion. > The situation is that if orion recive a request wich point to the servlet > before the servlet has finished the init() method (wich was triggered from a > previous request) it creates another instance of the servlet. > > I have done a small example so that i can explain me in a more clear way : > > in my web.xml file i have defined & mapped the servlet: > > testServlet > TestServlet > > > testServlet > /test > > > the code of the servlet is: > > import java.io.*; > import java.util.*; > import javax.servlet.*; > import javax.servlet.http.*; > public class TestServlet extends HttpServlet { > public void doPost(HttpServletRequest req, HttpServletResponse res) > throws ServletException, IOException { > doGet(req, res); > } > public void doGet(HttpServletRequest req, HttpServletResponse res) > throws ServletException, IOException { > System.out.println("doGet()"); > } > public void init() { > System.out.println("init() " +this); > try { > Thread.currentThread().sleep(5000);// this is for simulating > the time consuming task > } catch (Exception e) {} > System.out.println("done! " + this); > } > } > > now, if I start the server & i call the servlet 2 times (the second before > init() finish) i can see 2 servlet instance created (see the output below) > > D:\orion>java -jar d:/orion/orion.jar > Orion/1.4.5 initialized > init() TestServlet@704baa > init() TestServlet@34fad5 > done! TestServlet@704baa > doGet() > done! TestServlet@34fad5 > doGet() > > wich is not really what i want(& expected). I haven't watched the specs so > i'm not sure if this is the correct behavior in a situation like that & i > would like to know what u people think about it. > If someone has also a workaround it will be very much appreciated.. ;) > > I'm running orion on w2k (i tried 1.4.5 & 1.4.4, same behaviour for both). > Marco > > > > -- > > Ing. Marco Isella, Software Engineer > TINET SA, Via Violino 1, CH-6928 Manno-Lugano > tel. +41 91 612 22 22, fax. +41 91 612 22 23 > email [EMAIL PROTECTED] > http://www.tinet.com > >
RE: Why is Netscape slower with Orion?
No it is the crappy Netscape! It takes all your cpu and leaves none for your appserver. Netscape 4 sux big time! /korre -Original Message- From: Huibert Aalbers [mailto:[EMAIL PROTECTED]] Sent: den 26 januari 2001 17:58 To: Orion-Interest Subject: Why is Netscape slower with Orion? Hi everyone, Is it just me or has anyone noticed that Netscape is significantly slower than IE when accessing an application built with orion? Could there be anything wrong with my settings? Thanks, Huibert Aalbers Informix Software
RE: [Re: AW: Stand-alone-client]
("java.naming.factory.initial","com.evermind.server.rmi.RMIInitialContextFac tory"); Should be: ("java.naming.factory.initial","com.evermind.server.ApplicationClientInitial ContextFactory"); /korre -Original Message- From: mohan krishna [mailto:[EMAIL PROTECTED]] Sent: den 19 januari 2001 10:11 To: Orion-Interest Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [Re: AW: Stand-alone-client] Hi, Will u please give the code i have to embed in my satand-alone application..to access EJBs which r running under Orion... and what r the files i have to modify to run this application... this is the code i embed in my application to get the connection... Properties props = new Properties(); props.put("java.naming.factory.initial","com.evermind.server.rmi.RMIInitialC ontextFactory"); props.setProperty("java.naming.provider.url","ormi://localhost/nbiz1"); props.setProperty("java.naming.security.principal","adminops"); props.setProperty("java.naming.security.credentials","thunderbird"); InitialContext ic = new InitialContext(props); Object objref = ic.lookup("niagabiz.member.temp.TempMemberEJB"); if u run this code i am getting look up error: java.net.ConnectException:connection refused:no further information this is the class path i set... set classpath=c:\jdk1.3\lib; C:\jdk1.3\jre\lib\ext\orion.jar;C:\jdk1.3\jre\lib\ext\ejb.jar;C:\jdk1.3\jre\ lib\ext\jndi.jar; set path=c:\jdk1.3\bin; any one can help me to sort out this problem... any help will be appreciated... Thankz MohanKrishna Get free email and a permanent address at http://www.netaddress.com/?N=1
RE: threads, initialcontext and login
"Code: Runtime r = Runtime.getRuntime(); Process p = r.exec(" java myClass "); Works but is awfully slow. Any insights? " Why not use something like: String[] args={"a","b"}; com.abc.ClassName.main(args); instead? Then you don't have to fork off a new process. /korre -Original Message- From: Marko Viirelä To: Orion-Interest Cc: [EMAIL PROTECTED] Sent: 2001-01-08 09:17 Subject: threads, initialcontext and login I have created a small client software which connects to EJB-services running on Orion, of course. My program has a GUI "launcher" from which users can start client objects. These objects use InitialContext to deliver user/password information to EJB-services. Everything works fine until user gives wrong username/passwd ... Now since InitialContext is permanent threre is no way to change it anymore unless user restarts the program, which is lame. Code: Runtime r = Runtime.getRuntime(); Process p = r.exec(" java myClass "); Works but is awfully slow. Any insights? -- Marko Viirelä, T&K-harjoittelija Sonera Operator Systems Email: [EMAIL PROTECTED] Puhelin:040-5456970
RE: ejb deployment problem
That is because in JBuilder you deploy your beans to IAS. You specify a Datasource name. You have to specify a different DataSourc name for Orion too. That can not be done inside of JBuilder. For Orion: 1 Open /application-deployments//orion-application.x ml 2 Add an attribute default-data-source="" to the element 3 Remove any ejb deployment descriptors below this directory (orion-ejb-jar. xml) 4 Start Orion. Orion should now deploy your ejbs again. 5 Check in an orion-ejb-jar.xml file in any element for an attribute data-source. Hopefully it should now use your Data Source. /korre -Original Message- From: ahfei To: Orion-Interest Sent: 2001-01-07 18:00 Subject: ejb deployment problem hello, i'm developing ejb using jbuilder4.The EJBs work well in inprise app server. when i deploy it to orion,it works too. but i found the datasource that i specified doesn't be used,orion uses a default datasource (HSQL) service my EJBs.WHY ? can somebody help me? thanks in advance. ahfei [EMAIL PROTECTED]
RE: Complex O/R and EJB 2.0 CMP
"Servlet/JDBC is sure looking a bit simpler right now." But of course it is. If there is no concurrency (multiple clients) and if you don't like object-oriented programming. And if you dont plan on building more than a few servlets. "Also, what is the difference in the EJB 2.0 CMP and orion proprietary CMP." I think Orion supports Maps and Sets for dependent objects, the EJB2 (proposed final draft) only mandates support for Sets. Orions implementation does not look complete yet (how could it be when there is no spec?) it lacks EJB-QL, Home-methods and Select-methods (forgive me for errors it has been some time since I read the spec). /korre -Original Message- From: Darren Pamatat To: Orion-Interest Sent: 2001-01-07 20:27 Subject: Complex O/R and EJB 2.0 CMP I've been trying to get started with some O/R stuff with orion, and have gone thru the orion-cmp primer, and the complex-or example. A few problems, is that the orion-cmp primer is very simplistic, and the complex-or example (from orionsupport, which is currently down) does not have any examples, or docs on how to create and use a client application to exercise the ejb cmp entities. Does anyone have any code/examples or info on this? I like the layout of the complex-or example more so than the orion-cmp primer, because it is not required to jar it up, and classes can just be recompiled, and run (if only I could run something against it). Also, what is the difference in the EJB 2.0 CMP and orion proprietary CMP. Servlet/JDBC is sure looking a bit simpler right now. Hopefully, some info and more examples are available to help get an environment setup with CMP EJB's, to work off of. -Darren __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/
RE: public boolean isModified()
Actually not! If u follow the link i specified u will find it. More info about isModified: http://www.orionserver.com/faq/ Search for it on the displayed page. /korre PS Weblogic does not need isModified(). U specify any method name (public boolean isX()) and then point it out in your deployment descriptor: isX -Original Message- From: Stanislas Truffaut [mailto:[EMAIL PROTECTED]] Sent: den 22 december 2000 17:37 To: [EMAIL PROTECTED]; Orion-Interest Subject: public boolean isModified() I think your isModified() is a specific WebLogic method From: Konstantin Polyzois Subject: public boolean isModified() Date: Fri, 22 Dec 2000 05:56:46 -0800 Hello everybody! I am using Orion 1.4.4 and it seems that the method "public boolean isModified()" (used to limit writes to the database) is not getting called. Bug? /korre
public boolean isModified()
Hello everybody! I am using Orion 1.4.4 and it seems that the method "public boolean isModified()" (used to limit writes to the database) is not getting called. Bug? /korre More info about isModified: http://www.orionserver.com/faq/
RE: CMP-finder with another entity as argument?
Hmm. Orion does some kind of conversion of the argument. So it works! Great! /Korre -Original Message- From: Konstantin Polyzois [mailto:[EMAIL PROTECTED]] Sent: den 22 december 2000 11:34 To: Orion-Interest Subject: CMP-finder with another entity as argument? Hi all! I am trying to create a finder that takes an other entity as an argument. Something like: public Collection findByProject(Project project) throws RemoteException, FinderException; Now how do I modify the to accomplish this? My impression is that it is not possible. Ok so what do I have to do? Write a finder like this instead? public Collection findByProject(long projID) throws RemoteException, FinderException; and create a like this: select ... ... from project,person where project.project_id=$1 and ... Gahhh! Ugly! I now have to keep track of table names and data types! What is Container managed persistence anyways? Persistence yes! but finders... No! Is there any way to do this the nice way? Pleases say yes! Anybody? /Korre
CMP-finder with another entity as argument?
Hi all! I am trying to create a finder that takes an other entity as an argument. Something like: public Collection findByProject(Project project) throws RemoteException, FinderException; Now how do I modify the to accomplish this? My impression is that it is not possible. Ok so what do I have to do? Write a finder like this instead? public Collection findByProject(long projID) throws RemoteException, FinderException; and create a like this: select ... ... from project,person where project.project_id=$1 and ... Gahhh! Ugly! I now have to keep track of table names and data types! What is Container managed persistence anyways? Persistence yes! but finders... No! Is there any way to do this the nice way? Pleases say yes! Anybody? /Korre