RE: NullPointerException on CMP entity bean deployment

2002-04-28 Thread Jeff Schnitzer
Hey, what magical incantation produced a non-obfuscated version of Orion? I have stack-trace envy. Jeff Schnitzer [EMAIL PROTECTED] > -Original Message- > From: Scott Gaetjen [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 26, 2002 11:03 PM > To: Orion-Intere

RE: OffTopic: Entity-Beans and relational structure

2002-04-25 Thread Jeff Schnitzer
elationships 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 > Subj

RE: is Orion dead?

2002-04-12 Thread Jeff Schnitzer
se are automatically posted to the dev list so I can see the progress 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

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]] > > Forgi

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

2002-04-09 Thread Jeff Schnitzer
to the value of the key later? I've combed over that part of the spec, but it's 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-07 Thread Jeff Schnitzer
alogy 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 [EMAIL PROTECTED] Consulting & Contracting - J2EE, WebLogic, Orion/OC4J

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

2002-04-06 Thread Jeff Schnitzer
k: http://mav.sourceforge.net/pig. It is a comprehensive sample J2EE application which runs on Orion. It's not a trivial sample; my friends and I actually use a live instance to archive (and annotate, wiki-like) our images. There is *no* way it could perform reasonably with pure entity b

RE: CMP 2.0 vs BMP - Which performes better?

2002-04-04 Thread Jeff Schnitzer
cked by the ResultSet directly. 98% of the time, the client just creates an iterator and walks the results. 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
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 [ma

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 Passw

RE: automatic invocation of servlet as the root-service

2002-01-31 Thread Jeff Schnitzer
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 &g

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 Schnit

RE: JUnitee

2001-11-16 Thread Jeff Schnitzer
You can use Cactus (http://jakarta.apache.org/cactus) or for a more coarse-grained solution, HttpUnit (http://httpunit.sourceforge.net). Another option is to use the mock servlet objects in the library at http://www.mockobjects.com. Jeff Schnitzer [EMAIL PROTECTED] Simple unit tester for EJBs

List errors

2001-10-22 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 "admi

RE: Does orion support XSLT

2001-08-31 Thread Jeff Schnitzer
onfigure 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, August 31, 2001 1

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 availa

RE: Collection or list as return ??

2001-06-15 Thread Jeff Schnitzer
to develop 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

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 the

RE: Oracle deal gag

2001-06-12 Thread Jeff Schnitzer
toupdater. And a lot of people, myself included, consider this just the least we can offer to Ironflare for providing us with a free server. "Free for noncommercial use" has "bought" them a lot more than $1500 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
ou have now exposed yourself and your knowledge, 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: 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,

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

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

RE: Standar Template

2001-05-17 Thread Jeff Schnitzer
; > I'd advise you to check out SiteMesh - it's built for this > exact purpose! > > > > http://www.opensymphony.com/sitemesh > > > > Quite simply you provide JSP based decorators which are > mapped to URIs. > > > > Download and inst

RE: Deployment to multiple instances...?

2001-05-17 Thread Jeff Schnitzer
Furthermore, rather than having multiple web.xml files, you can use Ant's

RE: Counter.jar

2001-05-16 Thread Jeff Schnitzer
http://www.geocities.com/SiliconValley/Bridge/8617/jad.html Seriously, just decompile it. There are only a couple lines of code. Jeff -Original Message- From: Lou Farho [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16,

RE: Caching XLS style sheets

2001-05-15 Thread Jeff Schnitzer
MAIL PROTECTED]] > 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 style

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

RE: Generating primary keys

2001-05-14 Thread Jeff Schnitzer
committee (read: Oracle and IBM) 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]]

RE: DeadLock with 25 users SOLVED

2001-05-14 Thread Jeff Schnitzer
I'm hardly an expert in this matter, but I found that enabling transactions indiscriminately is a quick recipe for deadlock. Orion uses pessimistic concurrency, so each transaction grabs an exclusive lock on every entity used. Unless your data model is simple or you always access resources in th

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: 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,

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 to

RE: Standar Template

2001-05-10 Thread Jeff Schnitzer
paradigm like WebWork or (not-so-simple) Struts but uses XSLT for the view templating. So I (and a friend) sat down and wrote it. Tomorrow 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, Op

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: Orion-I

RE: Caching XLS style sheets

2001-05-09 Thread Jeff Schnitzer
hings you can do with the framework. Is anyone interested? 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

RE: Caching XLS style sheets

2001-05-09 Thread Jeff Schnitzer
hings you can do with the framework. Is anyone interested? 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

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 sp

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 PRO

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 pj

RE: Interests sake

2001-05-03 Thread Jeff Schnitzer
ith any reasonable quality - XWindows renders 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 1

RE: MVC/XML Framework Comments please

2001-04-27 Thread Jeff Schnitzer
How do you 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 > > >

RE: MVC/XML Framework Comments please

2001-04-27 Thread Jeff Schnitzer
There weren't that many voices decrying EJBs, but since it's an interesting subject I'll add my $0.02US: EJB provides a way of abstracting business logic and persistence logic. It does a pretty good job of doing the first. IMHO it does only an adqueate job of doing the later. I have used EJB2.0

RE: MVC/XML Framework Comments please

