RE: BodyTag Tutorials
Hi Shirley, that lesson was actually done before the big config switch. I will update it this weekend. For now, the /WEB-INF/ classes directory of the web-app you are using are a suitable dir for Servlet. Im that that lesson has not been updated before, missed it. WR -Original Message-From: Shirley Singleton [mailto:[EMAIL PROTECTED]]Sent: den 12 september 2000 06:34To: Orion-InterestSubject: BodyTag Tutorials I am going thru the tutorials and have a problem with the lessons that deal with body tags. In the documentation you reference the /servlets/ directory. I have created a servlets directory and have set it in the path of the global-applications xml but I have not had any success with the tutorials. I would appreciate any help you can give me regarding this information. ThanksShirley Singleton
Re: BodyTag Tutorials
servlet directory is actually being mapped to the orion\default-web-app\web-inf\classes Shirley Singleton wrote: I am going thru the tutorials and have a problem with the lessons that deal with body tags. In the documentation you reference the /servlets/ directory. I have created a servlets directory and have set it in the path of the global-applications xml but I have not had any success with the tutorials. I would appreciate any help you can give me regarding this information. Thanks Shirley Singleton
BodyTag Tutorials
I am going thru the tutorials and have a problem with the lessons that deal with body tags. In the documentation you reference the /servlets/ directory. I have created a servlets directory and have set it in the path of the global-applications xml but I have not had any success with the tutorials. I would appreciate any help you can give me regarding this information. ThanksShirley Singleton
Re: What does "User interference with CMP transaction" imply?
I found the problem. I was failing to close a database connection. Seems a rather strange error though. Simon. - Original Message - From: Simon Harris To: Orion-Interest Sent: Tuesday, September 12, 2000 1:39 PM Subject: What does "User interference with CMP transaction" imply? I have no code which explicitly manipulates transactions (ie nogetUserTransaction() no setRollBackOnly(), etc). I get this error when ejbLoad() fails with an AssertionError calling a method on an entity bean with a transaction attribute of'NotSupported' from a stateless session bean with a transaction attribute of'Required'.Orion server then locks up.com.evermind.server.rmi.OrionRemoteException: User interference with CMPtransaction (illegal termination of transaction) atIGateway_StatelessSessionBeanWrapper10.handleMessage(IGateway_StatelessSessionBeanWrapper10.java:192) at java.lang.reflect.Method.invoke(Native Method) at com.evermind.server.rmi.bd.run(JAX) at com.evermind.server.rmi.bb.hw(JAX) at com.evermind.server.rmi.bb.run(JAX) at com.evermind.util.f.run(JAX)at connection to localhost/127.0.0.1 as admin at com.evermind.server.rmi.bb.invokeMethod(JAX) at com.evermind.server.rmi.a2.invoke(JAX) at __Proxy2.handleMessage(Unknown Source) at cats.gateway.GatewayProxy.handleMessage(GatewayProxy.java:36) at cats.gateway.external.Loader.process(Loader.java:47) at cats.gateway.external.DirWatcher.run(DirWatcher.java:84)
What does "User interference with CMP transaction" imply?
I have no code which explicitly manipulates transactions (ie nogetUserTransaction() no setRollBackOnly(), etc). I get this error when ejbLoad() fails with an AssertionError calling a method on an entity bean with a transaction attribute of'NotSupported' from a stateless session bean with a transaction attribute of'Required'.Orion server then locks up.com.evermind.server.rmi.OrionRemoteException: User interference with CMPtransaction (illegal termination of transaction) atIGateway_StatelessSessionBeanWrapper10.handleMessage(IGateway_StatelessSessionBeanWrapper10.java:192) at java.lang.reflect.Method.invoke(Native Method) at com.evermind.server.rmi.bd.run(JAX) at com.evermind.server.rmi.bb.hw(JAX) at com.evermind.server.rmi.bb.run(JAX) at com.evermind.util.f.run(JAX)at connection to localhost/127.0.0.1 as admin at com.evermind.server.rmi.bb.invokeMethod(JAX) at com.evermind.server.rmi.a2.invoke(JAX) at __Proxy2.handleMessage(Unknown Source) at cats.gateway.GatewayProxy.handleMessage(GatewayProxy.java:36) at cats.gateway.external.Loader.process(Loader.java:47) at cats.gateway.external.DirWatcher.run(DirWatcher.java:84)
Session/cookie problems with multiple web-apps in one application
Title: RE: classpath for third party tools Hi all, I'll be darned if I thought I had this problem licked. Here is the deal..I am running 3 web-apps in one application (one instace of Orion). Each web-app has its own context if I am not mistaken, which means that one context can not share data with any other context that is running. What I need to happen is allow 3 browsers access the 3 apps. All 3 apps point to the same one www dir on the local drive, but each has a context root name of /admin/mediaName where mediaName is radio, tv or cable. So, you would type in http://xxx.xxx.xxx.xxx/admin/radio http://xxx.xxx.xxx.xxx/admin/tv or http://xxx.xxx.xxx.xxx/admin/cable Now the problem is, each has a database associated with them (we run 3 databases, one for each media type). A special HttpSession object (String type) indicates the media type your in based on the Context path. I use the call request.getContextPath() which returns /admin/radio, /admin/tv or /admin/cable depending on what was typed, and store the Integer equivalent in the String MediaType in the HttpSession. All servlets/actions (using struts framework) use this stored value to determine what database to hit to get the data. This should work, and does seem to work if I use the same one browser to log in with. If I open two windows, and log in to radio, then cable (in the 2nd browser), then pull up a query on some stuff that, it seems to show the radio data, even though I am using a browser with the /admin/cable context in the URL line. When I run the Console and look at the HttpSession data, /admin/cable shows a MediaType of 3 (Cable) which is correct, yet it still seems to be pulling radio date. So, what I have figured out is that somehow, when I log in to radio first, then into cable, even though a HttpSession is created in the /admin/cable web-app, the actual session being retrieved is that of the /admin/radio web-app, which is the only way I can explain it getting radio data. The reason this is the only way is that the "logic" classes use the MediaType value set when the logic class is created (a call to new with its constructor being passed the media type). So, I think the problem is, why in a 2nd window, when I clearly log in to /admin/cable and the session is created (in the Orion console) in the /admin/cable web-app, is it somehow getting the /admin/radio session when the query is performed. I wish there was some way to test this. I think I have an idea, but it would be kewl if the Orion app showed an "access counter" to each object or something..if thats possible. Anyways, I just wanted to see if anyone else has ever had this problem. Before answering, I do know before Servlet 2.2, that it was impossible without some working, to allow multiple browsers of the same type (MSIE for example) to have multiple sessions going. I thought I understood the Servlet 2.2 spec to read that the context path in the URL of the request determines where it looks for the session, then would use the cookie to get the proper session for the request. It doesn't appear to be doing this for me, so if I am wrong, please enlighten me. Thanks.
RE: OR mapping of table joins for CMP
Hi Cory, Perhaps I can help a little... With CMP it is largely up to the server (orion) to decide how it will store its data. Books will generally not discuss the details of the storage precisely because it is up to the server vendor to decide. If you need complete control over the storage scheme, use BMP, not CMP. That said, it may still be quite possible for you to use CMP. In your example it looks like your two tables contain (id, first_name, job_id) and (job_id, job_description). Now, suppose you created two entity beans: - one called Job which has a primary key of job_id and a String field of job_description - one called Person which has a primary key of id, a String field of first_name, and a Job field of job_id. If you did this you would find that Orion would auto-create tables that are basically identical in form to those that you have, but probably with different names. If you now go into the orion-ejb.xml file that orion generates you can change the table and column names to those that you already have. When you have done this, you have the two tables linked transparently by Orion. Just asking for a Person will automatically retrieve the Job, and from that you can retrieve the job_description. I've skimmed a few details, but if you've played with Orion a bit I think you should be able to get it to work. Also, although what I have told you will work, I will not make any claims about this being the BEST solution for you! Nick At 05:47 PM 9/11/00 -0400, you wrote: >If I have two tables and I would like to join them using CMP how would I >accomplish that? > >So in essence I'm trying to do something like: > >select table1.id, table1.first_name, table1.job_id, table2.job_description >from table1, tables2 >where table1.job_id = table2.job_id; > >And perhaps any description on how to do the OR mapping for EJB. I have >all of the books and can not seem to find the detail that I need to do CMP. > >Thanks, > >Cory > >At 03:55 PM 9/11/00 +0100, Joe Walnes wrote: >>> Can somebody please point me to a good reference for managing >>> joins across >>> multiple tables while using CMP? There was a thread on the list that >>> somebody pointed me to previously but it did not really give the >>> information I needed. >>> >>> I just want to be able to specify tables and fields to do joins on with >>> Orion for CMP. >> >>If you could go into a bit more detail about the problem, I'm sure someone >>could help you out. >> >>This might be what you're after: >>http://www.orionsupport.com/complex-or.html >> >>-Joe Walnes >> >> >>
Re: CMP / OR tutorial, info, etc?
This is exactly what I wanted to see in my previous post. At 01:45 PM 9/11/00 -0700, Kevin Duffey wrote: RE: classpath for third party tools Hi, I am finaly getting ready to make the dive into OR / CMP. To be honest, I don't know a whole heck of a lot about it. I do know though that I want to stick to J2EE based standards while building my own site. So instead of using JDBC 1, and trying to figure out some way to map database tables to my classes, storing, searching, deleting, etc..I would like to find out where I can get more info on exactly how to use OR and CMP. I would really like to start with the basics as I don't know much about designing tables, databases, etc. I need to learn the best way(s) to model entity beans after database tables, how CMP works, O/R, etc. So any tutorials online, or even a book, would be great. Also, how does Orion work with these? Is CMP and O/R a standard with J2EE, even though each vendor can implement them in their own way? Thanks.
Re: guest, prinicipals.xml, and security roles
This message was not intended to be sent to the mailing list :-/ Ernst de Haan wrote: > Hi Jeff, > > I intend to write a document about Orions security model. If it's okay with I > will contact you sometime soon. I will attempt to address the issues you > presented too. > > Ernst > -- > http://www.jollem.com/orion-primer/ > http://www.jollem.com/orion-cmp-primer/ > > > Jeff Schnitzer wrote: > > Hi folks. > > > > I'm struggling with Orion's security model in an attempt to get my first > > entity bean working. It seems that no matter what configuration setting > > I tweak, I cannot successfully call a method on my bean's home > > interface. I always receive the exception: > > > > com.evermind.server.rmi.OrionRemoteException: guest is not allowed to > > call this EJB method, check your security settings (method-permission in > > ejb-jar.xml and security-role-mapping in orion-application.xml). > > > > The funny thing is that this is just about as vanilla a case as you can > > imagine. I'm calling the bean from a servlet, and I desire no > > authentication whatsoever. I want merely to anonymously call a method > > on the home interface. Here are a couple questions to which the answers > > might provide me much enlightenment: > > > > * Who is this "guest" person? In the default master principals.xml, > > there is a user called "anonymous" whose description implies that this > > will be the user automatically assigned to any unauthenticated user. > > Should that be "guest" so that I can assign a group (and thus a > > security-role-mapping) to the unauthenticated user? Is the name > > special, or is there some other flag that I can't see? I've tried > > adding a user with the name "guest", etc. Nothing I have tried works. > > > > * What is the relationship between the master principals.xml in the > > config directory and the principals.xml in the application deployment > > directory? I know the deployment orion-application.xml file points to > > the deployment principals.xml, but does this override or supplement the > > master config? Does it make sense to change the in the > > orion-application.xml to point to the master config, or is that > > redundant? > > > > * What does the block do in the orion-application.xml > > file? > > > > * Do I have the basic concept right? 1) a user derives their name from > > authentication, or if there is no authentication, they are assigned some > > name (presumably "guest") by default. 2) the "user" belongs to one or > > more groups, defined by one (or both?) of the principals.xml files. 3) > > the groups are mapped to security roles in the deployment > > orion-application.xml file using tags. 4) the > > security roles are mapped to actual bean method permissions in the > > bean's deployment descriptor. > > > > Somewhere this chain is broken for me, and I'm at a loss to figure out > > where. If it matters, the bean is an EJB 2.0 entity bean. The > > deployment descriptor defines a security role "users" which has > > wildcard(*) permission to the bean. The ear file's application.xml also > > defines this role. The default deployment orion-application.xml has the > > of role "users" to group "users". The master > > principals.xml has both "anonymous" and "guest" as users which belong to > > the "users" group. > > > > Both the atm and news demos work fine. I presume it is because they > > explicitly authenticate somewhere in code, but I haven't been able to > > figure out how or why. > > > > Help? :-) > > > > Thanks, > > Jeff Schnitzer > > [EMAIL PROTECTED] > > > >
Re: guest, prinicipals.xml, and security roles
Hi Jeff, I intend to write a document about Orions security model. If it's okay with I will contact you sometime soon. I will attempt to address the issues you presented too. Ernst -- http://www.jollem.com/orion-primer/ http://www.jollem.com/orion-cmp-primer/ Jeff Schnitzer wrote: > Hi folks. > > I'm struggling with Orion's security model in an attempt to get my first > entity bean working. It seems that no matter what configuration setting > I tweak, I cannot successfully call a method on my bean's home > interface. I always receive the exception: > > com.evermind.server.rmi.OrionRemoteException: guest is not allowed to > call this EJB method, check your security settings (method-permission in > ejb-jar.xml and security-role-mapping in orion-application.xml). > > The funny thing is that this is just about as vanilla a case as you can > imagine. I'm calling the bean from a servlet, and I desire no > authentication whatsoever. I want merely to anonymously call a method > on the home interface. Here are a couple questions to which the answers > might provide me much enlightenment: > > * Who is this "guest" person? In the default master principals.xml, > there is a user called "anonymous" whose description implies that this > will be the user automatically assigned to any unauthenticated user. > Should that be "guest" so that I can assign a group (and thus a > security-role-mapping) to the unauthenticated user? Is the name > special, or is there some other flag that I can't see? I've tried > adding a user with the name "guest", etc. Nothing I have tried works. > > * What is the relationship between the master principals.xml in the > config directory and the principals.xml in the application deployment > directory? I know the deployment orion-application.xml file points to > the deployment principals.xml, but does this override or supplement the > master config? Does it make sense to change the in the > orion-application.xml to point to the master config, or is that > redundant? > > * What does the block do in the orion-application.xml > file? > > * Do I have the basic concept right? 1) a user derives their name from > authentication, or if there is no authentication, they are assigned some > name (presumably "guest") by default. 2) the "user" belongs to one or > more groups, defined by one (or both?) of the principals.xml files. 3) > the groups are mapped to security roles in the deployment > orion-application.xml file using tags. 4) the > security roles are mapped to actual bean method permissions in the > bean's deployment descriptor. > > Somewhere this chain is broken for me, and I'm at a loss to figure out > where. If it matters, the bean is an EJB 2.0 entity bean. The > deployment descriptor defines a security role "users" which has > wildcard(*) permission to the bean. The ear file's application.xml also > defines this role. The default deployment orion-application.xml has the > of role "users" to group "users". The master > principals.xml has both "anonymous" and "guest" as users which belong to > the "users" group. > > Both the atm and news demos work fine. I presume it is because they > explicitly authenticate somewhere in code, but I haven't been able to > figure out how or why. > > Help? :-) > > Thanks, > Jeff Schnitzer > [EMAIL PROTECTED] > >
RE: OR mapping of table joins for CMP
If I have two tables and I would like to join them using CMP how would I accomplish that? So in essence I'm trying to do something like: select table1.id, table1.first_name, table1.job_id, table2.job_description from table1, tables2 where table1.job_id = table2.job_id; And perhaps any description on how to do the OR mapping for EJB. I have all of the books and can not seem to find the detail that I need to do CMP. Thanks, Cory At 03:55 PM 9/11/00 +0100, Joe Walnes wrote: >> Can somebody please point me to a good reference for managing >> joins across >> multiple tables while using CMP? There was a thread on the list that >> somebody pointed me to previously but it did not really give the >> information I needed. >> >> I just want to be able to specify tables and fields to do joins on with >> Orion for CMP. > >If you could go into a bit more detail about the problem, I'm sure someone >could help you out. > >This might be what you're after: >http://www.orionsupport.com/complex-or.html > >-Joe Walnes > > >
Programmatic remote shutdown/start/restart of a web-application & orion server
Hi: I know that I can use "java -jar admin.jar " from the commandline on my local machine to stop and restart a remote Orion server. This, however, requires admin.jar (and others?) on my local machine. Can someone tell me if there is a programmatic method, that does not require any installation of Orion on my local machine for any of the following, and if there is, how to do it for each case? 1. shutdown a web-application running on a remote Orion server 2. start a web-application running on a remote Orion server 3. restart a web-application running on a remote Orion server 4. shutdown a remote Orion server 5. restart a remote Orion server Again, I'm looking for a *programmatic* way to do this. If this means admin.jar on the local machine, where's the API docs for making calls of this guy without having to resort to the commandline? Thanks, Kit Cragin VP of Product Development Mongoose Technology, Inc. www.mongoosetech.com
Re: Run Orion on port80 without being root?
In *nix systems, there isnt a solution except to startup as root and then change to another user/group, like Apache does. I dont think that Java has the ability to manipulate its UID/GID without JNI code. - Original Message - From: Sach Jobb <[EMAIL PROTECTED]> To: Orion-Interest <[EMAIL PROTECTED]> Sent: Monday, September 11, 2000 1:11 PM Subject: Run Orion on port80 without being root? > Has anyone found a way of running Orion on port80 without being root? > > I'm getting ready to launch a finance based site and i'm quite concerned > about security. I've seen messages like this posted before but i have yet > to see any kind of resolution. Any ideas? > > > cheers, > sach > > %s/windows/linux/g > > > > > >
CMP / OR tutorial, info, etc?
Title: RE: classpath for third party tools Hi, I am finaly getting ready to make the dive into OR / CMP. To be honest, I don't know a whole heck of a lot about it. I do know though that I want to stick to J2EE based standards while building my own site. So instead of using JDBC 1, and trying to figure out some way to map database tables to my classes, storing, searching, deleting, etc..I would like to find out where I can get more info on exactly how to use OR and CMP. I would really like to start with the basics as I don't know much about designing tables, databases, etc. I need to learn the best way(s) to model entity beans after database tables, how CMP works, O/R, etc. So any tutorials online, or even a book, would be great. Also, how does Orion work with these? Is CMP and O/R a standard with J2EE, even though each vendor can implement them in their own way? Thanks.
Re: SUN JDK1.3 RC1 for Linux
Robert Krueger wrote: > At 09:04 11.09.00 , you wrote: > >It still crashes immediately if we leave it in JIT mode. We have to add > >-Djava.compiler=NONE, then it does okay. It still seems to have a memory > >leak, though less than it had before. > > what distribution do you use? we have used the sun beta heavily with > hotspot (-server) for a while now with occasional crashes but haven't had a > single crash with the rc in the past 2 days. > > did you try the ibm refresh from august 15th? this also runs very stable > here (SuSe 6.4 system with SMP) so far (only a few hours though ;-). With > the previous IBM 1.3 we also had serious stability problems which seem to > have disappeared now. I'll keep you posted as we keep on experimenting with > those two. in terms of performance ibm seems to be way ahead (just checked > orion deployment/startup and some heavy xml-processing). IBM was from 30% > to about 80% faster in those cases. > > robert We're on RedHat 6.1 SMP. Sun's beta refresh had a memory leak in it (with or without JIT), which still seems to be there to a lesser degree now. IBM's crashed with JIT, and would just die after a few hours without JIT (die in that the JVM was still alive but it just seemed to stop handling requests). With all the problems we're having, maybe we should upgrade Linux and then try again. Thanks, -joel shellman http://www.ants.com/
JDK 1.1 client support?
Title: JDK 1.1 client support? Is it possible to support clients running as an applet in Netscape Navigator or Internet Explorer (1.1 JVM). Don't know if Orion implemented their own versin of RMI which is compatible with a 1.1 JVM. So far I only found one J2EE server that supports this (Weblogic). Thank's Andrej Andrej Gabara [EMAIL PROTECTED] (408) 543-4452 Kintana, Inc. http://www.kintana.com (408) 752-8460 FAX
RE: Using an ORB from Inprise
This was an absolutely huge pain in the bum to finally sort out for me I finally have managed to get this working using java.exe and the Inprise ORB My startup commands running java.exe are java -Dxml.parser=xerces -Djavax.rmi.CORBA.UtilClass=com.inprise.vbroker.rmi .CORBA.UtilImpl -Djavax.rmi.CORBA.StubClass=com.inprise.vbroker.rmi.CORBA.St ubImpl -Djavax.rmi.PortableRemoteObjectClass=com.inprise.vbroker.rmi.Portabl eRemoteObjectImpl -Dvbroker.agent.port=14222 -Dorg.omg.CORBA.ORBSingletonCla ss=com.inprise.vbroker.orb.ORB -Dorg.omg.CORBA.ORBClass=com.inprise.vbroker. orb.ORB -jar orion.jar To get this working I ended up putting the various inprise jars in the orion/lib directory. Note that this startup setup completely ignores the classpath environment variable. My startup commands running VBJ.exe are d:\inprise\appserver\bin\vbj -Dxml.parser=xerces com.evermind.server.ApplicationServer To get this working I have the inprise jars in the classpath environment variable. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Anders Callertun Sent: Tuesday, 12 September 2000 1:04 To: Orion-Interest Subject: Using an ORB from Inprise I want to access an EJB in Inprise Application Server from a JSP-page on Orion and I have a JavaBean that the JSP-page is using and is supposed to connect to the Appserver. When running stand-alone Java-applications we're using the argument "-Dorg.omg.CORBA.ORBClass=com.inprise.vbroker.orb.ORB -Dorg.omg.CORBA.ORBSingletonClass=com.inprise.vbroker.orb.ORB" to java.exe to use the ORB from Inprise instead of the default, but this does not seems to work. Is there an XML-trick for this that I'm not aware of? Is there anyone else that is using the combination Orion+IAS successfully? /Anders
Run Orion on port80 without being root?
Has anyone found a way of running Orion on port80 without being root? I'm getting ready to launch a finance based site and i'm quite concerned about security. I've seen messages like this posted before but i have yet to see any kind of resolution. Any ideas? cheers, sach %s/windows/linux/g
Re: SUN JDK1.3 RC1 for Linux
At 09:04 11.09.00 , you wrote: >It still crashes immediately if we leave it in JIT mode. We have to add >-Djava.compiler=NONE, then it does okay. It still seems to have a memory >leak, though less than it had before. what distribution do you use? we have used the sun beta heavily with hotspot (-server) for a while now with occasional crashes but haven't had a single crash with the rc in the past 2 days. did you try the ibm refresh from august 15th? this also runs very stable here (SuSe 6.4 system with SMP) so far (only a few hours though ;-). With the previous IBM 1.3 we also had serious stability problems which seem to have disappeared now. I'll keep you posted as we keep on experimenting with those two. in terms of performance ibm seems to be way ahead (just checked orion deployment/startup and some heavy xml-processing). IBM was from 30% to about 80% faster in those cases. robert >-- >Joel Shellman >Chief Software Architect >The virally-driven B2B marketplace for outsourcing projects >http://www.ants.com/90589781 > > >Tim Drury wrote: > > > > It works great too. I've been running Orion w/Sun's > > JDK 1.3 for Linux for about a month. > > > > -tim > > > > > -Original Message- > > > From: Robert Krueger [mailto:[EMAIL PROTECTED]] > > > Sent: Saturday, September 09, 2000 5:14 AM > > > To: Orion-Interest > > > Subject: SUN JDK1.3 RC1 for Linux > > > > > > > > > > > > might be of interest to some people on this list > > > > > > http://developer.java.sun.com/developer/earlyAccess/j2sdk13/do > > > wnload-linux.html > > > > > > > > > (-) 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 > > > > > > (-) 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: Using an ORB from Inprise
Anders, For a while I was using IAS as my EJB container and Orion as my web-layer. To accomplish this was a bit of a pain, but if I remember correctly it entailed placing the appropriate VisiBroker files (vbjorb.jar and vbejb.jar I think) in the [jdk]/jre/lib/ext directory and starting Orion with the vbj wrapper. To obtain a reference to the InitialContext you must use the InitialContext(Properties p) constructor where p contains the appropriate org.omg... and jndi... properties for VisiBroker. This is easier achieved if you use a Singleton wrapper to access your InitialContext with your properties set in one place. A note: I emphasise that I *was* using IAS 4 as my EJB Container (and Naming/CORBA service) as I was involved in a product with a tight deliverance deadline and Orion was still in its early pre-release days (0.7.blah) - the EJB part was still not 100% stable. IAS is very robust, excellent for integrating with legacy systems and has one of the best CORBA ORB implementations around (VisiBroker) - however its EJB support was not all it made out to be. It could not handle EJBs talking to EJBs in different JAR files (classloader probs), scaled very poorly with finder methods that returned large amounts of beans (it took about 7 minutes to iterate through the first 10 entities when a finder method returned 10,000 entities), took way too long to perform simple calls to EJBs as everything was marshalled to IIOP calls, and the OR support turned out to be a case of the marketing guys getting ahead of the product (the OR support wasn't there). Oh yeah, it wasn't J2EE compliant either (what's an .ear?). These weren't all presumptions - I had all of these confirmed by its developers on the support newsgroup. By the time we had developed our application, Orion 1.0 final was nearly out - we switched to it and we were in for a big surprise about how simple the whole development effort could be and how blazingly quick the app run, even under large loads with copious amounts of data. I don't want to put down IAS as it IS a very good server and has some very nice features - I chose it over WebLogic so it can't be that bad can it? ;) However these downpoints nearly crippled us and I just wanted to warn you of them. I was using 4.1 - it may have improved since then. -Joe Walnes > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Anders > Callertun > Sent: 11 September 2000 16:04 > To: Orion-Interest > Subject: Using an ORB from Inprise > > > I want to access an EJB in Inprise Application Server from a JSP-page on > Orion and I have a JavaBean that the JSP-page is using and is > supposed to connect to the Appserver. > > When running stand-alone Java-applications we're using the argument > "-Dorg.omg.CORBA.ORBClass=com.inprise.vbroker.orb.ORB > -Dorg.omg.CORBA.ORBSingletonClass=com.inprise.vbroker.orb.ORB" to java.exe > to use the ORB from Inprise instead of the default, but this does not > seems to work. Is there an XML-trick for this that I'm not aware of? > > Is there anyone else that is using the combination Orion+IAS successfully? > > /Anders > >
Re: SUN JDK1.3 RC1 for Linux
It still crashes immediately if we leave it in JIT mode. We have to add -Djava.compiler=NONE, then it does okay. It still seems to have a memory leak, though less than it had before. -- Joel Shellman Chief Software Architect The virally-driven B2B marketplace for outsourcing projects http://www.ants.com/90589781 Tim Drury wrote: > > It works great too. I've been running Orion w/Sun's > JDK 1.3 for Linux for about a month. > > -tim > > > -Original Message- > > From: Robert Krueger [mailto:[EMAIL PROTECTED]] > > Sent: Saturday, September 09, 2000 5:14 AM > > To: Orion-Interest > > Subject: SUN JDK1.3 RC1 for Linux > > > > > > > > might be of interest to some people on this list > > > > http://developer.java.sun.com/developer/earlyAccess/j2sdk13/do > > wnload-linux.html > > > > > > (-) 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 > > > >
Is "BROKER" a reserved word in Orion?
Hi, I am having this strange login failure problem whenever I use the word "BROKER" as a role name in the sub-element of in web.xml. The authentication succeeds, but the authorization fails without even calling User.isMemberOf() method. Why is this happening? Is this a normal behavior in Orion? Can anybody please shed a light on this, or tell me if I am doing something wrong. I am using Orion 1.3.0 on NT with custom security manager. Thanks in Advance. Mike. winmail.dat
How to specify SSL on Orion to accept all Client certificates
I have managed to get a SSL server running my web application, and all works fine with the digital certificates (server, client) from verisign. Know I would like the user to use the digital certificate from Verisign or another CA that he/she wants. On my application I will control if I trust the CA or not. How could I do this? Thanks
RE: OR mapping of table joins for CMP
> Can somebody please point me to a good reference for managing > joins across > multiple tables while using CMP? There was a thread on the list that > somebody pointed me to previously but it did not really give the > information I needed. > > I just want to be able to specify tables and fields to do joins on with > Orion for CMP. If you could go into a bit more detail about the problem, I'm sure someone could help you out. This might be what you're after: http://www.orionsupport.com/complex-or.html -Joe Walnes
Usage of BitSet as returnvalue from Businessmethods in EJB
Hello, i'm trying to use a java.util.BitSet as a Business Property inside a CMP EJB. java.util.BitSet is per default Serializable, so it should fit the type restrictions on the getter methods for EJBs. When i deploy the Bean orion keeps on telling me that only Set or Collection are supported. BitSet is a direct descendent of java.lang.Object. Shouldn't it be possible to use BitSet in an EJB ? How do i tell orion, that this is not a Collection of References to EJBs ?? regards, Udo
Using an ORB from Inprise
I want to access an EJB in Inprise Application Server from a JSP-page on Orion and I have a JavaBean that the JSP-page is using and is supposed to connect to the Appserver. When running stand-alone Java-applications we're using the argument "-Dorg.omg.CORBA.ORBClass=com.inprise.vbroker.orb.ORB -Dorg.omg.CORBA.ORBSingletonClass=com.inprise.vbroker.orb.ORB" to java.exe to use the ORB from Inprise instead of the default, but this does not seems to work. Is there an XML-trick for this that I'm not aware of? Is there anyone else that is using the combination Orion+IAS successfully? /Anders
Re: Disable CMP
I'm working with the folks at Mousetech to put together a version of EJBWizard that will work with many appservers, including Orion. I'm attaching a sample Entity object for Orion that I've created with the wizard. It uses Ant as the build tool and might help you understand better how it all fits together. The sample is not complete, I havent gotten the test website files completely integrated, nor the test server setup XMLs. The intention is to have the wizard create a complete stand alone Orion config that can be run to test the EJB. If anyone has suggestions how I could better configure the wizard templates to accomplish this, I'd appreciate it :)) - Original Message - From: Roger Mosher <[EMAIL PROTECTED]> To: Orion-Interest <[EMAIL PROTECTED]> Sent: Friday, September 08, 2000 6:39 AM Subject: Re: Disable CMP > Arved. > Would it be too much to ask for us to have a look at one of your ant > build scripts? Being very new at this I am still awash with trying to > figure out how all the parts fit together. > > Yes the J2EE deploy tool was easier to use... until the day it decided > to start generating null pointer exceptions on start up. I knew I was going > to have to look around for a commercial application server someday anyway so > that seemed like a good day. > > Orion could use a good tutorial taking someone through the set up > process, but that's a lot of work to put together. > > Thanks > -- > %%% > Roger Mosher eMail: [EMAIL PROTECTED] > Center of Geographic Sciences phone: (902)825-5230 > 50 Elliott Roadfax: > (902)825-6733 > Lawrencetown, N.S. > Canadaweb: http://www.cogs.nscc.ns.ca/ > B0S 1M0 > %%% > > - Original Message - > From: "Arved Sandstrom" <[EMAIL PROTECTED]> > To: "Orion-Interest" <[EMAIL PROTECTED]> > Sent: Thursday, September 07, 2000 7:57 PM > Subject: RE: Disable CMP > > > > Sometimes it's easy to forget exactly what it is that J2EE provides for > us. > > :-) > > > > In this case it's not an Orion issue. Declare the entity bean to be > > bean-managed persistence using the tag in the > EJB > > deployment descriptor. All straight J2EE spec. > > > > I haven't used earassembler but I've used ejbmaker and ejbassembler to > > generate stubs and then tailor the deployment descriptor, respectively and > > in that order, just for experiment. They worked quite well. I imagine > > earassembler is more of the same. In practise I've found a good Ant build > > script and manual D.D. editing to be the way to go. > > > > Arved Sandstrom > > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On Behalf Of > > [EMAIL PROTECTED] > > Sent: Thursday, September 07, 2000 3:56 PM > > To: Orion-Interest > > Subject: Disable CMP > > > > > > Greeting > > > > I want to use Orion with my ejb without CMP. > > 1.)How could I configure Orion in order to use ejb without CMP ? > > 2.)How could I genarate > > 3.)How could I use ejbassembler ? > > 4.)How could I use earassembler ? > > > > Thank you very much > > > > > > > > > > > > > > > > ___ > > Say Bye to Slow Internet! > > http://www.home.com/xinbox/signup.html > > > > > > > > > > > Data.zip
RE: SUN JDK1.3 RC1 for Linux
It works great too. I've been running Orion w/Sun's JDK 1.3 for Linux for about a month. -tim > -Original Message- > From: Robert Krueger [mailto:[EMAIL PROTECTED]] > Sent: Saturday, September 09, 2000 5:14 AM > To: Orion-Interest > Subject: SUN JDK1.3 RC1 for Linux > > > > might be of interest to some people on this list > > http://developer.java.sun.com/developer/earlyAccess/j2sdk13/do > wnload-linux.html > > > (-) 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: 3rd post, no answer
Dale, Can you confirm that you are using JNDI to lookup the MailSession with the location "java:comp/env/mail/MailSession"? If you are not, you may be using a MailSession you're not expecting. That's my only suggestion anyway - if you are already using this location, ignore me :) -Joe Walnes -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dale Bronk Sent: 09 September 2000 04:12 To: Orion-Interest Subject: 3rd post, no answer Sorry to keep posting this, but I really need an answer. I have a problem that I hope isn't not normal behavior and something I have configured incorrectly. Snip of my sever.xml: --> In mydomain-application.xml, I have: (note that this is my global application) Now I want to also place the same mail session entries in each of my clients application.xml files except specifying their domain: I have a FormMailServlet that I install on all my clients web.xml files which uses mail.jar classes send the email. My problem is it doesn't matter which one I go to, Orion always uses my mail-session entries from the global application. It doesn't seem to get over written for each other application. I also tried to explicitly set the mail server in my FormMailServet to what is passed in. I pass in mail.Client1Domain.com and inside my class I do the following: properties.put( "mail.smtp.host", "mail.Client1Domain.com"); properties.put( "smtp-host", "mail.Client1Domain.com"); // Not needed as far as I know I also turn verbose on so I can see what is happening. It always uses mail.mydomain.com! If I comment out the mail-session entries from my global application xml then it works fine as long as I pass in the value and explicitly set the mail.smtp.host as above. In other words, it seems to ignore the mail-session in the Clientxxx-application.xml files as I pointed the smtp-host entry in one of the application.xml files to an existing server, but a different one. When I explicitly set the entries it uses the entries I set, not the mail-session entries. Seems to only use the mail-session entries only if in the global application xml file and no where else. When in the global application xml file, it seems you can only use that one even if I explicitly set it to a different one. What gives? Sorry for the long email, but I wanted to be sure to give all the data. Dale Bronk Dale Bronk [EMAIL PROTECTED] Windscape Consulting, Inc. http://www.windscape.com
RE: Help with OR-Mapping
> Does anyone know how to map a CMP field with type byte [] to a column in > Oracle 8i DB. Particulary what would the tag for this type look like in > the oracle.xml file under database-schemas directory. I see that a byte > type maps to number(10,0) as shown below. > > . > > but what would a byte array map to is the question. Your response would > be highly appreciated. (or whatever you want the type to be) -Joe Walnes
RE: Disable CMP
Hi, Roger I could take an Ant script that I have, and adapt it for pedagological purposes. Might be a day or two. Arved -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Roger Mosher Sent: Friday, September 08, 2000 8:40 AM To: Orion-Interest Subject: Re: Disable CMP Arved. Would it be too much to ask for us to have a look at one of your ant build scripts? Being very new at this I am still awash with trying to figure out how all the parts fit together. Yes the J2EE deploy tool was easier to use... until the day it decided to start generating null pointer exceptions on start up. I knew I was going to have to look around for a commercial application server someday anyway so that seemed like a good day. Orion could use a good tutorial taking someone through the set up process, but that's a lot of work to put together. Thanks -- %%% Roger Mosher eMail: [EMAIL PROTECTED] Center of Geographic Sciences phone: (902)825-5230 50 Elliott Roadfax: (902)825-6733 Lawrencetown, N.S. Canadaweb: http://www.cogs.nscc.ns.ca/ B0S 1M0 %%% - Original Message - From: "Arved Sandstrom" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Thursday, September 07, 2000 7:57 PM Subject: RE: Disable CMP > Sometimes it's easy to forget exactly what it is that J2EE provides for us. > :-) > > In this case it's not an Orion issue. Declare the entity bean to be > bean-managed persistence using the tag in the EJB > deployment descriptor. All straight J2EE spec. > > I haven't used earassembler but I've used ejbmaker and ejbassembler to > generate stubs and then tailor the deployment descriptor, respectively and > in that order, just for experiment. They worked quite well. I imagine > earassembler is more of the same. In practise I've found a good Ant build > script and manual D.D. editing to be the way to go. > > Arved Sandstrom > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of > [EMAIL PROTECTED] > Sent: Thursday, September 07, 2000 3:56 PM > To: Orion-Interest > Subject: Disable CMP > > > Greeting > > I want to use Orion with my ejb without CMP. > 1.)How could I configure Orion in order to use ejb without CMP ? > 2.)How could I genarate > 3.)How could I use ejbassembler ? > 4.)How could I use earassembler ? > > Thank you very much > > > > > > > > ___ > Say Bye to Slow Internet! > http://www.home.com/xinbox/signup.html > > > >
Re: Disable CMP
Arved. Would it be too much to ask for us to have a look at one of your ant build scripts? Being very new at this I am still awash with trying to figure out how all the parts fit together. Yes the J2EE deploy tool was easier to use... until the day it decided to start generating null pointer exceptions on start up. I knew I was going to have to look around for a commercial application server someday anyway so that seemed like a good day. Orion could use a good tutorial taking someone through the set up process, but that's a lot of work to put together. Thanks -- %%% Roger Mosher eMail: [EMAIL PROTECTED] Center of Geographic Sciences phone: (902)825-5230 50 Elliott Roadfax: (902)825-6733 Lawrencetown, N.S. Canadaweb: http://www.cogs.nscc.ns.ca/ B0S 1M0 %%% - Original Message - From: "Arved Sandstrom" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Thursday, September 07, 2000 7:57 PM Subject: RE: Disable CMP > Sometimes it's easy to forget exactly what it is that J2EE provides for us. > :-) > > In this case it's not an Orion issue. Declare the entity bean to be > bean-managed persistence using the tag in the EJB > deployment descriptor. All straight J2EE spec. > > I haven't used earassembler but I've used ejbmaker and ejbassembler to > generate stubs and then tailor the deployment descriptor, respectively and > in that order, just for experiment. They worked quite well. I imagine > earassembler is more of the same. In practise I've found a good Ant build > script and manual D.D. editing to be the way to go. > > Arved Sandstrom > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of > [EMAIL PROTECTED] > Sent: Thursday, September 07, 2000 3:56 PM > To: Orion-Interest > Subject: Disable CMP > > > Greeting > > I want to use Orion with my ejb without CMP. > 1.)How could I configure Orion in order to use ejb without CMP ? > 2.)How could I genarate > 3.)How could I use ejbassembler ? > 4.)How could I use earassembler ? > > Thank you very much > > > > > > > > ___ > Say Bye to Slow Internet! > http://www.home.com/xinbox/signup.html > > > >