RE: [JBoss-user] Auto-Incr

2001-07-08 Thread Chris Tragas
the disadvantages is a transactional one from a multi user perspective; a good way to model your increments is to immitate what oracle does with its sequence objects; Chris Tragas - [EMAIL PROTECTED] - www.atomicmed

Re: [JBoss-user] Auto-Incr

2001-07-08 Thread Wei-ju Wu
Could you please explain me the difference between using an AutoNumberBean and just doing a SELECT MAX() FROM please ? I think these both approaches are similar and the above one is the one I use. Is there a performance disadvantage using a select max or can the database optimize the access by

Re: [JBoss-user] Auto-Incr

2001-07-08 Thread Devraj Mukherjee
Hi, I solved this problem by creating the table with a normal integer as the primary key and then writing a AutoNumberBean. The AutoNumberBean is another CMP bean which just keeps track of an Integer per table. If you want I can send you the code for it as well. Devraj At 23:15 8/07/01 -0700

Re: [JBoss-user] Help

2001-07-08 Thread Devraj Mukherjee
Are you sure it is not a lookup error. Devraj At 11:48 9/07/01 +0530, you wrote: Hi all, Iam working on an application that uses EJBs and JSPs. Im using JDK1.3.Till recently we were using BEA Weblogic but now want to change over to JBoss.I did as told in documentation and am able to get the jsp pa

[JBoss-user] Help

2001-07-08 Thread sharath
Hi all, Iam working on an application that uses EJBs and JSPs. Im using JDK1.3.Till recently we were using BEA Weblogic but now want to change over to JBoss.I did as told in documentation and am able to get the jsp pages which do not call a bean. But iam getting an error as soon as the server

[JBoss-user] Auto-Incr

2001-07-08 Thread L. Yeung
i'm using mysql for my database and created an auto-incrementing pk on a table. i wrote an entity bean which creates a row having a pk value of 0 "zero". mysql maps the value of 0 "zero" to the last-pk-value + 1. however, when i retrieve my data through ejb, the pk still contains 0 "zero". im usin

[JBoss-user] DataSource lookup failure-env not bound

2001-07-08 Thread Chitrapandian N
Hi,     I am using JBoss2.2.2 , I have an issue due DataSource lookup failure. I have created a DataSource "WebNmsDB" (MySql) related changes are made in conf file and is successful, here is message from console,   [JDBC provider] Starting [JDBC provider] Started [WebNmsDB] Starting [WebNmsDB] XA

[JBoss-user] sb queues and clients

