Re: Shutting down in Windows NT.
I get the same errors AFTER upgrading to 1.1.30 -Original Message- From: Rick Bos [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Date: Sonntag, 23. Juli 2000 22:40 Subject: Re: Shutting down in Windows NT. I did that. Now I get this message: Christian Sell wrote: you will have to upgrade to the latest version. This can be done with the command java -jar autoupdate.jar
RE: Integration with existent www-servers
Definetly I would like to deploy EJB server on one machine. And servlets on other one. But can servlets run on apache with jserv? I mean what jndi addresses should I use in servlets, and where should I run rmiregisry? the other question concerns rmi over ssl. Who to do this? Any help appreciated. Best regards, Stanislav Bernatsky
Re: How to programatically start orion ejb container
Thanks. I tried passing -userThreads in the args array and still get the same error: Not in an application scope - start Orion with the -userThreads switch if using user-created threads. I'm calling com.evermind.server.ApplicationServer.main(args) -- is this the correct approach? Thanks, Vidur Dave Smith wrote: -userThreads should not be used with the -D option (it is not a definition) but should be added to the args array before calling the main method. Dave Smith Senior Team Leader Aristocrat Technologies Australia Pty Ltd mailto:[EMAIL PROTECTED] -Original Message- From: Vidur Dhanda [mailto:[EMAIL PROTECTED]] Sent: Sunday, 23 July 2000 13:00 To: Orion-Interest Subject: How to programatically start orion ejb container Hello, How can I start an ejb container programmatically. I want to start the container and then do some initialization. I tried calling ApplicationServer.main(args) and then do the initialization. However, when during initialization, I try to access JNDI via new InitialContext() I get an error "Not in an application scope - start Orion with the -userThreads switch if using user-created threads". I pass Java -DuserThreads on the command line. Please help. Thanks, Vidur -- Vidur Dhanda active.solutions tel: 617/566-1252 fax: 617/566-4155 [EMAIL PROTECTED] www.active-solutions-inc.com
XSLServlet
Hello, What is the syntax for configuring the XSL-Servlet to use different StyleSheets depending on browser or Content-Type? Anders
RE: Shutting down in Windows NT.
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Christian Sell Sent: Monday, July 24, 2000 09:17 To: Orion-Interest Subject: Re: Shutting down in Windows NT. I get the same errors AFTER upgrading to 1.1.30 -Original Message- From: Rick Bos [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Date: Sonntag, 23. Juli 2000 22:40 Subject: Re: Shutting down in Windows NT. I did that. Now I get this message: Christian Sell wrote: you will have to upgrade to the latest version. This can be done with the command java -jar autoupdate.jar
global-web-app/welcome-file-list
After updating to 1.1.31 I have a problem with welcome-file-list I have configure the following list to have index.php3 files act as index welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.xml/welcome-file welcome-fileindex.php3/welcome-file welcome-filedefault.jsp/welcome-file /welcome-file-list However, I can now access http://server/index.php3 perfectly but when I do just http://server/ I get a 404 Not Found. When removing the index.php3 I get a 403 Directory Browsing Not Allowed which is ok. index.xml/index.html works but default.jsp seems not to recognised as well now. Any ideas? Leo.
Re: Importing a cert from Thawte
I just solved my problem. Keytool seems to be very sensitive to white characters in the end of the certificate files. I _added_ a trailing return in my file and now it works. (Somewere on Thawtes site I read that you should _remove_ all blanks ...) A tip to people with the same problems as I had: Try adding/deleting trailing blanks/returns in your certificate reply file. /Mattias Arbin - Original Message - From: "Mattias Arbin" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, July 21, 2000 5:58 PM Subject: Importing a cert from Thawte I have now got a valid certificate from Thawte, (i.e a real one, not a test cert). I am now trying to import it into my keystore without success. I genereated my certificate request like this: keytool -genkey -keyalg "RSA" -alias myalias -keystore keystore -dname "cn=www.[mydomain].com, ou=[MyCompany], o=[My Company], c=SE, S=[Mystate], l=[mycity]" -validity 360 keytool -certreq -keyalg "RSA" -alias myalias -file www.[mycompany].com.csr -keystore keystore The only thing that differs from the Orion docs is that I use an alias 'myalias' instead of the default 'mykey'. When getting my certificate from Thawte I could choose from a number of formats. The two that seems to fit is 'Standard Certificate Format' (BASE64 encoded, DER encoded X.509v3 cert.) 'PKCS #7 Certificate Chain' ("Newer servers and development toolkits support "certificate chains". This format allows Thawte to deliver a full certificate chain to you, which in turn makes for superior key management and flexibility.") When trying to import either one of the above I get: keytool -import -keystore keystore -file mythawtecert.cer -keyalg "RSA" -alias myalias -trustcacerts Enter keystore password: mypassword keytool error: java.lang.Exception: Input not an X.509 certificate After reading the docs on keytool, I am still not completely sure if to use "-alias myalias" so I tried that too: keytool -import -keystore keystore -file mythawtecert.cer -keyalg "RSA" -trustcacerts Enter keystore password: mypassword keytool error: java.security.cert.CertificateException: Unsupported encoding Does anybody have any idea what is going wrong here? Thanks, Mattias Arbin
RE: problems with creating virtual directories
I can't seem to get the virtual-directory tag to work. I have a tag stating: virtual-directory real-path="D:\" virtual-path="/docs" / In my: orion/my-web-app/WEB-INF/orion-web.xml file. I has worked in previous versions of orion. It worked when using 0.8.1... but now it doesn't... regards, Patrik Andersson -Original Message-From: Kuno Baeriswyl [mailto:[EMAIL PROTECTED]]Sent: den 21 juni 2000 19:45To: Orion-InterestSubject: problems with creating virtual directoriesHey, I'm actually using Orion/1.0rc1 and I was trying to map a folder as virtual directory. In the mailing list I found diffrent possiblities to do it: 1. modifing file \orion\default-web-app\WEB-INF\orion-web.xml. -But I didn't found this file! 2. adding the tag virtual-directory real-path="C:\xxx\test" virtual-path="/test" / to the \orion\config\global-web-application.xml-file; without success. Any help will be appreciated very much. I'm looking forward to hearing from you soon. Thanks kuno
Re: SSL again
Port 443? Orion web-site.xml docs state: "port - The port of this site, the default is 80 for regular sites and 439 for secure (SSL) sites." I tried port 443 like you suggested and also tried taking the port attribute out again like the docs say to do. Got the following error restarting Orion: Error starting HttpServer: Unable to intialize SSLServerSocketFactory 'com.evermind.ssl.JSSESSLServerSocketFactory': Address in use: bind Orion/1.0.3 initialized Anybody have any suggestions? Dale - Original Message - From: Brian Beaulieu [EMAIL PROTECTED] To: Dale Bronk [EMAIL PROTECTED] Cc: Orion-Interest [EMAIL PROTECTED] Sent: Sunday, July 23, 2000 10:40 PM Subject: Re: SSL again The SSL port is 443. By default, all browsers will go to port 443 if you specify https:// Regards, Brian Dale Bronk wrote: I followed the directions on the how-to and got an error getting the test certificate from Thawte. I must have done something wrong as after going through the keytool steps again, I successfully got a certificate from Thawte. I then ran the final keytool command as in the instructions. I then followed the instructions and did the following: 1. Copied a web-site.xml file (I didn't use the default, I copied the one I am needing ssl for). 2. Edited this file by removing the port=80 attribute, added secure="true", and placed ssl-config keystore="path/to/my/keystore" keystore-password="my-password" / 3. I then edited my server.xml and added the the site with web-site path="../../../secure-web-site.xml" / I then got an error from Orion stating that address was already in use. I see that both "my-original-web-site.xml" and "secure-web-site.xml" both have the same host="My-IP" entry so I can see how that would happen. I then added port="439" to my secure-web-site.xml file and restarted Orion. Orion did not give an error and said initialized (That is the only output I received, I thought I should see something about deploying my new site or something but I didn't). No errors so I though great, it worked! It didn't. I then browsed to http://my.host.com and everything was normal. I tried the following and am kind of confused: 1. I browsed to https://my.host.com and got and cannot find server or DNS error. 2. I browsed to http://my.host.com:439 and got 5 little boxes (I assume some sort of control characters) 3. I browsed to https://my.host.com:439 and it seems to work just fine. I assume it works because IE gives my the little padlock icon in the status line. Any help would be appreciated. I am confused why I have to type both https and :439 to browse to the page. Dale Bronk [EMAIL PROTECTED] Windscape Consulting, Inc. http://www.windscape.com
Re: Problem unsubscribing
The same here, I am TRAPPED! arrrghhh!!! please help me... zhora wrote: I find it impossible to unsubscribe from this mailing list. This function doesn't seem to work. Can maillist administrator unsubscribe me, please -- __ -- Codito ergo sum -- "I code therefore I am" -- __ begin:vcard n:Giannopoulos;Peter tel;pager:N/A tel;cell:N/A tel;fax:514-732-2301 tel;home:N/A tel;work:514-732-2434 x-mozilla-html:FALSE url:http://www.gemplus.com org:Gemplus Canada inc.;CTO Group adr:;;3 Place du Commerce;Ile des soeurs;Quebec;H3E 1H7;Canada version:2.1 email;internet:[EMAIL PROTECTED] title:Software Developer note;quoted-printable:=0D=0A--- Codito, ergo sum - "I code, therefore I am" --- fn:Peter Giannopoulos end:vcard
1.1.31 problem, again
I'm also unable to run the cart demo; same error: C:\java\orion\demo\ejb\cartjava -classpath ../../../orion.jar;../../../ejb.jar; ../../../jndi.jar;. CartClient Communication error: Error reading application-client descriptor: No EJBHome fou nd at MyCart as specified by ejb-ref MyCart Kirk Yarina Kirk Yarina [EMAIL PROTECTED]
RE: Importing a cert from Thawte
You have sent this to the wrong email address. -Original Message- From: Mattias Arbin [mailto:[EMAIL PROTECTED]] Sent: Friday, July 21, 2000 8:59 AM To: Orion-Interest; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Importing a cert from Thawte I have now got a valid certificate from Thawte, (i.e a real one, not a test cert). I am now trying to import it into my keystore without success. I genereated my certificate request like this: keytool -genkey -keyalg "RSA" -alias myalias -keystore keystore -dname "cn=www.[mydomain].com, ou=[MyCompany], o=[My Company], c=SE, S=[Mystate], l=[mycity]" -validity 360 keytool -certreq -keyalg "RSA" -alias myalias -file www.[mycompany].com.csr -keystore keystore The only thing that differs from the Orion docs is that I use an alias 'myalias' instead of the default 'mykey'. When getting my certificate from Thawte I could choose from a number of formats. The two that seems to fit is 'Standard Certificate Format' (BASE64 encoded, DER encoded X.509v3 cert.) 'PKCS #7 Certificate Chain' ("Newer servers and development toolkits support "certificate chains". This format allows Thawte to deliver a full certificate chain to you, which in turn makes for superior key management and flexibility.") When trying to import either one of the above I get: keytool -import -keystore keystore -file mythawtecert.cer -keyalg "RSA" -alias myalias -trustcacerts Enter keystore password: mypassword keytool error: java.lang.Exception: Input not an X.509 certificate After reading the docs on keytool, I am still not completely sure if to use "-alias myalias" so I tried that too: keytool -import -keystore keystore -file mythawtecert.cer -keyalg "RSA" -trustcacerts Enter keystore password: mypassword keytool error: java.security.cert.CertificateException: Unsupported encoding Does anybody have any idea what is going wrong here? Thanks, Mattias Arbin
Users groups and roles
Hi, I understand that orion has a UserManager that can be used instead of the principles.xml file. Is this similar to what Apache does if you set up access via the RDBMS ACLs rather that the file based ones? Which example uses this and can anyone give me more info about the schema used etc. Thanks in advance, Eric :-)
ejbmaker.jar -- and -- tutorial
I downloaded the latest stable release, and my ejbmaker program does not look at all like, nor have the functionality of the one described in the tutorial. The one in the tutorial, is that in an unstable code release? If so, how do I get the newest version that I hear everyone on the list speaking of. Thanks! Jeremy - [EMAIL PROTECTED] Christian Brotherhood Newsletter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of KirkYarina Sent: Monday, July 24, 2000 10:43 AM To: Orion-Interest Subject: 1.1.31 problem? I have a small set of BMP tests that I run on every new Orion version. These worked on 1.1.24, but now seem to be broken and fail in the first getInitialContext(). Normally I just do an autoupdate, delete the applications-deployment directory, and run the test, but I've tried a full recompile with the same results. I suspect this means a problem on my part, but I can't find it. I'd be grateful if someone could point out any obvious mistakes. Thanks! Kirk Yarina Platform is Win98/JDK 1.2.2/Hypersonic. The error: java -Djava.compiler=NONE -classpath c:/java/testsuite/bean;c:/java/orion/orion.jar;c:/java/orion/ejb.jar;c:/java /orion/jndi.jar mhi.ejb.person.TestSuite2 -- Getting Initial Context -- javax.naming.NamingException: Error reading application-client descriptor: No EJBHome found at Sequence as specified by ejb-ref mhi.Sequence at com.evermind.server.ApplicationClientInitialContextFactory.getInitial Context(JAX) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:672) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250) at javax.naming.InitialContext.init(InitialContext.java:226) at javax.naming.InitialContext.init(InitialContext.java:182) at mhi.ejb.person.TestSuite2.getInitialContext(TestSuite2.java:544) at mhi.ejb.person.TestSuite2.runTestSuite(TestSuite2.java:79) at mhi.ejb.person.TestSuite2.main(TestSuite2.java:60) The client code that fails: try { this.iCtx = new InitialContext( ); } catch ( Exception ex ) { System.err.println( "-- Getting Initial Context --" ); ex.printStackTrace( System.err ); System.exit(2); } } The beginning of the home interface: package mhi.ejb.seq; import java.rmi.RemoteException; import java.util.Enumeration; import javax.ejb.CreateException; import javax.ejb.EJBHome; import javax.ejb.FinderException; /** * The SequenceHome interface. */ public interface SequenceHome extends EJBHome { /** * Creates a new Sequence with the give name, and sets its * next ID to the initial sequence parameter. * * @param name The name of the new Sequence. * @param initSeq The initial next ID for this sequence. */ public Sequence create( String name, long initSeq ) throws RemoteException, CreateException; The client's jndi.properties: java.naming.factory.initial=com.evermind.server.ApplicationClientInitialCont extFactory java.naming.provider.url=ormi://localhost/testsuite java.naming.security.principal=admin java.naming.security.credentials=123 And the relevant section of ejb-jar.xml: enterprise-beans session description Sequence Performance Test /description ejb-nameSequenceMgr/ejb-name homemhi.ejb.seq.SequenceMgrHome/home remotemhi.ejb.seq.SequenceMgr/remote ejb-classmhi.ejb.seq.SequenceMgrBean/ejb-class session-typeStateless/session-type ejb-ref ejb-ref-namemhi.Sequence/ejb-ref-name ejb-ref-typeEntity/ejb-ref-type homemhi.ejb.seq.SequenceHome/home remotemhi.ejb.seq.Sequence/remote /ejb-ref /session entity description Unique ID sequence generator /description ejb-nameSequence/ejb-name homemhi.ejb.seq.SequenceHome/home remotemhi.ejb.seq.Sequence/remote ejb-classmhi.ejb.seq.SequenceBean/ejb-class primkey-classjava.lang.String/primkey-class reentrantTrue/reentrant persistence-typeBean/persistence-type /entity Kirk Yarina [EMAIL PROTECTED]
Problems executing HelloClient
I'm just now starting to use Orion for EJB deployment and have created the HelloWorld example from Ed Roman's book "Mastering Enterprise Java Beans". When trying to execute the HelloClient however, I get a java.lang.SecurityException, invalid user/password. I've set the user password in the appdeployments/myapp/principals.xml. What Am I missing? sven -- == Sven van 't Veer http://www.cachoeiro.net Java Developer [EMAIL PROTECTED] _/_ The answer / \ to the ultimate questionnnn|. .|nnn 42 =U
URGENT: Can't deploy BMP: cmt-datasource
Help! I'm trying to deploy an EJB in Orion. At first I thought I had problems with the naming/lookup, but thanks to the graphical browser (-console2) I can see my EJB is not being deployed at all. "No default cmt-datasource and no source specified" This is a show stopper, because I cannot test the actual functionality of the EJB! Here is the full console error: C:\java\orionjava -DPROPERTY_STORE=file:///c:\dev\aspi-ejb\properties.conf -jar orion.jar -console2 Auto-deploying user-ejb.jar... Error compiling file:/C:/dev/aspi-ejb/build/user/user-ejb.jar: No default cmt-datasource and no source specified Orion/1.1.30 initialized Here is my ejb-jar.xml: ?xml version="1.0"? !DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd" ejb-jar description/description enterprise-beans entity descriptionThis bean represents a User/description ejb-nameUserBean/ejb-name homecom.apama.aspi.ejb.user.UserHome/home remotecom.apama.aspi.ejb.user.User/remote ejb-classcom.apama.aspi.ejb.user.UserBean/ejb-class persistence-typeBean/persistence-type prim-key-classcom.apama.aspi.ejb.user.UserPK/prim-key-class reentrantFalse/reentrant /entity /enterprise-beans assembly-descriptor security-role description This role represents everyone who is allowed full access to the User bean. /description role-nameeveryone/role-name /security-role method-permission role-nameeveryone/role-name method ejb-nameUserBean/ejb-name method-name*/method-name /method /method-permission container-transaction method ejb-nameUserBean/ejb-name method-name*/method-name /method trans-attributeRequired/trans-attribute /container-transaction /assembly-descriptor /ejb-jar Can someone point me in the right direction please? Notes: I don't use any datasources directly in the bean - everything is done via CORBA (the EJB is the client). Hope you can help. Thanks, Kev --- Dr. Kevin Palfreyman APAMA Ltd
RMI context factory from 1.1.24 to 1.1.31
We were upgraded from 1.1.24 to 1.1.31 and now our client that uses the RMI context factory suddenly cannot access any of the beans. Will this be fixed in orion or is there some way to make it work? We're not in a position right now to switch to ApplicationClient context factory. Thank you, -- Joel Shellman Chief Software Architect The virally-driven B2B marketplace for outsourcing projects http://www.ants.com/90589781
Certificate from Thawte? How?
Has anyone walked through the process of getting a real certificate from Thawte? Any advice? In particular, Thawte asks what type of web server one is running, but Orion is not listed. What have people been selecting? Thanks in Advance: STeve Puntee-Business Software ArchitectTechnologent Inc[EMAIL PROTECTED]
Conflict between ejb-link and ejb-ref-mapping
I don't understand why orion deployment descript need ejb-ref-mapping ? The ejb-link in J2EE DD just has the same function as ejb-ref-mapping in Orion DD. I found the ejb-link broken, just only ejb-ref-mapping works. I really cant understand why ejb-ref-mapping is needed? and why ejb-link borken? THIS MY SECOND TIME ASK THIS QUESTION. NOBODY HAS THE SAME QUESTION? Regards., Jen Hsien Huang
Problems running an Apache Struts App with Orion.
I'm having problems getting a struts (from the apache group) app to work with orion. I have got the struts-example working fine just by moving the action.xml file down to the root. When I try running my app though I get a java.lang.NoClassDefFoundError: org/apache/struts/action/ValidatingActionForm. The struts.jar is in the WEB-INF/lib directory. My Environment is Redhat Linux 6.0 with ibm 1.3 jdk. I have tried suns 1.2.2 jdk but I get the same error. My app works fine with tomcat 3.1. I have also tried the latest build of orion 1.1.31 and see that the action.xml does not need to be move to the root anymore. I still get the same exception though. Any ideas on how to debug this. The logs just show the NoClassDefFound stack trace with no additional helpful information. Richard Backhouse Oak Grove Software
Re: ejbmaker.jar -- and -- tutorial
Hi, I am having the same problem with 1.1.31. I have this same message in the demo cart ejb's. I have looked at the code and think that this is an issue with this version. Thanks, Steve Naples - Original Message - From: "Jeremy Cowgar" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Monday, July 24, 2000 2:55 PM Subject: ejbmaker.jar -- and -- tutorial I downloaded the latest stable release, and my ejbmaker program does not look at all like, nor have the functionality of the one described in the tutorial. The one in the tutorial, is that in an unstable code release? If so, how do I get the newest version that I hear everyone on the list speaking of. Thanks! Jeremy - [EMAIL PROTECTED] Christian Brotherhood Newsletter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of KirkYarina Sent: Monday, July 24, 2000 10:43 AM To: Orion-Interest Subject: 1.1.31 problem? I have a small set of BMP tests that I run on every new Orion version. These worked on 1.1.24, but now seem to be broken and fail in the first getInitialContext(). Normally I just do an autoupdate, delete the applications-deployment directory, and run the test, but I've tried a full recompile with the same results. I suspect this means a problem on my part, but I can't find it. I'd be grateful if someone could point out any obvious mistakes. Thanks! Kirk Yarina Platform is Win98/JDK 1.2.2/Hypersonic. The error: java -Djava.compiler=NONE -classpath c:/java/testsuite/bean;c:/java/orion/orion.jar;c:/java/orion/ejb.jar;c:/java /orion/jndi.jar mhi.ejb.person.TestSuite2 -- Getting Initial Context -- javax.naming.NamingException: Error reading application-client descriptor: No EJBHome found at Sequence as specified by ejb-ref mhi.Sequence at com.evermind.server.ApplicationClientInitialContextFactory.getInitial Context(JAX) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:672) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250) at javax.naming.InitialContext.init(InitialContext.java:226) at javax.naming.InitialContext.init(InitialContext.java:182) at mhi.ejb.person.TestSuite2.getInitialContext(TestSuite2.java:544) at mhi.ejb.person.TestSuite2.runTestSuite(TestSuite2.java:79) at mhi.ejb.person.TestSuite2.main(TestSuite2.java:60) The client code that fails: try { this.iCtx = new InitialContext( ); } catch ( Exception ex ) { System.err.println( "-- Getting Initial Context --" ); ex.printStackTrace( System.err ); System.exit(2); } } The beginning of the home interface: package mhi.ejb.seq; import java.rmi.RemoteException; import java.util.Enumeration; import javax.ejb.CreateException; import javax.ejb.EJBHome; import javax.ejb.FinderException; /** * The SequenceHome interface. */ public interface SequenceHome extends EJBHome { /** * Creates a new Sequence with the give name, and sets its * next ID to the initial sequence parameter. * * @param name The name of the new Sequence. * @param initSeq The initial next ID for this sequence. */ public Sequence create( String name, long initSeq ) throws RemoteException, CreateException; The client's jndi.properties: java.naming.factory.initial=com.evermind.server.ApplicationClientInitialCont extFactory java.naming.provider.url=ormi://localhost/testsuite java.naming.security.principal=admin java.naming.security.credentials=123 And the relevant section of ejb-jar.xml: enterprise-beans session description Sequence Performance Test /description ejb-nameSequenceMgr/ejb-name homemhi.ejb.seq.SequenceMgrHome/home remotemhi.ejb.seq.SequenceMgr/remote ejb-classmhi.ejb.seq.SequenceMgrBean/ejb-class session-typeStateless/session-type ejb-ref ejb-ref-namemhi.Sequence/ejb-ref-name ejb-ref-typeEntity/ejb-ref-type homemhi.ejb.seq.SequenceHome/home remotemhi.ejb.seq.Sequence/remote /ejb-ref /session entity description Unique ID sequence generator /description
Serializing EntityBean Handle
Hello, I'm having a unique problem that I would like to get help on. In my application, a CMP EntityBean, Category, creates an Object CategoryVariable and passes it its EJBObject(entityContext.getEJBObject()). CategoryVariable, implements Externalizable and in writeExternal() calls writeObject () on the EJBObject's handle. In readExternal(), it calls getEJBObject() on the deserialized handle. When I test the code, within the same JVM, it works fine. (Ex. Upon CategoryVarible construction, I can serialize/deserialize correctly.) However, when CategoryVariable is serialized between JVMs (eg. as a return value for a method call on Category), the getEJBObject() call on the deserialized handle returns null. Has anyone else experienced such a problem? Am I doing something obviously wrong? I'm using orion 1.1.24 on NT4.0SP6 with JDK1.3 on an AMD-K6. Thanks for any pointers. I have spent most of today trying to understand this and am totally stuck. TIA, Vidur
RE: Great speed up in Orion 1.1.30
you mention using the sun 1.3 jdk, I tried using this and it woudl crash on some of the test pages with orion... tried 1.2.2 and it works fine. this was with orion 1.0.3, have tehse problems been repaired? Thanks Brady Moritz Moritz Designs -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Robert Krueger Sent: Sunday, July 23, 2000 7:30 AM To: Orion-Interest Subject: Re: Great speed up in Orion 1.1.30 there's also a noticable improvement in startup performance. attached are some numbers for our typical development setup (5 rather heavyweight ejb applications deployed). the machine is a dual PIII 700 with 640 Meg RAM running linux and sun's beta jdk 1.3 using hotspot server VM. the test is a regular server restart with no autodeployment taking place. version memstartup time 1.1.27 65156 70 sec 1.1.30 42320 22 sec keep going. this really is an important step forward for daily work with orion. great work! regards, robert At 13:08 23.07.00 , Yann Doussot wrote: Hello, I just want to let you know that I have noticed a great speed improvement in the latest Orion with an heavly EJB based application (compared with 1.1.24). Keep up the good work ! BTW it would really be nice to have some kind of change log with the orion updates. -- Yann Doussot [EMAIL PROTECTED] Grey Interactive - France - http://www.gifrance.com/ (-) Robert Krüger (-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH (-) Brüder-Knauß-Str. 79 - 64285 Darmstadt, (-) Tel: 06151 665401, Fax: 06151 665373 (-) [EMAIL PROTECTED], www.signal7.de
RE: PROBLEM: Primary-child CMP object
Can someone point me in the direction of finding out what these CMP objects are? Thanks Brady Moritz Moritz Designs -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Conrad Chan Sent: Friday, July 21, 2000 2:44 PM To: Orion-Interest Subject: PROBLEM: Primary-child CMP object Here is a simplified version of my problem: I have a Person entity object that contains a list of phone numbers as string, which encapsulates Person and Phone database tables joined by foreign key person_id. When I create a person instance first and then fill in phone numbers information, everything is fine and all the data is stored into their underlying tables properly. However if I need to fill in all phone numbers during the creation of person instance (i.e. in ejbCreate()), I will get a foreign key constraint error. public Integer ejbCreate(...) { phones = new ArrayList(); phones.add("123-3456"); phones.add("888-"); phones.add("911"); } I look like to me that Orion tries to create all the dependent objects first before the primary objects and hence violates the underlying database constraint. Could someone explain to me is there a reason Orion creates object in this order since it doesn't quite make sense to me. P.S. Here is my orion-ejb-jar.xml snap-shot entity-deployment name="Person" location="Person" wrapper="PersonHome_EntityHomeWrapper25" table="Person" data-source="jdbc/ejb/NiceDb" primkey-mapping cmp-field-mapping name="id" persistence-name="id" / /primkey-mapping cmp-field-mapping name="name" persistence-name="name" / cmp-field-mapping name="phones" list-mapping table="phone" primkey-mapping cmp-field-mapping name="id" persistence-name="personid" / /primkey-mapping value-mapping type="java.lang.String" cmp-field-mapping persistence-name="phonenumber" / /value-mapping /list-mapping /cmp-field-mapping /entity-deployment