RE: CMP 2.0 OR mapping problem

2001-02-22 Thread Jeff Schnitzer
Bidirectional relationships do not yet work. There are two workarounds that have worked for me: Manually add (and remove!) both sides of the relationship. So your Marketplace.addStorefront() method would look like this: void addStorefront(Storefront front) {

RE: No influence on CMP 2.0 getter setter methods - a feature or abug?

2001-02-21 Thread Jeff Schnitzer
I frequently hear this mantra repeated, and while it is largely a good idea, I have difficulty seeing why it should be adhered to dogmatically. There is value in being able to define side-effects of setters and getters or minimal bean-specific business logic. As a trivial example I offer my

RE: Best practices: How to initialize state in EntityBean's superclass

2001-02-19 Thread Jeff Schnitzer
Why not just put the superclass initialization in ejbCreate() and require all the subclasses to call super.ejbCreate()? Jeff -Original Message- From: Randahl Fink Isaksen [mailto:[EMAIL PROTECTED]] Sent: Monday, February 19, 2001 4:18 PM To: Orion-Interest Subject: Best practices: How

RE: ms access Orion?

2001-02-17 Thread Jeff Schnitzer
From: Joseph B. Ottinger [mailto:[EMAIL PROTECTED]] Why do you say "pity?" (I'm assuming you don't mean "piety" here.) Why should it be open source? Do you think you can apply patches faster than the Orion team? (I don't think I could, nor do I think you For me, the value of source is not

RE: Orion doesn't work.

2001-02-16 Thread Jeff Schnitzer
Kaffe is the Open Source implementation of Java that is shipped with most flavors of Linux. It looks like the Kaffe version of the java command is higher up in the path than the Sun JDK java command, thus you are running the wrong JVM. I suggest "rpm --erase kaffe". That should solve your

RE: How to deploy?

2001-02-16 Thread Jeff Schnitzer
I'm not sure the same lessons apply; while still a small company by BEA standards, Unify has a lot of mouths to feed. Other than 1999, it looks like all of their years have been unprofitable, and 2000 was dramatically so. They've been financing this with equity issues, but at the current

RE: RE: Any news from Orion yet??

2001-02-14 Thread Jeff Schnitzer
Dude, do you really think a Swedish company with a handful of employees is going to be able to field a worldwide army of training professionals? My guess is that the entire world population of Orion experts is reading this right now; depending on where you are, a nicely phrased request and an

RE: RE: Any news from Orion yet??

2001-02-14 Thread Jeff Schnitzer
Dude, do you really think a Swedish company with a handful of employees is going to be able to field a worldwide army of training professionals? It just occurred to me that this sounds rather bad... I was trying to imply that it would be unlikely for such training professionals to be sent all

RE: How does this effect Orion?

2001-02-14 Thread Jeff Schnitzer
That's an interesting question. The investor story is not good - they recently terminated their CEO/President and CFO, restated a year of earnings (which put them in the red), and reduced their heacount from 132 to 106. Their stock, which was trading ~$20 this time last year, is now at $0.31.

RE: Orion-console in 1.4.7 supports DataSource properly... now what!!!

2001-02-10 Thread Jeff Schnitzer
: OpenEJB is the brainchild of Richard Monson-Haefel, author of Enterprise JavaBeans, 2nd Edition (O'Reilly 2000). The core development team for OpenEJB is Mr. Monson-Haefel and David Blevins. -Original Message- From: Jeff Schnitzer [ mailto:[EMAIL PROTECTED

RE: Orion-console in 1.4.7 supports DataSource properly... now what!!!

2001-02-07 Thread Jeff Schnitzer
different approaches, so I fully expect the answer to be "it depends" :-) What do various app servers do? The j2ee spec doesn't seem to prescribe an answer to this. Thanks, Jeff Schnitzer [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ===

New example ant buildfiles

2001-02-07 Thread Jeff Schnitzer
much more complicted buildfile ("similarity"), which shows one ejb-jar, a main web-war, a test web-war, two application clients, and a lot of rmi compiling (some using IIOP, which requires a nightly build version of ant). Enjoy :-) Jeff Schnitzer [EMAIL PROTECTED] ServerTest.zip ?x

RE: Orion-console in 1.4.7 supports DataSource properly... now what!!!

2001-02-06 Thread Jeff Schnitzer
Are you sure that the JDBC driver isn't finding its way into the classpath? Did you try the console remotely from a machine that you know doesn't have the JDBC driver? You may already know this, but just in case: Almost all of the orion tools (including orionconsole.jar) are simply empty jar

RE: Re[2]: R: R: frustrated - jdbc: No suitable driver

2001-02-05 Thread Jeff Schnitzer
I'm fully prepared to believe that my understanding of how this works is wrong, but if so it raises quite a few questions for me. Connection, Statement, ResultSet, etc are just interfaces; something must implement them. Normally they are implemented by the JDBC driver, thus allowing the client

RE: When using autonumber for the primarykey...

2001-02-01 Thread Jeff Schnitzer
From looking at the source, counter.jar only writes to the database for every ten keys generated. With pessimistic concurrency, loads do not occur for each use. Here's the relevant code from CounterEJB.java: public String ejbCreate(String name) throws CreateException {

RE: Session EJB Accessibility

2001-01-31 Thread Jeff Schnitzer
ject: Re: Session EJB Accessibility I believe Orion uses pessimistic concurrency control. However, I don't think optimistic concurrency control would allow dirty reads -- I understand a dirty read to imply a transaction seeing the uncommitted state of another transaction. Vidur Jeff Schnitzer

RE: Session EJB Accessibility

2001-01-30 Thread Jeff Schnitzer
I'm confused by your comments; does it need to manage state, or doesn't it? I'm assuming it does, otherwise you would just use a stateless session bean. Here's some fodder for conversation: I don't think there is an EJB facility which will help you. SLSBs are pooled and can timeout, SFSBs

RE: R: R: frustrated - jdbc: No suitable driver

2001-01-30 Thread Jeff Schnitzer
of view, I just disagree with it. Jeff Schnitzer wrote: If the client is going to use the JDBC driver, it must be able to load the class(es). This means you need to package the driver with the client application. I'm puzzled by your comments about clients not needing to care about drivers

RE: Session EJB Accessibility

2001-01-30 Thread Jeff Schnitzer
From: Gary Shea [mailto:[EMAIL PROTECTED]] I could use a little help here. My limited understanding of entity beans suggests that if I create an EB using a particular key value, as long as I refer only to that same key value there would only be one instance of the EB. Is that not true because

RE: Session EJB Accessibility

2001-01-30 Thread Jeff Schnitzer
From: Mark Bernardinis [mailto:[EMAIL PROTECTED]] It seems like what you want is either a SLSB which never times out and is guaranteed to only have one instance in the pool, or a BMP entity bean with a guarantee of serialized transactions. This is exactly what I want to do. The only

RE: interbase database schema

2001-01-26 Thread Jeff Schnitzer
I've found that it's pretty hard to beat Hypersonic for development. The only caveat is that you need to run it in "server mode" in order to get concurrent access to the database; otherwise the database files are locked by Orion and you can't see what's going on. As far as Interbase goes, there

1.4.5 auto-deployment troubles

2001-01-26 Thread Jeff Schnitzer
Has anyone else noticed that 1.4.5 seems to neglect changes made to the ejb-jar? It unpacks the ear and deploys changed war files just fine, and if I change the ejb-jar.xml, it will unpack the ejb jar. But if I change only the ejb class files, Orion just upacks the ear and sits. Even restarting

RE: O/R Mapping

2001-01-23 Thread Jeff Schnitzer
The extra table is definately unnecessary, and hopefully it will go away in a future version of Orion. Take a look at bug #209 in Bugzilla. Jeff Schnitzer [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 23, 2001 12:14 AM

RE: O/R mapping

2001-01-23 Thread Jeff Schnitzer
Me too. Not only are the joins expensive, but it's a lot of extra data, too. My database is already key-heavy without the extra tables. Jeff -Original Message- From: Dumitru Sbenghe [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 23, 2001 8:04 AM To: Orion-Interest Subject: RE: O/R

RE: E_Roman e-commerce application(Mastering Java Beans)Wiley

2001-01-23 Thread Jeff Schnitzer
like this, I'm sure the added comments would be helpful :-) Jeff Schnitzer [EMAIL PROTECTED] -Original Message- From: Daniel Cardin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 23, 2001 4:44 AM To: Orion-Interest Subject: RE: E_Roman e-commerce application(Mastering Java Beans)Wiley

RE: Best way to redirect root / URL to servlet with parameters

2001-01-19 Thread Jeff Schnitzer
You could put jsp:forward page="c?param=1" in the default.jsp. Jeff -Original Message- From: Johnson, Robert [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 8:52 PM To: Orion-Interest Subject: Best way to redirect root "/" URL to servlet with parameters Is there an easy

RE: Getting back to the previous jsp

2001-01-19 Thread Jeff Schnitzer
I believe some browsers don't issue a referrer header. You could always store the page history in the http session. At the top of every JSP (using an @include or custom tag) you could have code like this: % String lastPage = session.getAttribute("lastPage"); String currURL;

RE: Writing user managers

2001-01-19 Thread Jeff Schnitzer
Is it really necessary to have your own user manager? I model my users as entity EJBs. I use the vanilla DataSourceUserManager mapped to the same table that the entities are written to. All manipulation of user data is done through the entity beans. The only trick is that you need to set:

RE: JSP/Bean not reloading after re-deploy

2001-01-18 Thread Jeff Schnitzer
Just a thought, but have you checked the system clocks on the various machines involved? Maybe the timestamps are fouled. "reloading" of JSPs works fine for me; my deployment process just copies the new .ear over the old one. Jeff -Original Message- From: Ozzie Gurkan [mailto:[EMAIL

RE: Servlet Mapping and Access

2001-01-17 Thread Jeff Schnitzer
Have you successfully installed the sample junitee test in the JUnitEE tutorial? You shouldn't need to modify the global application.xml. Here's how my system is set up, given that my ear contains two wars, "similarity-web" and "similarity-test-web" (which contains my TestServlet and JUnit

RE: Is combining Orion and PostgreSQL a good choice

2001-01-17 Thread Jeff Schnitzer
this is (yes I'm a little bitter). My modifications are labeled with my name (Jeff Schnitzer). This modification may or may not be necessary for you; it's obvious from reading the mailing list (and the code) that nobody working on the JDBC driver has any clue what PostgreSQL is supposed to send

RE: Complex O/R and EJB 2.0 CMP

2001-01-08 Thread Jeff Schnitzer
From: Darren Pamatat [mailto:[EMAIL PROTECTED]] I like the layout of the complex-or example more so than the orion-cmp primer, because it is not required to jar it up, and classes can just be recompiled, and run (if only I could run something against it). Also, what is the difference in the EJB

RE: Question about automated testing with Orion

2001-01-05 Thread Jeff Schnitzer
Out of curiosity, why do you have so much logic in servlets that you need to test them? Is your page transition logic that complicated? I have found that by keeping all my business logic in session beans (which are tested with JUnitEE, http://www.infohazard.org/junitee), my servlets/JSPs stay

PosgreSQL (was RE: EJB Error Message in Orion Log File)

2001-01-04 Thread Jeff Schnitzer
m VHS tape. There is also an AWT replacement called Pure Java AWT from www.eteks.com, but I'm scared of it. That their website is in French only amplifies my terror. Has anyone succesfully used it with JDK1.3? Gr. /rant I feel better now. At least, I feel better pretending that I felt better

RE: Offtopic:Ant Build scripts

2000-12-28 Thread Jeff Schnitzer
I've attached a buildfile (not the orion-primer buildfile). I wanted the source to mirror the jar file structure (I think this is less confusing) and I didn't like the proliferation of dependencies in the orion-primer example. This is the result. Jeff Schnitzer [EMAIL PROTECTED] -Original

RE: When CMP fails...

2000-12-15 Thread Jeff Schnitzer
a mangled deployment descriptor, and the app server promptly sees fit to drop half the tables in the production database. Hey, it worked in the test system! :-) Jeff Schnitzer [EMAIL PROTECTED]

RE: setting radio buttons in JSP with database values

2000-12-15 Thread Jeff Schnitzer
value="Advanced" % if (course.getLevel() == LEVEL_ADVANCED) out.print("checked"); % / Jeff Schnitzer [EMAIL PROTECTED] -Original Message- From: Kemp Randy-W18971 [mailto:[EMAIL PROTECTED]] Sent: Friday, December 15, 2000 8:24 AM

RE: www.orionserver.com down again

2000-12-13 Thread Jeff Schnitzer
An interesting graph can be found here: -Original Message- From: Scott Stirling [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 13, 2000 9:02 PM To: Orion-Interest Subject: RE: www.orionserver.com down again That's because it was put back up in the interim. I've noticed these

RE: www.orionserver.com down again

2000-12-13 Thread Jeff Schnitzer
An interesting graph can be found here: http://uptime.netcraft.com/graph?display=uptimesite=www.orionserver.com (sorry about the previous chopped message) Jeff Schnitzer [EMAIL PROTECTED] -Original Message- From: Scott Stirling [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 13

RE: SV: Off topic: development tools

2000-12-12 Thread Jeff Schnitzer
to the test case - although why that would be useful is somewhat of a mystery to me, since IMHO important logic should all be in EJBs :-) Jeff Schnitzer [EMAIL PROTECTED] -Original Message- From: Jason Rimmer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 12, 2000 12:13 PM To: Orion

RE: Orion JSP form validation and redisplay...

2000-12-12 Thread Jeff Schnitzer
same bean instance. Jeff Schnitzer [EMAIL PROTECTED] -Original Message- From: Keith Kwiatek [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 12, 2000 4:15 PM To: Orion-Interest Subject: Orion JSP form validation and redisplay... Hello, Does orion have anything that helps with

Re: Anyone heard from evermind?

2000-12-11 Thread Jeff Schnitzer
Does this mean that all the java packages will be renamed from com.evermind.* to com.ironflare.* ? :-) Jeff From: Karl Avedal Subject: Re: Anyone heard from evermind? Date: Thu, 07 Dec 2000 04:15:49 -0800 Hello, I thought it was time for some explanation on our silence. Alot of things are

RE: EJB2.0 Generated class uncompilable

2000-12-11 Thread Jeff Schnitzer
)ejbContext.getEJBObject()); } catch (java.rmi.RemoteException ex) { throw new EJBException(ex); } } Of course you get data duplication in the database, but it works :-) Jeff Schnitzer [EMAIL PROTECTED] -Original Message- From: Tim Drury [mailto

RE: EJB2.0 Generated class uncompilable

2000-12-08 Thread Jeff Schnitzer
than likely, though, you have something misspecified in your deployment descriptor. Make sure you read the comments in Sun's EJB2.0 DTD thoroughly. If this doesn't help, you can try posting your deployment descriptor. Good luck, Jeff Schnitzer [EMAIL PROTECTED] -Original Message- From

RE: Changing Orion Generated SQL

2000-12-08 Thread Jeff Schnitzer
-Original Message- From: James Manning [mailto:[EMAIL PROTECTED]] Sent: Friday, December 08, 2000 7:08 AM To: Orion-Interest Subject: Re: Changing Orion Generated SQL [Jeff Schnitzer] Take a look at the documentation for orion-ejb-jar.xml. It's a lot easier if you have a few samples to look

RE: Has anyone ever solved the ClassCastException problem?

2000-12-08 Thread Jeff Schnitzer
I have generally found that a ClassCastException (usually nested three-layers deep in ominous sounding Orion exceptions) usually indicates a wrong bean (or class) specified in the deployment descriptor. For instance, I was tearing my hair out over a ClassCastException I was getting every time I

RE: Changing Orion Generated SQL

2000-12-08 Thread Jeff Schnitzer
Take a look at the documentation for orion-ejb-jar.xml. It's a lot easier if you have a few samples to look at alongside. http://www.orionserver.com/docs/orion-ejb-jar.xml.html What changes you have in mind? Jeff Schnitzer [EMAIL PROTECTED] -Original Message- From: Aniket V U

RE: sessions, inheritance and authorization

2000-11-05 Thread Jeff Schnitzer
There are many other ways of addressing this issue as well. Good luck! Jeff Schnitzer [EMAIL PROTECTED]

RE: Stateful Session timeout, JSPs

2000-11-05 Thread Jeff Schnitzer
e problem anyways). Another approach might be to do no extra checking and just simply recreate the stateful session in the error page (if the error is java.rmi.NoSuchObjectException). H that would be annoying to the user, so maybe touching the stateful session bean on ever page load would be the be

RE: EJB 2.0 Dependent bidirectional relationships not working

2000-10-25 Thread Jeff Schnitzer
r we enter this kind of stuff in Bugzilla or just leave it alone and wait. Maybe a separate category should be set up for EJB2.0 bugs? Jeff Schnitzer [EMAIL PROTECTED] -Original Message- From: John D'Ausilio [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 24, 2000 8:40 AM To: Orion-Intere

RE: Ok. I feel dumb. Data Sources and MS SQL.

2000-10-25 Thread Jeff Schnitzer
Hey, there is nothing wrong with MS SQL Server and Win2K. As someone who is not a professional DBA and has no desire to become one (I like building things, not maintaining tempermenal third-party software systems), I find that SQL Server is by far the most pleasant of the big relational

TheServerSide forgot Orion

2000-10-25 Thread Jeff Schnitzer
to develop our beans for the last several months can see the error in that statement :-) WebLogic doesn't even have support yet for container-managed relationships. Geez. I sent TheServerSide a little note urging them to issue a correction. It's more likely to happen if they get many more comme

