RE: OffTopic: Entity-Beans and relational structure

2002-04-25 Thread Jeff Schnitzer
in particular are hopelessly immature in Orion, and they're even painful in WebLogic. Jeff Schnitzer [EMAIL PROTECTED] -Original Message- From: Chris Nias [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 24, 2002 7:49 AM To: Orion-Interest Subject: RE: OffTopic: Entity-Beans and relational

RE: is Orion dead?

2002-04-12 Thread Jeff Schnitzer
daily. ...and their mailing list software actually works. Jeff Schnitzer [EMAIL PROTECTED] [I don't want to sound like I'm disparaging an obviously extraordinarily bright software development team - but it looks to me like this project has grown far beyond the reasonable scope of two or three

RE: [orion-interest]CMP/BMP and standard JDBC, speed is of essence

2002-04-09 Thread Jeff Schnitzer
terribly vague about how deferred keys are supposed to work. I've never seen a container that documented them, I have never seen an example of them being used, and (until now) I have never known anyone to have tried them. Jeff Schnitzer [EMAIL PROTECTED]

RE: [orion-interest]CMP/BMP and standard JDBC, speed is of essence

2002-04-09 Thread Jeff Schnitzer
]CMP/BMP and standard JDBC, speed is of essence Jeff - Yes, it really works. You can get access to the key value later by using getPrimaryKey on the instance. Cheers Ray Jeff Schnitzer [EMAIL PROTECTED] wrote: From: Simon Stewart [mailto:[EMAIL PROTECTED]] Forgive me, but what about

RE: [orion-interest]CMP/BMP and standard JDBC, speed is of essence

2002-04-07 Thread Jeff Schnitzer
), but I am saying that it is a huge mistake to consider entity beans your only means of data access. To use the square peg analogy again, reduce the size of the square to something that fits smoothly through the hole, and fill in around the edges with other mechanisms (like JDBC). Jeff Schnitzer

RE: [orion-interest]CMP/BMP and standard JDBC, speed is of essence

2002-04-06 Thread Jeff Schnitzer
(and annotate, wiki-like) our images. There is *no* way it could perform reasonably with pure entity beans. Jeff Schnitzer [EMAIL PROTECTED] Consulting Contracting - J2EE, WebLogic, Orion/OC4J On 6/4/02 7:15 pm, Duffey, Kevin [EMAIL PROTECTED] wrote: Hi all, Kinda curious about one thing. We use

RE: CMP 2.0 vs BMP - Which performes better?

2002-04-04 Thread Jeff Schnitzer
. If the client does something that the ResultSet can't support, build the full Collection. Jeff Schnitzer [EMAIL PROTECTED]

RE: CMP 2.0 vs BMP - Which performes better?

2002-04-03 Thread Jeff Schnitzer
for queries that are not efficient or possible in a CMP environment. Just watch out for relationships in Orion. They are horribly broken, have been for years, and don't show any sign of getting better. Jeff Schnitzer [EMAIL PROTECTED] -Original Message- From: Andrew Chau [mailto:[EMAIL

RE: Username and Password

