Re: Reloading servlets, XSLT, AS/400 ?
- Original Message - From: "Will Glozer" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: 20 ÓÅÎÔÑÂÒÑ 2000 Ç. 17:10 Subject: RE: Reloading servlets, XSLT, AS/400 ? Yes, the company I work for runs Orion on the AS/400. If you search the archives you might find some previous posts that will help. The IBM VM is pretty badly broken so you have to avoid using some features like security and EAR reloading. Also you'll have to disable the JIT... but otherwise it works quite well and we are shipping production code that uses it. But JIT is on AS/400 just from v 4.4. Have you tried to compile app to native code ? AS/400 has now 3 possibiliutes to run java code. interpret compiled native code with different levels of optimiztion. JIT. Regards, Will -Original Message- From: Vitaly Lipovetsky [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 20, 2000 12:59 AM To: Orion-Interest Subject: Reloading servlets, XSLT, AS/400 ? 1. Does Orion support reloading servlets without restart server ? 2. Does Orion support XSLT ? 3. Has anyone tried to run Orion on AS/400 ?
Re: How to use EJB2.0 on Orion
well, maybe there IS no avail. Not many of us have done EJB 2.0 yet, and as far as the orion core team goes, I hope (!!) they are busy writing documentation for the basic stuff (and improving orion in their spare time). actually, I was trying to refer to documentation that covers the basic orion-specific items that one runs across when first installing and running it. I dont think we need EJB 2.0 doc from orion that badly. And I think it is perfectly OK to require a thorough knowledge of the specs on the side of us developers..
RE: How to use EJB2.0 on Orion
Doesn't the use of the Address dependent object in the Person remote interface violate section 9.4.11 of the EJB2.0 spec? Specifically: - The Bean Provider must not expose the dependent object classes or the persistent Collection classes that are used in container managed relationships through the remote interface of the bean. This means that the get and set methods of the entity bean's abstract persistence schema must not be exposed through the remote interface of the entity bean except in the following cases: * When the relationship is defined as a one-to-one or many-to-one relationship between two entity beans. * When the get and set accessor methods are methods for a cmp-field. Set accessor methods cor-responding to primary key fields, however, should not be exposed in the remote interface of the bean. - and... - Although dependent object classes cannot be exposed in the remote interface, the Bean Provider can use the accessor methods to obtain instances of these persistent classes (including the collection classes that correspond to relationships), and can copy data to or from these instances to instances of the classes that are exposed in the remote interface. - Unless I'm mistaken (no way, never happens :-), you need to copy the Address data to a detail object before returning it. Jeff -Original Message- From: Nick Newman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 20, 2000 3:02 PM To: Orion-Interest Subject: Re: How to use EJB2.0 on Orion I gather the ATM EJB 2.0 app is out now - but perhaps a very simple app will still be useful. See attached. The only problem I have had with EJB 2.0 in Orion is trying to do a 1-1 mapping to a dependent class. Nick
Orion 1.2.9 stable???
Dear people at Orionserver.com, how about updating the 'stable' 1.2.9 version of Orion on the website with an even more stable version that doesn't have this bug: *** shadow/44 Mon Sep 11 11:34:13 2000 --- shadow/44.tmp.570 Mon Sep 11 12:31:52 2000 *** *** 2,9 | line-feed/carriage return break in JSP html | +--- -+ |Bug #: 44 Product: Orion Application Serve | ! | Status: NEW Version: 1.2.9 | ! | Resolution:Platform: PC | | Severity: majorOS/Version: Windows NT | | Priority: P2Component: Web container | +--- -+ --- 2,9 | line-feed/carriage return break in JSP html | +--- -+ |Bug #: 44 Product: Orion Application Serve | ! | Status: RESOLVEDVersion: 1.2.9 | ! | Resolution: DUPLICATE Platform: PC | | Severity: majorOS/Version: Windows NT | | Priority: P2Component: Web container | +--- -+ *** *** 40,42 --- 40,48 } ...which is, of course, not good, and generates a JavaScript error for not terminating a string-constant. + + --- Additional Comments From [EMAIL PROTECTED] 2000-09-11 12:31 --- + Please check the bug database for an existing report before submitting a new + bug. Thank you. + + *** This bug has been marked as a duplicate of 36 *** \ No newline at end of file I also find it kind of strange that your experimental server version is the same as your stable. I found that version 1.3.7 doesn't work for me as well, what do I do now, go back to my back-upped version 1.0.3b??? Kind regards, Jonathan van Alteren
RE: FORM based login ACTION
Title: RE: FORM based login ACTION Claus, this is an Orion feature initially added to let programmers decide the first page to be displayed after a user has been authenticated. The correct conduct would still be to call the j_security_check as posted elsewhere in this list. Im a sinner myself (ATM), and I really like to be able to decide what page to load when the user is authenticated, as this means that I dont have to do so many checks throughout the application as I will have to when the user can go to any page directly (without passing go).. WR -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: den 20 september 2000 10:02 To: Orion-Interest Subject: SV: FORM based login ACTION Try clear your ACTION so the form starts like this: form lots of html with a couple of fields for user and passwd... /form This works for me :) Mvh Klaus Myrseth Telenor Mobil AS - PlanIT -Opprinnelig melding- Fra: Guilherme Ceschiatti [mailto:[EMAIL PROTECTED]] Sendt: 20. september 2000 08:05 Til: Orion-Interest Emne: FORM based login ACTION Hi! I'm having problems in loging into my application. I'm using FORM based login, with a form with the ACTION=j_security_check. When I submit the form, Orion just replies: 404 Not Found Is it a bug? How do I fix it? []s Guilherme Ceschiatti [EMAIL PROTECTED]
Using OODB with Orion
Has anyone attempted using an OODB - e.g. ObjectStore or Objectivity/DB with Orion? I am about to attempt this and wondered if anyone can share pitfalls/tips about the interaction of CMP, BMP and OODB native persistence. Online references to using OODBs with EJB would also be welcome. - Joshua -[ Joshua Goodall ]--- -[ IP Systems Architect ] at home: --- -[ [EMAIL PROTECTED] ]--- [EMAIL PROTECTED] --
Unknown EJB-error message
Does anyone know why this error occurs? The weird thing is that it appears randomly. The program that causes this error works fine 9 times out of 10. The program is a standalone client if that matters. /M Andersson com.evermind.server.rmi.OrionRemoteException: Error loading state: java.lang.NullPointerException at EntityBeanWrapper6.getRuleId(EntityBeanWrapper6.java:232) at java.lang.reflect.Method.invoke(Native Method) at com.evermind.server.rmi.ba.run(JAX) at com.evermind.server.rmi.a8.gu(JAX) at com.evermind.server.rmi.a8.run(JAX) at com.evermind.util.e.run(JAX)at connection to localhost/127.0.0.1 as admin at com.evermind.server.rmi.a8.invokeMethod(JAX) at com.evermind.server.rmi.a_.invoke(JAX) at __Proxy10.getRuleId(Unknown Source) at optimizer.RuleOptimizer$CompareObject.init(RuleOptimizer.java:294) at optimizer.RuleOptimizer.arrangeRule(RuleOptimizer.java:194) at optimizer.RuleOptimizer.startOptimizing(RuleOptimizer.java:147) at optimizer.RuleOptimizer.run(RuleOptimizer.java:96) Nested exception is:java.lang.NullPointerException at oracle.jdbc.driver.OraclePreparedStatement.checkBindTypes(OraclePreparedStatement.java:2389) at oracle.jdbc.driver.OraclePreparedStatement.setItem(OraclePreparedStatement.java:760) at oracle.jdbc.driver.OraclePreparedStatement.setInt(OraclePreparedStatement.java:1026) at com.evermind.sql.aj.setInt(JAX) at com.evermind.sql.aj.setInt(JAX) at EntityBeanWrapper6.loadState(EntityBeanWrapper6.java:673) at EntityBeanWrapper6.getRuleId(EntityBeanWrapper6.java:225) at java.lang.reflect.Method.invoke(Native Method) at com.evermind.server.rmi.ba.run(JAX) at com.evermind.server.rmi.a8.gu(JAX) at com.evermind.server.rmi.a8.run(JAX) at com.evermind.util.e.run(JAX)at connection to localhost/127.0.0.1 at com.evermind.server.rmi.OrionRemoteException.gy(JAX) at com.evermind.server.rmi.a8.gr(JAX) at com.evermind.server.rmi.a8.run(JAX) at java.lang.Thread.run(Thread.java:484)
RE: orion hangs when out of connections
Title: RE: orion hangs when out of connections We have seen Orion choke up in a similar fashion with a single application client with a single thread when given too large a transaction (800 inserts + 800*3 inserts + 800*20 inserts). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 21 September 2000 09:29 To: Orion-Interest Subject: SV: orion hangs when out of connections No but i have seen another thing that can give the same result. If you try deploy and the deployment meets a deadlock in the database orion stops trying and hangs. Those two can have something to do with eachother.. Klaus Myrseth Telenor Mobil AS - PlanIT -Opprinnelig melding- Fra: Lorin Kobashigawa-Bates [mailto:[EMAIL PROTECTED]] Sendt: 20. september 2000 19:22 Til: Orion-Interest Emne: orion hangs when out of connections http://www.mail-archive.com/orion-interest@orionserver.com/msg03258.html Has anyone else seen this behavior? I found this email about it on the list, with no responses. I am getting the same problem in our development environment. Basically when we put any kind of load on orion that exceeds the max connections it can open, it hangs. It doesn't die or refuse connections, it just never sends any responses. I have sent several emails to orion-support, but have not gotten any responses. I am running: Orion 1.2.9 Solaris 2.8 JDK 1.2.2 -Lkb
RE: Login System
Title: RE: Login System Hi, in your web.xml, it seems like you have added login.jsp as one of the pages to be protected. Remove that entry and it looks like it should work just fine. -Original Message- From: Truong Di Ly [mailto:[EMAIL PROTECTED]] Sent: den 20 september 2000 13:48 To: Orion-Interest Subject: Login System Hi, first thanks to Magnus for one problem is fixed. But still there is a bug with my login web component. Try it! cd $orionhome/applications unzip login.zip change server.xml by adding this line: application name=login path=../applications/login / change default-web-site.xml by adding this line: web-app application=login name=login-web root=/login /
RE: How to use EJB2.0 on Orion
Title: RE: How to use EJB2.0 on Orion Hopefully, the future documentation that will look at one piece at the time, will make this application more usefull. The way it is right now, is more for advanced users to find an example of a certain functionality. It will continue to include as many functions as possible, but it will be given a documentation to make life easier for ppl. WR -Original Message- From: Joseph B. Ottinger [mailto:[EMAIL PROTECTED]] Sent: den 21 september 2000 05:21 To: Orion-Interest Subject: Re: How to use EJB2.0 on Orion Yeah, I know - and the example apps are good, but they're more than I'd like. (Incidentally, the ATM has been EJB 2.0 for a while now.) I like Ernst de Haan's approach - he covers one area and tries not to dress it too much. Here I'll cover creating a simple app. Here I'll create a CMP bean and use it. The ATM is good, but it does *everything* - which makes learning individual elements more difficult than it could be if you had, for example, an OR-mapping application or a security model application. On Wed, 20 Sep 2000, Vimal Kansal wrote: I jsu upgraded to Orion 1.3.8. And guess what ? :- it has the EJB2.0 based ATM application :-) Vimal --- Joseph B. Ottinger [EMAIL PROTECTED] wrote: Don't forget that EJB 2.0 isn't a standard yet. It's a draft. Personally, I'm mucking about with it a bit, and the parts I'm most interested in - the OR mapping - I've not really covered, so I'm in the same boat of wanting more information, but let's be real about it. It's not there unless we generate it ourselves; we can't expect the Orion team to do everything for us (we *are* developers, right?) so instead of griping about it, read the draft. Play with it. Try things out. Tell others about it, so we can ALL learn. (If I see stuff on it that I think is useful, as soon as the infrastructure is done for the new orionsupport, I'll put it online.) On Wed, 20 Sep 2000, Christian Sell wrote: I have been sending this mail for quite some time but to no avail. well, maybe there IS no avail. Not many of us have done EJB 2.0 yet, and as far as the orion core team goes, I hope (!!) they are busy writing documentation for the basic stuff (and improving orion in their spare time). regards --- Joseph B. Ottinger [EMAIL PROTECTED] http://cupid.suninternet.com/~joeo HOMES.COM Developer __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. http://im.yahoo.com/ --- Joseph B. Ottinger [EMAIL PROTECTED] http://cupid.suninternet.com/~joeo HOMES.COM Developer
SV: orion hangs when out of connections
Title: RE: orion hangs when out of connections I do some heavy mathematics and statistics calculation in a bean and then build a a datawarehouse out of the processed data. On the initial processing I read about 10 -12 million records and wrote about 1,5 million records. Needles to say the process time for this where more than a day. It all went through a single thread as one calculation depended on the other, so it couldn't be done multithreaded. This works great if I remember to start Orion like java -mx1024m -jar orion.jar. If not it's guaranteed to crash as Orion isn't fast enough to throw away old entitybeans. When processing large amount of data with Orion you need loads of memory. If you do everything works great. If you don't you will get sporadic non deterministic crashes. Regards, Torgeir Lerkerød Telenor Mobil Communications -Opprinnelig melding-Fra: Byron du Preez [mailto:[EMAIL PROTECTED]]Sendt: 21. september 2000 11:42Til: Orion-InterestEmne: RE: orion hangs when out of connections We have seen Orion "choke" up in a similar fashion with a single application client with a single thread when given too large a transaction (800 inserts + 800*3 inserts + 800*20 inserts). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 21 September 2000 09:29 To: Orion-Interest Subject: SV: orion hangs when out of connections No but i have seen another thing that can give the same result. If you try deploy and the deployment meets a deadlock in the database orion stops trying and hangs. Those two can have something to do with eachother.. Klaus Myrseth Telenor Mobil AS - PlanIT -Opprinnelig melding- Fra: Lorin Kobashigawa-Bates [mailto:[EMAIL PROTECTED]] Sendt: 20. september 2000 19:22 Til: Orion-Interest Emne: orion hangs when out of connections http://www.mail-archive.com/orion-interest@orionserver.com/msg03258.html Has anyone else seen this behavior? I found this email about it on the list, with no responses. I am getting the same problem in our development environment. Basically when we put any kind of load on orion that exceeds the max connections it can open, it hangs. It doesn't die or refuse connections, it just never sends any responses. I have sent several emails to orion-support, but have not gotten any responses. I am running: Orion 1.2.9 Solaris 2.8 JDK 1.2.2 -Lkb
RE: How to use EJB2.0 on Orion
I am intersted in 2 points mentioned below: 1. How do I get the 1.3.8 version; their server (www.orionserver.com) shows only 1.2.9 as the latest. 2. Where can I find this document on "Ernst de Haan's approach"? Any help... Thanks sb On Thu, 21 September 2000, Magnus Rydin wrote: Hopefully, the future documentation that will look at one piece at the time, will make this application more usefull. The way it is right now, is more for advanced users to find an example of a certain functionality. It will continue to include as many functions as possible, but it will be given a documentation to make life easier for ppl. WR -Original Message- From: Joseph B. Ottinger [mailto:[EMAIL PROTECTED]] Sent: den 21 september 2000 05:21 To: Orion-Interest Subject: Re: How to use EJB2.0 on Orion Yeah, I know - and the example apps are good, but they're more than I'd like. (Incidentally, the ATM has been EJB 2.0 for a while now.) I like Ernst de Haan's approach - he covers one area and tries not to dress it too much. "Here I'll cover creating a simple app." "Here I'll create a CMP bean and use it." The ATM is good, but it does *everything* - which makes learning individual elements more difficult than it could be if you had, for example, an OR-mapping application or a security model application. On Wed, 20 Sep 2000, Vimal Kansal wrote: I jsu upgraded to Orion 1.3.8. And guess what ? :- it has the EJB2.0 based ATM application :-) Vimal --- "Joseph B. Ottinger" [EMAIL PROTECTED] wrote: Don't forget that EJB 2.0 isn't a standard yet. It's a draft. Personally, I'm mucking about with it a bit, and the parts I'm most interested in - the OR mapping - I've not really covered, so I'm in the same boat of wanting more information, but let's be real about it. It's not there unless we generate it ourselves; we can't expect the Orion team to do everything for us (we *are* developers, right?) so instead of griping about it, read the draft. Play with it. Try things out. Tell others about it, so we can ALL learn. (If I see stuff on it that I think is useful, as soon as the infrastructure is done for the new orionsupport, I'll put it online.) On Wed, 20 Sep 2000, Christian Sell wrote: I have been sending this mail for quite some time but to no avail. well, maybe there IS no avail. Not many of us have done EJB 2.0 yet, and as far as the orion core team goes, I hope (!!) they are busy writing documentation for the basic stuff (and improving orion in their spare time). regards --- Joseph B. Ottinger [EMAIL PROTECTED] http://cupid.suninternet.com/~joeo HOMES.COM Developer __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. http://im.yahoo.com/ --- Joseph B. Ottinger [EMAIL PROTECTED] http://cupid.suninternet.com/~joeo HOMES.COM Developer Chequemail.com - a free web based e-mail service that also pays!!! http://www.chequemail.com
RE: How to use EJB2.0 on Orion
I am intersted in 2 points mentioned below: 1. How do I get the 1.3.8 version; their server (www.orionserver.com) shows only 1.2.9 as the latest. 2. Where can I find this document on "Ernst de Haan's approach"? Any help... Thanks sb On Thu, 21 September 2000, Magnus Rydin wrote: Hopefully, the future documentation that will look at one piece at the time, will make this application more usefull. The way it is right now, is more for advanced users to find an example of a certain functionality. It will continue to include as many functions as possible, but it will be given a documentation to make life easier for ppl. WR -Original Message- From: Joseph B. Ottinger [mailto:[EMAIL PROTECTED]] Sent: den 21 september 2000 05:21 To: Orion-Interest Subject: Re: How to use EJB2.0 on Orion Yeah, I know - and the example apps are good, but they're more than I'd like. (Incidentally, the ATM has been EJB 2.0 for a while now.) I like Ernst de Haan's approach - he covers one area and tries not to dress it too much. "Here I'll cover creating a simple app." "Here I'll create a CMP bean and use it." The ATM is good, but it does *everything* - which makes learning individual elements more difficult than it could be if you had, for example, an OR-mapping application or a security model application. On Wed, 20 Sep 2000, Vimal Kansal wrote: I jsu upgraded to Orion 1.3.8. And guess what ? :- it has the EJB2.0 based ATM application :-) Vimal --- "Joseph B. Ottinger" [EMAIL PROTECTED] wrote: Don't forget that EJB 2.0 isn't a standard yet. It's a draft. Personally, I'm mucking about with it a bit, and the parts I'm most interested in - the OR mapping - I've not really covered, so I'm in the same boat of wanting more information, but let's be real about it. It's not there unless we generate it ourselves; we can't expect the Orion team to do everything for us (we *are* developers, right?) so instead of griping about it, read the draft. Play with it. Try things out. Tell others about it, so we can ALL learn. (If I see stuff on it that I think is useful, as soon as the infrastructure is done for the new orionsupport, I'll put it online.) On Wed, 20 Sep 2000, Christian Sell wrote: I have been sending this mail for quite some time but to no avail. well, maybe there IS no avail. Not many of us have done EJB 2.0 yet, and as far as the orion core team goes, I hope (!!) they are busy writing documentation for the basic stuff (and improving orion in their spare time). regards --- Joseph B. Ottinger [EMAIL PROTECTED] http://cupid.suninternet.com/~joeo HOMES.COM Developer __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. http://im.yahoo.com/ --- Joseph B. Ottinger [EMAIL PROTECTED] http://cupid.suninternet.com/~joeo HOMES.COM Developer Chequemail.com - a free web based e-mail service that also pays!!! http://www.chequemail.com
RE: How to use EJB2.0 on Orion
On 21 Sep 2000, S.Badrinarayanan wrote: I am intersted in 2 points mentioned below: 1. How do I get the 1.3.8 version; their server (www.orionserver.com) shows only 1.2.9 as the latest. The way to *always* get the current version is: java -jar autoupdate.jar 2. Where can I find this document on "Ernst de Haan's approach"? Ernst de Haan's tutorials can be found on www.jollem.com. Any help... Thanks sb On Thu, 21 September 2000, Magnus Rydin wrote: Hopefully, the future documentation that will look at one piece at the time, will make this application more usefull. The way it is right now, is more for advanced users to find an example of a certain functionality. It will continue to include as many functions as possible, but it will be given a documentation to make life easier for ppl. WR -Original Message- From: Joseph B. Ottinger [mailto:[EMAIL PROTECTED]] Sent: den 21 september 2000 05:21 To: Orion-Interest Subject: Re: How to use EJB2.0 on Orion Yeah, I know - and the example apps are good, but they're more than I'd like. (Incidentally, the ATM has been EJB 2.0 for a while now.) I like Ernst de Haan's approach - he covers one area and tries not to dress it too much. "Here I'll cover creating a simple app." "Here I'll create a CMP bean and use it." The ATM is good, but it does *everything* - which makes learning individual elements more difficult than it could be if you had, for example, an OR-mapping application or a security model application. On Wed, 20 Sep 2000, Vimal Kansal wrote: I jsu upgraded to Orion 1.3.8. And guess what ? :- it has the EJB2.0 based ATM application :-) Vimal --- "Joseph B. Ottinger" [EMAIL PROTECTED] wrote: Don't forget that EJB 2.0 isn't a standard yet. It's a draft. Personally, I'm mucking about with it a bit, and the parts I'm most interested in - the OR mapping - I've not really covered, so I'm in the same boat of wanting more information, but let's be real about it. It's not there unless we generate it ourselves; we can't expect the Orion team to do everything for us (we *are* developers, right?) so instead of griping about it, read the draft. Play with it. Try things out. Tell others about it, so we can ALL learn. (If I see stuff on it that I think is useful, as soon as the infrastructure is done for the new orionsupport, I'll put it online.) On Wed, 20 Sep 2000, Christian Sell wrote: I have been sending this mail for quite some time but to no avail. well, maybe there IS no avail. Not many of us have done EJB 2.0 yet, and as far as the orion core team goes, I hope (!!) they are busy writing documentation for the basic stuff (and improving orion in their spare time). regards --- Joseph B. Ottinger [EMAIL PROTECTED] http://cupid.suninternet.com/~joeo HOMES.COM Developer __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. http://im.yahoo.com/ --- Joseph B. Ottinger [EMAIL PROTECTED] http://cupid.suninternet.com/~joeo HOMES.COM Developer Chequemail.com - a free web based e-mail service that also pays!!! http://www.chequemail.com --- Joseph B. Ottinger [EMAIL PROTECTED] http://cupid.suninternet.com/~joeo HOMES.COM Developer
JavaMail wih Orion
Hello, I want to allow a SessionBean and an application client to send email. I guess all I really need to do is set up Orion to provide me a javax.mail.Session through JNDI and use that Session object instead of Session.getDefaultInstance(). Am I correct about this? Could someone give me pointers on how to setup the .xml files. I am guessing that I need to modify server.xml and create a mail.xml for the server configuration. And in the orion-ejb-jar.xml and application-client.xml I need to make some entries for the beans and application client. Could someone please help me with the actual entries. Thanks, Vidur
SV: How to use EJB2.0 on Orion
juse run java -jar autoupdate.jar or if youre behind a firewall or something java -Dproxy.host=blabla -Dproxy.port=666 -jar autoupdate.jar Have fun :) Klaus -Opprinnelig melding- Fra: Sanjay [mailto:[EMAIL PROTECTED]] Sendt: 21. september 2000 15:51 Til: Orion-Interest Emne: Re: How to use EJB2.0 on Orion need to pay i believe as we have 1.3.3 licensed version sanjay - Original Message - From: "S.Badrinarayanan" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, September 21, 2000 1:00 PM Subject: RE: How to use EJB2.0 on Orion I am intersted in 2 points mentioned below: 1. How do I get the 1.3.8 version; their server (www.orionserver.com) shows only 1.2.9 as the latest. 2. Where can I find this document on "Ernst de Haan's approach"? Any help... Thanks sb On Thu, 21 September 2000, Magnus Rydin wrote: Hopefully, the future documentation that will look at one piece at the time, will make this application more usefull. The way it is right now, is more for advanced users to find an example of a certain functionality. It will continue to include as many functions as possible, but it will be given a documentation to make life easier for ppl. WR -Original Message- From: Joseph B. Ottinger [mailto:[EMAIL PROTECTED]] Sent: den 21 september 2000 05:21 To: Orion-Interest Subject: Re: How to use EJB2.0 on Orion Yeah, I know - and the example apps are good, but they're more than I'd like. (Incidentally, the ATM has been EJB 2.0 for a while now.) I like Ernst de Haan's approach - he covers one area and tries not to dress it too much. "Here I'll cover creating a simple app." "Here I'll create a CMP bean and use it." The ATM is good, but it does *everything* - which makes learning individual elements more difficult than it could be if you had, for example, an OR-mapping application or a security model application. On Wed, 20 Sep 2000, Vimal Kansal wrote: I jsu upgraded to Orion 1.3.8. And guess what ? :- it has the EJB2.0 based ATM application :-) Vimal --- "Joseph B. Ottinger" [EMAIL PROTECTED] wrote: Don't forget that EJB 2.0 isn't a standard yet. It's a draft. Personally, I'm mucking about with it a bit, and the parts I'm most interested in - the OR mapping - I've not really covered, so I'm in the same boat of wanting more information, but let's be real about it. It's not there unless we generate it ourselves; we can't expect the Orion team to do everything for us (we *are* developers, right?) so instead of griping about it, read the draft. Play with it. Try things out. Tell others about it, so we can ALL learn. (If I see stuff on it that I think is useful, as soon as the infrastructure is done for the new orionsupport, I'll put it online.) On Wed, 20 Sep 2000, Christian Sell wrote: I have been sending this mail for quite some time but to no avail. well, maybe there IS no avail. Not many of us have done EJB 2.0 yet, and as far as the orion core team goes, I hope (!!) they are busy writing documentation for the basic stuff (and improving orion in their spare time). regards --- Joseph B. Ottinger [EMAIL PROTECTED] http://cupid.suninternet.com/~joeo HOMES.COM Developer __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. http://im.yahoo.com/ --- Joseph B. Ottinger [EMAIL PROTECTED] http://cupid.suninternet.com/~joeo HOMES.COM Developer Chequemail.com - a free web based e-mail service that also pays!!! http://www.chequemail.com
Re: How to use EJB2.0 on Orion
On Thu, Sep 21, 2000 at 12:00:25PM +, S.Badrinarayanan wrote: I am intersted in 2 points mentioned below: 1. How do I get the 1.3.8 version; their server (www.orionserver.com) shows only 1.2.9 as the latest. from your orion rot installation directory: java -jar autoupdate.jar 2. Where can I find this document on "Ernst de Haan's approach"? http://www.znerd.demon.nl/orion-primer/ http://www.jollem.com/orion-cmp-primer/ -- Chris Woods [EMAIL PROTECTED] ICQ #21740987 AIM GnarlyBob69
Re: OR-Mapping set up.
Declare countries as a Set. Set countries = new HashSet(); James Ho wrote: Hi, I have been trying to setup OR-Mapping, to represent a many-many relationship...I have been following the help from http://www.orionsupport.com/ejbormapping.html ANyway, here is what i have.. Country Bean, with primkey of String type. Supplier Bean with primkey of String type. In Supplier, I have a HashSet countries, which is a collection of Country. i had this in the Bean class of supplier: public HashSet countries; public static final Class countries_type=vc.ejb.Country.class; public HashSet getCountries() { return countries; } public void setCountries(HashSet c) { this.countries=c; } I also have added a cmp-field in ejb-jar.xml for 'countries'. I am using PostgreSQL 7.0.2. Problem is, when I call create(String) I get the exception: javax.ejb.CreateException: Error creating EntityBean: InputStream as parameter not supported What is wrong here? According to the doc on the web, it said a linking table will be created for me, however I cannot find such table :((, but on the Supplier's table, there is a extra attribute 'countries' with datatype 'oid'...which from my database schema is the java.io.Serializable type. I have attached my orion-ejb-jar.xml here...if that's any help. Thanks heaps in advance. James.
Re: Using OODB with Orion
I am in process of integrating Clouscape 3.51 which is OODB, comes with Java enterprise edition. you can also get it seperately at http://www.cloudscape.com I dont have done much on it yet but you can find some docs. on cloudscape website. cheers Nirav --- Joshua Goodall [EMAIL PROTECTED] wrote: Has anyone attempted using an OODB - e.g. ObjectStore or Objectivity/DB with Orion? I am about to attempt this and wondered if anyone can share pitfalls/tips about the interaction of CMP, BMP and OODB native persistence. Online references to using OODBs with EJB would also be welcome. - Joshua -[ Joshua Goodall ]--- -[ IP Systems Architect ] at home: --- -[ [EMAIL PROTECTED] ]--- [EMAIL PROTECTED] -- __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. http://im.yahoo.com/
Class-Path feature.
Isthe Class-Path attribute inthe manifest file an implemented feature in Orion ?
Class-Path feature.
Isthe Class-Path attribute inthe manifest file an implemented feature in Orion ?
XMLNS and Xerces....
I am interested to know if xerces is namespace aware for xml namespaces Mike Muffett
fail to test news web-app...
Hello: After I setup orion, hsql and the news web-app in the demo. Then using browser link to http://MyServerIP:1080/news/ I can see the left frame but the right frame show some error message: 500 Internal Server Error com.evermind.server.rmi.OrionRemoteException: Database error: Table not found: COM_EVERMIND_EJB_NEWSITEM in statement [select com_evermind_ejb_NewsItem.id, com_evermind_ejb_NewsItem.submitter, com_evermind_ejb_NewsItem.text, com_evermind_ejb_NewsItem.locale, com_evermind_ejb_NewsItem.date_, com_evermind_ejb_NewsItem.subject, com_evermind_ejb_NewsItem.parent from com_evermind_ejb_NewsItem where com_evermind_ejb_NewsItem.parent = NULL] at NewsItemHome_EntityHomeWrapper4.findByParent(NewsItemHome_EntityHomeWrapper4 .java, Compiled Code) How do I solve program ?? Thanks in advance. (2000/9/18 AM 11:53:59) [EMAIL PROTECTED] PC home §K¶O¹q¤l«H½c¡A¥Ó½Ð½Ð¦Ü: http://www.pchome.com.tw PC home Online ºô¸ô®a®x¡@¡@ ·|û²Ä¤@¡A¥xÆW³Ì¤jªº¤J¤fºô¯¸
one more question!
there will be two copeis of main cloudscape filse, one came with java enterprise and one from i downloaded seperatly? is there any chances of conflict between these to copies of cloudscpe file. if so how do i deactivate cloudscape came with j2ee? thanks --- Linda Chai [EMAIL PROTECTED] wrote: Hi, In order to have Cloudscape embedded in the orion server, I found that I had to amend the data-sources.xml to contain something like the following: data-sources data-source name="CloudscapeSource" class="com.evermind.sql.ConnectionDataSource" location="jdbc/CloudscapeSource" pooled-location="jdbc/DefaultPooledDS" xa-location="jdbc/xa/DefaultXADS" ejb-location="jdbc/DefaultEJBDS" url="jdbc:cloudscape:insert the location of your DB" connection-driver="COM.cloudscape.core.JDBCDriver" username="" password="" / /data-sources The location of your database can be something like... E:\\Projects\\CloudscapeDB. I am currently working on writing up a paper which will document how to integrate the Cloudscape DB with a number of other application servers, Orion being one of these. The document will eventually be published on the cloudscape website. If you're interested I can let you know when the document gets published :-) Hope this helps, - Linda. Nirav Dani wrote: hi, I am using cloudscape database, where do i need to change/mention about it instead of HSQL default? __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. http://im.yahoo.com/ __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. http://im.yahoo.com/
one more question!
there will be two copeis of main cloudscape filse, one came with java enterprise and another is downloaded seperatly? is there any possibilites of conflict between these to copies of cloudscpe file. if so how do i deactivate cloudscape came with j2ee? and keep the one i downloaded in order to work with orion and j2ee? thanks --- Linda Chai [EMAIL PROTECTED] wrote: Hi, In order to have Cloudscape embedded in the orion server, I found that I had to amend the data-sources.xml to contain something like the following: data-sources data-source name="CloudscapeSource" class="com.evermind.sql.ConnectionDataSource" location="jdbc/CloudscapeSource" pooled-location="jdbc/DefaultPooledDS" xa-location="jdbc/xa/DefaultXADS" ejb-location="jdbc/DefaultEJBDS" url="jdbc:cloudscape:insert the location of your DB" connection-driver="COM.cloudscape.core.JDBCDriver" username="" password="" / /data-sources The location of your database can be something like... E:\\Projects\\CloudscapeDB. I am currently working on writing up a paper which will document how to integrate the Cloudscape DB with a number of other application servers, Orion being one of these. The document will eventually be published on the cloudscape website. If you're interested I can let you know when the document gets published :-) Hope this helps, - Linda. Nirav Dani wrote: hi, I am using cloudscape database, where do i need to change/mention about it instead of HSQL default? __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. http://im.yahoo.com/ __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. http://im.yahoo.com/
Orion Server java:comp/env?
Hi! I just wonder, is that possible to make the lookup from "the client program" without java:comp/env? The problem is, I want to write an EJB application that can use JOnAs and Orion as the container. JOnAs's JNDI does not support java:comp/env at the client level. Client program: For example: Context context = new InitialContext(); Object homeObject = context.lookup("java:comp/env/BankHome"); This won't work in JOnAs. Instead I have to write this: Context context = new InitialContext(); Object homeObject = context.lookup("BankHome"); Do I have to write 2 type of client accesses? One for JOnAs and one for Orion? Because Orion uses ejb-ref in the client-application.xml and JOnAs doesn't. Any help would be appriciated! Please answer directly to my email: [EMAIL PROTECTED] Thanx, -- --- Blasius Lofi Dewanto --- OpenUSS - Open University Support System http://openuss.sourceforge.net --- E-Mail : [EMAIL PROTECTED] ICQ : 39343280 ---
No response from Customer Support for Licensed Version
Hi, I have a few emails that have been sent to support with the following subject: EJB 2.0 many to many relationship deployment [priority: CMR1B23BAB]. I would like to know if I am doing something wrong in making this request or am I just not getting any response. Thanks Gary Albelli DecisionSmith/ipicorp
Re: Orion Server java:comp/env?
Blasius Lofi Dewanto wrote: Hi! I just wonder, is that possible to make the lookup from "the client program" without java:comp/env? The problem is, I want to write an EJB application that can use JOnAs and Orion as the container. JOnAs's JNDI does not support java:comp/env at the client level. Client program: For example: Context context = new InitialContext(); Object homeObject = context.lookup("java:comp/env/BankHome"); This won't work in JOnAs. Instead I have to write this: Context context = new InitialContext(); Object homeObject = context.lookup("BankHome"); Looking at the ejb1.1 specs, lookup("BankHome") is non-standard. EJB should do lookups relative to java:comp/env. You could however store this string as an evnironment property for your beans, when deploying on JOnAs you would store "" and on an ejb1.1 clmpliant server you would store "java:comp/env/" sven -- == Sven E. van 't Veer http://www.cachoeiro.net Java Developer [EMAIL PROTECTED] ==
RE: Ant Build Tutorial
HeyArved. SomehowImissedtheemailthatPaulKnepperrespondedto.The orionprimerhasasimpleexamplewhichsatisfiedmyimmediatecuriosity. Butifyouhavesomethingtoaddtothisintroductoryexampleitwouldbe welcome. Tryingtolearncomplexnewskillswhilecarryingafullteachingload ismurdernottosayslow,butnecessaryifwearetokeepourprogramshere atthecommunitycollegeuptoscratchandtimely! Bytheway,ifI'mjustdowntheroadinthevalley,whereareyou? Haveagoodone:) ooo Roger Mosher [EMAIL PROTECTED] Center of Geographic Sciences 825 5230 Nova Scotia Community College Annapolis Valley Campus 50 Elliott Road Lawrencetown B0S 1M0 Download NeoPlanet at http://www.neoplanet.com
Re: How to use EJB2.0 on Orion
Hi `sb', S.Badrinarayanan wrote: I am intersted in 2 points mentioned below: 1. How do I get the 1.3.8 version; their server (www.orionserver.com) shows only 1.2.9 as the latest. Try autoupdating your version (java -jar autoupdate.jar). 2. Where can I find this document on "Ernst de Haan's approach"? You can find the Orion Primer, a simple introduction to Orion at: http://www.jollem.com/orion-primer/ Ernst Any help... Thanks sb On Thu, 21 September 2000, Magnus Rydin wrote: Hopefully, the future documentation that will look at one piece at the time, will make this application more usefull. The way it is right now, is more for advanced users to find an example of a certain functionality. It will continue to include as many functions as possible, but it will be given a documentation to make life easier for ppl. WR -Original Message- From: Joseph B. Ottinger [mailto:[EMAIL PROTECTED]] Sent: den 21 september 2000 05:21 To: Orion-Interest Subject: Re: How to use EJB2.0 on Orion Yeah, I know - and the example apps are good, but they're more than I'd like. (Incidentally, the ATM has been EJB 2.0 for a while now.) I like Ernst de Haan's approach - he covers one area and tries not to dress it too much. "Here I'll cover creating a simple app." "Here I'll create a CMP bean and use it." The ATM is good, but it does *everything* - which makes learning individual elements more difficult than it could be if you had, for example, an OR-mapping application or a security model application. On Wed, 20 Sep 2000, Vimal Kansal wrote: I jsu upgraded to Orion 1.3.8. And guess what ? :- it has the EJB2.0 based ATM application :-) Vimal --- "Joseph B. Ottinger" [EMAIL PROTECTED] wrote: Don't forget that EJB 2.0 isn't a standard yet. It's a draft. Personally, I'm mucking about with it a bit, and the parts I'm most interested in - the OR mapping - I've not really covered, so I'm in the same boat of wanting more information, but let's be real about it. It's not there unless we generate it ourselves; we can't expect the Orion team to do everything for us (we *are* developers, right?) so instead of griping about it, read the draft. Play with it. Try things out. Tell others about it, so we can ALL learn. (If I see stuff on it that I think is useful, as soon as the infrastructure is done for the new orionsupport, I'll put it online.) On Wed, 20 Sep 2000, Christian Sell wrote: I have been sending this mail for quite some time but to no avail. well, maybe there IS no avail. Not many of us have done EJB 2.0 yet, and as far as the orion core team goes, I hope (!!) they are busy writing documentation for the basic stuff (and improving orion in their spare time). regards --- Joseph B. Ottinger [EMAIL PROTECTED] http://cupid.suninternet.com/~joeo HOMES.COM Developer __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. http://im.yahoo.com/ --- Joseph B. Ottinger [EMAIL PROTECTED] http://cupid.suninternet.com/~joeo HOMES.COM Developer Chequemail.com - a free web based e-mail service that also pays!!! http://www.chequemail.com
Re: No response from Customer Support for Licensed Version
i have been sending emails all week to support, and not getting any response. -Lkb At 04:20 PM 9/21/00 -0400, Gary Albelli wrote: Hi, I have a few emails that have been sent to support with the following subject: EJB 2.0 many to many relationship deployment [priority: CMR1B23BAB]. I would like to know if I am doing something wrong in making this request or am I just not getting any response. Thanks Gary Albelli DecisionSmith/ipicorp /** * @author: Lorin Kobashigawa-Bates [EMAIL PROTECTED] * @title: CodeMonkey / COO - Robot6 Inc. * @phone: 415.345.8872 * @addr: 1177 Polk St. San Francisco, CA 94109 */
Re: Orion Server java:comp/env?
Yes, if you specify a com.evermind.server.rmi.RMIInitialContext as the java.naming.factory.initial in the jndi.properties file (or in the InitialContext's constructor). But keep in mind that your application-client.xml files will be simply ignored. Vlad Hi! I just wonder, is that possible to make the lookup from "the client program" without java:comp/env? The problem is, I want to write an EJB application that can use JOnAs and Orion as the container. JOnAs's JNDI does not support java:comp/env at the client level. Client program: For example: Context context = new InitialContext(); Object homeObject = context.lookup("java:comp/env/BankHome"); This won't work in JOnAs. Instead I have to write this: Context context = new InitialContext(); Object homeObject = context.lookup("BankHome"); Do I have to write 2 type of client accesses? One for JOnAs and one for Orion? Because Orion uses ejb-ref in the client-application.xml and JOnAs doesn't. Any help would be appriciated! Please answer directly to my email: [EMAIL PROTECTED] Thanx, -- --- Blasius Lofi Dewanto --- OpenUSS - Open University Support System http://openuss.sourceforge.net --- E-Mail : [EMAIL PROTECTED] ICQ : 39343280 ---
Re: No response from Customer Support for Licensed Version
Hello Sach, Are there any additional outstanding issues rather than the ones we have acknowledged and talked to you about? If so, send a new mail to support@, I thought all your issues had been answered to on the phone and via mail. On suspected bugs, it can take a few days before we have any information to give, since we initially try to reproduce and analyze the behaviour. Sometimes that can be a tedious process and take time and we can't always find or fix the bugs within days, and sometimes it can even take a few weeks, but I think that's still very fast compared to most companies in the business. We always try to fix it as soon as possible, and try to communicate any progress or need for extra info to the reporter, either via mail or via Bugzilla. Sometimes we are bad at telling the reporter about the progress on a bug. That's when nothing new has been found yet, but I know it's essential for you to immedietaly get an estimate on when we will know if it's a bug and when the fix can be issued, and we'll try to improve on that point. If nothing else we'll try to be faster to tell you that we can't estimate the time for an available fix. Regards, Karl Avedal Sach Jobb wrote: Well, at least you're not alone. I have the same problem with several open issues. On Thu, 21 Sep 2000, Gary Albelli wrote: Hi, I have a few emails that have been sent to support with the following subject: EJB 2.0 many to many relationship deployment [priority: CMR1B23BAB]. I would like to know if I am doing something wrong in making this request or am I just not getting any response. Thanks Gary Albelli DecisionSmith/ipicorp
RE: User/Group manager guide
Arved, I took a look at the scenario you describe, and I was able to make method permissions work with roles as they should. If a user who was part of the users group was logged in, an exception would be trown. If the user was added to the CSR group everything worked. Let me describe my orion security setup as it is somewhat complex, but I have no doubt it will work with any properly written user manager. I use a custom user manager I built on two database tables (I wanted password encryption). One contains users, and the other contains group membership. Since I was in a hurry when I wrote the UserManager I let orion manage the groups themselves through it's XML implementation, hence the principals.xml below. Below are related excerpts from my configuration files. I can't really provide a working ear file, but I'm pretty sure the example ATM application uses method level permissions, so it might be a good place to experiment. In case you're interested, you can find my Custom user manager implementation at http://www.geocities.com/vanha/usermanagerImp.jar. Its somewhat sloppy as I worte it in a real hurry, but it may provide some useful info. application.xml: security-role role-nameuser/role-name /security-role security-role role-namecsr/role-name /security-role orion-application.xml: security-role-mapping name="user" group name="users" / /security-role-mapping security-role-mapping name="csr" group name="csr" / /security-role-mapping principals.xml: groups group name="csr" descriptionservice/description permission name="rmi:login" / permission name="com.evermind.server.rmi.RMIPermission" / /group /groups ejb-jar.xml: security-role role-nameuser/role-name /security-role security-role role-namecsr/role-name /security-role method-permission descriptionRestricted/description role-namecsr/role-name method ejb-nameProduct/ejb-name method-name*/method-name /method /method-permission -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Arved Sandstrom Sent: Tuesday, September 19, 2000 7:26 AM To: Orion-Interest Subject: RE: User/Group manager guide I'm looking forward to docs and examples myself. One thing that I've noticed, after copious experimentation with the DataSourceUserManager, is that the group = mapping is somewhat deficient. In other words, I have my users and groups tables set up, and I've made suitable mods and adjustments to principals.xml, orion-application.xml, ejb-jar.xml, and orion-ejb-jar.xml as required (or suggested). In some cases I'm flailing about, frankly. In any case, a login with username and password is obviously finding the group, and mapping the group to role, because when I check the role after login it's OK. I don't have to hardcode it, which is vital. However, and I've tried everything, I don't believe this knowledge is being passed on to the EJB container. No role, however declared in the various J2EE/Orion descriptors, is able to access *any* method in an EJB that has method-permissions. So my assessment on the user/role managers is that it is reasonably useful: one can assign roles based on login, and test for that as required. But method-level security in EJBs does not work, at least not in a documented, demonstrated and reliable manner. The odd thing is, is that this may not be that much of a big deal. I've been writing J2EE for pretty much a full year, and I have yet to see a situation where method-level permissions gain me anything at all. It's literally never been necessary. It seems to be one of these J2EE things that made ostensible sense at the time but has little practical value. Just a thought. The only reason it disturbs me is because it should work and doesn't. :-) If an example can be supplied - complete with Orion-specific deployment descriptors - I'll be overjoyed. Arved Sandstrom -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Lawrence Fry Sent: Monday, September 18, 2000 6:36 PM To: Orion-Interest Subject: RE: User/Group manager guide Guilherme, Here Here! I'm glad somebody said it. But without documentation, you should look at the archives to this list, because many of these problems have already been worked out. For example...it isn't said anywhere in the documentation, but the EJBUserManager is the most useful device for ecommerce. With this, you can automatically login users and create users for your website...without
shutdown problem with Red Hat/JDK 1.3rc2
Using admin.jar -shutdown with Sun's JDK1.3 rc2 on Red Hat Linux, I get the following error: Error: javax.naming.NamingException: Lookup error: java.io.StreamCorruptedException: Caught EOFException while reading the stream header; nested exception is: java.io.StreamCorruptedException: Caught EOFException while reading the stream header This command worked on Win98SE/JDK 1.3. Is there something different I should be doing on Linux? Thanks, Garret
RE: container transactions not working...
Try using the XA datasource when you acquire a connection: jdbc/xa/myXADS In your ejb-jar file: resource-ref res-ref-namejdbc/myXADS/res-ref-name res-typejavax.sql.XADataSource/res-type res-authContainer/res-auth /resource-ref In your bean: Context naming = new InitialContext(); XADataSource ds = (XADataSource)naming.lookup("java:comp/env/jdbc/myXADS"); Connection conn = ds.getXAConnection().getConnection(); I use an XADatasource with orcale and transactions work correctly. Also I read somewhere if you use JDBC from within EJBs you should use the EJBDS resource, however everything works fine for me with XADatasource. EJBDS might only be applicable to Entity Beans. Andre -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tony Abbott Sent: Thursday, September 21, 2000 6:33 PM To: Orion-Interest Subject: container transactions not working... hi hope someone can help me as i am now highly frustrated :) i am unable to get container managed transactions to work in conjunction with jdbc/oracle. basically i have a stateless session bean which writes to tables. It seems to me orion is not managing the transactions at all. With the setup and code below it does not roll back the transaction despite the setRollbackOnly(). If I throw a system exception it does not roll back either. If I do multiple inserts in the method each insert is committed immediately and not as a single transaction at the end of the method. I'm really hoping I'm missing something obvious and this is not a serious problem in orion... Any help/suggestions would be highly appreciated! I'm using Oracle 8.1.6R2, classes12.zip (Oracle JDBC drivers), JDK1.3rc1 on Linux and have tried Orion 1.3.8 and 1.2.9 with the same results. data-sources.xml: data-source name="test" class="com.evermind.sql.ConnectionDataSource" location="jdbc/myDS" pooled-location="jdbc/myPooledDS" xa-location="jdbc/xa/myXADS" ejb-location="jdbc/myEJBDS" url="jdbc:oracle:oci8:@mydb" connection-driver="oracle.jdbc.driver.OracleDriver" username="user" password="password" / and in ejb-jar.xml session descriptionA session bean/description ejb-nameTestBean/ejb-name homeTestHome/home remoteTest/remote ejb-classTestBean/ejb-class session-typeStateless/session-type transaction-typeContainer/transaction-type resource-ref res-ref-namejdbc/myPooledDS/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /session and assembly-descriptor container-transaction method ejb-nameTestBean/ejb-name method-nameload/method-name /method trans-attributeRequired/trans-attribute /container-transaction /assembly-descriptor and the method: public void load() { Connection con = null; PreparedStatement ps = null; try { Context naming = new InitialContext(); DataSource ds = (DataSource)naming.lookup("java:comp/env/jdbc/myPooledDS"); con = ds.getConnection(); ps = con.prepareStatement("insert into mytable (id, value) values (?, ?)"): ps.setInt(1, 1); ps.setString(2, "testing"); ps.executeUpdate(); context.setRollbackOnly(); } catch (NamingException e) { throw new EJBException(e); } catch (SQLException e) { throw new EJBException(e); } finally { try { if (ps != null) ps.close(); if (con != null) con.close(); } catch (SQLException e) { e.printStackTrace(); } } } -- Tony Abbott [EMAIL PROTECTED]
Re: container transactions not working...
Hi Andre, Thanks for the quick reply. Just tried it and still getting no joy. I'm sure I'm missing something obvious... -t On Thu, Sep 21, 2000 at 07:13:09PM -0600, Andre Vanha wrote: Try using the XA datasource when you acquire a connection: jdbc/xa/myXADS In your ejb-jar file: resource-ref res-ref-namejdbc/myXADS/res-ref-name res-typejavax.sql.XADataSource/res-type res-authContainer/res-auth /resource-ref In your bean: Context naming = new InitialContext(); XADataSource ds = (XADataSource)naming.lookup("java:comp/env/jdbc/myXADS"); Connection conn = ds.getXAConnection().getConnection(); I use an XADatasource with orcale and transactions work correctly. Also I read somewhere if you use JDBC from within EJBs you should use the EJBDS resource, however everything works fine for me with XADatasource. EJBDS might only be applicable to Entity Beans. Andre -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tony Abbott Sent: Thursday, September 21, 2000 6:33 PM To: Orion-Interest Subject: container transactions not working... hi hope someone can help me as i am now highly frustrated :) i am unable to get container managed transactions to work in conjunction with jdbc/oracle. basically i have a stateless session bean which writes to tables. It seems to me orion is not managing the transactions at all. With the setup and code below it does not roll back the transaction despite the setRollbackOnly(). If I throw a system exception it does not roll back either. If I do multiple inserts in the method each insert is committed immediately and not as a single transaction at the end of the method. I'm really hoping I'm missing something obvious and this is not a serious problem in orion... Any help/suggestions would be highly appreciated! I'm using Oracle 8.1.6R2, classes12.zip (Oracle JDBC drivers), JDK1.3rc1 on Linux and have tried Orion 1.3.8 and 1.2.9 with the same results. data-sources.xml: data-source name="test" class="com.evermind.sql.ConnectionDataSource" location="jdbc/myDS" pooled-location="jdbc/myPooledDS" xa-location="jdbc/xa/myXADS" ejb-location="jdbc/myEJBDS" url="jdbc:oracle:oci8:@mydb" connection-driver="oracle.jdbc.driver.OracleDriver" username="user" password="password" / and in ejb-jar.xml session descriptionA session bean/description ejb-nameTestBean/ejb-name homeTestHome/home remoteTest/remote ejb-classTestBean/ejb-class session-typeStateless/session-type transaction-typeContainer/transaction-type resource-ref res-ref-namejdbc/myPooledDS/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /session and assembly-descriptor container-transaction method ejb-nameTestBean/ejb-name method-nameload/method-name /method trans-attributeRequired/trans-attribute /container-transaction /assembly-descriptor and the method: public void load() { Connection con = null; PreparedStatement ps = null; try { Context naming = new InitialContext(); DataSource ds = (DataSource)naming.lookup("java:comp/env/jdbc/myPooledDS"); con = ds.getConnection(); ps = con.prepareStatement("insert into mytable (id, value) values (?, ?)"): ps.setInt(1, 1); ps.setString(2, "testing"); ps.executeUpdate(); context.setRollbackOnly(); } catch (NamingException e) { throw new EJBException(e); } catch (SQLException e) { throw new EJBException(e); } finally { try { if (ps != null) ps.close(); if (con != null) con.close(); } catch (SQLException e) { e.printStackTrace(); } } } -- Tony Abbott[EMAIL PROTECTED] -- Tony Abbott [EMAIL PROTECTED]
Re: How to use EJB2.0 on Orion
Thanks. I get the following error when trying to use the autoupdate: Sending fileinfo to server IO Error: www.orionserver.com Any help... Regards sb On Thu, 21 September 2000, Ernst de Haan wrote: Hi `sb', S.Badrinarayanan wrote: I am intersted in 2 points mentioned below: 1. How do I get the 1.3.8 version; their server (www.orionserver.com) shows only 1.2.9 as the latest. Try autoupdating your version (java -jar autoupdate.jar). 2. Where can I find this document on "Ernst de Haan's approach"? You can find the Orion Primer, a simple introduction to Orion at: http://www.jollem.com/orion-primer/ Ernst Any help... Thanks sb On Thu, 21 September 2000, Magnus Rydin wrote: Hopefully, the future documentation that will look at one piece at the time, will make this application more usefull. The way it is right now, is more for advanced users to find an example of a certain functionality. It will continue to include as many functions as possible, but it will be given a documentation to make life easier for ppl. WR -Original Message- From: Joseph B. Ottinger [mailto:[EMAIL PROTECTED]] Sent: den 21 september 2000 05:21 To: Orion-Interest Subject: Re: How to use EJB2.0 on Orion Yeah, I know - and the example apps are good, but they're more than I'd like. (Incidentally, the ATM has been EJB 2.0 for a while now.) I like Ernst de Haan's approach - he covers one area and tries not to dress it too much. "Here I'll cover creating a simple app." "Here I'll create a CMP bean and use it." The ATM is good, but it does *everything* - which makes learning individual elements more difficult than it could be if you had, for example, an OR-mapping application or a security model application. On Wed, 20 Sep 2000, Vimal Kansal wrote: I jsu upgraded to Orion 1.3.8. And guess what ? :- it has the EJB2.0 based ATM application :-) Vimal --- "Joseph B. Ottinger" [EMAIL PROTECTED] wrote: Don't forget that EJB 2.0 isn't a standard yet. It's a draft. Personally, I'm mucking about with it a bit, and the parts I'm most interested in - the OR mapping - I've not really covered, so I'm in the same boat of wanting more information, but let's be real about it. It's not there unless we generate it ourselves; we can't expect the Orion team to do everything for us (we *are* developers, right?) so instead of griping about it, read the draft. Play with it. Try things out. Tell others about it, so we can ALL learn. (If I see stuff on it that I think is useful, as soon as the infrastructure is done for the new orionsupport, I'll put it online.) On Wed, 20 Sep 2000, Christian Sell wrote: I have been sending this mail for quite some time but to no avail. well, maybe there IS no avail. Not many of us have done EJB 2.0 yet, and as far as the orion core team goes, I hope (!!) they are busy writing documentation for the basic stuff (and improving orion in their spare time). regards --- Joseph B. Ottinger [EMAIL PROTECTED] http://cupid.suninternet.com/~joeo HOMES.COM Developer __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. http://im.yahoo.com/ --- Joseph B. Ottinger [EMAIL PROTECTED] http://cupid.suninternet.com/~joeo HOMES.COM Developer Chequemail.com - a free web based e-mail service that also pays!!! http://www.chequemail.com Chequemail.com - a free web based e-mail service that also pays!!! http://www.chequemail.com
Re: How to use EJB2.0 on Orion
Thanks. I get the following error when trying to use the autoupdate: Sending fileinfo to server IO Error: www.orionserver.com Any help... Regards sb On Thu, 21 September 2000, Ernst de Haan wrote: Hi `sb', S.Badrinarayanan wrote: I am intersted in 2 points mentioned below: 1. How do I get the 1.3.8 version; their server (www.orionserver.com) shows only 1.2.9 as the latest. Try autoupdating your version (java -jar autoupdate.jar). 2. Where can I find this document on "Ernst de Haan's approach"? You can find the Orion Primer, a simple introduction to Orion at: http://www.jollem.com/orion-primer/ Ernst Any help... Thanks sb On Thu, 21 September 2000, Magnus Rydin wrote: Hopefully, the future documentation that will look at one piece at the time, will make this application more usefull. The way it is right now, is more for advanced users to find an example of a certain functionality. It will continue to include as many functions as possible, but it will be given a documentation to make life easier for ppl. WR -Original Message- From: Joseph B. Ottinger [mailto:[EMAIL PROTECTED]] Sent: den 21 september 2000 05:21 To: Orion-Interest Subject: Re: How to use EJB2.0 on Orion Yeah, I know - and the example apps are good, but they're more than I'd like. (Incidentally, the ATM has been EJB 2.0 for a while now.) I like Ernst de Haan's approach - he covers one area and tries not to dress it too much. "Here I'll cover creating a simple app." "Here I'll create a CMP bean and use it." The ATM is good, but it does *everything* - which makes learning individual elements more difficult than it could be if you had, for example, an OR-mapping application or a security model application. On Wed, 20 Sep 2000, Vimal Kansal wrote: I jsu upgraded to Orion 1.3.8. And guess what ? :- it has the EJB2.0 based ATM application :-) Vimal --- "Joseph B. Ottinger" [EMAIL PROTECTED] wrote: Don't forget that EJB 2.0 isn't a standard yet. It's a draft. Personally, I'm mucking about with it a bit, and the parts I'm most interested in - the OR mapping - I've not really covered, so I'm in the same boat of wanting more information, but let's be real about it. It's not there unless we generate it ourselves; we can't expect the Orion team to do everything for us (we *are* developers, right?) so instead of griping about it, read the draft. Play with it. Try things out. Tell others about it, so we can ALL learn. (If I see stuff on it that I think is useful, as soon as the infrastructure is done for the new orionsupport, I'll put it online.) On Wed, 20 Sep 2000, Christian Sell wrote: I have been sending this mail for quite some time but to no avail. well, maybe there IS no avail. Not many of us have done EJB 2.0 yet, and as far as the orion core team goes, I hope (!!) they are busy writing documentation for the basic stuff (and improving orion in their spare time). regards --- Joseph B. Ottinger [EMAIL PROTECTED] http://cupid.suninternet.com/~joeo HOMES.COM Developer __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. http://im.yahoo.com/ --- Joseph B. Ottinger [EMAIL PROTECTED] http://cupid.suninternet.com/~joeo HOMES.COM Developer Chequemail.com - a free web based e-mail service that also pays!!! http://www.chequemail.com Chequemail.com - a free web based e-mail service that also pays!!! http://www.chequemail.com
RE: Orion Server java:comp/env?
Title: RE: Orion Server java:comp/env? Hi All, I just wanted to know why we use java:comp/env before actual bean name for looking through JNDI. Once i had a problem with it. When i was using java:comp/env when a error was comming when looking the bean but when i removed java:comp/env and gave only bean name it was runnig fine. Kamran -Original Message- From: Blasius Lofi Dewanto [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 21, 2000 11:15 PM To: Orion-Interest Subject: Orion Server java:comp/env? Hi! I just wonder, is that possible to make the lookup from the client program without java:comp/env? The problem is, I want to write an EJB application that can use JOnAs and Orion as the container. JOnAs's JNDI does not support java:comp/env at the client level. Client program: For example: Context context = new InitialContext(); Object homeObject = context.lookup(java:comp/env/BankHome); This won't work in JOnAs. Instead I have to write this: Context context = new InitialContext(); Object homeObject = context.lookup(BankHome); Do I have to write 2 type of client accesses? One for JOnAs and one for Orion? Because Orion uses ejb-ref in the client-application.xml and JOnAs doesn't. Any help would be appriciated! Please answer directly to my email: [EMAIL PROTECTED] Thanx, -- --- Blasius Lofi Dewanto --- OpenUSS - Open University Support System http://openuss.sourceforge.net --- E-Mail : [EMAIL PROTECTED] ICQ : 39343280 ---
Re: No response from Customer Support for Licensed Version
No, actually that last phone call was very useful. We also called verisign and were able to get some good direction from them. I'm still having problems getting Orion to use the keystore... Orion/1.2.9 initialized Error listening to SSLServerSocket: No available certificate corresponds to the SSL cipher suites which are enabled. ... but i sure have learned alot about SSL! I have the feeling you all will be seeing another document on orionsupport.com when i finally get this thing working. ;) Thanks Karl, i will send another message to support now (you guys are probably still in bed). But i will still be up untill around 09:00 your time. thanks, sach On Fri, 22 Sep 2000, Karl Avedal wrote: Hello Sach, Are there any additional outstanding issues rather than the ones we have acknowledged and talked to you about? If so, send a new mail to support@, I thought all your issues had been answered to on the phone and via mail. On suspected bugs, it can take a few days before we have any information to give, since we initially try to reproduce and analyze the behaviour. Sometimes that can be a tedious process and take time and we can't always find or fix the bugs within days, and sometimes it can even take a few weeks, but I think that's still very fast compared to most companies in the business. We always try to fix it as soon as possible, and try to communicate any progress or need for extra info to the reporter, either via mail or via Bugzilla. Sometimes we are bad at telling the reporter about the progress on a bug. That's when nothing new has been found yet, but I know it's essential for you to immedietaly get an estimate on when we will know if it's a bug and when the fix can be issued, and we'll try to improve on that point. If nothing else we'll try to be faster to tell you that we can't estimate the time for an available fix. Regards, Karl Avedal
AutoUpdate Problem
When I try to autoupdate I get the following error after awhile: Writing .\jnet.jar... IO Error: Unexpected end of ZLIB input stream Can anyone help... Regards sb Chequemail.com - a free web based e-mail service that also pays!!! http://www.chequemail.com
Re: No response from Customer Support for Licensed Version
Just to make sure: note that orionsupport.com has NOTHING to do with orionserver.com... if you're sending email, make sure it's being routed to the right address. On Thu, 21 Sep 2000, Lorin Kobashigawa wrote: i have been sending emails all week to support, and not getting any response. -Lkb At 04:20 PM 9/21/00 -0400, Gary Albelli wrote: Hi, I have a few emails that have been sent to support with the following subject: EJB 2.0 many to many relationship deployment [priority: CMR1B23BAB]. I would like to know if I am doing something wrong in making this request or am I just not getting any response. Thanks Gary Albelli DecisionSmith/ipicorp /** * @author: Lorin Kobashigawa-Bates [EMAIL PROTECTED] * @title: CodeMonkey / COO - Robot6 Inc. * @phone: 415.345.8872 * @addr: 1177 Polk St. San Francisco, CA 94109 */ --- Joseph B. Ottinger [EMAIL PROTECTED] http://cupid.suninternet.com/~joeo HOMES.COM Developer
Simple steps to deploy a stateless session Bean.
Hi i am having alot of trouble just deploying anything. I would really appreciate if someone could give the step by step way to deploy a sime stateless session bean. note i have got the server started and runnign jsp. Thanks alot for your help! Harley Rana - Powered by http://www.telstra.com