Re: Database Pooling with Orion
I uses Mysql also and have the following datasource; data-source class=com.evermind.sql.DriverManagerDataSource name=Mysql location=jdbc/mysql connection-driver=org.gjt.mm.mysql.Driver username=user password=password url=jdbc:mysql://localhost/ERP inactivity-timeout=30 / this works correct. ps. put the mm.mysql-2.0.1-bin.jar in the lib directory of orion. Chris Gerrist [EMAIL PROTECTED] - Original Message - From: Kesav Kumar [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Sunday, June 03, 2001 12:45 AM Subject: Re: Database Pooling with Orion In orion/config directory there is a file datasouces.xml look into this file this gives you an idea of how to setup database pool. If you need more information regarding each element in datasource.xml look into the following link http://www.orionserver.com/docs/data-sources.xml.html - Original Message - From: Daniel Frey [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Saturday, June 02, 2001 11:35 AM Subject: Database Pooling with Orion Hi. I was looking to setup a database pool with Orion and MySQL, just as a test. I could not find any documentation on that. If anyone was able to do this, could you please let me know. Thank you, Dan __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
Re: Oracle 9ias Container for J2ee (oc4j)
Its really a good news. Now we can get quality of orion with added support and documentation from Oracle. I am really excited about this move. Now orion(sorry OC4J) will definetly lead all other J2EE vendors especially BEA. With this Orcale has also got existance in J2EE market place. I just ported my application which was running in orion and it is running perfectly. The only change is in OC4J with orion is all config files now reflects new dtd which never exist on oracle site. Which version of orion now OC4J is supporting? Is it 1.5.1 or 1.4.8? Any one has idea regarding this. - Original Message - From: Phillip Ross [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Saturday, June 02, 2001 2:24 PM Subject: Oracle 9ias Container for J2ee (oc4j) Yesterday Oracle announced their new 9ias OC4J product, fast, light-weight, highly-scalable, easy-to-use and complete J2EE environment written entirely in java... (http://otn.oracle.com/tech/java/oc4j/htdocs/oc4j_fov.html) The feature overview looks like suspiciously like orion server's feature overview, and the distribution looks suspiciously like orion's distribution :) java -jar ./j2ee/home/orion.jar -version Oracle9iAS (1.0.2.2) Containers for J2EE So is this a big win for Ironflare or what??? __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
Re: Oracle 9ias Container for J2ee (oc4j)
What does it mean by pieces? What are the pieces? Anyone knows? Anh - Original Message - From: Erwin Alberto [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Saturday, June 02, 2001 9:09 PM Subject: RE: Oracle 9ias Container for J2ee (oc4j) Oracle licensed the technology from IronFlare. Read more from this link: http://technet.oracle.com/docs/tech/java/oc4j/htdocs/getstart.htm#1025277 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Olivier Refalo Sent: Saturday, June 02, 2001 4:38 PM To: Orion-Interest Subject: Re: Oracle 9ias Container for J2ee (oc4j) Well... This is really really suspicious... Check out the doc... but man... it's Orion !!! Very good news... I can finaly argue with my manager who was complaining about support... OR. --- Phillip Ross [EMAIL PROTECTED] wrote: Yesterday Oracle announced their new 9ias OC4J product, fast, light-weight, highly-scalable, easy-to-use and complete J2EE environment written entirely in java... (http://otn.oracle.com/tech/java/oc4j/htdocs/oc4j_fov.html) The feature overview looks like suspiciously like orion server's feature overview, and the distribution looks suspiciously like orion's distribution :) java -jar ./j2ee/home/orion.jar -version Oracle9iAS (1.0.2.2) Containers for J2EE So is this a big win for Ironflare or what??? __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: Database Pooling with Orion
Boy howdy, are you in luck. You don't need to - in data-sources.xml, Orion provides a pooled connection for you. Use that ref instead of any other. :) Hi. I was looking to setup a database pool with Orion and MySQL, just as a test. I could not find any documentation on that. If anyone was able to do this, could you please let me know. Thank you, Dan __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ --- Joseph B. Ottinger [EMAIL PROTECTED] http://adjacency.org/ IT Consultant
Re: Oracle 9ias Container for J2ee (oc4j)
Congradulations, guys, on a job well done. This means that Orion is hitting the big time, and with some of the big Oracle royality checks, they can hire a tech writer to produce some first class documentation, and extend the user base of Orion. I really like to see the small guys producing great products, like Orion, Resin, and Jboss, get the recognition and glory they deserve. Imagine BEA and Websphere as the big bad dragons, dominating the J2EE lanscape, and the small knights, like Orion, Resin, and Jboss, fighting the battle. But the announcement also doesn't supprise me. Look at the Apache foundation. A couple of years ago, IBM approached them with a funding proposal to produce a Windows version that they could use in their Websphere products. With Apahche 2.0, Apache goes from a process model to a process, thread model, and should be declared stable for Windows. Companies like IBM and Oracle now embed Apache in their products, and Apache gains from a greater cash influx. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
Is it possible to use the DataSource defined in orion server from external client?
Hi All, Is it possible to use the DataSource defined in orion server from external client? The client is a simple JDBC application and nothing to do with EJB's , J2EE etc. I want to look up the datasource and make a connection from there. I am able to retrive the datasource through JNDI , but the connection is not established. It is failing with this stacktrace. java.lang.NullPointerException at com.evermind.sql.OrionPooledDataSource.addUsedConnection(OrionPooledDataSource.java:532) at com.evermind.sql.OrionPooledDataSource.getPooledInstance(OrionPooledDataSource.java:253) at com.evermind.sql.OrionCMTConnection.setConnection(OrionCMTConnection.java:119) at com.evermind.sql.OrionCMTConnection.intercept(OrionCMTConnection.java:98) at com.evermind.sql.OrionCMTConnection.commit(OrionCMTConnection.java:228) at TestClient.main(TestClient.java:13) Can some one please help me on this. Regards Ravi
Re: Using JAAS for authentication (Was: bugs in @page extends=...)
Hi Joni, Thank you very much for you info. It actually sounds as I thought it would when I looked at it, some time ago. Unfortunately, I had already implemented our own framework and I decided not to go for JAAS until these points that you mention are solved. Things that, IMHO, are lacking in order to have a standard, flexible and dynamic authentication/authorization service are: .- A standard and DYNAMIC way of specifying users/roles that take part in the system. Right now this job is left to container-specific implementations, which breaks portability between containers. .- A standard, FLEXIBLE and DYNAMIC way of specifying permissions required for a request. Using URL-Mappings inside a text file is, IMO, not enough as sometimes I would like to require different permissions for the same kind of request (URL) depending on the parameters. Apart from that, the JAAS concept of LoginModules is very interesting so if I had to start my implementation again, I would use JAAS APIs and add the forementioned features. As we have it now, we specified those features using interfaces, which can be implemented anyhow and that are queried for the appropriate data in Runtime. With that, no security logic is ever intermixed with business logic, unless the business logic explicitly requires security information. JSDK2.3 doesn't seem to make any move towards adding the flexibility and dynamicity I'm talking about. Let's see what happens with JDK1.4, so far it seems I'll able to finally get rid of my logging system, which is also flexible and dynamic ;). Regards and thanks again, Joni. Dan Joni Suominen escribió: Hi Daniel, See some answers below. Daniel López wrote: Hi Joni, That sounds pretty interesting, however, I still have some doubts. Let's see: .- Where do you get the user from (the one you use with user.getSubject()). Can these users be specified dynamically through a standard interface? Or do they have to be specified in a container specific way? JAAS is not in any way related to user management. Since there's not (sadly) yet any standard way to do user management I decided to roll my own. However, this approach should work no matter what kind of user management is used. Here's some concepts and how the process flows: - LoginModule (JAAS concept) handles user login. JAAS supports pluggable login modules which means that it is possible to user different kinds of login modules without affecting to the rest of the application (e.g. at some point I could change my login module to use fingerprints instead of username and passwords). - Principal (Java security concept) represents some identity for a user (e.g. Principal(John Doe), GroupPrincipal(user), IdPrincipal(12345-12)) - Subject (JAAS concept) groups one particular user's various Principals together. So, the Subject is linked to a user. - Permission (Java security concept) represents a permission for something. These are usually really simple tag-like objects. - Policy (JAAS concept) represents access control policy. To get all the permissions for a user you can use: PermissionCollection pc = Policy.getPolicy().getPermissions(subject, null); - User (my implementation) represents a user in a system. OK, using these concepts the authentication in my system goes: 1. Authenticate user using a configured LoginModules: LoginContext lc = new LoginContext(DefaultLoginModule, new LoginCallbackHandler(username, password)); lc.login(); // This is JAAS's abstraction, actually the call is eventually dispatched to LoginModule. 2. In the actual LoginModule do the real authentication. This can be done for instance against RDBMS, LDAP, Solaris user management etc... I currently a UserManager session bean: UserManager userManager = userManagerHome.create(); User user = userManager.authenticate(username, new String(password)); 3. Fill the user's Subject with the user's Principals if the authentication succeeds. I currently use two types of Principals: one which uniquely identifies user (UserIdPrincipal) and one which represents a group where the user belongs to (GroupPrincipal). I store this information in an RDBMS and access them through EJB layer: // Add the identity which uniquely identifies the user. Set principals = subject.getPrincipals(); // Subject is an object which created automatically by JAAS. principals.add(new UserIdPrincipal(user.getId())); // Add the identities representing the groups for which the user belongs to. String[] groupNames = null; groupNames = userManager.getGroupNamesForUser(user.getId()); for (int i = 0; i groupNames.length; i++) { GroupPrincipal p = new GroupPrincipal(groupNames[i]); if (!principals.contains(p)) { principals.add(p); } } user.setSubject(subject); 4. Then I cache this information to HttpSession so that it is fast to