Re: Tomcat with Orion /Apteach with Orion
You can use Orion as a Web server also. Apache with Tomcat can also be configured, Regards sachin Z - Original Message - From: sachin mahajan [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Friday, March 08, 2002 9:21 AM Subject: Tomcat with Orion /Apteach with Orion Hello, Can any one explain me how to configure Orion as a application server And Tomcat /Aptech as a web server. does It require any plugin. If can one know pl reply me fast . Its very important sachin __ Do You Yahoo!? Try FREE Yahoo! Mail - the world's greatest free email! http://mail.yahoo.com/
AW: JDBC connection leak
Hi! Problem solved. I removed all the JDBC things and implemented two more finder methods for min and max of date such as: finder-method query=$rw_websiteID = $1 and rw_datetime in (select min (rw_datetime) from logfilerow where $rw_websiteID = $1) method ejb-nameLogFileRow/ejb-name method-namefindByMinDateWebsite/method-name method-params method-paramjava.lang.String/method-param /method-params /method /finder-method Thanks. Marc.
Container does not passivate my beans.
Hello. I sent a message some days ago, to no avail. It didn't show up in the list. My problem is, that Orion does not passivate my beans. I have tested both CMP and BMP, with NO success... I ran a test, which created 1 million bean instances. Orion kept up creating beans, until at last it ran out of memory (740MB). Am i doing something wrong? for (int i = 0; i 100; i ++){ MyHome.create(i); } No success... 1 million. If these are not released imagine what will happen at a later moment? I need to create beans continuously. Do I have to restart Orion every couple of minutes, just to clear the bean pools? I must say I'm very disappointed. I don't see reason to use Entity Beans any more. I better serialize to files. THAT will do the job. Later all. Lachezar
RE: Looking up session beans between apps
I suppose if the 2 servers are on the same machine then you could possibly put the beans into their own directory and share that directory between the 2 servers but then you have to think do the beans have to share instances of the beans? Does 1 server initialize 1 bean and then can the other server reference it? I suppose you could work around that by saving the bean instance to disk but that might be a lot of work (referencing it, sharing it, etc;) I don't really know a good secure answer to that, but I would definitely like too -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: 07 March 2002 08:20 To: Orion-Interest Subject: Re: Looking up session beans between apps Hi, try to put the remote and home interface of your bean in the app server classpath ( server.xml ), i think it will solve your problem if Bean A and Bean B are on the same server. Does anybody know how to solve this problem if bean A and bean B are on different server ?? Thanks. Rémy. Gday all, I am currently working on porting an application from jboss to orion (don't ask!) and am having problems looking up session beans between apps. What i am trying to do is lookup sessionbeanA (in app A) from sessionbeanB (from app B). (Note that sessionbeanA and sessionbeanB are different bean classes). I am getting a class cast ecxception. This is how i am doing it So in sessionbeanB I create a context using the following properties.. props.put( Context.INITIAL_CONTEXT_FACTORY, com.evermind.server.ApplicationClientInitialContextFactory ); props.put( Context.PROVIDER_URL, ormi://localhost/sso-wa ); props.put( Context.SECURITY_PRINCIPAL, guest ); props.put( Context.SECURITY_CREDENTIALS, ); .. and can successfully locate an instance of sessionbeanA. Then i attempt to narrow it. The class i want to narrow to is SSOManagerHome. The class of the object being narrowed is SSOManagerHome_StatelessSessionHomeWrapper27 It looks OK to me, but the narrow gives and exception. java.lang.ClassCastException at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(Unknown Source) at javax.rmi.PortableRemoteObject.narrow(Unknown Source) .. I have found some similar problems.. http://www.elephantwalker.com/searchresult?id=277 http://www.mail-archive.com/orion-interest@orionserver.com/msg17468.html But no solutions :( So where to from here??? Is there a solution? Will the remote access doco http://www.orionserver.com/docs/remote-access/remote-access.xml be of any help as i am going session bean to session bean? (as opposed to web component to session bean). Thanks and Regards Ryan
RE: Container does not passivate my beans.
-Original Message- From: Lachezar Dobrev [mailto:[EMAIL PROTECTED]] Sent: Friday, March 08, 2002 4:45 PM To: Orion-Interest Subject: Container does not passivate my beans. Hello. I sent a message some days ago, to no avail. It didn't show up in the list. My problem is, that Orion does not passivate my beans. I have tested both CMP and BMP, with NO success... I ran a test, which created 1 million bean instances. Orion kept up creating beans, until at last it ran out of memory (740MB). Am i doing something wrong? for (int i = 0; i 100; i ++){ MyHome.create(i); } No success... 1 million. If these are not released imagine what will happen at a later moment? I need to create beans continuously. Do I have to restart Orion every couple of minutes, just to clear the bean pools? I must say I'm very disappointed. I don't see reason to use Entity Beans any more. I better serialize to files. THAT will do the job. Later all. Lachezar
debugging jsp in jbuilder4
Hi I followed the instructions for debugging orion in jbuilder 4. It works great for any classes in jar files, But I cant seem to debug the classes generated from the jsp. Jbuilder cant find the source for the classes. The class names in the generated java files are different from the file names. Any Ideas? Andy Reischer
Re: How does passivation work?
Taking your advice, I did some forther investigation in this matter. Indeed, there are several DELETE - INSERT statements in the Oracle Logs. I am using some iterators to go through table-mapped lists. I saw that operations on those lists are done through SELECT statements in the DB. Is it possible that one of those iterators may trigger a DELETE - INSERT statement? Thanks, Cristi - Original Message - From: Scott Farquhar [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Friday, March 08, 2002 12:46 AM Subject: Re: How does passivation work? Probably the easiest way to solve this would be to turn database logging on, and then see what SQL statements are being run on your db when Orion runs. Cheers, Scott Cristian Donciulescu wrote: I am interested to know how does Orion Container treat the ejbPassivate method of an CMP entity-bean. Does it by any chance Deletes a record in the DB and then recreates it? The problem I'm facing is the following: I have a one-to-many relationship in the DB. I have one entity bean (A) that has a List member. The list member contains objects of class B. If I reinforce the FK constraint between the tables entity A and class B are stored in, I get an Oracle error stating the there was a FK violation, there were child records found. If I create the child table with the ON DELETE CASCADE directive, the error dissapears, but in the DB the child record is deleted and only the parent remains. The error is thrown immediately after the ejbPassivate is called. This suggests that during passivation the parent record is deleted and recreated. When the tables are created with ON DELETE CASCADE this works, although the child is permanently deleted. Otherwise, when trying to delete the parent Oracle reacts with an error that is caught by me. Is all this true? If yes, is there any way around it? Thanks, Cristi -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World
Open JMS with Orion for MDB
Hi All, I have an MDB running fine on Orion. I have an application client, that sends a message to the queue. When I do that, my MDB's onMessage() gets called and I can see the messages on Orion server console. I tried to integrate Orion with Open JMS. I referred to the document Using OpenJMS with Orion at the orion support web site. I followed all the steps required described in that document. Now, when I ran the client, the message goes to the queue in Open JMS. But my MDB's( deployed on Orion ) onMessage() method does not get called. Please, can you tell me if I can use Open JMS with Orion for MDBs? If not, which JMS provider should I use? Please help. Thanks, Vani _ Chat with friends online, try MSN Messenger: http://messenger.msn.com
RE: j_security_check doesn't redirect but forwards content of secure page
I came across this exact problem. In the mailing archives the recommendation is to remove the action=j_security_check from the login form. Here's what I did to implement the system: 1. created a index.jsp in the non protected folder. It contains a redirect %response.sendRedirect(/protected/index.jsp);% to the protected main page. 2. removed login.jsp from the global-web-application.xml welcome-file-list and added index.jsp. 3. Made sure all my log-outs pointed to the non protected index.jsp. What this does is that when a user goes to the site (e.g. http://www.yoursite.com/) he is redirected to the protected index.jsp via the non protected index.jsp. This causes the container to request validation and pulls up the login.jsp. After successful password entry the user is then redirected to protected/index.jsp. This seems to be working without throwing up 404's now. -Original Message- From: Warren Hedley [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 7:24 PM To: Orion-Interest Subject: j_security_check doesn't redirect but forwards content of secure page Hi folks, I've been playing around with creating secure sections on an internal website using the J2EE web-application framework and Orion and have come across what may be a show-stopper for the application. Basically, the user clicks on a link to a secure page, and if they're not logged in they are re-directed to a login form (using the FORM system) which is generated by a JSP. When the user submits, they are directed to j_security_check. j_security_check serves the content of the originally requested secure page. This is fine and seems to conform to the spec, but If the secure page takes a while to load, then the user might be prompted to hit reload. Because the URI in their browser is /appname/j_security_check or whatever, they receive a 404. What's more, the back button takes them to the login screen, and they have to click back again to see the original link and have another go at loading the original URI. Would it not be better to have j_security_check send a re-direct rather than simply forwarding the content of the secure page? Does anyone have a decent workaround that doesn't involve something inelegant, like for instance, causing all secure pages to redirect to themselves on the first load, or some such. Thanks in advance, Warren Hedley -- Warren Hedley Alliance For Cell Signaling San Diego Supercomputer Center
Role Information in DataBase
Hi All, The DBA on my project is complaining about storing the role information in web.xml and application.xml files. (sigh) Is there a way tomake Orion lookup the role information from the database? Thanks, Joanne
Re: Container does not passivate my beans.
Hi, What version are you using? I saw this problem in 1.0.2.2, but not 1.0.2.2.1 the same way. Do you really need to create 1,000,000 rows in one transaction, or will it actually be many transactions? If I create 1000 beans/transaction, and call it many times, it seems I only ever have 1000 total used/pooled instances. I did change instance-cache-timeout=1 for the entity bean I am testing. Another change I made (for different reasons) was to set exclusive_write_acesss= false, I don't know if that effected this at all. hope this helps, Roxanne Lachezar Dobrev wrote: Hello. I sent a message some days ago, to no avail. It didn't show up in the list. My problem is, that Orion does not passivate my beans. I have tested both CMP and BMP, with NO success... I ran a test, which created 1 million bean instances. Orion kept up creating beans, until at last it ran out of memory (740MB). Am i doing something wrong? for (int i = 0; i 100; i ++){ MyHome.create(i); } No success... 1 million. If these are not released imagine what will happen at a later moment? I need to create beans continuously. Do I have to restart Orion every couple of minutes, just to clear the bean pools? I must say I'm very disappointed. I don't see reason to use Entity Beans any more. I better serialize to files. THAT will do the job. Later all. Lachezar -- === Roxanne Tapia Bioscience Division (B-1) Los Alamos National Laboratory 505-665-0206 ===
SwiftMQ wth Orion
Hi All, After days of trial with Open JMS I decided to give a try with SwiftMQ. I want to deploy my MDB on Orion1.5.4, and I want to use SwiftMQ JMS provider. The document I referred to is the one available at http://kb.atlassian.com/content/orion/docs/resource-providers/resource-providers.html After following the steps in that document, I tried to deploy my application onto Orion and it fails with the following Exception. Error updating application OrionMDB: Error creating naming context instance: javax.naming.NoInitialContextException: Cannot instantiate class: com.swiftmq.jndi.InitialContextFactoryImpl [Root exception is java.lang.ClassNotFoundException: com.swiftmq.jndi.InitialContextFactoryImpl] Please if any of you have got Orion working with SwiftMQ, let me know how you did it. I don't seem to have any clue as to what is going on. I have included the swiftmq.jar, which contains com.swiftmq.jndi.InitialContextFactoryImpl.class in the classpath of orion server. Please help me. Thanks, Vani _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx
Re: SwiftMQ wth Orion
Hi Vani - I have been able integrate SwiftMQ just fine with Orion by following those instructions in the documentation referenced below. You say you have put swiftmq.jar into the orion\lib directory? Double check that first. Cheers Ray --- Vani H.S. [EMAIL PROTECTED] wrote: Hi All, After days of trial with Open JMS I decided to give a try with SwiftMQ. I want to deploy my MDB on Orion1.5.4, and I want to use SwiftMQ JMS provider. The document I referred to is the one available at http://kb.atlassian.com/content/orion/docs/resource-providers/resource-providers.html After following the steps in that document, I tried to deploy my application onto Orion and it fails with the following Exception. Error updating application OrionMDB: Error creating naming context instance: javax.naming.NoInitialContextException: Cannot instantiate class: com.swiftmq.jndi.InitialContextFactoryImpl [Root exception is java.lang.ClassNotFoundException: com.swiftmq.jndi.InitialContextFactoryImpl] Please if any of you have got Orion working with SwiftMQ, let me know how you did it. I don't seem to have any clue as to what is going on. I have included the swiftmq.jar, which contains com.swiftmq.jndi.InitialContextFactoryImpl.class in the classpath of orion server. Please help me. Thanks, Vani _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx __ Do You Yahoo!? Try FREE Yahoo! Mail - the world's greatest free email! http://mail.yahoo.com/
RE: j_security_check doesn't redirect but forwards content of secure page
Second try: I came across this exact problem. In the mailing archives the recommendation is to remove the action=j_security_check from the login form. Here's what I did to implement the system: 1. created a index.jsp in the non protected folder. It contains a redirect %response.sendRedirect(/protected/index.jsp);% to the protected main page. 2. removed login.jsp from the global-web-application.xml welcome-file-list and added index.jsp. 3. Made sure all my log-outs pointed to the non protected index.jsp. What this does is that when a user goes to the site (e.g. http://www.yoursite.com/) he is redirected to the protected index.jsp via the non protected index.jsp. This causes the container to request validation and pulls up the login.jsp. After successful password entry the user is then redirected to protected/index.jsp. This seems to be working without throwing up 404's now. -Original Message- From: Warren Hedley [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 7:24 PM To: Orion-Interest Subject: j_security_check doesn't redirect but forwards content of secure page Hi folks, I've been playing around with creating secure sections on an internal website using the J2EE web-application framework and Orion and have come across what may be a show-stopper for the application. Basically, the user clicks on a link to a secure page, and if they're not logged in they are re-directed to a login form (using the FORM system) which is generated by a JSP. When the user submits, they are directed to j_security_check. j_security_check serves the content of the originally requested secure page. This is fine and seems to conform to the spec, but If the secure page takes a while to load, then the user might be prompted to hit reload. Because the URI in their browser is /appname/j_security_check or whatever, they receive a 404. What's more, the back button takes them to the login screen, and they have to click back again to see the original link and have another go at loading the original URI. Would it not be better to have j_security_check send a re-direct rather than simply forwarding the content of the secure page? Does anyone have a decent workaround that doesn't involve something inelegant, like for instance, causing all secure pages to redirect to themselves on the first load, or some such. Thanks in advance, Warren Hedley -- Warren Hedley Alliance For Cell Signaling San Diego Supercomputer Center