RE: System Date.
Title: Message I've had problems with Java timezones before. As I remember, Unix inherits timezone settings from it's environment. Did you run your java test class with the same environment as Orion (eg the same user)? geoff -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Troy GibsonSent: Wednesday, 13 February 2002 6:00 AMTo: Orion-InterestSubject: System Date. Having trouble with system Date. In Orion our application converts dates based on our users time zone. For some reason our application is producing incorrect date times. The same piece of code when ran on its own as a Java class produces correct time conversions. Are there environment variables that Orion uses that may cause it to interprets the system date differently than what the system date really is? We use a staging and production instances of Orion running on two different Unix boxes. Both boxes have the same system date, the application running on staging produces correct dates, the one on production does not, further evidence that maybe the problem lies with the Orion instance and not the code or the servers. Thanks for any ideas you may have.
Re: Row limit for finder methods ?!
Neither is LIMIT supported by standard SQL, so it would reduce portability to use it in the generated SQL as well. /Fredrik > You could either edit the orion-ejb-jar.xml. And change the generated > SQL, but this will be overwritten next time orion is started. Another > way is to specify a finder query in your EJBHome inteface like this: > > String findByRecipient_query = "Message.recipient = $1"; > > Collection findByRecipient(String recipient) > throws RemoteException, FinderException; > > And Orion will generate a SQLQuery for you. Here you can use the > 'LIMIT' attribute. Be aware that this way is Orion specific and will > reduce the portability of your code. > > As for the EJB2.0 spec and the EJBQL does not support the 'LIMIT' > attribute as far as I know. > > /Linus > > On Tuesday, February 12, 2002, at 01:05 PM, Toni Menzel wrote: > >> Hi all, >> >> Is there possibility to set a maximum row count for a resultset ? >> Something general for the SQL Attribure "LIMIT" ?! >> >> Thanks in advance, Toni >> >> -Ursprüngliche Nachricht- >> Von: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED]] Im Auftrag von prasanth >> sb Gesendet: Sonntag, 10. Februar 2002 12:16 >> An: Orion-Interest >> Betreff: Re: url.openConnection() doesn't allow to pass objects or >> attributes >> >> I used doPost only but still it doesn't. >> >> >>> From: "Kesav Kumar" <[EMAIL PROTECTED]> >>> Reply-To: Orion-Interest <[EMAIL PROTECTED]> >>> To: Orion-Interest <[EMAIL PROTECTED]> >>> Subject: Re: url.openConnection() doesn't allow to pass objects or >>> attributes >>> Date: Sun, 3 Feb 2002 08:23:09 -0800 >>> >>> I just noticed one more thing with your servlet. It seems that you >>> are using doGet method in your servlet. If you do a post request >>> through >> URL >>> you need to write doPost method in your servlet. >>> >>> -kesav kumar >>> [EMAIL PROTECTED] >>> >>> - Original Message - >>> From: "prasanth sb" <[EMAIL PROTECTED]> >>> To: "Orion-Interest" <[EMAIL PROTECTED]> >>> Sent: Sunday, February 03, 2002 2:51 AM >>> Subject: Re: url.openConnection() doesn't allow to pass objects or >>> attributes >>> >>> I set the doOuptut parameters ,but still in orion it is not working. Can you please help me in this? > From: "Kesav Kumar" <[EMAIL PROTECTED]> > Reply-To: Orion-Interest <[EMAIL PROTECTED]> > To: Orion-Interest <[EMAIL PROTECTED]> > Subject: Re: url.openConnection() doesn't allow to pass objects or > attributes > Date: Sat, 26 Jan 2002 08:12:31 -0800 > > For Posting data from through URLs you have to set doOutput to >> true. > con.setDoOutput(true); > con.setDoInput(true); > > Once you set the above you can get the OutputStream associated with > connection and send parameters. > > For more info read the article at JavaWorld > http://www.javaworld.com/javaworld/javatips/jw-javatip34.html > > -kesav kumar > > - Original Message - > From: "prasanth sb" <[EMAIL PROTECTED]> > To: "Orion-Interest" <[EMAIL PROTECTED]> > Sent: Saturday, January 26, 2002 1:27 AM > Subject: url.openConnection() doesn't allow to pass objects or >>> attributes > > > Hello dear friends, > Please help me with a strange problem happening >> with > orion. I am calling url.openConnection() to a servlet page.When I >> call > this, > the call goes to doGet method of the servlet. But it has to go to >> the > doPost > method. Second problem is I am able to read the values from the >> callee > servlet. But I am not able to pass the values to the callee >> servlet.I >>> am > trying to pass objects in a stream.I have seen this problem >> reported in >>> the > mailing list. Can anyone help me in this? > > Please find the sample code, > > Caller Servlet > > URLConncetion con >> =url.openConnection("http://ipname:port/Servlet1";); > ObjectOutputStream os = new >> ObjectOutputStream(con.getOutputStream()); > os.writeObject("string object"); > > Callee servlet(Servlet1.java) > > > public void doGet(HttpServletRequest req,HttpServletResponse res) { > ObjectInputStream ois = new >> ObjectInputStream(req.getInputStream()); > ois.readObject();//This line , it prints null.It wont print the >> string > //"string object".But if I return values from the servlet1, then >> Caller > servlet is able to read. > > Can some one throw some light on this. > > > > > > > > > > > > > > > > > > > > _ > Join the world's largest e-mail service with MSN Hotmail. > http://www.hotmail.com > > > > _ MSN Photos is the easiest way to share and print
[ANN] EAR auto-deployer
Hi, I developped a simple EAR deployment tool for Orion. Just drag/drop the enterprise archive in a specific folder and it gets deployed automatically. http://www.crionics.com/projects/eclipse/orion.html Enjoy! OR PS: This is not for production use. Many improvements can be made. __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com
RE: Cascade delete for CMP set mapping?
Chris, I believe that cascade delete is fixed in the next release. Regards, the elephantwalker www.elephantwalker.com -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Chris TurnerSent: Tuesday, February 12, 2002 6:34 AMTo: Orion-InterestSubject: Cascade delete for CMP set mapping? Hi Everyone, I've got a CMP entity bean that manages a set of simple object via Orion's proprietary set-mapping features. It all works fine and the table holding the items in the set is updated and read correctly. The problem comes with deleting. If I delete the bean (by calling remove(pk) on the home interface) the data from the entity table goes, but the data in the table for the set items remains. Is this expected behaviour? I was expecting Orion to cascade delete this data! How do I make Orion do a cascade delete of the table for the managed set? Or do I need to add a rule to the database to force it to do the cascade delete? My Orion version is 1.52 Chris _Alison AssociatesThe information contained in this e-mail and any attached files is intended only for the use of the person(s) to whom it is addressed and may be privileged, confidential and exempt from disclosure under applicable law. The views of the author may not necessarily reflect the views of the Company. If you are not the intended recipient please do not copy or convey this message or any attached files to any other person but delete this message and any attached files and notify us of incorrect receipt via e-mail to [EMAIL PROTECTED] _This message has been checked for all known viruses by MessageLabs.
System Date.
Title: System Date. Having trouble with system Date. In Orion our application converts dates based on our users time zone. For some reason our application is producing incorrect date times. The same piece of code when ran on its own as a Java class produces correct time conversions. Are there environment variables that Orion uses that may cause it to interprets the system date differently than what the system date really is? We use a staging and production instances of Orion running on two different Unix boxes. Both boxes have the same system date, the application running on staging produces correct dates, the one on production does not, further evidence that maybe the problem lies with the Orion instance and not the code or the servers. Thanks for any ideas you may have.
Re: Cascade delete for CMP set mapping?
Cascade deletes aren't supported in Orion (yet), but I hear they should be soon. Hang tight :) -Pat - Original Message - From: Chris Turner To: Orion-Interest Sent: Tuesday, February 12, 2002 6:34 AM Subject: Cascade delete for CMP set mapping? Hi Everyone, I've got a CMP entity bean that manages a set of simple object via Orion's proprietary set-mapping features. It all works fine and the table holding the items in the set is updated and read correctly. The problem comes with deleting. If I delete the bean (by calling remove(pk) on the home interface) the data from the entity table goes, but the data in the table for the set items remains. Is this expected behaviour? I was expecting Orion to cascade delete this data! How do I make Orion do a cascade delete of the table for the managed set? Or do I need to add a rule to the database to force it to do the cascade delete? My Orion version is 1.52 Chris _Alison AssociatesThe information contained in this e-mail and any attached files is intended only for the use of the person(s) to whom it is addressed and may be privileged, confidential and exempt from disclosure under applicable law. The views of the author may not necessarily reflect the views of the Company. If you are not the intended recipient please do not copy or convey this message or any attached files to any other person but delete this message and any attached files and notify us of incorrect receipt via e-mail to [EMAIL PROTECTED] _This message has been checked for all known viruses by MessageLabs.
Re: Row limit for finder methods ?!
You could either edit the orion-ejb-jar.xml. And change the generated SQL, but this will be overwritten next time orion is started. Another way is to specify a finder query in your EJBHome inteface like this: String findByRecipient_query = "Message.recipient = $1"; Collection findByRecipient(String recipient) throws RemoteException, FinderException; And Orion will generate a SQLQuery for you. Here you can use the 'LIMIT' attribute. Be aware that this way is Orion specific and will reduce the portability of your code. As for the EJB2.0 spec and the EJBQL does not support the 'LIMIT' attribute as far as I know. /Linus On Tuesday, February 12, 2002, at 01:05 PM, Toni Menzel wrote: > Hi all, > > Is there possibility to set a maximum row count for a resultset ? > Something general for the SQL Attribure "LIMIT" ?! > > Thanks in advance, Toni > > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] Im Auftrag von prasanth sb > Gesendet: Sonntag, 10. Februar 2002 12:16 > An: Orion-Interest > Betreff: Re: url.openConnection() doesn't allow to pass objects or > attributes > > I used doPost only but still it doesn't. > > >> From: "Kesav Kumar" <[EMAIL PROTECTED]> >> Reply-To: Orion-Interest <[EMAIL PROTECTED]> >> To: Orion-Interest <[EMAIL PROTECTED]> >> Subject: Re: url.openConnection() doesn't allow to pass objects or >> attributes >> Date: Sun, 3 Feb 2002 08:23:09 -0800 >> >> I just noticed one more thing with your servlet. It seems that you are >> using doGet method in your servlet. If you do a post request through > URL >> you need to write doPost method in your servlet. >> >> -kesav kumar >> [EMAIL PROTECTED] >> >> - Original Message - >> From: "prasanth sb" <[EMAIL PROTECTED]> >> To: "Orion-Interest" <[EMAIL PROTECTED]> >> Sent: Sunday, February 03, 2002 2:51 AM >> Subject: Re: url.openConnection() doesn't allow to pass objects or >> attributes >> >> >>> I set the doOuptut parameters ,but still in orion it is not working. >>> Can you please help me in this? >>> >>> >>> From: "Kesav Kumar" <[EMAIL PROTECTED]> Reply-To: Orion-Interest <[EMAIL PROTECTED]> To: Orion-Interest <[EMAIL PROTECTED]> Subject: Re: url.openConnection() doesn't allow to pass objects or attributes Date: Sat, 26 Jan 2002 08:12:31 -0800 For Posting data from through URLs you have to set doOutput to > true. con.setDoOutput(true); con.setDoInput(true); Once you set the above you can get the OutputStream associated with connection and send parameters. For more info read the article at JavaWorld http://www.javaworld.com/javaworld/javatips/jw-javatip34.html -kesav kumar - Original Message - From: "prasanth sb" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Saturday, January 26, 2002 1:27 AM Subject: url.openConnection() doesn't allow to pass objects or >> attributes Hello dear friends, Please help me with a strange problem happening > with orion. I am calling url.openConnection() to a servlet page.When I > call this, the call goes to doGet method of the servlet. But it has to go to > the doPost method. Second problem is I am able to read the values from the > callee servlet. But I am not able to pass the values to the callee > servlet.I >> am trying to pass objects in a stream.I have seen this problem > reported in >> the mailing list. Can anyone help me in this? Please find the sample code, Caller Servlet URLConncetion con > =url.openConnection("http://ipname:port/Servlet1";); ObjectOutputStream os = new > ObjectOutputStream(con.getOutputStream()); os.writeObject("string object"); Callee servlet(Servlet1.java) public void doGet(HttpServletRequest req,HttpServletResponse res) { ObjectInputStream ois = new > ObjectInputStream(req.getInputStream()); ois.readObject();//This line , it prints null.It wont print the > string //"string object".But if I return values from the servlet1, then > Caller servlet is able to read. Can some one throw some light on this. _ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com >>> >>> >>> _ >>> MSN Photos is the easiest way to share and print your photos: >>> http://photos.msn.com/support/worldwide.aspx >>> >>> >>> >> > > > _ > Join the worlds largest e-mail service with MSN Hotmail. > http://www.hotmail.com > >
Re: Cascade delete for CMP set mapping?
Cascade deletes are not supported currently by orion, but rumour has it that orion 1.5.4 will indeed support them. Chris Turner wrote: > Hi Everyone, > > > > I've got a CMP entity bean that manages a set of simple object via > Orion's proprietary set-mapping features. It all works fine and the > table holding the items in the set is updated and read correctly. The > problem comes with deleting. If I delete the bean (by calling remove(pk) > on the home interface) the data from the entity table goes, but the data > in the table for the set items remains. > > > > Is this expected behaviour? I was expecting Orion to cascade delete this > data! > > How do I make Orion do a cascade delete of the table for the managed > set? Or do I need to add a rule to the database to force it to do the > cascade delete? > > My Orion version is 1.52 > > > > Chris > > > > | > > _ > > Alison Associates > > The information contained in this e-mail and any attached files is > intended only for the use of the person(s) to whom it is addressed and > may be privileged, confidential and exempt from disclosure under > applicable law. The views of the author may not necessarily reflect the > views of the Company. If you are not the intended recipient please do > not copy or convey this message or any attached files to any other > person but delete this message and any attached files and notify us of > incorrect receipt via e-mail to [EMAIL PROTECTED] > | > _ > This message has been checked for all known viruses by MessageLabs.
Cascade delete for CMP set mapping?
Hi Everyone, I've got a CMP entity bean that manages a set of simple object via Orion's proprietary set-mapping features. It all works fine and the table holding the items in the set is updated and read correctly. The problem comes with deleting. If I delete the bean (by calling remove(pk) on the home interface) the data from the entity table goes, but the data in the table for the set items remains. Is this expected behaviour? I was expecting Orion to cascade delete this data! How do I make Orion do a cascade delete of the table for the managed set? Or do I need to add a rule to the database to force it to do the cascade delete? My Orion version is 1.52 Chris _ Alison Associates The information contained in this e-mail and any attached files is intended only for the use of the person(s) to whom it is addressed and may be privileged, confidential and exempt from disclosure under applicable law. The views of the author may not necessarily reflect the views of the Company. If you are not the intended recipient please do not copy or convey this message or any attached files to any other person but delete this message and any attached files and notify us of incorrect receipt via e-mail to [EMAIL PROTECTED] _ This message has been checked for all known viruses by MessageLabs.
Unable to initialize SSLServerSocketFactory: Permission denied
We have gotten this error with Orion 1.4.5 with a generated certificate and the server running as root. Error starting HTTP-Server: Unable to initialize SSLServerSocketFactory 'com.evermind.ssl.JSSESSLServerSocketFactory': Permission denied Do you have any idea what this is referring to? I can find no documentation on Orion's web site, groups.google.com or on the web in general. I have double checked permission's on the files I created (in the /orion/key and /orion/config directories) and believe they are all OK. Jonathan Bricker Lilly Research Labs Java ATG
Row limit for finder methods ?!
Hi all, Is there possibility to set a maximum row count for a resultset ? Something general for the SQL Attribure "LIMIT" ?! Thanks in advance, Toni -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Im Auftrag von prasanth sb Gesendet: Sonntag, 10. Februar 2002 12:16 An: Orion-Interest Betreff: Re: url.openConnection() doesn't allow to pass objects or attributes I used doPost only but still it doesn't. >From: "Kesav Kumar" <[EMAIL PROTECTED]> >Reply-To: Orion-Interest <[EMAIL PROTECTED]> >To: Orion-Interest <[EMAIL PROTECTED]> >Subject: Re: url.openConnection() doesn't allow to pass objects or >attributes >Date: Sun, 3 Feb 2002 08:23:09 -0800 > >I just noticed one more thing with your servlet. It seems that you are >using doGet method in your servlet. If you do a post request through URL >you need to write doPost method in your servlet. > >-kesav kumar >[EMAIL PROTECTED] > >- Original Message - >From: "prasanth sb" <[EMAIL PROTECTED]> >To: "Orion-Interest" <[EMAIL PROTECTED]> >Sent: Sunday, February 03, 2002 2:51 AM >Subject: Re: url.openConnection() doesn't allow to pass objects or >attributes > > > > I set the doOuptut parameters ,but still in orion it is not working. > > Can you please help me in this? > > > > > > > > >From: "Kesav Kumar" <[EMAIL PROTECTED]> > > >Reply-To: Orion-Interest <[EMAIL PROTECTED]> > > >To: Orion-Interest <[EMAIL PROTECTED]> > > >Subject: Re: url.openConnection() doesn't allow to pass objects or > > >attributes > > >Date: Sat, 26 Jan 2002 08:12:31 -0800 > > > > > >For Posting data from through URLs you have to set doOutput to true. > > >con.setDoOutput(true); > > >con.setDoInput(true); > > > > > >Once you set the above you can get the OutputStream associated with > > >connection and send parameters. > > > > > >For more info read the article at JavaWorld > > >http://www.javaworld.com/javaworld/javatips/jw-javatip34.html > > > > > >-kesav kumar > > > > > >- Original Message - > > >From: "prasanth sb" <[EMAIL PROTECTED]> > > >To: "Orion-Interest" <[EMAIL PROTECTED]> > > >Sent: Saturday, January 26, 2002 1:27 AM > > >Subject: url.openConnection() doesn't allow to pass objects or >attributes > > > > > > > > >Hello dear friends, > > > Please help me with a strange problem happening with > > >orion. I am calling url.openConnection() to a servlet page.When I call > > >this, > > >the call goes to doGet method of the servlet. But it has to go to the > > >doPost > > >method. Second problem is I am able to read the values from the callee > > >servlet. But I am not able to pass the values to the callee servlet.I >am > > >trying to pass objects in a stream.I have seen this problem reported in >the > > >mailing list. Can anyone help me in this? > > > > > >Please find the sample code, > > > > > >Caller Servlet > > > > > >URLConncetion con =url.openConnection("http://ipname:port/Servlet1";); > > >ObjectOutputStream os = new ObjectOutputStream(con.getOutputStream()); > > >os.writeObject("string object"); > > > > > >Callee servlet(Servlet1.java) > > > > > > > > >public void doGet(HttpServletRequest req,HttpServletResponse res) { > > >ObjectInputStream ois = new ObjectInputStream(req.getInputStream()); > > >ois.readObject();//This line , it prints null.It wont print the string > > >//"string object".But if I return values from the servlet1, then Caller > > >servlet is able to read. > > > > > >Can some one throw some light on this. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >_ > > >Join the world's largest e-mail service with MSN Hotmail. > > >http://www.hotmail.com > > > > > > > > > > > > > > > > > > _ > > MSN Photos is the easiest way to share and print your photos: > > http://photos.msn.com/support/worldwide.aspx > > > > > > > _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com
FOP AND ORION
Hi all. Does anybody know how to configure ORION to run Fop. "It runs in Tomcat when i put I put xerces-1.2.3.jar, xalan-2.0.0.jar at the beginning of tomcat classpath and deleted the jaxp.jar, parser.jar from tomcat\lib directory and I put all FOP jars in lib directory under my web application". If someone´s has configured orion to run Fop, please answer my question. Thanks.
Re: Where to put JAAS classfiles (loginmodules) when using it from a web app
According to the atlassian owerview over orion classloaders, it should be possible to use the Class-Path: attribute in your manifest file of your .jar file, orion should load those classes. I´ve tried but never got it to work, it seems orion ignoring the Class-Path: attribute (this works on JBOSS although). By putting your JAAS classfiles in orion/lib your classes gets global acces to all your applications, but it will work. You could specify in your orion-application.xml, in this way you could keep all your dependency classes in your ear/jar file. /Linus On Tuesday, February 12, 2002, at 05:11 AM, Scott Farquhar wrote: > Can I suggest the classloader documentation on the knowledge base: > > http://kb.atlassian.com/content/atlassian/howto/classloaders.jsp > > Here is a search that would have found the doc: > > http://kb.atlassian.com/search.jsp?query=jre/lib/ext > > Cheers, > Scott > > Scott Farquhar :: [EMAIL PROTECTED] > > Atlassian :: http://www.atlassian.com > Supporting YOUR J2EE World > > > > Geoff Soutter wrote: > >> What about orion/lib? >> -Original Message- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED]] On Behalf Of Ismael Blesa >> Part >> Sent: Saturday, 26 January 2002 3:25 AM >> To: Orion-Interest >> Subject: Where to put JAAS classfiles (loginmodules) when using it from >> a web app >> Hi, >> I am using JAAS authentication from a web application, the problem is >> that the login modules that I use, and all the classes that the >> LoginModule uses are not loaded from the WEB-INF/classes or WEB_INF/lib >> folder. I have to put them on the jdk/jre/lib/ext. The problem is that >> the classes I put there collide with other applications that use the >> same installed JDK and also with some other webapplications that run on >> the same application server. I have developed it using jdk1.3.1 and >> JAAS >> 1.0. Is there a way to put specify where login module classes should be >> loaded that does not interfere with other applications (that is, I do >> not want to put any class on the jdk/ jre/lib/ext folder). Cheers > > > -- >