2001-07-08 Thread G.L. Grobe
Are there any examples in the JBoss CVS that show how to configure a Queue from a Session Bean (not MDB's as shown in the docs)? And if possible, a client that receives the message?   Adv(Thnxs)ance

Re: [JBoss-user] DataSource age of aquarius

2001-07-08 Thread Richard Bottoms
Ah, all is right with the world, the Fifth Dimension are singing, and data is flowing. Thanks for all the help. BTW, the driver jboss-jdbc_ext.jar goes in /lib/ext. r.b. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/

Re: [JBoss-user] validation and setErrorHandler?

2001-07-08 Thread G.L. Grobe
The errors went away after placing the tag as the last line in my .   Now I wonder why you guys don't see this because the is placed between and in the jboss-test web.xml's, exactly where I had it placed.   Anyways, Thnxs.   - Original Message - From: Allen fogleson T

RE: [JBoss-user] DataSource at last

2001-07-08 Thread Richard Bottoms
At 08:19 PM 7/8/01 -0700, you wrote: >At 09:38 PM 7/8/01 +0200, you wrote: >>jboss-jdbc_ext.jar Restarted again and it worked. r.b. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user

Re: [JBoss-user] DataSource

2001-07-08 Thread Richard Bottoms
At 06:03 PM 7/8/01 -0400, you wrote: >import javax.sql.DataSource; (Just a reminder, this is a .jsp) I get an error, not found on import. >jboss-jdbc_ext.jar I added it to /jboss2/jboss/lib. Same error. I tried /jboss2/jboss/lib/ext. Same error. r.b. _

RE: [JBoss-user] DataSource

2001-07-08 Thread Richard Bottoms
At 09:38 PM 7/8/01 +0200, you wrote: >jboss-jdbc_ext.jar Is this listing everything that is supposed to be in my /jboss/lib directory at the moment? Some files are obviously updated version of existing files, others are new: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/jbosspool/lib/

Re: [JBoss-user] validation and setErrorHandler?

2001-07-08 Thread Allen fogleson
The sun DTD is very picky about order in the web.xml, check that first.   Al   - Original Message - From: G.L. Grobe To: [EMAIL PROTECTED] Sent: Sunday, July 08, 2001 6:48 PM Subject: [JBoss-user] validation and setErrorHandler? After seeing the jbosstest ex

[JBoss-user] Can't find EJB method

2001-07-08 Thread leigh
Hello everyone, I got a question regarding to JBoss. Computer environment: AMD Athlon 1.1GHZ Windows 2000 server Service Package 2 JBoss-2.2.1_Tomcat-3.2.1 JDK 1.3.1 I started run_with_tomcat.bat everything is fine. Servlet works, but if that servlet try to call EJB stuff, it throws exception

Re: [JBoss-user] rollback jdbc transaction

2001-07-08 Thread danch
Jure, Something just occured to me as I was working on this. Do you close the connection that you get from the datasource? I seem to recall that we've seen similiar errors when connections are left open through a rollback. You might still get a rollback exception at the client, but the transac

[JBoss-user] validation and setErrorHandler?

2001-07-08 Thread G.L. Grobe
After seeing the jbosstest examples, I was able to get my servlet lookups to ejb's working, but with the following output. (btw - thnxs).   ... [Default] JBoss 2.2.2 Started in 0m:45s[EmbeddedTomcatSX] Warning: validation was turned on but an org.xml.sax.ErrorHandler was not[EmbeddedTomcatSX

Re: [JBoss-user] 's needed?

2001-07-08 Thread G.L. Grobe
heh, darn, another config.   i have ejb-refs in my web.xml, and my jboss-web.xml is empty, and i can even remove the jboss-web.xml and it will still work. i also have ejb-refs in my ejb-jar and i do not have a jboss.xml.   i finally got it working after looking at some of the examples in the

Re: [JBoss-user] 's needed?

2001-07-08 Thread Allen fogleson
When you have ejb-ref's you will also need a jboss-web.xml (for the war file) and possibly jboss.xml if you have ejb-ref's in your bean jars.   Al   - Original Message - From: G.L. Grobe To: [EMAIL PROTECTED] Sent: Sunday, July 08, 2001 3:09 PM Subject: [JBoss-user]

Re: [JBoss-user] DataSource

2001-07-08 Thread Allen fogleson
import javax.sql.DataSource; - Original Message - From: "Richard Bottoms" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, July 08, 2001 1:05 PM Subject: Re: [JBoss-user] DataSource > At 07:15 AM 7/8/01 -0400, you wrote: > >your lookup is wrong. assuming you have a resource ref

RE: [JBoss-user] DataSource

2001-07-08 Thread Vincent Harcq
jboss-jdbc_ext.jar > -Message d'origine- > De : [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]De la part de Richard > Bottoms > Envoye : dimanche 8 juillet 2001 19:06 > A : [EMAIL PROTECTED] > Objet : Re: [JBoss-user] DataSource > > > At 07:15 AM 7/8/01 -0400, you wrote: > >your lookup

Re: [JBoss-user] can't use java:comp/env ???

2001-07-08 Thread Scott M Stark
You can use the PortableRemoteObject.narrow() to cast the JNDI object to the approriate type is JBoss. Look at the jbosstest org/jboss/test/web unit test ear which includes numerous examples of servlets accessing ejbs and resources from the standard ENC namespace. The jbosstest-web.ear can be bui

[JBoss-user] 's needed?

2001-07-08 Thread G.L. Grobe
If I put the tag in, I get errors when the war loads upon initialization of JBoss. If I leave it out, it loads successfully. But still doesn't work once I browse the servlet. I get 'ejb not bound' errors.   It's been suggested to me both ways and I just wanted to get a more concrete answer

[JBoss-user] can't use java:comp/env ???

2001-07-08 Thread G.L. Grobe
I was wondering if maybe I have found my problem and wanted to verify this with someone (though I can't get it to work, I might be on the right track).   Under the section 'Standard behaviour of JBoss' on this page http://jboss.org/documentation/HTML/ch06s02.html it states that "JBoss does n

Re: [JBoss-user] Datasource Lookup from a standalone client

2001-07-08 Thread David Jencks
While I agree with you %120 about the advisability of remotable datasources, one of the implementation possibilities for an application container the spec mentioned appeared to me (on a brief reading) to be remotable datasources. Possibly this is the motivation for Weblogic's implementation?? I

Re: [JBoss-user] DataSource

2001-07-08 Thread Richard Bottoms
At 01:59 PM 7/8/01 +0100, you wrote: >btw, if you check archives you'll find the jboss-web.xml file that needs to >go with this. That part's already installed. Thanks, r.b. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.n

Re: [JBoss-user] DataSource

2001-07-08 Thread Richard Bottoms
At 07:15 AM 7/8/01 -0400, you wrote: >your lookup is wrong. assuming you have a resource reference in your >web.xml and a mapping in jboss-web.xml then you should be able to >lookup the datasource with... > >DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/mysql"); > >Al I must be missi

Re: [JBoss-user] Casting home interface to correct bean type

2001-07-08 Thread David Ward
Just as an FYI, though I haven't tried it on WebLogic yet, re-using and interfaces with different 's also works in the J2EE SDK 1.3 as well as in JBoss (I just tested it a couple days ago). WMckean, I'm still interested in you sending me the WebLogic info (and the "obscure spec" reference)

Re: [JBoss-user] For those that are still around on saturday

2001-07-08 Thread John Collins
marc fleury wrote: > > hey it seems to work and we are quite a few throwing messages around, try > again Sorry, it works now, I had cookies turned off. Probably you should be detecting that and producing an error message? John Collins ___ JBoss-user

RE: [JBoss-user] Strange Behavior When DataSource goes down.

2001-07-08 Thread Ferguson, Doug
The JBoss issue is two-fold: When a minerva pool is configured with Blocking = true then 1) When you run your app and you run a query it haults the entire app and will waiting for infinity trying to get that connection... there is no timeout 2) When you cannot restart jBoss because when jBoss