2002-02-06 Thread Jeff Schnitzer
HttpServletRequest.getUserPrincipal().getName() should do the trick. Jeff Schnitzer [EMAIL PROTECTED] -Original Message- From: Christian, Joanne [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 9:30 AM To: Orion-Interest Subject: Username and Password HI All, I'm

RE: automatic invocation of servlet as the root-service

2002-01-31 Thread Jeff Schnitzer
Orion to use a servlet as the context root. Nothing in the Servlet specification seems to require this be possible, either. Jeff Schnitzer [EMAIL PROTECTED] -Original Message- From: Robert Virkus [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 12:27 PM To: Orion-Interest Cc

RE: Integrating LOG4J into Orion...

2002-01-19 Thread Jeff Schnitzer
I put the log4j.jar in orion's lib directory, and use -Dlog4j.configuration=file:path/to/log4j.properties to initialize log4j. I'm pretty happy with this approach. I control logging on a server-wide basis, so I can use the same ear file for both testing and deployment. Jeff Schnitzer [EMAIL

List errors

2001-10-23 Thread Jeff Schnitzer
Does anyone else get You do not have permission to send to this recipient. When attempting to send mail to this list? Of course, if you're reading this, then it's allowing me to send *some* traffic... Jeff

RE: Problem implementing Custom User Management using SimpleUserManager

2001-10-02 Thread Jeff Schnitzer
I am also experiencing this - no matter what I try (and I'm pretty sure I've tried everything), I cannot get an application client user to log in using a custom user manager (either SimpleUserManager-derived or DataSourceUserManager). Note that the application client logs in just fine using

RE: Does orion support XSLT

2001-08-31 Thread Jeff Schnitzer
. If you want to be able to configure a pipeline of transformations, or work with dynamic content, I suggest looking at the Maverick MVC framework: http://mav.sourceforge.net. Jeff Schnitzer [EMAIL PROTECTED] -Original Message- From: Shah, Ritesh [mailto:[EMAIL PROTECTED]] Sent: Friday

RE: 2 parameter finder finding wrong thing

2001-07-09 Thread Jeff Schnitzer
EJB-QL is not yet implemented in Orion. Try this: http://www.c2.com/cgi/wiki?OrionServerSpecSupport Note that Orion will automatically create finders with a single parameter that corresponds to the name of a cmp field. Otherwise you have to write them yourself. Jeff Schnitzer [EMAIL

RE: Features of CMP

2001-06-24 Thread Jeff Schnitzer
Try this: http://www.c2.com/cgi/wiki?OrionServerSpecSupport Please update it as well. Jeff -Original Message- From: Stefan Marx [mailto:[EMAIL PROTECTED]] Sent: Friday, June 22, 2001 4:47 AM To: Orion-Interest Subject: Features of CMP Hi, Is there any List available which

RE: Collection or list as return ??

2001-06-15 Thread Jeff Schnitzer
a real world application. Fortunately for us, container vendors are less insulated from the eventual customers; it's a pretty safe bet that most servers will let you configure the ordering in the database query somehow. I wouldn't worry about it, but no, it's not standard. Jeff Schnitzer

RE: Counting CMP entities

2001-06-14 Thread Jeff Schnitzer
It's not necessarily true that findAll().size() would be expensive. A slick container implementation would delay the actual query until the first method call on the Collection. If size() is the first method called, the container could easily perform the proper select count(*). The question

RE: Oracle deal gag

2001-06-12 Thread Jeff Schnitzer
worth of my time, and I'm quite content about it. Jeff Schnitzer [EMAIL PROTECTED]

RE: Oracle deal gag

2001-06-10 Thread Jeff Schnitzer
, the Men In Black will be coming for you soon. Good luck! Jeff Schnitzer

RE: 1.5.1 vs 1.4.7 RequestDispatcher

2001-05-30 Thread Jeff Schnitzer
I am definitely experiencing something very similar. I haven't tried it with a version of Orion prior to 1.4.8, but I find that using RequestDispatcher.forward() produces erratic results, usually without sending any output. I find that calling include() works as advertised. The exact same code

RE: Tracing SQL

2001-05-29 Thread Jeff Schnitzer
I don't believe there is any way to force Orion to spit out that information. However, when running against Hypersonic in server mode, you see all the SQL on the database console. I find this to be an excellent arrangement for development. If you wanted to, you could fairly easily write a JDBC

RE: Struts help?

2001-05-24 Thread Jeff Schnitzer
Struts doesn't work out of the box with Orion versions prior to 1.4.8. The message resources problem is that when re-implementing the ResouceBundle (for reasons nobody on the struts list could tell me), Struts used a method on the Orion classloader that was not implemented (getResourceAsStream).

RE: Deployment to multiple instances...?

2001-05-17 Thread Jeff Schnitzer
Furthermore, rather than having multiple web.xml files, you can use Ant's style task to apply transforms to the base web.xml. Then all you need are xsl files which contain the different context parameters. With a little XSLT knowledge, it's really easy to do. A simpler approach, though, would

RE: Standar Template

2001-05-17 Thread Jeff Schnitzer
the only way to learn about it. $10 says you're using it within a week ;) -mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jeff Schnitzer Sent: Friday, May 11, 2001 7:12 AM To: Orion-Interest Subject: RE: Standar Template

ANN: Maverick MVC framework (w/XSLT support) released!

2001-05-17 Thread Jeff Schnitzer
://mav.sourceforge.net Enjoy :-) Jeff Schnitzer [EMAIL PROTECTED] Scott Hernandez [EMAIL PROTECTED]

RE: Standar Template

2001-05-17 Thread Jeff Schnitzer
Oops. Sorry everyone, that was not supposed to be posted to the list. Jeff -Original Message- From: Jeff Schnitzer Sent: Thursday, May 17, 2001 8:47 PM To: Orion-Interest Subject: RE: Standar Template We finally released our framework, so I have some breathing time now

RE: Caching XLS style sheets

2001-05-15 Thread Jeff Schnitzer
]] Sent: Monday, May 14, 2001 1:12 PM To: Orion-Interest Cc: Jeff Schnitzer Subject: RE: Caching XLS style sheets i am VERY interested.. artie Quoting Jeff Schnitzer [EMAIL PROTECTED]: Excel stylesheets? Perhaps you mean XSL :-) If you use the JAXP 1.1 transforms api, creating

