RE: [JBoss-user] jboss2.2.1-tomcat3.2.1 w/ struts 1.0_b1 ... does it work

2001-04-22 Thread Dain Sundstrom
I had this same problem.  Try changing the order of your declarations in the web.xml file.  For me, the problem went away when I move the security section to the very end of my web.xml file.    One thing I noticed in the log file is that it appears that you have six tag libraries listed in

RE: [JBoss-user] Tomcat-JBoss ClassNotFoundException (again)

2001-04-22 Thread Dain Sundstrom
Bill, I have a fairly complicated application successfully working on JBoss 2.2.1. My application uses struts and cmp beans. I can give you information about how I package my ear file, but if you tell me which classes the system is having trouble finding, I can give a more specific answer. -dain

RE: [JBoss-user] jboss2.2.1-tomcat3.2.1 w/ struts j2ee app

2001-04-25 Thread Dain Sundstrom
I had this problem also.  It appears that Jasper (the JSP page compiler) requires that all classes used in page compilation be located in web-inf/classes or in a jar in web-inf/lib.  This is retarded, but it works.  My EJBs don't use struts so I only include in the lib directory, but I have

RE: [JBoss-user] Using JSP with JBoss

2001-04-27 Thread Dain Sundstrom
Vishal, I think Guy is suggesting that you switch your architecture it a Servlet centric model (a.k.a Model 2). Although this architecture is far superior to a JSP centric model, it is more complicated. As long as your application will ALWAYS remain small stick with your JSP centric approach. If

[JBoss-user] Tomcat JBoss security integration How-to

2001-05-02 Thread Dain Sundstrom
(SimpleRealm JbossRealm JDBCRealm). 5. Add your users to JBoss I hope I didn't leave out any steps. If you find any bugs or have any enhancements, please email me. -Dain Sundstrom package com.hypothermic.security; import org.apache.tomcat.core.Request; import org.apache.tomcat.core.Response; i

RE: [JBoss-user] Intrabean Call ?

2001-05-18 Thread Dain Sundstrom
Thomas, I noticed another bug in the code you sent. Although what you have (with the suggested changes) will most likely work in JBoss, it is not compliant with the EJB specification. In the EJB 1.1 Specification section 5.9 on page 47 is the following: A client program that is intended to be in

RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB => JAAS Authentiaction

2001-05-18 Thread Dain Sundstrom
I have made some minor changes since I last posted the code. Dain Sundstrom Recently, I have seen several posts asking how to integrate Tomcat and JBoss security. The current JBossRealm requires you to add users to both the t

RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB => JAAS Authentiaction

2001-05-18 Thread Dain Sundstrom
or how does jboss know which db and tables to use? anil Dain Sundstrom wrote: > Last month I sent the following message, which details how I integrated the > Tomcat and JBoss security systems. Scott Stark has written a new JBoss realm > that work similar to mine. His new JBoss realm is av

RE: [JBoss-user] Primary Key warnings