RE: [JBoss-user] [Microsoft][ODBC SQL Server Driver]Optional feature not implemented

2001-07-08 Thread Vincent Harcq
INET drivers need 4.10FIX version (info coming to me privately last week). Use Minerva Pool for the moment(don't know if this version is downloadable) org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl <=== or org.minerva.blablabla for JBoss 2.2 SQLServerPool jdbc:inetdae7:localhost sa

Re: [JBoss-user] [Microsoft][ODBC SQL Server Driver]Optional feature not implemented

2001-07-08 Thread Guy Laurent
The server log follow for the error in the Subject field when using the ODBC bridge. Also, see below, I have changed the driver to the inet one. Still no luck but an error of a similar nature. [JAWS] java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Optional feature not implemented [JAWS]

Re: [JBoss-user] DataSource

2001-07-08 Thread Vinay Menon
btw, if you check archives you'll find the jboss-web.xml file that needs to go with this. - Original Message - From: "Richard Bottoms" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, July 08, 2001 11:46 AM Subject: [JBoss-user] DataSource > Please clairfy something for me. > >

Re: [JBoss-user] DataSource

2001-07-08 Thread Vinay Menon
DataSource ds = (DataSource)ctx.lookup("java:/mysql"); - Original Message - From: "Richard Bottoms" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, July 08, 2001 11:46 AM Subject: [JBoss-user] DataSource > Please clairfy something for me. > > This doesn't work in my JSP: > > I

Re: [JBoss-user] DataSource

2001-07-08 Thread Allen fogleson
your lookup is wrong. assuming you have a resource reference in your web.xml and a mapping in jboss-web.xml then you should be able to lookup the datasource with... DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/mysql"); Al - Original Message - From: "Richard Bottoms" <[EMAI

[JBoss-user] DataSource

2001-07-08 Thread Richard Bottoms
Please clairfy something for me. This doesn't work in my JSP: InitialContext ctx = new InititalContext(); ok here DataSource ds = (DataSource)ctx.lookup("jdbc/mysql"); fails Could someone clarify why? Are servlets the only 'proper' way to get at my database source identified

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

2001-07-08 Thread Wei-ju Wu
Hi, I managed to deploy my EJB 2.0 entity beans successfully - at first sight. When I try to invoke a createX() it will crash with a NullPointerException in the JDVCCMP2xFieldBridge, line 112, method getFieldState(). I found out that the EntityEnterpriseContext argument to this method is null.

[JBoss-user] CMP 2.0 in current CVS version - a bug ?

2001-07-08 Thread Wei-ju Wu
Hi,   I am trying to figure out CMP 2.0 with the current CVS version of JBoss at the moment, but ran in a first problem:   I declared a createUser() method in the home interface and implemented a ejbCreateUser() method in the entity bean's bean class.   When I was deploying my bean, the cont