RE: Database column creation order when using compound keys

2001-05-14 Thread Jeff Schnitzer
The order should be determined by the elements in the orion-ejb-jar.xml deployment descriptor. Unfortunately there is a bug in 1.4.5 which causes the order of compound PK fields to switch on every deployment. It was fixed in 1.4.6. See bug #242. There is another similar problem in 1.4.8 which

RE: Generating primary keys

2001-05-14 Thread Jeff Schnitzer
) are deliberately trying to keep CMP from becoming too popular. This is just too wierd. Jeff Schnitzer [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://www.similarity.com -Original Message- From: elephantwalker [mailto:[EMAIL PROTECTED]] Sent: Monday, May 14, 2001 8:38 AM To: Orion

RE: Struts and Orion - the example app [EXPIRED TRIAL LICENCE]

2001-05-14 Thread Jeff Schnitzer
Upgrade to Orion 1.4.8. Version 1.4.7 and prior are missing some classloader features that Struts uses (for no good reason, as far as I can tell). Jeff -Original Message- From: Sam [mailto:[EMAIL PROTECTED]] Sent: Monday, May 14, 2001 7:16 PM To: Orion-Interest Subject: Struts and

RE: Session Invalidate Exception

2001-05-13 Thread Jeff Schnitzer
From: Noah Nordrum [mailto:[EMAIL PROTECTED]] So have the page where the user enters their credentials wax their session, then the validation of the credentials page will create a new session. That was the solution I mentioned. It is undesirable for three reasons I can think of; one, it

RE: Session Invalidate Exception

2001-05-12 Thread Jeff Schnitzer
I don't think that excludes the desired behavior, which is that you should be able to invalidate a session and then create a new one. It appears that session invalidate() is setting a flag in the session object causing it to be cleaned up sometime later. Since the only way to logout a user is

RE: Standar Template

2001-05-10 Thread Jeff Schnitzer
we'll send out a link to the sourceforge site; we're still working on the documentation and examples. In summary: For a simple approach, Option 2 as you describe isn't bad. For (IMNSHO) a more elegant and powerful approach, it's worth looking into XSLT. Jeff Schnitzer [EMAIL PROTECTED] http

RE: Pure Corba client and Orion

2001-05-09 Thread Jeff Schnitzer
Orion is not an IIOP-based server. It uses client stubs to communicate using the Orion RMI Protocol (ormi). If you need to access EJBs from a pure CORBA client, you have three options I can think of: Write your own RMI proxy Use some sort of HTTP-based RPC mechanism Use an app server which

RE: Caching XLS style sheets

2001-05-09 Thread Jeff Schnitzer
? Jeff Schnitzer [EMAIL PROTECTED] http://www.similarity.com http://www.infohazard.org/junitee -Original Message- From: Vic Cekvenich [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 06, 2001 5:55 PM To: Orion-Interest Subject: Caching XLS style sheets I asked a question on an MVC application

RE: Fun with compound primary keys

2001-05-09 Thread Jeff Schnitzer
There have been official comments on this list to the effect that unintuitive error messages should be considered bugs. You should file a bugzilla report :-) Jeff -Original Message- From: Michael Jara [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 09, 2001 9:36 AM To:

RE: remote shutdown of orion 1.4.8

2001-05-05 Thread Jeff Schnitzer
From: Eduardo Estefano [mailto:[EMAIL PROTECTED]] The same is happening to me. Using 1.4.7 everything was fine. I already posted a message before but here it is again: - java -jar admin.jar ormi://localhost admin 123 -shutdown Works as long as no EJB/Database is called.

RE: custom finder in CMPs

2001-05-04 Thread Jeff Schnitzer
ejbHomeThisIsAHomeMethod() { ... } No need to add anything to the deployment descriptor. If you want to secure access, you can require different security roles for the finder vs. the home method. Jeff Schnitzer -Original Message- From: Armin Michel [mailto:[EMAIL PROTECTED

RE: Interests sake

2001-05-03 Thread Jeff Schnitzer
fonts like a three-year-old with a half-eaten crayon :-) Jeff Schnitzer http://www.similarity.com http://www.infohazard.org/junitee -Original Message- From: Adam Cassar [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 02, 2001 10:53 PM To: Orion-Interest Subject: Interests sake

RE: Interests sake

2001-05-03 Thread Jeff Schnitzer
From: Alex 'Kazuma' Garbagnati [mailto:[EMAIL PROTECTED]] With Linux it's much easier to configure Java apps as daemons, but I can't render my dynamic images with any reasonable quality - XWindows renders fonts like a three-year-old with a half-eaten crayon :-) You should try pja. It

RE: MVC/XML Framework Comments please

2001-04-27 Thread Jeff Schnitzer
interface between Java and XML (jsp? building dom nodes in java? something else?) ? Thanks, Jeff -Original Message- From: Jeff Schnitzer Sent: Friday, April 27, 2001 3:38 PM To: Orion-Interest Subject: RE: MVC/XML Framework Comments please I'm definitely interested in your framework

RE: Update to 1.4.8 gives strange table names after deployment ???

2001-04-26 Thread Jeff Schnitzer
This line is in changes.txt: Moved orion-ejb-jar.xml's inclusion path in an ejb-jar to the META-INF/ directory from the orion/ directory for consistency. BTW, Struts now works out of the box with 1.4.8. Jeff -Original Message- From: KirkYarina [mailto:[EMAIL PROTECTED]] Sent:

RE: MVC/XML Framework Comments please

2001-04-26 Thread Jeff Schnitzer
on platform X (such as Orion 1.4.8 :-( ). Good luck, Jeff Schnitzer [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://www.similarity.com http://www.similarity.com -Original Message- From: Vic Cekvenich [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 26, 2001 11:53 AM To: Orion

RE: MVC/XML Framework Comments please

2001-04-26 Thread Jeff Schnitzer
How do you integratecopy with dynamic content? Two layers of XSL transformation (one to mix in copy, one to mix in markup)? Or do you use JSP-type templating to build the Content XML before it is sent off to XSLT? Thanks, Jeff -Original Message- From: Tim

RE: Strange error after upgrade to 1.4.8 ?

2001-04-26 Thread Jeff Schnitzer
I have the same problem and have logged bug #414 against it. I find that the problem goes away if you set your transaction attributes to NotSupported. That may or may not be an option for you :-) It might help Magnus debug it if you attached your orion-ejb-jar.xml to the bug report too. Jeff

RE: Is this the Orion Team?

2001-04-17 Thread Jeff Schnitzer
Nope. I know Satan, and she's not that cute :-) Jeff -Original Message- From: Hani Suleiman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 17, 2001 7:18 AM To: Orion-Interest Subject: RE: Is this the Orion Team? And what a lovely picture it is. PS Anyone notice how one of them

RE: findBy referencing another entity reference

2001-04-16 Thread Jeff Schnitzer
This is the right idea; you want to do a join in the finder. Relational databases were designed to do exactly this sort of thing. Putting extra information in the EJBs would just lead to consistency problems, IMHO. The EJB 2.0 specification defines EJB QL, which is a database-independent

RE: How to enable UserManager support for arbitrary user...

2001-04-16 Thread Jeff Schnitzer
o execute the above scenario. Thanks to all the people who have already posted in regards to this issue. -AP_ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jeff Schnitzer Sent: Friday, April 13, 2001 10:09 PM To: Orion-Interest

RE: How to enable UserManager support for arbitrary user...

2001-04-15 Thread Jeff Schnitzer
bove scenario. Thanks to all the people who have already posted in regards to this issue. -AP_ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jeff Schnitzer Sent: Friday, April 13, 2001 10:09 PM To: Orion-Interest Subject: RE: How to enable UserM

RE: productive comment.

2001-04-13 Thread Jeff Schnitzer
I just wanted to point out that despite the Orion team's silence on this list, over the last couple months there has been a lot of bugzilla activity. Development is clearly moving forward, so it's not time to jump ship yet :-) While a weekly "hey, here's what's up at Ironflare" letter to this

RE: productive comment.

2001-04-13 Thread Jeff Schnitzer
I was under the impression that the domain has always been owned by the Orion organization. They just pointed it at whoever was willing to maintain the community site. I have a suggestion. Lets take a slice of a Wiki system, say the Portland Pattern Repository at http://www.c2.com. I think

RE: How to enable UserManager support for arbitrary user...

2001-04-13 Thread Jeff Schnitzer
I suggest using an MVC (aka "Model 2") approach, separating your view from your controller. One of the controller's responsibilities can be to check for authentication and provide to the user either the requested page or the login page. If you use a dispatcher-servlet-action framework for your

RE: Usage of the Service console...

2001-04-13 Thread Jeff Schnitzer
My advice is to ignore all the GUI tools that come with Orion and stick to Ant as a build-and-deploy tool. It is my strong suspicion that nobody is using, testing, or actively developing the GUI tools. It is my personal opinion (probably shared by many on this list) that this is a good thing.

RE: Creating new CMP records

2001-04-09 Thread Jeff Schnitzer
If you want a CMP field that can be null, use java.lang.Integer instead of int. Jeff -Original Message- From: Eduardo Estefano Sent: Mon 4/9/2001 12:10 PM To: Orion-Interest Cc: Subject:Creating new CMP records I have a CMP EJB that has a foreign key field in it

RE: How to set the X-Window DISPLAY on Orion

2001-04-06 Thread Jeff Schnitzer
You just need to configure the DISPLAY variable for the environment that Orion runs in. Are you running Orion from a script? Set the DISPLAY variable in the script. I gotta warn you though, the xvfb renders some pretty awful output. The full X server doesn't do a whole lot better, at

RE: Bi-directional relations (my kludge)

2001-04-06 Thread Jeff Schnitzer
M-N relationships do work in Orion, although not bidirectionally. WebLogic has good support for most of the EJB2.0 spec, and there is a product that runs on top of JBoss that allows you to deploy EJB2.0 packages (it converts everything to the 1.1 format for JBoss to consume). I don't

RE: findByXXX() with an ORDER BY parameter for Container-managed bean ?

2001-04-03 Thread Jeff Schnitzer
From: Markus Holmberg [mailto:[EMAIL PROTECTED]] You are relying on an implementation detail of your container. The reason it has worked for you so far is because your container has used an instance of java.util.ArrayList/LinkedList, which indeed does guarantee order. But CMP Entity EJB's

RE: Servlet blues

2001-04-03 Thread Jeff Schnitzer
By default, a single instance of your servlet will be created by the container to service all requests. The doGet() is not synchronized so it must be written thread-safe. Alternatively, you can have your servlet implement the SingleThreadModel interface. This instructs the container to create

RE: RMI/IIOP support in orion...

2001-04-03 Thread Jeff Schnitzer
You want an appserver that uses RMI-IIOP natively. Orion isn't one of these. You would have to write an intermediate server that translates all CORBA/IIOP calls into EJB/ORMI calls. You will more than save on development costs by just spending the money up front for an IIOP-based server like

RE: Concurrent modification

2001-04-03 Thread Jeff Schnitzer
ConcurrentModificationException is the result of a fail-fast iterator in the JDK 1.2+ collections framework. If one thread is iterating a collection and another thread modifies the collection, the next call to the iterator will immediately throw this exception. In the ugly old days of Hashtable

RE: Implementation inheritance with ejb...

2001-04-03 Thread Jeff Schnitzer
I don't think you can have an inheritance structure like this. When you define the parent relationship, the EJB container wants a method 'abstract Category getParent()' which does not exist. I have a similar tree structure without the inheritance (also called 'Category'), and it works with some

RE: Collection Finders With Entity Argument Always Return Empty Collection

2001-04-03 Thread Jeff Schnitzer
Try reversing the order of the fields in the primkey-mapping block for the bean in the orion-ejb-jar.xml. Might also work just to change the order in the ejb-jar.xml, especially if you deploy from scratch. Jeff -Original Message- From: Peter Pontbriand [mailto:[EMAIL PROTECTED]] Sent:

RE: What versions of Postgres are people using?

2001-03-21 Thread Jeff Schnitzer
I'm using Postgresql 7.0.3 on RH7 with pleasant results (except the JDBC driver's timstamp issue). I don't serialize any objects as BLOBs though. Why do you want to do this? Jeff -Original Message- From: Julian Richardson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 21, 2001 7:28

RE: bad timestamp confusion

2001-03-21 Thread Jeff Schnitzer
Take a look at this message I posted in January: http://www.mail-archive.com/orion-interest@orionserver.com/msg08677.html If you patch the JDBC driver to read whatever format your dates are coming back as (you should see the actual formatted date string in the exception message), you should be

RE: bad timestamp confusion

2001-03-21 Thread Jeff Schnitzer
three and don't realy know what to download. Regards, Ed Bras - Original Message - From: Jeff Schnitzer [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, March 21, 2001 8:08 PM Subject: RE: bad timestamp confusion Take a look at this message I posted in January

RE: Why Entity EJBs?

2001-03-20 Thread Jeff Schnitzer
I also am questioning entity beans, after 5 months of intensive development with them. If you run Hypersonic in server mode and watch the sql output to the console, it should be readily apparent why... CMP produces *WAY* too many queries for fine-grained entity beans. The biggest problem is

RE: Why Entity EJBs?

2001-03-20 Thread Jeff Schnitzer
scriptor, see for instance copy-by-value in orion-ejb-jar.xml) that weight enough we'll reposition. /Magnus Stenman, the Orion team - Original Message - From: "Jeff Schnitzer" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Tuesday, March 20, 2001 6:31 PM Su