2001-05-18 Thread Dain Sundstrom
Norton, I had this same problem. The code you are running into follows: Object one, two; try { one = cls.newInstance(); two = cls.newInstance(); try { if(!one.equals(two)) { status = false; fireSpecViolationE

RE: [JBoss-user] Running JBoss as a Service on Windows NT/

2001-05-18 Thread Dain Sundstrom
Options. Dain Sundstrom -Original Message- From: Vineet Bhatia [mailto:[EMAIL PROTECTED]] Sent: Friday, May 18, 2001 1:37 PM To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-user] Running JBoss as a Service on Windows NT/ Thanks!! A slightly off-topic question - Will JBoss run any slo

RE: [JBoss-user] open source JMS with C interface library

2001-05-18 Thread Dain Sundstrom
You can use JNI to access any Java code from C. I have used it in the past and found it easy to use. There is now a book on JNI "Essential Jni : Java Native Interface." Alternatively, you can use Corba, or you can pay IBM or Oracle a lot of money use their commercial message que

RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB => JAAS Authentiaction

2001-05-19 Thread Dain Sundstrom
Behalf Of awc |Sent: 18 May 2001 22:01 |To: [EMAIL PROTECTED] |Subject: Re: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB => |JAAS Authentiaction | | |OK, so this pipes into to what ever you have set up. |Tks for the clarification. | |anil. | |Dain Sundstrom wrote: | |> Anil, |

RE: [JBoss-user] RE: SQLException: Unable to load a ResultSet column into a variable of type 'char'

2001-06-29 Thread Dain Sundstrom
jboss.xml file, to really test your application. If you would like to know more about the commit options read the EJB spec (in the 2.0 spec it is section 10.5.9). Dain Sundstrom > -Original Message- > From: Pelle Poluha [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 29, 2001 5:2

RE: [JBoss-user] RE: SQLException: Unable to load a ResultSet column into a variable of type 'char'

2001-06-29 Thread Dain Sundstrom
(I may have mistyped something). If this represents the end of the world for you, you could convince me to fix jaws, but it will just make the CMP 2.x stuff take longer. Dain Sundstrom > -Original Message- > From: Pelle Poluha [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 29, 2001 5

RE: [JBoss-user] Entity beans and rows in tables

2001-06-30 Thread Dain Sundstrom
time). JBoss, like most EJB servers, has an optimized mode which does not serialize parameters on remote interfaces, where the objects are collocated in the vm. So the authors are right in the general sense, but wrong for most EJB servers. Dain Sundstrom > -Original Message- >

RE: [JBoss-user] CMP 2.0 again (another bug ?)

2001-07-09 Thread Dain Sundstrom
Wei-ju, The methods should be ejbCreate(...) and ejbPostCreate(...), and your primary key must be an object not a primative, EJB 2.0 pfd3 section 9.8 (i.e., Long instead of long). Dain > -Original Message- > From: Wei-ju Wu [mailto:[EMAIL PROTECTED]] > Sent: Sunday, July 08, 2001 5:09

[JBoss-user] log4j or JBoss logging

2001-07-10 Thread Dain Sundstrom
As I modify the JBossCMP code should I change the logging over to use log4j directly or should I leave the code logging via the JBoss log layer? If I should switch to direct log4j, how do we categorize the logs? I was thinking jboss.ejb.plugins.cmp.. or some thing like that. This way I could tur

Re: [JBoss-user] Entity and session bean

2001-07-16 Thread Dain Sundstrom
EJB 1.1 Spec Section 18.1.2 item 3: An enterprise bean must not use the java.io package to attempt to access files and directories in the file system. Your code will not run on any EJB server, and likely crash most EJB servers. -dain - Original Message - From: "Saint-Martin Cecile" <[E

RE: [JBoss-user] Problem with deploying a CMP2.0 EJB on Jboss3.0

2001-09-23 Thread Dain Sundstrom
That is not true. This is CMP 2.0 your bean class must be abstract. The problem is you have: public LocalStudent create(String id, String name) throws CreateException; in your home so you must have the following in your bean impl: public String ejbCreate(String id, String name)

RE: [JBoss-user] EJB 2.0 CMP implementation class must be abstract

2001-09-23 Thread Dain Sundstrom
> According to this article > http://developer.java.sun.com/developer/technicalArticles/ebeans/ejbmigrate/ ?frontpage-jdc > an EJB 2.0 CMP bean implementation class must be abstract, will it > work in JBoss? Yes. > As I understand it JBoss does not generate "wrapper" class instead > it uses th

RE: [JBoss-user] HELP! - howto readonly particular cmp fields

2001-09-24 Thread Dain Sundstrom
You can use JBoss 3.0 and the new JBossCMP 2.0 plugin. Just create an ejb 2.0 jar and set the cmp-version of your bean to 1x (may be 1.x look it up in the spec). Then the new jbosscmp-jdbc.xml file options are available, including field level read only columns. This probably doesn't help you,

RE: [JBoss-user] HELP! - howto readonly particular cmp fields

2001-09-24 Thread Dain Sundstrom
David, I'm not sure if you know, but CMP 2.0 in JBoss 3.0 supports field level read-only. In my first implementation of CMP 2.0 I used the absence of a getter or setter to signify that the field was read-only or write-only, but the EJB 2.0 spec requires that a cmp field must have both a getter an

RE: [JBoss-user] HELP! - howto readonly particular cmp fields

2001-09-24 Thread Dain Sundstrom
emote interface if I don't want anyone to have programmatic access to it. BTW, a (probably annoying) question: when is JBoss 3 guestimated for release? Thanks yet again, David -- Dain Sundstrom wrote: > David, > > I'm not sure if you know, but CMP 2.0 in JBoss 3.0 suppor

RE: [JBoss-user] Which version of JBOSS supports EJB 2.0 SPEC.?

2001-10-19 Thread Dain Sundstrom
JBoss 3.0, which is currently only available in source from cvs. There is no scheduled release for 3.0 yet, and all I know is "soon". -dain > -Original Message- > From: Yong T. Kim [mailto:[EMAIL PROTECTED]] > Sent: Friday, October 19, 2001 2:05 PM > To: [EMAIL PROTECTED] > Subject: [J

RE: [JBoss-user] ClassCastException $Proxy3

2001-10-23 Thread Dain Sundstrom
I agree with Fred. When I run into this type of error, I find it helpful to use reflection to print out all of the super classes and implemented interfaced of the object (o in this case). -dain > -Original Message- > From: Fred Loney [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, October 2

RE: [JBoss-user] JBoss 3.0 jbosscmp-jdbc.xml not loaded

2001-10-29 Thread Dain Sundstrom
look in org.jboss.metadata.ApplicationMetaData we match on the start of the publicID. This sets a flag marking the app as ejb 2.0. Later in the cmp plugin this flag is checked and the jbosscmp-jdbc.xml file is loaded. If you really want to track down the location of the file load grep the metadat

RE: [JBoss-user] CMP 2 Bean Deploy Failed

2001-10-29 Thread Dain Sundstrom
look at org.jboss.ejb.plugins.CMPPersistenceManagern line 160. You obviously don't have a matching ejbPostCreate method. > -Original Message- > From: Hunter Hillegas [mailto:[EMAIL PROTECTED]] > Sent: Monday, October 29, 2001 6:41 PM > To: JBoss 2 > Subject: [JBoss-user] CMP 2 Bean Deploy

RE: [JBoss-user] cmp limitations

2001-11-09 Thread Dain Sundstrom
You are wrong. If you are using JBoss 2.4, read the section "Advanced options for declared finders [since JBoss 2.4]" in Chapter 6. If you are using CMP 2.0, add the option true in the defaults or entity section. -dain > -Original Message- > From: Frank Morton [mailto:[EMAIL PROTECTED]

RE: [JBoss-user] Debugging CMR

2001-11-01 Thread Dain Sundstrom
When was the last time you updated the code. I fixed a bug in that code on the 20th. The bug only appeared with self relations. This is an internal error and signifies a programming bug on my part. Just for your info, what is going on is each side of the relationship (each entity) has an objec

RE: [JBoss-user] Making EJBs comparable

2001-11-13 Thread Dain Sundstrom
It is perfectly legal in Java to implement more then one interface. > -Original Message- > From: Juergen Fiedler [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 13, 2001 11:41 AM > To: [EMAIL PROTECTED] > Subject: [JBoss-user] Making EJBs comparable > > > Hi, > > I would like to p

RE: [JBoss-user] Making EJBs comparable

2001-11-13 Thread Dain Sundstrom
Yep. As a rule you can always have many interfaces. > > And is that legal? I was under the impression that interfaces, like > classes, can only extend one interface. > > Thanks, > j > > On Wed, Nov 14, 2001 at 05:48:37AM +1100, Dmitri Colebatch wrote: > > You would actually need the remote/ho

RE: [JBoss-user] How can I obtain home variable for a application from and EJB and a Servlet ?

2001-11-23 Thread Dain Sundstrom
If security allows, you can get some variables with System.getProperties("user.home").  The problem is the EJB spec does not allow EJBs to perform any IO.  I think it is ok for a Servlet, but I am not confidant. -dain -Original Message-From: Edson Carlos Ericksson Richter [mai

RE: [JBoss-user] HELP! java.lang.Error: id may not be null

2001-09-27 Thread Dain Sundstrom
The reason we can not use a primary key that is automatically assigned in the database has to do with the limitations of the JDBC drivers. Until JDBC 3.0 there was no way to know the final value of the auto generated columns in a INSERT statement, so there would be no way to know the key for the

RE: [JBoss-user] EJB QL Help

2001-11-25 Thread Dain Sundstrom
This is a bug in the EJB-QL parser. I was making a check against only the known abstract schemas and not the known collection valued identifiers. -dain > -Original Message- > From: Hunter Hillegas [mailto:[EMAIL PROTECTED]] > Sent: Sunday, November 25, 2001 5:09 PM > To: JBoss 2 > Subjec

RE: [JBoss-user] Redux of Performance Issues

2001-11-27 Thread Dain Sundstrom
Geoffrey, Buy a day's worth of consulting from the JBoss Group and I'm sure they can get the optimized stack working for you application. Otherwise, profile the app yourself and see what is taking 90% of the time. I promise you it will be in the serialization code. -dain > -Original Messag

RE: [JBoss-user] EJB QL Help

2001-11-27 Thread Dain Sundstrom
No, I'm in the middle of a major reorganization of the code? Maybe later tonight. -dain > -Original Message- > From: Hunter Hillegas [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 27, 2001 5:37 PM > To: Dain Sundstrom; JBoss 2 > Subject: Re: [JBoss-user] EJB

RE: [JBoss-user] Re: [JBoss-dev] Local Interfaces in Rabbit Hole - Working?

2001-11-26 Thread Dain Sundstrom
xception e) { throw new ServletException(e.toString()); } -dain > -Original Message- > From: Hunter Hillegas [mailto:[EMAIL PROTECTED]] > Sent: Monday, November 26, 2001 2:21 PM > To: Dave Smith > Cc: Dain Sundstrom; JBoss 2 > Subject: Re: [JBoss-user] Re: [JBoss-dev

RE: [JBoss-user] EJB QL Help

2001-11-28 Thread Dain Sundstrom
Try it out. It should be fixed now. -dain > -Original Message- > From: Hunter Hillegas [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, November 28, 2001 4:19 PM > To: Dain Sundstrom; JBoss 2 > Subject: Re: [JBoss-user] EJB QL Help > > > Very cool. I don't m

RE: [JBoss-user] rh: using local interfaces

2001-12-02 Thread Dain Sundstrom
If you are attempting to do this from the web container (jsp, servlet), you need to package your application into an ear. -dain > -Original Message- > From: Jozsa Kristof [mailto:[EMAIL PROTECTED]] > Sent: Sunday, December 02, 2001 3:16 AM > To: Dmitri Colebatch > Cc: [EMAIL PROTECTED] >

RE: [JBoss-user] where is CMP2.0 documentation?

2001-12-03 Thread Dain Sundstrom
The old how-to that was included in the free JBoss manual was very buggy and outdated, so I removed the link. You can find the docbook source for the old how-to at: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/~checkout~/jboss/manual/src/x docs/howto/howtocmp2.xml?rev=3.0&content-type=text/pla

RE: [JBoss-user] Packaging

2001-12-03 Thread Dain Sundstrom
This is caused by jasper invocation of javac. Javac is invoked with a command line classpath option, which only includes the classes in the war. They way you fix it is to include your application-ejb-client.jar in both places. You MUST set the manifest.mf classpath option to load the application

RE: [JBoss-user] EJB QL Help

2001-11-28 Thread Dain Sundstrom
ng on. I do know it is very simple, but the ejb spec is to den > > > >> From: Dain Sundstrom <[EMAIL PROTECTED]> > >> Date: Tue, 27 Nov 2001 18:24:02 -0600 > >> To: "'Hunter Hillegas'" <[EMAIL PROTECTED]>, JBoss 2 > >> <

RE: [JBoss-user] EJB QL Help

2001-11-28 Thread Dain Sundstrom
ng on. I do know it is very simple. -dain > -Original Message- > From: Hunter Hillegas [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, November 28, 2001 3:05 PM > To: Dain Sundstrom; JBoss 2 > Subject: Re: [JBoss-user] EJB QL Help > > > Wow, the new code does seem to p

RE: [JBoss-user] CMP 2.0 Support in 2.4.x ?

2001-12-11 Thread Dain Sundstrom
CMP 2.0 is only in JBoss 3.0. I think that the docs are worth money, but I wrote them. -dain > -Original Message- > From: Niall Keane [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 11, 2001 9:41 PM > To: [EMAIL PROTECTED] > Subject: [JBoss-user] CMP 2.0 Support in 2.4.x ? > >

RE: [JBoss-user] Data Base Configuration in JBoss 3.0

2001-12-13 Thread Dain Sundstrom
RTFM Chapter 3 http://www.jboss.org/online-manual/HTML/ch03.html -Original Message-From: Rama Rao [mailto:[EMAIL PROTECTED]]Sent: Thursday, December 13, 2001 11:25 PMTo: [EMAIL PROTECTED]Subject: [JBoss-user] Data Base Configuration in JBoss 3.0 Hi All, Could any body ex

RE: [JBoss-user] I know that this is a Common question but I couldn't find a good answer

2001-12-14 Thread Dain Sundstrom
I would say definitely yes, but you will get a better response asking this on the online forums.  There are several places running massive systems like this.  What time frame and version will you be targeting.  If you are planning to use JBoss 3.0, you should ask some questions in the cluste

RE: [JBoss-user] forum not as responsive as the mailing list

2001-12-20 Thread Dain Sundstrom
I personally find the forums tedious to read, so I end up reading them less often. As a result less cmp 2 questions get answered. I also loose messages in the forum because it does not track which messages I have read. -dain > -Original Message- > From: Lennart Petersson [mailto:[EMAI

RE: [JBoss-user] forum not as responsive as the mailing list

2001-12-20 Thread Dain Sundstrom
I didn't mean to start the mailing list vs. forum discussion again. I was just stating how the change affects me. Marc has made a decission and he is unlikely to change his mind. -dain > -Original Message- > From: Bordet, Simone [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 20,

RE: [JBoss-user] how to: CMP, findAll()

2001-12-20 Thread Dain Sundstrom
It should return a collection. If you are using JAWS, you don't need to configure anything. If you are using JBossCMP (CMP 2.0), you don't need to declare anything either, but I will be changing this soon to be an error. The EJB 2.0 spec requires that every query to have a declaration in the ejb-

RE: [JBoss-user] Frequent calls to ejbStore

2002-01-04 Thread Dain Sundstrom
Title: RE: [JBoss-user] Frequent calls to ejbStore Jochen,   The  problem is that you are not accessing your entity from within a transaction, so the container creates a new transaction each time you call your entity and commits the transaction before returning.  Either call your entity from

RE: [JBoss-user] Frequent calls to ejbStore

2002-01-05 Thread Dain Sundstrom
Title: RE: [JBoss-user] Frequent calls to ejbStore "... not only is ejbStore called after every method invocation, but ejbLoad is called before every invocation too! " ... didn't happen in my case.   Interesting ... I saw very much the same thing w/ the exception that every

RE: [JBoss-user] Updating CastorJDO plugin for 2.4.4

2002-01-10 Thread Dain Sundstrom
> the main reason we looked at castor was the > shared access on > query results, so I could have two "findAll" methods running, > and if they > were both read only, there would be no lockouts. This to me > is the biggest > disadvantage of entity beans as they currently stand, I for > one don

RE: [JBoss-user] Jboss - system requirements

2002-01-15 Thread Dain Sundstrom
It think the problem is that it all depends on the configuration of JBoss. JBoss uses a micro kernel architecture, so to get just the kernel started requires very little hardware (much less then a vm). Starting the EJB service also requires very little hardware. The real hardware requirement are

RE: [JBoss-user] CMP2.0 Example

2002-01-16 Thread Dain Sundstrom
CMP 2.0 is only in JBoss 3.0. The full code examples are included in the CMP 2.0 docs. -dain > -Original Message- > From: Steve Knight [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 16, 2002 10:14 AM > To: [EMAIL PROTECTED] > Subject: RE: [JBoss-user] CMP2.0 Example > > > I was

RE: [JBoss-user] Jboss build problems

2002-01-16 Thread Dain Sundstrom
Install cygwin on your 98 box, and run build.sh from the cygwin bash shell. -dain > -Original Message- > From: Sacha Labourey [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 16, 2002 10:15 AM > To: Steve Knight; [EMAIL PROTECTED] > Subject: RE: [JBoss-user] Jboss build problems >

RE: [JBoss-user] Problem using ejbSelect methods in ejbHome methods in 3.0alpha

2002-01-16 Thread Dain Sundstrom
Does the spec allow for this? If it does, I'll fix it. -dain > -Original Message- > From: Carroll, Jason [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 16, 2002 8:08 AM > To: '[EMAIL PROTECTED]' > Subject: [JBoss-user] Problem using ejbSelect methods in > ejbHome methods > in 3.

RE: [JBoss-user] Problem using ejbSelect methods in ejbHome metho ds in 3.0 alpha

2002-01-16 Thread Dain Sundstrom
Would you file a bug report on this? -dain > -Original Message- > From: Carroll, Jason [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 16, 2002 11:04 AM > To: 'Dain Sundstrom'; '[EMAIL PROTECTED]' > Subject: RE: [JBoss-user] Problem using ejbSele

RE: [JBoss-user] Problems in JBoss3.0 alpha in creating in EJBCreate

2002-01-16 Thread Dain Sundstrom
You are not setting the primary key fields in the ejbCreate method. -dain > -Original Message- > From: Hand, Brian [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 16, 2002 10:59 AM > To: '[EMAIL PROTECTED]' > Subject: [JBoss-user] Problems in JBoss3.0 alpha in creating in > EJBCrea

RE: [JBoss-user] JBoss CMP DataType CLOB

2002-01-16 Thread Dain Sundstrom
There is code in 2.4 and 3.0 for handling CBLOB and BLOB. If it doesn't work submit a bug report at Source Forge. -dain > -Original Message- > From: Thieme, Winfried [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 16, 2002 5:10 AM > To: '[EMAIL PROTECTED]' > Subject: [JBoss-user]

RE: [JBoss-user] Problem with CMP2.0 example

2002-01-16 Thread Dain Sundstrom
You are using the source from cvs tip, right? Yesterday, I checked in the new read ahead code. This code supports read ahead on-find and read ahead of relationships. This required a change in the read-ahead metadata. The new read ahead xml is as follows: on-load 500 gro

RE: [JBoss-user] Question about JBoss vs. WLS

2002-01-16 Thread Dain Sundstrom
No, just put your ear, war, or jar in the deploy directory and JBoss will bring it up on startup.   -dain -Original Message-From: Kris Kristensen [mailto:[EMAIL PROTECTED]]Sent: Wednesday, January 16, 2002 2:39 PMTo: Jboss-supportSubject: [JBoss-user] Question about JBoss v

RE: [JBoss-user] Question about JBoss vs. WLS

2002-01-16 Thread Dain Sundstrom
Question about JBoss vs. WLS I should have mentioned that this particular jar is not an EJB, it's an ordinary java application.   Cheers Kris - Original Message ----- From: Dain Sundstrom To: 'Kris Kristensen' ; Jboss-support Sent: Wednesday,

RE: [JBoss-user] FW: deploying CMP local entity bean problem

2002-01-16 Thread Dain Sundstrom
You have the wrong DOCTYPE in your ejb-jar.xml file. Therefore the server is loading your classes with the JAWS persistence engine, which only supports cmp 1.1.  Make sure you have the EJB 2.0 DOCTYPE.  This is covered in the JBoss CMP documentation which includes a full source example.   -

RE: [JBoss-user] PostgreSQL Large Object support???

2002-01-16 Thread Dain Sundstrom
Is there something fundamentally different about postgres "Large Objects"? If they are just another data type, then change the sql-type of the column you want to use the "Large Object". If it requires special handling of the prepared statement or result set it is unlikely to happen (I try to avoi

RE: [JBoss-user] Passing Business Exception to Client

2002-01-16 Thread Dain Sundstrom
It isn't that Entity beans are not designed to handle the error. The problem that JDBC was not designed to handle this type of error. There is only one exception in the java.sql package. There is no generic way to determine the cause of a database error, so you will end up with database specific

RE: [JBoss-user] jboss.xml for CMP 2.0 beans

2002-01-17 Thread Dain Sundstrom
I would suggest buying the docs. If you don't want to spend the money your can read the jbosscmp-jdbc dtd, and use the test cases in the testsuite cvs module as an example. -dain > -Original Message- > From: Màris Orbidàns [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 17, 2002 5:

RE: [JBoss-user] deploying CMP local entity bean, NullPointerExce ption when it's invoked

2002-01-18 Thread Dain Sundstrom
Order by is currently not supported in EJB-QL. -dain > -Original Message- > From: Frank Xia [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 18, 2002 9:35 AM > To: [EMAIL PROTECTED] > Subject: RE: [JBoss-user] deploying CMP local entity bean, > NullPointerExce ption when it's invoked >

RE: [JBoss-user] deploying CMP local entity bean, NullPointerExce ption when it's invoked

2002-01-18 Thread Dain Sundstrom
. BTW, does anyone know of any good books, tutorials, articles, example source using/about javacc? -dain > -Original Message- > From: Hunter Hillegas [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 18, 2002 11:44 AM > To: Dain Sundstrom; 'Frank Xia'; JBoss 2 >

RE: [JBoss-user] deploying CMP local entity bean, NullPointerExce ption when it's invoked

2002-01-18 Thread Dain Sundstrom
Message- > From: Frank Xia [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 18, 2002 12:53 PM > To: 'Dain Sundstrom'; [EMAIL PROTECTED] > Subject: RE: [JBoss-user] deploying CMP local entity bean, > NullPointerExce ption when it's invoked > > > Dain,

RE: [JBoss-user] CMP 2.0 Foreign Key ...

2002-01-19 Thread Dain Sundstrom
Ok. Think for a second.  You told the system that you have related entities and then gave it no where to store the relation information.  If you don't want to use foreign keys then you must use a relation-table.   -dain -Original Message-From: Rama Rao [mailto:[EMAIL PROTECTED]]

RE: [JBoss-user] Table Creation .. JBoss 3.0

2002-01-19 Thread Dain Sundstrom
Directionality of a relationship had nothing to do with the database mapping.  The default database mapping for a one-to-many relationship is to add a foreign key to the many side.   -dain -Original Message-From: Rama Rao [mailto:[EMAIL PROTECTED]]Sent: Saturday, January 19, 2002

RE: [JBoss-user] in jboss-3.0

2002-01-19 Thread Dain Sundstrom
This is covered in the JBossCMP docs.  If you don't want to buy the docs, you can look at the dtd or the cmp2 testsuite.   -dain -Original Message-From: Rama Rao [mailto:[EMAIL PROTECTED]]Sent: Saturday, January 19, 2002 12:37 PMTo: [EMAIL PROTECTED]Subject: [JBoss-user] i

RE: [JBoss-user] Postgres Boolean Mapping with JBossCMP

2002-01-21 Thread Dain Sundstrom
In the latest 3.0 code, I changed it to the following: java.lang.Boolean CHAR BOOLEAN This was the consensus on the dev list. -dain > -Original Message- > From: Hunter Hillegas [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 21, 2002 1:25 PM > To: JBoss 2 > Subject: [JBos

RE: [JBoss-user] JBoss 3.0.0alpha problem

2002-01-28 Thread Dain Sundstrom
The problem is happening before the persistence manager is initialized during the initialization of the instance cache. The following line is the most important in the stack trace: org.jboss.ejb.plugins.AbstractInstanceCache.init (AbstractInstanceCache.java: 347) If you look at that file you wi

Re: [JBoss-user] EJB-QL parse error

2002-02-07 Thread Dain Sundstrom
It usually means a syntax error. I will be working on a rewrite of the parser that gives good error messages when I get back in town. -dain Quoting [EMAIL PROTECTED]: > Hello, > > Does anyone know if a "parse error" in the EJB-QL parser really means > "syntax error" or a semantic error ? >

Re: [JBoss-user] Streams

2002-02-12 Thread Dain Sundstrom
Two things come to mind here. First, values passed over local interfaces don't have to be serializable. Second, EJBs are forbidden from performing IO, because IO can block forever (you can cheat of course). How are you planning on getting this into the database? You can't create a CMP field

Re: [JBoss-user] Objects in entity beans are not updated

2002-02-13 Thread Dain Sundstrom
Here is the code I use when you set a 2.x cmp field: public void setInstanceValue(EntityEnterpriseContext ctx, Object value) { FieldState fieldState = getFieldState(ctx); // short-circuit to avoid repetive comparisons // if it is not currently loaded or it is already dirty or //

Re: AW: [JBoss-user] How can I use a background process with JBos s

2002-02-13 Thread Dain Sundstrom
There is a good article in this month's JavaPro. It is online at: http://www.fawcette.com/javapro/2002_02/magazine/features/tmodi/ -dain Edward Q. Bridges wrote: > my curiosity has been piqued. what's involved in making a .rar? > is there someone that would be interested in helping me spec i

Re: [JBoss-user] Copy protection

2002-02-20 Thread Dain Sundstrom
You can't. You will have to learn to trust with your users. -dain Leigh Wanstead wrote: > Hello everyone, > > I am not sure if this is a correct place to ask. Anyway, here is the > question. > > How to protect your ear files? I mean if you deploy ear into application > server, how you preve

Re: [JBoss-user] Copy protection

2002-02-21 Thread Dain Sundstrom
You really don't understand the basic theory of cryptography, which assumes you have a trusted source and a trusted sink. The source and sink are people not machines. For example the movie industry believed that DVD copy protection was unbreakable, because they controlled the sink software.

Re: [JBoss-user] CMP2.0 Uni-directional Relationship problem

2002-02-21 Thread Dain Sundstrom
Directionality of a relationship has nothing to do with the table structure that is automatically generated. If you want an specific mapping you will have to specify it in the jbosscmp-jdbc.xml file. -dain Robertson, Jason wrote: > I have what I think is a uni-directional relationship > (Rol

Re: [JBoss-user] Copy protection

2002-02-21 Thread Dain Sundstrom
ked, someone > able to hack th JAVA VM could do the job. > > This risks may be important to analyse for > financial transaction security, privacy protection, > or secrecy, but not just for > software licensing. > > > > >>-Message d'origine- &g

Re: [JBoss-user] CMP2.0 Foreign Key (?) Problem

2002-02-21 Thread Dain Sundstrom
This is definitely a job for the jbosscmp-jdbc.xml file. What version of JBoss are you using? The structure of this file changed between the alpha and the beta. The xml for the classic Order-LineItem in JBoss 3.0 beta follows: Order-LineItem order.getLineitems()

Re: [JBoss-user] Jboss 3 alpha : error when trying to remove entity bean

2002-02-24 Thread Dain Sundstrom
It looks like you are trying to use a not-null foreign key column, which is not supported by the CMP 2.0 persistence engine. -dain David Goodwin wrote: > Hi all, > > I have a many to one relationship between module and assessment (one > module may have many assessments) in the project I am w

Re: [JBoss-user] Jboss 3 alpha : error when trying to remove entity bean

2002-02-24 Thread Dain Sundstrom
David Goodwin wrote: > Dain Sundstrom wrote: > >> It looks like you are trying to use a not-null foreign key column, >> which is not supported by the CMP 2.0 persistence engine. >> >> -dain >> > > Hello (again) > > Is this a limitation of C

Re: [JBoss-user] Entity bean as a facade?

2002-02-24 Thread Dain Sundstrom
My solution. Write a servlet filter that synchronizes on the session object before child invocation. -dain Mikhail Akopov wrote: > Hi all. > > Rather often problem: access to the same bean from several threads. > (e.g. servlet which works with multiframed HTML). > > Usual solution is to crea

Re: [JBoss-user] Q : database and entity bean development

2002-02-25 Thread Dain Sundstrom
David, Build the beans first, as they are likely to change drastically during development. Then as your development winds down, lock down the exact db mapping. The only real negative to this approach is if you need some default data in your db for testing and you want to load this with a sql

Re: [JBoss-user] Entity bean as a facade?

2002-02-25 Thread Dain Sundstrom
This is how everyone I know does it. As for why not do it the way you suggested, KISS. -dain Mikhail Akopov wrote: > Hello Dain, > > Monday, February 25, 2002, 12:05:15 AM, you wrote: > > DS> My solution. Write a servlet filter that synchronizes on the session > DS> object before child inv

[JBoss-user] Re: [JBoss-dev] Tshirts at JavaOne FREE TRAINING

2002-02-25 Thread Dain Sundstrom
> JBoss: > All your J2EE are belong to us Maybe I'm an idiot, but what the hell does this mean? -dain ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user

Re: [JBoss-user] Q : database and entity bean development

2002-02-26 Thread Dain Sundstrom
> Am i right in thinking that if i used BMP (Bean managed persistence) I > would get around all my problems so far (e.g. I can't at the moment have > foreign keys as part of the primary key etc) ? Sure. When you get done writing a couple thousand lines of code to manage a simple relationship,

Re: [JBoss-user] Re: JBoss-user digest, Vol 1 #1893 - 10 msgs

2002-02-26 Thread Dain Sundstrom
Jonathan Gibbons wrote: > > >>This is how everyone I know does it. As for why not do it the way you >>suggested, KISS. >> >>-dain >> > > You mean ditch EJB, and JBoss and use JSP's? > :-) > Yep, this is problem in the basic web architecture and is best solved in the tier. BTW, I was sugg

Re: [JBoss-user] Q : database and entity bean development

2002-02-26 Thread Dain Sundstrom
danch wrote: > David Goodwin wrote: > >> Dain Sundstrom wrote:>> >> >>> If you do design your db first, don't try to use not null foreign >>> keys or foreign keys in your primary key, as neither work yet. >>> >>> -dain &g

[JBoss-user] New EJB-QL compiler (ORDER BY and DynamicQL)

2002-02-26 Thread Dain Sundstrom
The new EJB-QL compiler is finished and checked in tip. The new compiler is a complete rewrite in JavaCC, and is much faster, easier to maintain, and has error messages. I was surprised by the number of errors I found in the old parser. You guys haven't been pushing the engine enough, so to

Re: [JBoss-user] CMP2.0 Create Problem

2002-02-28 Thread Dain Sundstrom
You can't use database autonumber columns, and you can't have not-null foreign keys. Both of these will eventually be supported. -dain Robertson, Jason wrote: > jboss3.0.0beta, jdk1.3.1_02, MySQL > > Two questions: > > 1. I understand that for CMR fields you set them in ejbPostCreate, but w

Re: [JBoss-user] CMP2.0 Create Problem

2002-02-28 Thread Dain Sundstrom
ey, and would be why > the exception is getting thrown. > > Any other ideas? > > Jason > > > p.s. I found a small error in my code below in that I was returning a String > from ejbCreate when it should be an Integer, it's been fixed. > > -Original Mess

Re: [JBoss-user] How do I run JBoss when deployment descriptor dtd's are unavailable?

2002-03-05 Thread Dain Sundstrom
It is much easier than that. Just change the url in the doctype to a local file url. -dain Adrian Brock wrote: > This DTD was missing from the XmlFileLoader before Feb 2nd this > year. Any versions of JBoss3 after that should be ok. > > A temporary solution would be to run a webserver on yo

Re: [JBoss-user] Transactions Idling - Blocking? App Dead. New problem?

2002-03-06 Thread Dain Sundstrom
Hunter Hillegas wrote: > This is a commerce application for selling music. I have servlets that talk > to SLSBs that talk to EJB (2.0 CMP Entities). My SLSBs are all set with > Required and the entities are all > Supports. It seems that if enough users > access parts of the application, the trans

Re: [JBoss-user] questions about JBossCMP

2002-03-11 Thread Dain Sundstrom
Scheil, Sven wrote: > We've tested JBoss 2.4.0 a time ago and missed the ejb2.0 support. > > Now I've read JBoss 3 comes with an integrated CMP Module JBossCMP, but > can't find any further information (may be in the docs for $10?). Yes the JBossCMP docs has the info/ > Can someone help me

Re: [JBoss-user] Using relations

2002-03-14 Thread Dain Sundstrom
This is a bug. Can you post a bug report with the inner stacktrace, if you got one (this is the outer trace)? The application tx data map contains application level data associated with the current transaction. It is used for the read-ahead cache, among other things. -dain Dave Smith wrot

Re: [JBoss-dev] RE: [JBoss-user] JBOSS 3.x FINAL

2002-03-14 Thread Dain Sundstrom
Let me get this. You are mad because you didn't get some congratulatory email within three hours of your offer? So here you go: To quote Nike "Just do it". If you want help, I suggest you use the Marines saying "Follow Me". And from me. "Enough talk, go do it" When you eventually get suck

  1   2   3   4   5   6   >