RE: EJB 2.0 Dependent Object problem - NPE on deploy

2000-10-21 Thread Jeff Schnitzer
118) is confusing. It says that the primary key must be set by the end of ejbCreate(), but that CMR fields must not be modified until ejbPostCreate(). If a CMR field is the primary key, we seem to have a catch-22 problem... Jeff Schnitzer [EMAIL PROTECTED] -Original Message- From: Jim

I hate guest

2000-10-19 Thread Jeff Schnitzer
s tag doesn't seem to be implemented yet. So I want to give a limited security role to "guest". Heeelp! Thanks, Jeff Schnitzer [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

RE: Please help! I get null pointer exception after calling createonan EB with EJB 2.0 CMP Orion 1.3.8...

2000-10-18 Thread Jeff Schnitzer
:-) Good luck, Jeff -Original Message- From: Jim Archer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 17, 2000 1:54 PM To: Orion-Interest Cc: Jeff Schnitzer Subject: RE: Please help! I get null pointer exception after calling createonan EB with EJB 2.0 CMP Orion 1.3.8... OK

ejbtags.jar createBean is broken

2000-10-18 Thread Jeff Schnitzer
*much* more useful than the chapter in the Wrox JSP book. Jeff Schnitzer [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

ejbtags.jar createBean is broken

2000-10-18 Thread Jeff Schnitzer
*much* more useful than the chapter in the Wrox JSP book. Jeff Schnitzer [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

RE: userThreads + calling EJBs from outside orion.

2000-10-17 Thread Jeff Schnitzer
Why not test from within Orion? You might want to look at http://www.infohazard.org/junitee http://www.infohazard.org/junitee for a testrunner, servlet, and tutorial for using JUnit with Orion. If you have any trouble with the site, let me know and I'll mail you a copy of the zipfile. Jeff

RE: Please help! I get null pointer exception after calling create onan EB with EJB 2.0 CMP Orion 1.3.8...

2000-10-17 Thread Jeff Schnitzer
I have had no problems creating CMP entity beans from session beans with EJB2.0. Seems to work as advertsied :-) I suggest posting your code and descriptors; I'll take a look, and the more examples of EJB2.0 beans floating around the better :-) Jeff -Original Message- From: Jim

RE: Deployment Descriptor

2000-10-13 Thread Jeff Schnitzer
It's in Chapter 21 of the EJB2.0 Public Draft. Sun has not released the DTD in any other form, and isn't planning to until the final version of the spec. At least, that's what the two architects who are writing the spec said in the (way too short) chat Sun hosted a couple weeks ago. Has

JUnit with J2EE tutorial

2000-10-09 Thread Jeff Schnitzer
The tutorial may be a little rough; comments and suggestions are always welcome. Jeff Schnitzer [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

EJBException.printStackTrace()

2000-09-30 Thread Jeff Schnitzer
that Sun needs to take care of? For the moment I suppose I can rip the class file out of ejb.jar and add my own EJBException. Jeff Schnitzer [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

RE: EJBException.printStackTrace()

2000-09-30 Thread Jeff Schnitzer
article). For anyone else interested, here's a link to the JavaWorld article: http://www.javaworld.com/javaworld/javatips/jw-javatip91.html Thanks, Jeff Schnitzer [EMAIL PROTECTED] -Original Message- From: wim veninga [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 30, 2000 9:24 AM

EJB QL and container managed relationships

2000-09-30 Thread Jeff Schnitzer
is heading into unimplemented space, should I log bugs in Bugzilla or just assume that the authors are busily working on this very problem and don't need yet another monkey on their backs? :-) Is anyone else working with EJB2.0 beans? Thanks, Jeff Schnitzer [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

RE: JUnit with Orion, source included

2000-09-29 Thread Jeff Schnitzer
?), and the output is a lot more attractive :-) I would also like to enhance it with any features that anyone thinks might be useful for unit testing EJBs, so I'm open to any suggestions! Later, Jeff Schnitzer [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From

RE: JUnit with Orion, source included

2000-09-28 Thread Jeff Schnitzer
://www.infohazard.org/junitee great, but the link seems to be wrong. could you check? robert Enjoy :-) Jeff Schnitzer [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] I apologize if anyone is receiving

RE: How to use EJB2.0 on Orion

2000-09-21 Thread Jeff Schnitzer
Doesn't the use of the Address dependent object in the Person remote interface violate section 9.4.11 of the EJB2.0 spec? Specifically: - The Bean Provider must not expose the dependent object classes or the persistent Collection classes that are used in container managed relationships

Re: guest, principals.xml, and security roles - FIXED!

2000-09-13 Thread Jeff Schnitzer
als.xml implies that it is a user named "anonymous", but this doesn't seem to work. Is this a bug? Do I win a doughnut? Jeff Schnitzer [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] --- Original Message --- Hi folks. I'm struggling with Orion's security model in an attempt to get

guest, prinicipals.xml, and security roles

2000-09-10 Thread Jeff Schnitzer
he security-role-mapping 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 auth

<    1   2