RE: Dependents remove not supported

2001-03-19 Thread Jeff Schnitzer
Nevermind pd1 vs pdf support; *this* should seriously make you reconsider using dependent objects: http://www.mail-archive.com/ejb-interest@java.sun.com/msg16733.html http://www.mail-archive.com/ejb-interest@java.sun.com/msg16733.html Jeff -Original Message- From: Christian Billen

RE: Questions regarding 1-n bi-directional relationships...

2001-03-18 Thread Jeff Schnitzer
As of version 1.4.7, bidirectional relationships are not yet supported by Orion. Jeff -Original Message- From: Alex Paransky [mailto:[EMAIL PROTECTED]] Sent: Friday, March 16, 2001 5:26 PM To: Orion-Interest Subject: Questions regarding 1-n bi-directional relationships... I have an

RE: Why is Hypersonic SQL still being integrated

2001-03-14 Thread Jeff Schnitzer
Why not? Really, as a simple test/example database, what shortcoming does it have? Just because nobody is fixing/adding new bugs to the code at the moment doesn't mean that the current incarnation is not perfectly adequate for its task. I don't think anyone in their right mind would run a

RE: Using another EJB as part of the Primary Key Class

2001-03-14 Thread Jeff Schnitzer
It works for me. I have an entity whose PK is a compound of two CMR 1-N fields. HOWEVER, I'm only using Collection mapping, not Set (which it looks like you're using). If you can't figure out what's wrong with your code, try using Collection and see if that fixes the problem. I would like to