2001-04-27 Thread Jeff Schnitzer
I'm definitely interested in your framework; may I have a copy? Thanks, Jeff -Original Message- From: Duffey, Kevin [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 26, 2001 2:39 PM To: Orion-Interest Subject: RE: MVC/XML Framework Comments please I use my own framework for a couple o

RE: MVC/XML Framework Comments please

2001-04-26 Thread Jeff Schnitzer
How do you integrate"copy" 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 E

RE: MVC/XML Framework Comments please

2001-04-26 Thread Jeff Schnitzer
tion bean. I'm seriously considering this approach beacuse it's so lightweight and noninvasive compared to Struts; no worries that Struts might not install on platform X (such as Orion < 1.4.8 :-( ). Good luck, Jeff Schnitzer [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> h

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: 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: Wed

RE: Just an Idea

2001-04-18 Thread Jeff Schnitzer
If you need to implement an IDL interface, you need to run a CORBA server process outside the EJB system. The CORBA server can proxy the calls into the EJB server. Jeff >-Original Message- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, April 18, 2001 3:49 PM >To:

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

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

2001-04-16 Thread Jeff Schnitzer
gt;> > user/password from >> > the VB form (I don't much care for VB specifics, just the >> > part which deals >> > with EJB/JSP/J2EE security). >> > >> > After accepting user authentication information from a VB >dialog, what >>

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 quer

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

2001-04-15 Thread Jeff Schnitzer
this how I should be controlling this? Is this the proper >method? I was >reading the J2EE EJB spec which states that coding security >should be the >last resort. > >I am not clear on how to execute the above scenario. > >Thanks to all the people who have already posted i

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. I

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 c

RE: orion j2ee config

2001-04-13 Thread Jeff Schnitzer
What do you mean? Those are orion-specific files, not defined anywhere in the j2ee specification. Jeff -Original Message- From: G.L. Grobe [mailto:[EMAIL PROTECTED]] Sent: Friday, April 13, 2001 10:57 AM To: Orion-Interest Subject: orion j2ee config can anyone help correct this confi

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 the

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 li

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 (De

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 remember

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 lea

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 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: Wednesday, Ma

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: 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: 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 BE

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 a

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: bad timestamp confusion

2001-03-21 Thread Jeff Schnitzer
gi/cvsweb.cgi/pgsql/src/interfaces/j >dbc/, but >there I only have a complete three and don't realy know what >to download. > >Regards, >Ed Bras > >- Original Message - >From: Jeff Schnitzer <[EMAIL PROTECTED]> >To: Orion-Interest <[EMAIL PROTECT

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 o

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:

RE: Why Entity EJBs?

2001-03-20 Thread Jeff Schnitzer
urrent position on that matter >is that locals are superflous, what needs to change is just >the notion of EJBs always being coarse grained. This is, of >course, a very preliminary position. If there turns out to be >genuine technical merits for the separation (things that >cannot

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 find

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 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 hav

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 hasn

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

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 produ

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 o

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: 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 pres

RE: Error unpacking: IO Error: error in opening

2001-03-09 Thread Jeff Schnitzer
This started happening to me a lot starting with 1.4.5, but not before. Jeff >-Original Message- >From: Thomas Pridham [mailto:[EMAIL PROTECTED]] >Sent: Friday, March 09, 2001 10:36 AM >To: Orion-Interest >Subject: RE: Error unpacking: IO Error: error in opening > > >We also see this pro

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 the

Warning: Dependent Objects

2001-03-08 Thread Jeff Schnitzer
Heads up: If you're using (or planning to use) Orion's support for EJB2.0 dependent objects, you should take note of this thread on the ejb-interest list. Jeff -Original Message- From: Sean Neville [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 7:34 AM To: [EMAIL PROTECTED] S

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: classloader does not implement getResourceAsStream ?

2001-03-05 Thread Jeff Schnitzer
You're still going to run into problems when you try to use message resources (used prolifically for internal messages). Struts PropertyMessageResources calls getResourceAsStream() like this: is = this.getClass().getClassLoader().getResourceAsStream(name); ...and if you look at the Orion classl

RE: need help getting started

2001-03-01 Thread Jeff Schnitzer
Tomcat, unfortunately, is one of the slower servlet runners available. Orion is one of the fastest, and it allows an upgrade path to EJBs if he wants to evolve his architecture that way. But you're right, Orion (or any EJB container) adds a lot of complexity and expense. Caucho's Resin is a good

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 ri

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

2001-03-01 Thread Jeff Schnitzer
> Internet Mail Message > Received from host: > > > >

RE: CMP 2.0

2001-03-01 Thread Jeff Schnitzer
;a magnificent >piece of software I would never had expected it to NOT report >this compile >time error. > > >Randahl > >-----Original Message- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED]]On Behalf Of Jeff >Schnitzer >Sent: 1. marts 2001 02:

RE: Database schema type mappings

2001-03-01 Thread Jeff Schnitzer
Jeff: Your answer to question number 1 - do you have that from the >specification, 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

2001-03-01 Thread Jeff Schnitzer
> >-Original Message----- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED]]On Behalf 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 l

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 pri

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
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 thirtyDay

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 little

  1   2   >