Announcement
- Announcement - Although released before Christmas, its time we announce the availability of two new documents: DataSource Configuration - http://www.orionserver.com/docs/datasource-configuration/datasource-configur atin.xml Describes how to configure a DataSource in Orion. A categorized version is also available at http://kb.atlassian.com/content/orion/docs/datasource-configuration/datasour ce-configuration.html Database schema configuration - http://www.orionserver.com/docs/database-schema-configuration/database-schem a-configuration.xml Describes how to configure a database schema in Orion. A categorized version is also available at http://kb.atlassian.com/content/orion/docs/database-schema-configuration/dat abase-schema-configuration.html We hope you will enjoy these new documents. Any feedback on the documentation or suggestions for other documents that you would like to see can be sent to [EMAIL PROTECTED] WR The Orion Team
RE: Simple question re caching/pooling of BMP Entity Beans
You can avoid the call. Using a combination of isModified, validity_timeout and transaction_isolation ... just play around with it for a bit. See the online Orion FAQ: http://www.orionserver.com/faq/ I am using CMP Entity beans and call many methods on it that do not modify the state of the bean. How can I help Orion figure out that I am not changing the state and that it does not need to talk to the database? Implement the method public boolean isModified() in your bean to return a boolean flag that you set each time you modify your bean and clear in ejbStore(). If isModified() returns false, Orion knows that it doesn't need to talk to the database Regards, Manuel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Geoff Soutter Sent: Friday, January 11, 2002 7:13 AM To: Orion-Interest Subject: RE: Simple question re caching/pooling of BMP Entity Beans Hmm. Seems I am really getting myself confused. :-). I think I've got it now... I'm mistaking the db call in ejbFindByPrimaryKey with the db call in ejbLoad. Doh. So, the first time I call findByPrimaryKey, Orion calls ejbFindByPrimaryKey which goes to the database basically only to confirm the row hasn't been deleted. Then Orion calls ejbLoad which goes the the database again to load in the actual contents of the row. So, the row in question is accessed twice. Then, the second time, Orion still calls findByPrimaryKey, but avoids the ejbLoad. The thing is here, exclusive-write-access is set to true (by default), so why is Orion bothering to call findByPrimaryKey? Can't it just keep an internal primary key - ejb map and return the ejb instance directly? After all, if exclusive-write-access is on, the row can only be deleted by Orion itself... Geoff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Geoff Soutter Sent: Friday, 11 January, 2002 9:09 AM To: Orion-Interest Subject: RE: Simple question re caching/pooling of BMP Entity Beans Hi Sergey, Thanks for the reply. I didn't explain it very clearly did I? What I meant was: However, it appears that it goes to the database (i.e. calls _ejbLoad_ in the Entity Bean's implementation) for every call to findByPrimaryKey, regardless of whether it has previously read the instance with the specified key before. Have you been able to get pooling of BMP entity beans working? Geoff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Sergey G. Aslanov Sent: Thursday, 10 January, 2002 6:29 PM To: Orion-Interest Subject: Re: Simple question re caching/pooling of BMP Entity Beans Hi Geoff Loading of beans have these stages: 1. calling ejbFindBy... to get the primKeys of the entities; 2. checking if entities with such keys are already pooled; 3. for every key checking: if not pooled - call ejbLoad, else - get instance from pool; As you see, ejbFindBy... are called always independently of entity is pooled or not. Thursday, January 10, 2002, 2:01:37 AM, you wrote: GS Hi there, GS I'm teaching myself how to use Orion and I've got a simple question GS about caching/pooling of BMP Entity Bean instances. GS I've created a simple app which lets me read a BMP Entity Bean GS through a Session Bean. I would expect that when I call GS findByPrimaryKey on my Entity Bean's home interface, Orion caches GS the instance it creates so that next time I call findByPrimaryKey GS for the same key, it just returns the instance it already has rather GS than creating a new one. However, it appears that it goes to the GS database (i.e. calls ejbFindByPrimaryKey in the Entity Bean's GS implementation) for every call to findByPrimaryKey, regardless of GS whether it has previously read the instance with the specified key GS before. GS I checked the list archive and it appears that someone has reported GS a similar problem a while back but there were no replies GS (http://www.mail-archive.com/orion-interest@orionserver.com/ms g17359 GS .htm GS l). GS I also checked the documentation and for orion-ejb-jar.xml it states GS that exclusive-write-access is true by default, and since I am not GS setting it I presume it's defaulting to true which should allow GS Orion to cache the entity beans. GS So, can anyone shed any light on how whether/how I can get Orion to GS cache BMP entity beans? GS Cheers GS Geoff -- Sergey G. Aslanov, CBOSS Group, Web-technologies department mailto:[EMAIL PROTECTED] tel: +7 095 7555655
SV: Announcement
The link to the DataSource Configuration document should of course be http://www.orionserver.com/docs/datasource-configuration/datasource-configur ation.xml Sorry for the typo. WR Magnus Rydin IronFlare AB -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]För Magnus Rydin Skickat: den 11 januari 2002 09:08 Till: Orion-Interest Ämne: Announcement - Announcement - Although released before Christmas, its time we announce the availability of two new documents: DataSource Configuration - http://www.orionserver.com/docs/datasource-configuration/datasourc e-configur atin.xml Describes how to configure a DataSource in Orion. A categorized version is also available at http://kb.atlassian.com/content/orion/docs/datasource-configuration/datasour ce-configuration.html Database schema configuration - http://www.orionserver.com/docs/database-schema-configuration/database-schem a-configuration.xml Describes how to configure a database schema in Orion. A categorized version is also available at http://kb.atlassian.com/content/orion/docs/database-schema-configuration/dat abase-schema-configuration.html We hope you will enjoy these new documents. Any feedback on the documentation or suggestions for other documents that you would like to see can be sent to [EMAIL PROTECTED] WR The Orion Team
Re: Pet Store 1.3 and Orion
- Original Message - From: Jean-Guillaume LALANNE [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, January 10, 2002 4:38 PM Subject: Pet Store 1.3 and Orion Hi, Has anybody tried to install the sun pet store 1.3 app work on orion ? It seems that my orion version doesn't take into account the EJB2.0 localhome feature. Does the last one (1.5.3) do it ? Thanx Jean-Guillaume LALANNE
Re: Name-based Virtual Hosts
Your best bet for questions of this nature is to start with a search on the following sites: http://kb.atlassian.com http://www.elephantwalker.com http://www.orionserver.com- mailing list - archive A search for 'virtual hosts' on http://kb.atlassian.com results in the answer you are looking for. Hope this helps, Richard. - Original Message - From: Mark A. Richman To: Orion-Interest Sent: Friday, January 11, 2002 2:34 AM Subject: Name-based Virtual Hosts How can I configure name-based virtual hosts (vhosts) in Orion? I have one IP address that I need to host multiple domains on. Thanks, Mark A. Richman http://www.markrichman.com
Re: Pet Store 1.3 and Orion
No it doesn't. There was a rumour at one point that it would be in 1.5.4. --- Jean-Guillaume LALANNE [EMAIL PROTECTED] wrote: - Original Message - From: Jean-Guillaume LALANNE [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, January 10, 2002 4:38 PM Subject: Pet Store 1.3 and Orion Hi, Has anybody tried to install the sun pet store 1.3 app work on orion ? It seems that my orion version doesn't take into account the EJB2.0 localhome feature. Does the last one (1.5.3) do it ? Thanx Jean-Guillaume LALANNE __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/
Re: Pet Store 1.3 and Orion
No, local interface are not yet supported by Orion 1.5.3 - Original Message - From: Jean-Guillaume LALANNE [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Friday, January 11, 2002 11:19 AM Subject: Re: Pet Store 1.3 and Orion - Original Message - From: Jean-Guillaume LALANNE [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, January 10, 2002 4:38 PM Subject: Pet Store 1.3 and Orion Hi, Has anybody tried to install the sun pet store 1.3 app work on orion ? It seems that my orion version doesn't take into account the EJB2.0 localhome feature. Does the last one (1.5.3) do it ? Thanx Jean-Guillaume LALANNE
Re: Pet Store 1.3 and Orion
Ok. Thank you for your quick answers. I'll do without local interface for now. Jean-Guillaume - Original Message - From: Christian Meunier [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Friday, January 11, 2002 2:00 PM Subject: Re: Pet Store 1.3 and Orion No, local interface are not yet supported by Orion 1.5.3 - Original Message - From: Jean-Guillaume LALANNE [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Friday, January 11, 2002 11:19 AM Subject: Re: Pet Store 1.3 and Orion - Original Message - From: Jean-Guillaume LALANNE [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, January 10, 2002 4:38 PM Subject: Pet Store 1.3 and Orion Hi, Has anybody tried to install the sun pet store 1.3 app work on orion ? It seems that my orion version doesn't take into account the EJB2.0 localhome feature. Does the last one (1.5.3) do it ? Thanx Jean-Guillaume LALANNE _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
JAXM Standalone Demo Won't Work
Has anyone had any luck getting the JAXM StandAlone demo (jaxm-simple.war) to work on Orion? I am getting the error below from the originating code (StandAlone.java). Any help will be appreciated, Marc Sending message to URL: http://localhost:8080/jaxm-simple/receiver java.io.FileNotFoundException: http://localhost:8080/jaxm-simple/receiver at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at java.net.HttpURLConnection.getResponseCode(Unknown Source) at com.sun.xml.messaging.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection. java:198) at com.sun.xml.messaging.client.p2p.HttpSOAPConnection$PriviledgedPost.run(Http SOAPConnection.java:105) at java.security.AccessController.doPrivileged(Native Method) at com.sun.xml.messaging.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection. java:84) at StandAlone.main(StandAlone.java:70) javax.xml.soap.SOAPException: java.security.PrivilegedActionException javax.xml.messaging.JAXMException: Message send failed at com.sun.xml.messaging.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection. java:88) at StandAlone.main(StandAlone.java:70)
RE: ORMI-HTTP Tunneling through firewall with proxy server
I posted this question to www.elephantwalker.com also. I was told that this issue has been solve in oc4j 1.0.2 by the RMIHttpTunnelProxyServlet. Hopefully, Orion will catch up with the next release. I'm going to test the oc4j 1.0.2 next week and will post the results. Here's the link to the discussion on elephantwalker: http://www.elephantwalker.com/rfa?id=306 Thanks, Frank -Original Message- From: Harini P [EMAIL PROTECTED]@MCGRAW-HILL Sent: Thursday, January 10, 2002 9:47 PM To: Orion-Interest Subject: ORMI-HTTP Tunneling through firewall with proxy server Hi, I have a similar problem but with a simple applet connecting to the JMS Server using ORMI-HTTP tunneling when a firewall and a proxyserver are used the client application times out when it calls start on topicConnection. Any ideas why is this happening? --- Frederick,Frank [EMAIL PROTECTED] wrote: Has anyone had any luck accessing EJBs using ORMI-HTTP tunneling when a firewall and a proxy server are being used? I've tried setting the system properties for proxySet, proxyHost, and proxyPort with no luck. After a long period of time, the client application exits with the following exception: javax.naming.NamingException: Lookup error: java.io.IOException: Did not receive valid HTTP headers; nested exception is: java.io.IOException: Did not receive valid HTTP headers at com.evermind.server.rmi.RMIContext.lookup(JAX) at javax.naming.InitialContext.lookup(InitialContext.java:350) at com.platts.dmz.DMZTestingClient.testDataTransfer(DMZTestiEnding test ngClient.java:174) at com.platts.dmz.DMZTestingClient.main(DMZTestingClient.java:285) We are using Orion version 1.4.5. Any ideas/suggestions? Thanks, Frank Frank Frederick Software Engineer/Architect Platts - A Division of McGraw-Hill www.Platts.com 720-548-5656 __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ msg17546/bin0.bin Description: application/ms-tnef
Orion ORMI Port
Hi all, Does anybody know whether it is possible to bind a RMI object onto Orion's ORMI port or is it for EJBs use only? I suppose compatibility is not possible because JRMP and ORMI are different protocols, but I am not sure. Thank you in advance. ·· Carles Pairot Gavaldà Essi Projects [EMAIL PROTECTED] t +34 977 221 182 http://www.essiprojects.com f +34 977 230 170 ··
JAAS
Has anybody had any experience with integrating JAAS (Java Authentication and Authorization Service) with Orion? Can you point to some good sources/tutorials where I can learn how to do this? Thanks! msg17548/bin0.bin Description: application/ms-tnef
RE: Anyone got old orionsupport sample application client / scheduler?
Use the UK mirror: http://uk.orionsupport.com/articles/appclient.html -Original Message- From: Geoff Soutter [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 10, 2002 9:34 PM To: Orion-Interest Subject: Anyone got old orionsupport sample application client / scheduler? You can see it described in googles cache http://www.google.com/search?q=cache:4nkQslt9AjsC:www.orionsupport.com/a rticles/appclient.html+orion+application+clienthl=en If anyone has the source jar file, I'd really appreciate a copy! Cheers Geoff
can't figure out this one. need help: logging, reloading custom usermanager class
ok so i tried to write a custom usermanager but it will not work and will not give me any clue as to why. I have followed the directions on the support site, and have turned on -verbosity 10, i think i may have had it wrong the first time i compiled it but i don't know how to find out what version of my class i am using. Is there a way to see the date of the class file that's loaded? how do you insure that it is reloaded? i've done touch application.xml web.xml and every other xml that i can think of. here is my code. it compiles fine, and this is from my active login system so i'm pretty sure the code works. how do i get the damn logging to work? System.out.println() does not show up on my logs or STDOUT from running orion.jar package jesse; import java.util.*; import com.orionsupport.security.SimpleUserManager; import java.sql.*; import java.io.*; import javax.sql.*; import javax.naming.*; // // fuck some shit up with da user manager. // public class uM extends SimpleUserManager { private Map users = new HashMap(); protected boolean userExists( String username ) { boolean result = false; try { Context ctx = new InitialContext(); DataSource ds = (DataSource) ctx.lookup(jdbc/mysql); Connection con = ds.getConnection(); Statement st = con.createStatement(); Statement st2 = con.createStatement(); String q = select count(*) from stamps.users where username='+username+'; ResultSet rs = st.executeQuery(q); int test = rs.getInt(1); if (test == 1) { result = true; } if (result){} else {System.out.println(user: +username+ does not exist\n);} con.close(); } catch (SQLException e) {System.out.println(SQL error: +e);} catch (NamingException er) {System.out.println(jndi naming error+ er);} return result; } protected boolean checkPassword( String username, String password ) { boolean result = false; try { Context ctx = new InitialContext(); DataSource ds = (DataSource) ctx.lookup(jdbc/mysql); Connection con = ds.getConnection(); Statement st = con.createStatement(); Statement st2 = con.createStatement(); if (userExists(username)) { String q = select password user_id from stamps.users where username='+username+'; ResultSet rs = st.executeQuery(q); while (rs.next()) { String u = rs.getString(2); String p = rs.getString(1); String q2 = select password('+password+'); ResultSet rs2 = st2.executeQuery(q2); rs2.next(); String enpass = rs2.getString(1); if (p.equals(enpass)) { result = true; users.put(username,u); } } } if (result){} else {System.out.println(user: +username+ failed pass check\n);} con.close(); } catch (SQLException e) {System.out.println(SQL error: +e);} catch (NamingException er) {System.out.println(jndi naming error+ er);} return result; } protected boolean inGroup( String username, String groupname ) { return true; } protected String getUID(String username) { String result = (String)users.get(username); return result; } }
Re: Pet Store 1.3 and Orion
And when is 1.5.4 scheduled? - Original Message - From: Ray Harrison [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Friday, January 11, 2002 1:15 PM Subject: Re: Pet Store 1.3 and Orion No it doesn't. There was a rumour at one point that it would be in 1.5.4. --- Jean-Guillaume LALANNE [EMAIL PROTECTED] wrote: - Original Message - From: Jean-Guillaume LALANNE [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, January 10, 2002 4:38 PM Subject: Pet Store 1.3 and Orion Hi, Has anybody tried to install the sun pet store 1.3 app work on orion ? It seems that my orion version doesn't take into account the EJB2.0 localhome feature. Does the last one (1.5.3) do it ? Thanx Jean-Guillaume LALANNE __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/