Orion Team Needs New List Software

2001-03-14 Thread Jeff Schnitzer
Someone desperately needs to replace the list software currently hosting the Orion-Interest mailing list. This is really getting out of hand. It's bad enough that everyone who posts gets messages like this from natch.se... but now they're echoing to the list as well. If the only reason this

RE: Customizing CMP deployment

2001-03-12 Thread Jeff Schnitzer
You can put fragments of orion-ejb-jar.xml in your deployment package. It should go in a directory called "orion" sibling to META-INF. Check the list archives for more details. FYI, you can do the same thing with orion-application.xml, but it goes in the ear's META-INF directory. Very useful.

RE: Design Advice (And Orion JNDI syntax) Needed

2001-03-12 Thread Jeff Schnitzer
Do these strings need to change dynamically without app redeployment? If it's just error messages and the like, why not use java.util.ResourceBundle? String msg = ResourceBundle.getBundle("mymessages").getString(MSG_KEY); You can store the resources in any format you like if you implement your

RE: Case insensitive primary keys

2001-03-11 Thread Jeff Schnitzer
Thanks for everyone's comments. From: Rafael Alvarez [mailto:[EMAIL PROTECTED]] You can do two things: .- In the EJBCreate change the user name to Upper or Lower case when setting it. Also in the PK class change it to Upper or Lower case. Not a good solution for me, because I want to preserve

