Orionserver php
Hello folks, has anyone mixed orionserver and php? If you don't want to install Apache, but enable php, will it run over orionserver? Regards, Jukka
Singleton classes and Clustering
In my application I use somo singleton classes to store some data that is common to all the sessions. Noy I want to use LoadBalancing and Clustering from Orion, how Singleton classes are treated by Orion when LoadBalancing and Clusteing are used?
Re: restarting orion-server
Hi Michael! "Michael S. Kelly" wrote: Have tried telneting into your server and executing the following at the command prompt? java -jar admin.jar ormi://localhost/ admin 123 -restart "admin" is a user name with administration permissions and "123" is the password (see the principals.xml config file). Yes I did, but without success.It seems that the server does not shutdown. When using shutdown (with admin-tool) the server does not stop. Only -shutdown force does the job. Marcus Lankenau begin:vcard n:Lankenau;Marcus x-mozilla-html:FALSE url:wwl.de org:wwl vision2market;Interactive adr:;;goebelstr. 46;Lilienthal;D;28865; version:2.1 email;internet:[EMAIL PROTECTED] title:Senior Developer fn:Marcus Lankenau end:vcard
orion integration with vaj 3.5
Hello! Is it possible to debug ejb's in visual age fo java like it was done for servlets in Tomcat (see links below)? I have done the same steps for orion 1.4.0. Now it starts but cannot deploy my ejb's and run example servlets. Error messages are: 'Error loading package at file:/H:/vaj35/ide/project_resources/OrionAppServer/out/test/test-ejb/, Error loading class 'ejb.MyEJB': java.lang.InstantiationException: ejb.MyEJB does not implement javax.ejb.EJBObject' '500 Internal Server Error java.lang.InternalError: (Ex02) An error has occurred. java.lang.Throwable(java.lang.String) java.lang.Error(java.lang.String) java.lang.VirtualMachineError(java.lang.String) java.lang.InternalError(java.lang.String) java.lang.Class java.lang.Class.forName0(java.lang.String, boolean, java.lang.ClassLoader) java.lang.Class java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) com.evermind.server.http.ServletInstanceInfo com.evermind.server.http.HttpApplication.wt(com.evermind.util.ByteString) com.evermind.server.http.ServletInstanceInfo com.evermind.server.http.HttpApplication.wb(com.evermind.util.ByteString) javax.servlet.RequestDispatcher com.evermind.server.http.HttpApplication.um(com.evermind.util.ByteString, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse) boolean com.evermind.server.http.ef.su(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean) void com.evermind.server.http.ef.dn(java.lang.Thread) void com.evermind.util.f.run() ' Links: http://www7.software.ibm.com/vad.nsf/Data/Document2390?OpenDocumentp=1BCT=3Footer=1 http://www7.software.ibm.com/vad.nsf/Data/Document2389?OpenDocumentp=1 Best regards, Stanislav Bernatsky
Re: Orionserver php
Yes it does, and very well indeed. Nice thing is that PHP can interact with Java objects (such as EJB's) so it makes for a nice presentation layer. I await the flames. -Joe Walnes At 10:19 12/12/2000 +0200, you wrote: Hello folks, has anyone mixed orionserver and php? If you don't want to install Apache, but enable php, will it run over orionserver? Regards, Jukka
Re: Faster encryption
-Original Message- From: [EMAIL PROTECTED] Subject: Faster encryption I noticed a TPS drop (transactions per second) of factor four when I benchmarked my application using 128 bit SSL encryption (5 client threads) compared to non-encrypted benchmarking. I know that the SSL layer is pluggable in Orion, I use the standard one that comes with Orion 1.4.0. Is there a faster implementation of SSL for Java/Orion out there, maybe a native code solution? Or is the standard encryption package already using native code for the most critical sections? I guess not, as I have used C++ packages for encryption previously and not noticed such CPU eating behaviour. Another option is to put Apache in front of your Orion server and let it handle SSL. Since mod_ssl is written in native code with performance in mind, it will generally be faster than a Java implementation. I think the next best alternative is to start load balancing across multiple web servers. Serge Knystautas Loki Technologies http://www.lokitech.com/
SV: Orionserver php
This is actually VERY easy to do, just compile a normal php cgi executable without apache integration and install it in your path... Dont touch anything in orion, but restart it... Then make a file in your default webapp or something containing the following to test if it works: info.php - filename contents: ?php info(); ? If this shows a nice page with php information youre off and running :) Klaus Myrseth -Opprinnelig melding- Fra: Joe Walnes [mailto:[EMAIL PROTECTED]] Sendt: 12. desember 2000 13:07 Til: Orion-Interest Emne: Re: Orionserver php Yes it does, and very well indeed. Nice thing is that PHP can interact with Java objects (such as EJB's) so it makes for a nice presentation layer. I await the flames. -Joe Walnes At 10:19 12/12/2000 +0200, you wrote: Hello folks, has anyone mixed orionserver and php? If you don't want to install Apache, but enable php, will it run over orionserver? Regards, Jukka
RE: Faster encryption
I did a check upon the JSSE spec. It comes in two versions. One for the US and one for non-US countries. The international version does not allow other "service providers" to be plugged-in, thus I am stuck with the slow performance of the Sun JSSE implementation :-((( I hate it when those morons at the US export agency make every effort to hinder the spread of good technology :-( Seems we have to go for hardware encryption to gain speed or set up a cluster of, say, 8 PCs just to get acceptable performance using the JSSE with 128 bit encryption. BTW do anyone know of a native code implementation of JSSE or a significantly faster implementation? /David -Ursprungligt meddelande- Från: Michael S. Kelly [mailto:[EMAIL PROTECTED]] Skickat: den 12 december 2000 01:37 Till: Orion-Interest Ämne: RE: Faster encryption No, SSL will eat up the CPU. It takes CPU cycles to do the encryption, and the more the bits the greater the cost. This is the reason that companies like Intel have developed special hardware devices that will handle the encryption step. -=michael=- == Michael S. Kelly [EMAIL PROTECTED] _ Axian, Inc. [EMAIL PROTECTED] // |_ __(_) ___ _ __ 4800 SW Griffith Dr., Ste. 202 //| |\\/ /| |/ _ \| '_ \ Beaverton, OR 97005 USA _//_| | / / | | |_| | | | | Voice: (503)644-6106 x122 (( // |_|/_/\\|_|\_/|_|_| |_| Fax: (503)643-8425 ``-'' ``-'' http://www2.axian.com Software Consulting and Training == -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of David Ekholm Sent: Monday, December 11, 2000 1:07 AM To: Orion-Interest Subject: Faster encryption I noticed a TPS drop (transactions per second) of factor four when I benchmarked my application using 128 bit SSL encryption (5 client threads) compared to non-encrypted benchmarking. I know that the SSL layer is pluggable in Orion, I use the standard one that comes with Orion 1.4.0. Is there a faster implementation of SSL for Java/Orion out there, maybe a native code solution? Or is the standard encryption package already using native code for the most critical sections? I guess not, as I have used C++ packages for encryption previously and not noticed such CPU eating behaviour. /David "The Las Vegas of Online Gaming" David Ekholm System Architect Hammarby Kajväg 14, 120 30 Stockholm tel: +46 (0)8 55 69 67 11 mob: +46 (0)70 486 77 38 fax: +46 (0)8 55 69 67 07 icq: 410993
RE: UserManagers
Hi, Juan We haven't done anything remarkable with EJBUserManager; simple declarations in one or more appropriate ejb-jar.xml files, and in orion-application.xml. The 2 tables (user and group) were successfully created, we loaded up some user data of our own, and our app has since successfully added, removed, and modified user data using the EJBUserManager interface methods. The backing database is Oracle, incidentally. As with the DataSourceUserManager we had to hack out SQL-based fixes for the group methods, like addToGroup(), in order to support user management. There seems to be some kind of obfuscation problem still happening here, if I recall correctly. Authorization against the user data via RoleManager, using this user data, appears to work correctly. So, we haven't "implemented" _a_ EJBUserManager; we just used the stuff already there, and with some hacks it seems to work OK. Arved Sandstrom -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Juan Lorandi (Chile) Sent: Monday, December 11, 2000 4:44 PM To: Orion-Interest Subject: UserManagers Guys, anybody has succesfully implemented en EJBUserManager ? I have to deploy my app in a cluster and XMLUserManager won't do... I' ve had, in the past, decompiled DataSourceUserManager and recompiled it to fix the various bugs in the implementation, but regretably, I'm working in a different country and don't have any of the src... Anybody looked into EJBUserManager and knows it doesn't work as shipped either? that info would help, as I would directly code my own Datasource usermanager... TIA JP
Re: Orionserver php
You're a dork! On Tue, 12 Dec 2000, Joe Walnes wrote: Yes it does, and very well indeed. Nice thing is that PHP can interact with Java objects (such as EJB's) so it makes for a nice presentation layer. I await the flames. -Joe Walnes At 10:19 12/12/2000 +0200, you wrote: Hello folks, has anyone mixed orionserver and php? If you don't want to install Apache, but enable php, will it run over orionserver? Regards, Jukka --- Joseph B. Ottinger [EMAIL PROTECTED] http://cupid.suninternet.com/~joeo HOMES.COM Developer
Re: SV: Orionserver php
Or, if you're feeling daring... Compile PHP as a servlet and then place the classes and necessary servlet-mappings in your web-app. Then from your PHP, you can do stuff like: % $ctx = new Java("javax.naming.InitialContext"); $myHome = $ctx-lookup("ejb/MyBean"); $me = $myHome-findByPrimaryKey($id); % Name: %= $me-name % Age: %= $me-age % (hypothetical example). It's nice because servlet/JSP controllers can forward to or include PHP pages as if they are normal servlet/JSP pages, and PHP can access EJB's, ServletRequest, etc etc. Useful when Java is too scarey for web-developers. -Joe At 13:35 12/12/2000 +0100, [EMAIL PROTECTED] wrote: This is actually VERY easy to do, just compile a normal php cgi executable without apache integration and install it in your path... Dont touch anything in orion, but restart it... Then make a file in your default webapp or something containing the following to test if it works: info.php - filename contents: ?php info(); ? If this shows a nice page with php information youre off and running :) Klaus Myrseth -Opprinnelig melding- Fra: Joe Walnes [mailto:[EMAIL PROTECTED]] Sendt: 12. desember 2000 13:07 Til: Orion-Interest Emne: Re: Orionserver php Yes it does, and very well indeed. Nice thing is that PHP can interact with Java objects (such as EJB's) so it makes for a nice presentation layer. I await the flames. -Joe Walnes At 10:19 12/12/2000 +0200, you wrote: Hello folks, has anyone mixed orionserver and php? If you don't want to install Apache, but enable php, will it run over orionserver? Regards, Jukka
Re: SSL Singletons
Hi, I don't know, my guess is yes they are replicated. Do you have any log messages in your singletons?That's how I'm going to test my singletons with SSL to see if there are multiple instance's. Anybody know the answer to the original question below? Thanks. Ismael Blesa Part wrote: Hi Todd, I have also the same problem. Do you know how singleton are treated by the Orion LoadBalancer. Are these classes replicated on all the OrionServers? Todd Renner wrote: We recently implemented SSL using a Thawte cert. We have one ear file that is used by both the secure and non secure web sites with the session shared between them. We have several singleton classes used to hold *lots* of data which gets used throughout the application. We also have our own connection pooling. By implementing SSL this way have we created two instances of all our singletons and pooling classes? If this is the case then we are wasting resources and need to come up with a better solution. Any thoughts?Thanks much! Todd Renner Bell Howell
Re: Faster encryption
Yes you can do this, but if you want client authentication how do you configure Orion to get Digital Certificates from Apache. Serge Knystautas wrote: -Original Message- From: [EMAIL PROTECTED] Subject: Faster encryption I noticed a TPS drop (transactions per second) of factor four when I benchmarked my application using 128 bit SSL encryption (5 client threads) compared to non-encrypted benchmarking. I know that the SSL layer is pluggable in Orion, I use the standard one that comes with Orion 1.4.0. Is there a faster implementation of SSL for Java/Orion out there, maybe a native code solution? Or is the standard encryption package already using native code for the most critical sections? I guess not, as I have used C++ packages for encryption previously and not noticed such CPU eating behaviour. Another option is to put Apache in front of your Orion server and let it handle SSL. Since mod_ssl is written in native code with performance in mind, it will generally be faster than a Java implementation. I think the next best alternative is to start load balancing across multiple web servers. Serge Knystautas Loki Technologies http://www.lokitech.com/
Re: restarting orion-server
Someone mentioned earlier that orion doesn't stop if you have started some threads on your own, that still are running, make sure to check that they don't defunct. - Original Message - From: "Marcus Lankenau" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Tuesday, December 12, 2000 9:29 AM Subject: Re: restarting orion-server Hi Michael! "Michael S. Kelly" wrote: Have tried telneting into your server and executing the following at the command prompt? java -jar admin.jar ormi://localhost/ admin 123 -restart "admin" is a user name with administration permissions and "123" is the password (see the principals.xml config file). Yes I did, but without success.It seems that the server does not shutdown. When using shutdown (with admin-tool) the server does not stop. Only -shutdown force does the job. Marcus Lankenau
JMS and distributed EJBs
Hi! I need some help about JMS configuration. My problem is: I have 2 orion servers, orionA and orionB, I have configured my servers like this: orionA (rmi.xml): server host="orionB" username="admin" password="admin" / orionB (rmi.xml): server host="orionA" username="admin" password="admin" / And I deployed an aplications which have 2 beans Bean1: session bean Bean2: MessageDriven In my orion-application-jar.xml i put: orionA (orion-application-jar.xml): ejb-module remote="false" path="Bean1" / ejb-module remote="true" path="Bean2" / orionB (orion-application-jar.xml): ejb-module remote="true" path="Bean1" / ejb-module remote="false" path="Bean2" / I use the orionB in my jndi.property in my client to use Bean1 and this work fine, but must Bean1 use JMS to call Bean2 and Bean2 recieves nothing. If I deploy the 2 beans in 1 orion, this work correctly, but in 2 orions the JMS does not work correctly. Any ideas? Thanks, Esteban
RE: please help me, from yoursUrey
JavaMail API from Sun is all you need. It contains both smtp and pop3 implementation and all documents on how to use them. Kevin -Original Message- From: ureyurey [mailto:[EMAIL PROTECTED]] Sent: Monday, December 11, 2000 7:12 PM To: Orion-Interest Cc: [EMAIL PROTECTED] Subject: please help me, from yoursUrey Dear Sir. Could you please tell me how to use JavaMail API to send and receive mails on Orion? Did the Orion provide the service of the SMTP,POP3...£¿ What's required for us to use JavaMail API to send and receive mails on Orion? and do I need to install a mail server to provide the service of SMTP,POP3 when i use JavaMail API to send and receive mails on Orion£¿ Thanks a lot, yoursUrey - Original Message - From: "Daniel C. DiCesare" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Monday, December 11, 2000 4:52 PM Subject: Re: Anyone help me of Javamail ? I maybe able to help. What is the question? -Danno - Original Message - From: "ureyurey" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, December 11, 2000 5:43 AM Subject: Anyone help me of Javamail ? hi, i'm trying to send recieve mails using javamail api ejb. pls..., anyone help me out. write in details... thanks yoursUrey __ ==ETH;Acir c;Agrave;Euml;Atilde;acirc;¡¤Ntilde;micro;ccedil; ¡ÁOacute;Oacute;Ecirc;Iuml;auml; http://mail.sina.com.cn ETH;Acirc;Agrave;Euml;Iacute;AElig;sup3;ouml;¡ãAcirc;Ocirc;Euml; para;Igrave;ETH;Aring;Iuml;cent;Ecirc;Ouml;raquo;¨²micro;atilde;s up2;yen;¡¤thorn;Icirc;ntilde; http://sms.sina.com.cn/ __ ==ÐÂÀËÃâ·Ñµç ×ÓÓÊÏä http://mail.sina.com.cn ÐÂÀËÍƳö°ÂÔ˶ÌÐÅÏ¢ÊÖ»úµã²¥·þÎñ http://sms.sina.com.cn/
Deployment problems!
Title: Deployment problems! I'm new to Orion Server and I'm having problems setting up my EJB beans. I put all my .jar files in one .ear file. My application.xml looks like this ?xml version=1.0? !DOCTYPE application PUBLIC -//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN http://java.sun.com/j2ee/dtds/application_1_2.dtd application display-name (rules!)/display-name module ejb1x2ServiceEJB.jar/ejb /module module ejbbgp.jar/ejb /module module ejbGGService.jar/ejb /module module ejbReportService.jar/ejb /module /application and the server.xml looks like this application name=BGP path=../applications/All4Services.ear / library path=c:\orion\lib / library path=c:\orion\lib\bgp.jar / library path=c:\orion\lib\ReportService.jar / library path=c:\orion\lib\GGService.jar / library path=c:\orion\lib\BrokerServlet.jar / library path=c:\orion\lib\1x2ServiceEJB.jar / The beans in bgp.jar works fine when i access them, but when i am accessing the beans that are in the GGService.jar file i'm having problems... Here is the stack trace... javax.naming.NamingException: Not in an application scope - start Orion with the -userThreads switch if using user-created threads at com.evermind.server.g3.bi(JAX) at com.evermind.naming.jx.lookup(JAX) at javax.naming.InitialContext.lookup(Unknown Source) at com.betware.bgp.client.BwBrokerModel.getGGService(BwBrokerModel.java: 1713) at com.betware.bgp.client.BwBrokerModel.getCart(BwBrokerModel.java:694) I have tried to start Orion with -userThreads switch on but it doesnt matter... What I am i doing wrong? Hörður Birgisson Programmer at Betware
Re: Faster encryption
- Original Message - From: "Ismael Blesa Part" [EMAIL PROTECTED] Yes you can do this, but if you want client authentication how do you configure Orion to get Digital Certificates from Apache. I believe you can configure Apache to pass along the SSL certificate information as environment variables, although I've never actually tested or seen this working. I know when you configure mod_ssl, there's a parameter to pass these SSL params to CGI programs, so I would hope this would work with the way Orion puts Apache in front of it (using the reverse proxy). Hmmm...maybe not... maybe something like mod_jk or mod_ajp that Tomcat uses to hook into Apache would work, but the more I think about it, I'm thinking this would be a problem with the Apache-Orion architecture. Sorry... Serge Knystautas Loki Technologies http://www.lokitech.com/
RE: Singleton classes and Clustering
wrongly singletons are kinda prohibited from EJB because it usually doesn´t allow for linear scaling... perhaps if you could use a single server for singletons, with each machine in the cluster pointing to it? How about a BMP EntityBean backed up by a table that does the job? (moving the bottleneck to the DB) JP -Original Message- From: Ismael Blesa Part [mailto:[EMAIL PROTECTED]] Sent: Martes, 12 de Diciembre de 2000 5:28 To: Orion-Interest Subject: Singleton classes and Clustering In my application I use somo singleton classes to store some data that is common to all the sessions. Noy I want to use LoadBalancing and Clustering from Orion, how Singleton classes are treated by Orion when LoadBalancing and Clusteing are used?
RE: More than one InitialContext
It looks like this is a bug if coming from a client-application. It seems if you create a initial context within the same instance of a class, and then close and try to re-open another InitialContext it will fail. I tested this again today making my test class runnable and spawning three instances of it off into three threads. This works fine, but if you attempt to make the same instance of one of the threads call InitialCOntext twice(after closing and setting it to null just in case) it throws the NullPointerException. I am currently in conversation with Karl about this. It has been reported as bug #210,215, 216. Hopefully this will get resolved soon. Curruently it is forcing us to look at other servers as a fallback plan until this can be fixed. Later Greg -Original Message- From: Guilherme Ceschiatti [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 03, 2000 9:12 AM To: Orion-Interest Subject: More than one InitialContext Hi. I'd like to konw if it's possible to have more than on InitialContext in the same app, one for each app server I have. -- []s Guilherme Ceschiatti http://listando.net [EMAIL PROTECTED]
Re: SV: Off topic: development tools
On Tuesday 12 December 2000 01:47, Chris Bartling wrote: I'm using EJBDoclet and Apache Ant 1.2 for my EJB development with Orion. Easy to setup and use, extensible (both EJBDoclet and Ant allow extension by subclass/interface implementation). I also use JUnit for all EJB unit tests (testing home and remote interfaces) and integration tests. Total cost: $0. All of these tools are open source and support our lightweight development process, loosely based on XP. As for the IDE, I use UltraEdit-32 for Java files and HomeSite 4.5.1 for JSP work. All seems to work well together. From my standpoint, I want a repeatable deployment process, all these tools used in conjunction give me that. Hi, Chirs. Could you please send the URL's of these apps? []s Guilherme Ceschiatti [EMAIL PROTECTED]
Re: Deployment problems!
Hi, I'm fairly new to Orion Server, as well, but it looks like this has to do with looking up the name of the EJB, not with threads. The error has to do with the InitialContext and com.evermind.naming. In particular, the javax.naming.InitialContext.lookup(Unknown Source) leads me to believe that your client can't find the naming service. Without the naming service, the client cannot look up the home interface for the EJB (or a remote CORBA reference if the GGService is a CORBA service). Looks like the client is trying to call a "getCart" method, which is looking for a service (is this a CORBA service or an EJB?). The error is that the client is not in the application's scope -- it can't find the name because the whatever naming service is not available in the InitialContext for the client. Clients do not interact directly with EJBs, rather, they are isolated by the EJB container (in this case, the container is provided by the Orion product). A client must look up the name of the EJB (its "home"). Typically, this is done via JNDI (Java Naming and Directory Interface), but can also be found via CORBA's COS Naming, and other naming mechanisms. In the GGService.jar, you should have a configuration file called ejb-jar.xml. This is NOT where you assign the JNDI name to the EJB components. In fact, in the Orion documentation (you can download this -- see ejb-jar.xml.html), it states, "There is no architected relationship between the ejb-name in the deployment descriptor and the JNDI name that the Deployer will assign to the enterprise bean's home." The JNDI mapping is provided by the Deployer (not the component developer) and/or is automatically assigned by Orion. That is, you can let Orion automatically assign the JNDI name, or you can edit the configuration file yourself. Per orion-ejb-jar.xml.html: "It is located in ORION_HOME/application-deployments/deploymentName/jarname(.jar)/orion-ejb-ja r.xml or orion/orion-ejb-jar.xml below the ejb-jar root if no deployment-directory is specified in server.xml." You should be able to edit this directly after Orion deploys the EJB defined in your .ear file (when Orion deploys it, Orion creates a directory for your application under ORION_HOME/application-deployments). I don't know what client you are trying to use. If it's a web client, then the orion-web.xml file needs to have the proper JNDI name(s) for your EJB resources. If the client is a Java application run from the command line, you may need to have a jndi.properties file for setting how names are looked up (see the EJB product demo in ORION_HOME/demo/ejb/product for an example using jndi.properties, noting the naming factory and provider settings). Also, such a client could be using the wrong name in it's source code to look up the EJB's home. Look for some client code that deals with the InitialContext and finding the EJB home. I hope this helps, but I could be totally off target, so I hope some other Orion users join in. Jay Armstrong [EMAIL PROTECTED] At 04:02 PM 12/12/00 -, you wrote: I'm new to Orion Server and I'm having problems setting up my EJB beans. I put all my .jar files in one .ear file. My application.xml looks like this "" """http://java.sun.com/j2ee/dtds/application_1_2.dtd" and the server.xml looks like this "" "" "" "" "" "" The beans in bgp.jar works fine when i access them, but when i am accessing the beans that are in the GGService.jar file i'm having problems... Here is the stack trace... javax.naming.NamingException: Not in an application scope - start Orion with the -userThreads switch if using user-created threads at com.evermind.server.g3.bi(JAX) at com.evermind.naming.jx.lookup(JAX) at javax.naming.InitialContext.lookup(Unknown Source) at com.betware.bgp.client.BwBrokerModel.getGGService(BwBrokerModel.java: 1713) at com.betware.bgp.client.BwBrokerModel.getCart(BwBrokerModel.java:694) I have tried to start Orion with -userThreads switch on but it doesnt matter... What I am i doing wrong? Hörður Birgisson Programmer at Betware
Re: SV: Off topic: development tools
Ant: http://jakarta.apache.org/ant/ EJBDoclet: http://www.dreambean.com/ejbdoclet.html JUnit: http://www.junit.org/ XP: http://www.xprogramming.com/ (Not a tool but a development methodology) UltraEdit: http://www.ultraedit.com/ I fully endorse and encourage the use of Ant, EJBDoclet, and JUnit. They're all incredible tools. UltraEdit, well... it's a nice Notepad replacement but hardly an editor. As for Extreme Programming, it's certainly appropriately named. I wonder if anyone's actually adopted the process in it's entirety. I think anyone doing "internet" development these days is doing something "loosely based on XP" whether they realize it or not. -- Jason Rimmer "If it isn't true, it should be, [EMAIL PROTECTED] and if we could afford it, it would be." - Original Message - From: "Guilherme Ceschiatti" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Tuesday, December 12, 2000 1:23 PM Subject: Re: SV: Off topic: development tools On Tuesday 12 December 2000 01:47, Chris Bartling wrote: I'm using EJBDoclet and Apache Ant 1.2 for my EJB development with Orion. Easy to setup and use, extensible (both EJBDoclet and Ant allow extension by subclass/interface implementation). I also use JUnit for all EJB unit tests (testing home and remote interfaces) and integration tests. Total cost: $0. All of these tools are open source and support our lightweight development process, loosely based on XP. As for the IDE, I use UltraEdit-32 for Java files and HomeSite 4.5.1 for JSP work. All seems to work well together. From my standpoint, I want a repeatable deployment process, all these tools used in conjunction give me that. Hi, Chirs. Could you please send the URL's of these apps? []s Guilherme Ceschiatti [EMAIL PROTECTED]
Orion JSP form validation and redisplay...
Hello, Does orion have anything that helps with capturing the values of a form, and then if validation fails, --allowing you to re-display the form with the submitted values? Keith
Re: SV: Orionserver php
what exactly do you mean by "compile PHP as a servlet"? Isnt PHP written in C/C++? - Original Message - From: "Joe Walnes" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Tuesday, December 12, 2000 3:14 PM Subject: Re: SV: Orionserver php Or, if you're feeling daring... Compile PHP as a servlet and then place the classes and necessary servlet-mappings in your web-app. Then from your PHP, you can do stuff like: % $ctx = new Java("javax.naming.InitialContext"); $myHome = $ctx-lookup("ejb/MyBean"); $me = $myHome-findByPrimaryKey($id); % Name: %= $me-name % Age: %= $me-age % (hypothetical example). It's nice because servlet/JSP controllers can forward to or include PHP pages as if they are normal servlet/JSP pages, and PHP can access EJB's, ServletRequest, etc etc. Useful when Java is too scarey for web-developers. -Joe At 13:35 12/12/2000 +0100, [EMAIL PROTECTED] wrote: This is actually VERY easy to do, just compile a normal php cgi executable without apache integration and install it in your path... Dont touch anything in orion, but restart it... Then make a file in your default webapp or something containing the following to test if it works: info.php - filename contents: ?php info(); ? If this shows a nice page with php information youre off and running :) Klaus Myrseth -Opprinnelig melding- Fra: Joe Walnes [mailto:[EMAIL PROTECTED]] Sendt: 12. desember 2000 13:07 Til: Orion-Interest Emne: Re: Orionserver php Yes it does, and very well indeed. Nice thing is that PHP can interact with Java objects (such as EJB's) so it makes for a nice presentation layer. I await the flames. -Joe Walnes At 10:19 12/12/2000 +0200, you wrote: Hello folks, has anyone mixed orionserver and php? If you don't want to install Apache, but enable php, will it run over orionserver? Regards, Jukka
common jars
Hello all, Does anyone know about deploying an ear file that contains ejb jars with dependencies on a common non-ejb. For example, I have the following situation below: ejb1.jar ejb2.jar common.jar Both ejb1.jar and ejb2.jar depend on common.jar, which has no ejbs. The problem comes when I deploy. How do I deploy the two ejb jars so they can see common.jar. I just tried creating the directory META-INF/lib and adding the common.jar there, but that didn't work. Any ideas. Thanks, Matt
RE: SV: Off topic: development tools
For using JUnit with Orion, you might want to look at: http://www.infohazard.org/junitee There is also another similar project called J2EEUnit at http://j2eeunit.sourceforge.net I haven't tried the later, but it looks a lot more complicated. It provides the HttpRequest, HttpSession, etc to the test case - although why that would be useful is somewhat of a mystery to me, since IMHO important logic should all be in EJBs :-) Jeff Schnitzer [EMAIL PROTECTED] -Original Message- From: Jason Rimmer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 12, 2000 12:13 PM To: Orion-Interest Subject: Re: SV: Off topic: development tools Ant: http://jakarta.apache.org/ant/ EJBDoclet: http://www.dreambean.com/ejbdoclet.html JUnit: http://www.junit.org/ XP: http://www.xprogramming.com/ (Not a tool but a development methodology) UltraEdit: http://www.ultraedit.com/ I fully endorse and encourage the use of Ant, EJBDoclet, and JUnit. They're all incredible tools. UltraEdit, well... it's a nice Notepad replacement but hardly an editor. As for Extreme Programming, it's certainly appropriately named. I wonder if anyone's actually adopted the process in it's entirety. I think anyone doing "internet" development these days is doing something "loosely based on XP" whether they realize it or not. -- Jason Rimmer "If it isn't true, it should be, [EMAIL PROTECTED] and if we could afford it, it would be." - Original Message - From: "Guilherme Ceschiatti" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Tuesday, December 12, 2000 1:23 PM Subject: Re: SV: Off topic: development tools On Tuesday 12 December 2000 01:47, Chris Bartling wrote: I'm using EJBDoclet and Apache Ant 1.2 for my EJB development with Orion. Easy to setup and use, extensible (both EJBDoclet and Ant allow extension by subclass/interface implementation). I also use JUnit for all EJB unit tests (testing home and remote interfaces) and integration tests. Total cost: $0. All of these tools are open source and support our lightweight development process, loosely based on XP. As for the IDE, I use UltraEdit-32 for Java files and HomeSite 4.5.1 for JSP work. All seems to work well together. From my standpoint, I want a repeatable deployment process, all these tools used in conjunction give me that. Hi, Chirs. Could you please send the URL's of these apps? []s Guilherme Ceschiatti [EMAIL PROTECTED]
BMP example wanted
Hi Folks, Anyone know where can I find a complete BMP source example for Orion? Thanks in advance Chris
RE: Orion JSP form validation and redisplay...
I've attached an example of how I do it. I believe this is the "standard" J2EE pattern for form processing. Basically, you use a single bean (and the jsp:setProperty tag) to hold the submitted values and any errors that might result. Both the input page and the submittal page use the same bean instance. Jeff Schnitzer [EMAIL PROTECTED] -Original Message- From: Keith Kwiatek [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 12, 2000 4:15 PM To: Orion-Interest Subject: Orion JSP form validation and redisplay... Hello, Does orion have anything that helps with capturing the values of a form, and then if validation fails, --allowing you to re-display the form with the submitted values? Keith form_example.zip
Classloader issues using Xalan with Orion
My web app works fine except for some Xalan transform issues (involving extension fuctions). These dont work because in a typical deployment the classes cant be found even though the jars live in the orion/lib or myapplication/WEB-INF/lib directory. I guess the extension functions of Xalan have their own class loaders which seem to ignore the classloader(s) used by orion. A solution was posted a while ago saying to put all the extension classes/jars in the jre/lib/ext directory which does fix the problem. However this isnt all that nice a solution for deployment. Id rather leave the classes where they are and configure Orion accordingly. Is there any way to start orion using the -jar orion.jar commandline but to also maintain a classpath in the VM? Has anyone else had this particular problem or a similar problem with other 3rd party software? Any ideas?
RE: SV: Off topic: development tools
Sure. Here they are... EJBDoclet: http://www.dreambean.com JUnit: http://www.junit.org Apache Ant and other Apache Java initiatives: http://jakarta.apache.org UltraEdit-32: http://www.ultraedit.com HomeSite: http://www.allaire.com Hope this helps. -- chris -- -Original Message- From: Guilherme Ceschiatti [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 12, 2000 12:24 PM To: Orion-Interest; Chris Bartling Subject: Re: SV: Off topic: development tools On Tuesday 12 December 2000 01:47, Chris Bartling wrote: I'm using EJBDoclet and Apache Ant 1.2 for my EJB development with Orion. Easy to setup and use, extensible (both EJBDoclet and Ant allow extension by subclass/interface implementation). I also use JUnit for all EJB unit tests (testing home and remote interfaces) and integration tests. Total cost: $0. All of these tools are open source and support our lightweight development process, loosely based on XP. As for the IDE, I use UltraEdit-32 for Java files and HomeSite 4.5.1 for JSP work. All seems to work well together. From my standpoint, I want a repeatable deployment process, all these tools used in conjunction give me that. Hi, Chirs. Could you please send the URL's of these apps? []s Guilherme Ceschiatti [EMAIL PROTECTED]
Re: common jars
Matt, Here's a manifest of one of my .ear files in which Ibundle a couple of common non-ejb classes: META-INF/MANIFEST.MF lib/atoc-app2-common.jar lib/atoc-app2-xcpt.jar META-INF/application.xml META-INF/orion-application.xml atoc-app2-ejb.jar atoc-app2-web.war counter.jar Hope that helps. Hitesh Matthew Domarotsky wrote: Hello all, Does anyone know about deploying an ear file that contains ejb jars with dependencies on a common non-ejb. For example, I have the following situation below: ejb1.jar ejb2.jar common.jar Both ejb1.jar and ejb2.jar depend on common.jar, which has no ejbs. The problem comes when I deploy. How do I deploy the two ejb jars so they can see common.jar. I just tried creating the directory META-INF/lib and adding the common.jar there, but that didn't work. Any ideas. Thanks, Matt
RE: Orion JSP form validation and redisplay...
From: Keith Kwiatek [mailto:[EMAIL PROTECTED]] Does orion have anything that helps with capturing the values of a form, and then if validation fails, --allowing you to re-display the form with the submitted values? Hi Keith! Jakarta Struts has a nice framework to do this. It implements a Model-View-Controller design pattern on top of JSPs and servlets. Please check out http://jakarta.apache.org/struts/ Joni
RE: common jars
Hi , Just put "common.jar" under Orion's lib Dir , exactly the same for the Oracle driver (classes111.zip) :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Matthew Domarotsky Sent: Wednesday, December 13, 2000 12:05 AM To: Orion-Interest Subject: common jars Hello all, Does anyone know about deploying an ear file that contains ejb jars with dependencies on a common non-ejb. For example, I have the following situation below: ejb1.jar ejb2.jar common.jar Both ejb1.jar and ejb2.jar depend on common.jar, which has no ejbs. The problem comes when I deploy. How do I deploy the two ejb jars so they can see common.jar. I just tried creating the directory META-INF/lib and adding the common.jar there, but that didn't work. Any ideas. Thanks, Matt
Distributed Transaction without EJB.
Hi All, Is it possible to perform distributed transaction using JTA/JTS from a servlet without using EJB at all? From reading some of the past posting, one of the benefits of using EJB over Servlets is that EJB can provide distributed transaction but not servlets. However, isn't it true that the feature is provided via JTA/JTS and therefore can be provided using servlets??? Thanks Winston _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
connection pooling
dear all, do requests for EJB UserTransaction objectsor db connections accessible through a Context get handled in a *queued* manner under orion?, or does it just notifyAll() the worker threads and let them fend for themselves? we're currently doing our own database connection pooling, about to switch over to UserTransaction objects + using orion's db connection pooling. i had to modify the database toolkit we are using since it implemented a "free for all" approach to handing out newly freed up connections to worker threads, i.e. notifyAll(), which didn't guarantee that threads received a db connection in the order in which they were requested. greg