Case insensitive primary keys

2001-03-08 Thread Jeff Schnitzer
I have a primary key which is a string (user's name), and I would like it to be case-insensitive. That is, if there is already a "bob" entity, trying to create a "Bob" entity should throw a DuplicateKeyException. Is there a way I can do this with Orion? I vaguely recall reading something in

RE: Problem retrieving dependents after Orion restart

2001-03-06 Thread Jeff Schnitzer
IMHO, it is unwise to be using EJB2.0 dependent objects at this point because this is a part of the spec which is likely to change wildly. There have even been significant changes between pd1 (when Orion's implementation was built) and pfd. You can circumvent the relationship table by creating a

RE: Database schema type mappings

2001-03-01 Thread Jeff Schnitzer
Of Jeff Schnitzer Sent: 1. marts 2001 02:38 To: Orion-Interest Subject: RE: Database schema type mappings You're thinking C++. In Java: A long is 8 bytes, always. An int is 4 bytes, always. The byte-orders are fixed independent of the hardware, too. Speaking of byte size, here's something I

RE: Database schema type mappings

2001-03-01 Thread Jeff Schnitzer
or... Randahl -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jeff Schnitzer Sent: 1. marts 2001 02:52 To: Orion-Interest Subject: RE: Database schema type mappings From: Randahl Fink Isaksen [mailto:[EMAIL PROTECTED]] 1. Why is Integers automatic

RE: CMP 2.0

2001-03-01 Thread Jeff Schnitzer
this compile time error. Randahl -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jeff Schnitzer Sent: 1. marts 2001 02:42 To: Orion-Interest Subject: RE: CMP 2.0 ? I have all my transactional behavior defined as NotSupported and I use EJB 2.0 container managed

RE: Struts (was: I switch from X to Orion because: )

2001-03-01 Thread Jeff Schnitzer
: "Jeff Schn

RE: Database schema type mappings

2001-03-01 Thread Jeff Schnitzer
From: Chad Stansbury [mailto:[EMAIL PROTECTED]] Actually, a more proper way is to indicate to the compiler that you want long arithmetic by writing: long millisInMonth = 1000L * 60L * 60L * 24L * 30L I'm sure it all gets optimized out to the same thing in the end :-) But yes, you're right.

Struts (was: I switch from X to Orion because: )

2001-02-28 Thread Jeff Schnitzer
This subject is especially timely for me because I just finished evaluating both WebWork and Struts. I decided to go with WebWork. It wasn't so much that I was drawn to WebWork's technological coolness - there are some neat ideas there, but I think most could be adapted into Struts with a

RE: Database schema type mappings

2001-02-28 Thread Jeff Schnitzer
You're thinking C++. In Java: A long is 8 bytes, always. An int is 4 bytes, always. The byte-orders are fixed independent of the hardware, too. Speaking of byte size, here's something I found amusing (and annoying): long millisInMonth = 1000 * 60 * 60 * 24 * 30; Date

RE: CMP 2.0

2001-02-28 Thread Jeff Schnitzer
? I have all my transactional behavior defined as NotSupported and I use EJB 2.0 container managed relationships without issue. I don't currently need transactions for what I'm doing. Randahl, have you examined the contents of the database tables and the orion-ejb-jar.xml closely? Jeff

RE: Database schema type mappings

2001-02-28 Thread Jeff Schnitzer
From: Randahl Fink Isaksen [mailto:[EMAIL PROTECTED]] 1. Why is Integers automatically converted to int by Orion - and is this a standard EJB convention? Yes. All the class representations of the primitive types should work that way. 2. Would it be legal to have a primary key of the

RE: jsp form-based authentication

2001-02-27 Thread Jeff Schnitzer
You should look in the Orion javadocs for DataSourceUserManager. Here's an example of what to put in the orion-application.xml: user-manager class="com.evermind.sql.DataSourceUserManager" property name="table" value="Member" / property name="passwordField" value="password" / property

RE: How do I map a .doc extension to a .jsp execution

2001-02-27 Thread Jeff Schnitzer
While that would work, you would have to create a separate jsp for each document... really you should probably create your own servlet, map it to *.doc in the same way, and use request.getPathInfo() and request.getPathTranslated() (or just forward to the request to a URL in a protected

RE: ONCE AGAIN !!!! PK.class CMP beans in ORION

2001-02-27 Thread Jeff Schnitzer
It's difficult to tell without seeing your deployment descriptor, but it sounds like you're trying to use the PK class as a cmp-field. You should not be doing this. You should instead have cmp-fields for each of the fields in the PK. The only mention of the PK class in the ejb-jar.xml should

RE: Orion FORM based authentication Configuraton problem

2001-02-26 Thread Jeff Schnitzer
If I'm reading the steps correctly, this behavior is actually fully spec-compliant. This is the reason I don't use FORM-based login. j_security_check is only required to be valid immediately after an attempt to visit a secured page. There is no provision to be able to re-enter credentials from

RE: Orion FORM based authentication Configuraton problem

2001-02-26 Thread Jeff Schnitzer
PROTECTED]]On Behalf Of Jeff Schnitzer Sent: Monday, February 26, 2001 8:06 AM To: Orion-Interest Subject: RE: Orion FORM based authentication Configuraton problem If I'm reading the steps correctly, this behavior is actually fully spec-compliant. This is the reason I don't use FORM-based login

RE: HELP!!! - Using UserManagers - Logging in users without asking for credentials

2001-02-25 Thread Jeff Schnitzer
You want to use the RoleManager: Context ctx = new InitialContext(); RoleManager roleMan = (RoleManager)ctx.lookup("java:comp/RoleManager"); try { roleMan.login(memberName, password); } catch (SecurityException ex) { return false; } return true; -Original

RE: CMP 2.0

2001-02-24 Thread Jeff Schnitzer
From: Randahl Fink Isaksen [mailto:[EMAIL PROTECTED]] Question A: Are the ones of you who are using CMP 2.0 using version 1.4.4, 1.4.5 or 1.4.7 of Orion? I'm using 1.4.5 because 1.4.7 introduced a showstopper bug for me (fixed in 1.4.8, whenver that happens). Bug #296. Question B: When _you_

RE: CLASSPATH setup

2001-02-23 Thread Jeff Schnitzer
The J2EE sdk is not necessary, and probably should be removed. It is the reference implementation of a J2EE server. You will be using Orion instead. Why aren't you using the 1.3 jdk? Put the postgres jdbc driver in the orion/lib directory. That should work :-) Jeff -Original

RE: deployment

2001-02-23 Thread Jeff Schnitzer
A side note: In the current Orion release, you need to specify the action as action="%= request.encodeURL("/servlet/MyServlet") %" For some reason, Orion does not automatically rewrite action urls with the session id like it does with other urls in pages. I've logged this in Bugzilla. It's

RE: EJB 2.0 CMP features of Orion

2001-02-22 Thread Jeff Schnitzer
Unidirectional 1-1 and 1-n relationships between EJBs work, but bidirectional relationships do not. There are easy ways to fake it, though. It's not strictly according to the specification - with Orion, you must define the CMR fields as cmp-fields in the entity. pd2 and pdf say you shouldn't.

RE: Application clients

2001-02-22 Thread Jeff Schnitzer
There are a number of posts in the archive about how to configure the initial context (either programmatically or by using a jndi.properties file). In addition to that: Define a META-INF/application-client.xml and package it in the client's jar. Define the application client in the j2ee

RE: Any way to forward to j_security_check?

2001-02-22 Thread Jeff Schnitzer
Yes, this works, and is how I perform user authentication. It's not app server portable though. :-( Jeff -Original Message- From: Andre Vanha [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 22, 2001 8:52 AM To: Orion-Interest Subject: RE: Any way to "forward" to j_security_check?

RE: EJB Clustering -- ANYONE? [Urgent!]

2001-02-22 Thread Jeff Schnitzer
I would like to see the documentation for the orion deployment descriptors fleshed out. Right now it's sparse and choppy, with some sentences just cut off in the middle. Verbose explanations with examples would be a major improvement. More than anything else, though, I think Orion needs a

  1   2   >