Re: [JBoss-user] RT: JBoss couldn't deploy HelloWorld.jar

2003-10-05 Thread Adrian Brock
Looks ok, can you post the source for the classes that fail.
I want to look at the package declaration and imports.

Regards,
Adrian

On Thu, 2003-10-02 at 17:45, Santi Caballe Llobet wrote:
 Hi Adrian, 
 
 First of all thank you for answering. The HelloWorld.jar's content 
 is:
 
 =
 C:\jboss\server\default\deployjar -tf HelloWorld.jar
 META-INF/
 META-INF/MANIFEST.MF
 examples/
 examples/Hello.class
 examples/HelloBean.class
 examples/HelloHome.class
 examples/HelloLocal.class
 examples/HelloLocalHome.class
 META-INF/ejb-jar.xml
 
 C:\jboss\server\default\deploy
 ===
 
 Thanks a lot.
 
 Santi.
 
  Post the output from 
  
  jar -tf HelloWorld.jar
  
  Regards,
  Adrian
  
  On Thu, 2003-10-02 at 17:06, Santi Caballe Llobet wrote:
   Hi everybody,
   
   I got a problem while JBoss was deploying the traditional 
 HelloEJB 
   sample. The most interesting part of the JBoss's log says:
   
   
   12:20:23,302 WARN  [verifier] EJB spec violation:
   Bean   : Hello
   Section: 22.2
   Warning: The bean provider must specify the fully-qualified 
 name 
   of the enterprise bean's remote home interface, if any, in the 
  
   home  
   element.
   Info   : Class not found: examples.HelloHome
   
   12:20:23,312 WARN  [verifier] EJB spec violation:
   Bean   : Hello
   Section: 22.2
   Warning: The bean provider must specify the fully-qualified 
 name 
   of the enterpri
   se bean's remote interface, if any, in the  remote  element.
   Info   : Class not found: examples.Hello
   
   12:20:23,352 ERROR [MainDeployer] could not create deployment: 
   file:/C:/jboss/se
   rver/default/deploy/HelloWorld.jar
   org.jboss.deployment.DeploymentException: Verification of 
   Enterprise Beans failed, see above for error messages.
   at org.jboss.ejb.EJBDeployer.create
 (EJBDeployer.java:487)
   ===
   
   As it seems a descriptor problem I also post the ejb.jar (I 
 think 
   my W2K classpath settings are fully correct):
   
!DOCTYPE ejb-jar PUBLIC -//Sun Microsystems, Inc.//DTD 
   Enterprise 
   JavaBeans 2.0//EN http://java.sun.com/dtd/ejb-jar_2_0.dtd; 
   
ejb-jar 
 enterprise-beans 
  session 
   ejb-name Hello /ejb-name 
   home examples.HelloHome /home 
   remote examples.Hello /remote 
   local-home examples.HelloLocalHome /local-home 
   local examples.HelloLocal /local 
   ejb-class examples.HelloBean /ejb-class 
   session-type Stateless /session-type 
   transaction-type Container /transaction-type 
  /session 
 /enterprise-beans 
/ejb-jar 
   
   I'd thank a lot any help !
   
   Santi.
  -- 
   
  Adrian Brock
  Director of Support
  Back Office
  JBoss Group, LLC 
   
  
  
  
  ---
  This sf.net email is sponsored by:ThinkGeek
  Welcome to geek heaven.
  http://thinkgeek.com/sf
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] using CMP and defining the datasource at runtime

2003-10-05 Thread Ionel GARDAIS
Hi,

is it possible to use a CMP bean but to override the
datasource from the xml files but a user defined
datasource, known at runtime ?

=
-- 
Regards,
Ionel

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] using CMP and defining the datasource at runtime

2003-10-05 Thread Scott M Stark
Write an mbean service that installs a javax.naming.spi.ObjectFactory at
the location you specify as the datasource and the ObjectFactory can
choose at runtime which DataSource to return.
--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

Ionel GARDAIS wrote:

Hi,

is it possible to use a CMP bean but to override the
datasource from the xml files but a user defined
datasource, known at runtime ?




---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] using CMP and defining the datasource at runtime

2003-10-05 Thread Ionel GARDAIS
Huh ? heee, are there any examples of how to do such a
thing ?

 --- Scott M Stark [EMAIL PROTECTED] a écrit : 
Write an mbean service that installs a
 javax.naming.spi.ObjectFactory at
 the location you specify as the datasource and the
 ObjectFactory can
 choose at runtime which DataSource to return.


=
-- 
Regards,
Ionel

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] using CMP and defining the datasource at runtime

2003-10-05 Thread Adrian Brock
On Sun, 2003-10-05 at 14:52, Scott M Stark wrote:
 Write an mbean service that installs a javax.naming.spi.ObjectFactory at
 the location you specify as the datasource and the ObjectFactory can
 choose at runtime which DataSource to return.

Except there is no such dynamicity for type-mappings.
You have to know the db mappings when you create the jbosscmp-jdbc.xml

Regards,
Adrian

-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] using CMP and defining the datasource at runtime

2003-10-05 Thread Alexey Loubyansky
No. The datasource is used at deployment time to initialize mapping 
types, row locking syntax, autoincrementation, etc.

alex

Ionel GARDAIS wrote:

Hi,

is it possible to use a CMP bean but to override the
datasource from the xml files but a user defined
datasource, known at runtime ?
=




---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] using CMP and defining the datasource at runtime

2003-10-05 Thread Adrian Brock
Wouldn't an alias serve your purpose?

mbean code=org.jboss.naming.NamingAlias
   name=acme.com:service=naming-alias,alias=ApplicationDS
   attribute name=FromNamejava:/ApplicationDS/attribute
   attribute name=ToNamejava:/OracleDS/attribute
/mbean

I assume changing all the jbosscmp-jdbc.xml files is too much work?

Regards,
Adrian

On Sun, 2003-10-05 at 15:07, Ionel GARDAIS wrote:
 Huh ? heee, are there any examples of how to do such a
 thing ?
 
  --- Scott M Stark [EMAIL PROTECTED] a crit : 
 Write an mbean service that installs a
  javax.naming.spi.ObjectFactory at
  the location you specify as the datasource and the
  ObjectFactory can
  choose at runtime which DataSource to return.
 
 
 =
-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] using CMP and defining the datasource at runtime

2003-10-05 Thread Ionel GARDAIS
Let say the datasource-mappings can be specified by
the user at runtime too.
If the datasource is specified by the user, will the
CMP use the declared mapping or the delegated
mapping ?

 Except there is no such dynamicity for
 type-mappings.
 You have to know the db mappings when you create the
 jbosscmp-jdbc.xml


=
-- 
Regards,
Ionel

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] using CMP and defining the datasource at runtime

2003-10-05 Thread Adrian Brock
On Sun, 2003-10-05 at 15:20, Ionel GARDAIS wrote:
 Let say the datasource-mappings can be specified by
 the user at runtime too.

They cannot.

 If the datasource is specified by the user, will the
 CMP use the declared mapping or the delegated
 mapping ?
 

The purpose of jbosscmp-jdbc.xml is to declare the mappings
from the EJB model to the referential db model.
There is one of these for each db vendor. :-(

If would be nice if you could use:

type-mappingGuess/type-mapping

And it used the DatabaseMetaData to determine the
db's type mapping. 
But this isn't currently supported, and wouldn't work
if you had vendor specific mappings at the field level.

Regards,
Adrian

  Except there is no such dynamicity for
  type-mappings.
  You have to know the db mappings when you create the
  jbosscmp-jdbc.xml
 
 
 =
-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] using CMP and defining the datasource at runtime

2003-10-05 Thread Ionel GARDAIS
Well, here is what I want to do : I would like to
allow a CMP-like mechanism but with a user defined
datasource.

I could use BMP and read the connection-url,
driver-class, username and password from a file but as
these informations are available directly through a
declared datasource, a CMP could do the trick.

Any ideas are welcome

=
-- 
Regards,
Ionel

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] using CMP and defining the datasource at runtime

2003-10-05 Thread Adrian Brock
On Sun, 2003-10-05 at 15:42, Ionel GARDAIS wrote:
 Well, here is what I want to do : I would like to
 allow a CMP-like mechanism but with a user defined
 datasource.
 

One of the aims of CMP is that your code is independent
of the persistence mechansim (which is declared in the
deployment). In principle it could be persisted to
a flat file system or an object db.
The idea of the datasource is specified at deployment
(I want jdbc persistence).

Can you restate the problem in that context?

Regards,
Adrian

 I could use BMP and read the connection-url,
 driver-class, username and password from a file but as
 these informations are available directly through a
 declared datasource, a CMP could do the trick.
 
 Any ideas are welcome
 
 =
-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] using CMP and defining the datasource at runtime

2003-10-05 Thread Scott M Stark
Ok, but the typical usecase people ask about is some failover scenario
or dev vs prod database selection where the type mappings are the same.
--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

Adrian Brock wrote:

On Sun, 2003-10-05 at 14:52, Scott M Stark wrote:

Write an mbean service that installs a javax.naming.spi.ObjectFactory at
the location you specify as the datasource and the ObjectFactory can
choose at runtime which DataSource to return.


Except there is no such dynamicity for type-mappings.
You have to know the db mappings when you create the jbosscmp-jdbc.xml
Regards,
Adrian


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] using CMP and defining the datasource at runtime

2003-10-05 Thread Alexey Loubyansky
I don't think it is impossible.
Each specific datasource has its own type mappings and SQL 
functions/templates. At the moment, these are read and assigned to 
entity and field bridges at deployment time. And there is no way to 
change them at run time.
You could make a hack assigning a new datasource for an entity and it 
might work (making sure the entity bridge is the only source for the 
datasource). But, in general, the answer is no.

alex

Ionel GARDAIS wrote:

Well, here is what I want to do : I would like to
allow a CMP-like mechanism but with a user defined
datasource.
I could use BMP and read the connection-url,
driver-class, username and password from a file but as
these informations are available directly through a
declared datasource, a CMP could do the trick.
Any ideas are welcome

=




---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] using CMP and defining the datasource at runtime

2003-10-05 Thread Alexey Loubyansky
If the databases (products) and schemas are the same. Then we could add 
support for it.

Scott M Stark wrote:

Ok, but the typical usecase people ask about is some failover scenario
or dev vs prod database selection where the type mappings are the same.




---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] using CMP and defining the datasource at runtime

2003-10-05 Thread Ionel GARDAIS
I am trying to add an EJB load/store layer to the mail
server developped by A. Oliver.

It needs to access :
- a table with the usernames and passwords
- 1 or more tables for the emails and attached files

A CMP could allow an automatic table creation and easy
finders manipulation.
As the tables should be created on a database choosed
by the user, the choices are : work with a CMP and
allow the user to override the datasource (with all
the problems you said) or to work with BMP, write all
the queries and ask the user to provide
connection-url, jdbc driver, username and password.


Or maybe a BMP can use a declared datasource ?

 One of the aims of CMP is that your code is
 independent
 of the persistence mechansim (which is declared in
 the
 deployment). In principle it could be persisted to
 a flat file system or an object db.
 The idea of the datasource is specified at
 deployment
 (I want jdbc persistence).
 
 Can you restate the problem in that context?


=
-- 
Regards,
Ionel

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] using CMP and defining the datasource at runtime

2003-10-05 Thread Adrian Brock
On Sun, 2003-10-05 at 16:26, Ionel GARDAIS wrote:
 I am trying to add an EJB load/store layer to the mail
 server developped by A. Oliver.
 
 It needs to access :
 - a table with the usernames and passwords
 - 1 or more tables for the emails and attached files
 

Just create the CMP beans (don't include a jbosscmp-jdbc.xml)
JBoss will create tables for the beans when they are first deployed.

If the user doesn't like the tables or DefaultDS, they can change
the definition by adding a jbosscmp-jdbc.xml to the
deployment.

Regards,
Adrian

 A CMP could allow an automatic table creation and easy
 finders manipulation.
 As the tables should be created on a database choosed
 by the user, the choices are : work with a CMP and
 allow the user to override the datasource (with all
 the problems you said) or to work with BMP, write all
 the queries and ask the user to provide
 connection-url, jdbc driver, username and password.
 
 
 Or maybe a BMP can use a declared datasource ?
 
  One of the aims of CMP is that your code is
  independent
  of the persistence mechansim (which is declared in
  the
  deployment). In principle it could be persisted to
  a flat file system or an object db.
  The idea of the datasource is specified at
  deployment
  (I want jdbc persistence).
  
  Can you restate the problem in that context?
 
 
 =
-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] using CMP and defining the datasource at runtime

2003-10-05 Thread Ionel GARDAIS
Great !

Did I tell you that I love you ? :)

for my own knowledge, does a BMP can use a declared
datasource or does it has to go through all the jdbc
connection process ?

 Just create the CMP beans (don't include a
 jbosscmp-jdbc.xml)
 JBoss will create tables for the beans when they are
 first deployed.
 
 If the user doesn't like the tables or DefaultDS,
 they can change
 the definition by adding a jbosscmp-jdbc.xml to the
 deployment.
 
 Regards,
 Adrian

=
-- 
Regards,
Ionel

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] using CMP and defining the datasource at runtime

2003-10-05 Thread Adrian Brock
On Sun, 2003-10-05 at 16:53, Ionel GARDAIS wrote:
 Great !
 
 Did I tell you that I love you ? :)
 
 for my own knowledge, does a BMP can use a declared
 datasource or does it has to go through all the jdbc
 connection process ?
 

Anything in the same VM can use a datasource.

Regards,
Adrian

  Just create the CMP beans (don't include a
  jbosscmp-jdbc.xml)
  JBoss will create tables for the beans when they are
  first deployed.
  
  If the user doesn't like the tables or DefaultDS,
  they can change
  the definition by adding a jbosscmp-jdbc.xml to the
  deployment.
  
  Regards,
  Adrian
 
 =
-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] JBoss-IDE 1.2.1 released

2003-10-05 Thread Laurent Etiemble
Hi,

The JBoss-IDE 1.2.1 release is available.It is a maintenance release which
addresses many bugs.See release notes for more details :
https://sourceforge.net/project/shownotes.php?release_id=187792

Downloads are available through the SourceForge site :
http://prdownloads.sourceforge.net/jboss/org.jboss.ide.eclipse_1.2.1.bin.dis
t.zip?download

Updates are also possible within Eclipse through the Install/Update
perspective. Just set up a bookmark to the following URL :
http://jboss.sourceforge.net/jbosside/updates/

Laurent Etiemble,
JBoss-IDE project lead.




---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] EJB inserts do not show up in subsequent queries:

2003-10-05 Thread Rod Macpherson
Thanks Adrian,

To reiterate, the behavior we noticed was that on 3.2 database inserts
and updates were not being refreshed. The problem was systemic and it
showed up everywhere in the application since we started using release
candidates for 3.2 for new development. Given the problem never showed
up in 3.0 we suspected the release candidate had a bug of sorts. 

In putting together a test case to isolate the problem to our tag
library. To make a long story short we used a tag's release() method to
reset a tag's state and that has worked on all previous versions of
JBoss and of WebLogic. Technically that should have never worked in that
you must use doEndTag to reset state that is intra-page and release to
reset state that is inter-page. What happened here is that the container
became more aggressive about tag object re-use and we were displaying
old, non-updated query results. 

Thanks very much for giving this a try on your end and confirming there
was no known problem with inserts or updates refreshing.

Rod



-Original Message-
From: Adrian Brock [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 03, 2003 6:43 AM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] EJB inserts do not show up in subsequent
queries:


Hi Rod,

I've been trying to reproduce your problem, but it works for me.
(3.2.2RC5)

You have a transaction that creates some cmp instances
and does some things with relations and an update.
This commits ok, and as you say, you can see the results externally.

You then invoke getLocations() outside a transaction,
which asks for a db connection - is this the query that is failing to
see the data?

I don't see how it can fail, it is using the same
underlying db connection in both processes.

What does the getLocations() code look like?
Do you have any special db configuration, you mentioned
stored procedures in a previous post?

Can you try the following:
System.out.println(Connection warnings:);
SQLWarning w = connection.getWarnings();
while (w != null)
{
   System.out.println(w);
   w = w.getNextWarning();
}
And the same for the statement/result set.

Also, can you try a simpler test:
Write a session bean with two methods (one Required, one NotSupported)
The first method inserts a record, the second tries to read it. Invoke
the methods in that order. Does the second method see the data? If it
does, rewrite it to perform the same sql as your real application and
try it again.

Regards,
Adrian

On Thu, 2003-10-02 at 18:21, Rod Macpherson wrote:
 I did not realize my post of the TRACE was rejected because it was too

 long. I attached the log.
 
 This log snippet is from a single add operation of a table called 
 REGION. There is also a preceding insert to a journal table called TX.

 The code that executes is humming right along in production on 3.0.7 
 without a hitch. To paraphrase the problem, an update or an insert 
 through an EJB is not showing up in susequent JDBC queries long after 
 the commit has successfully complete. The entity beans themselves do 
 reflect changes or additions. The data is visible in the database 
 immediately using an external tool to view it. Restart JBoss and it 
 shows up. Happens with insert-before-ejb-post-create or without it. 
 Problem is manifest on Oracle or SQL Server but only in 3.2.2 flavored

 JBoss.
 
 
 
 -Original Message-
 From: Bill Burke [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 30, 2003 10:51 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [JBoss-user] EJB inserts do not show up in subsequent
 queries:
 
 
 So what's the behavior here?  You do inserts within a transaction and
 commit, but you DO NOT see the inserts in DB?  Or you do not see them 
 within JBoss?
 
 Rod Macpherson wrote:
  More information:
  
  Updates have the same problem: update an entity bean and resulting
  update does NOT show up in subsequent JDBC query. Now, if we view
the 
  updated value through an entity bean then it shows up, no problemo. 
  The guilty party seems to be JDBC but yet it's not the driver
because 
  a) it's the same driver we use in 3.0.7, b) it happens on SQL Server

  or Oracle 9i.
  
  Is there anything else we can do to help narrow this down for you
  guys?
  
  Thanks,
  
  Rod
  
  -Original Message-
  From: Rod Macpherson
  Sent: Tuesday, September 30, 2003 5:37 PM
  To: [EMAIL PROTECTED]
  Subject: RE: [JBoss-user] EJB inserts do not show up in subsequent
  queries:
  
  
  New Info: the SQL is the same except that we get this message on 
  3.0.7
 
  but NOT on 3.2.2:
  
  13:33:20,468 DEBUG [Region] Rows affected = 1
  
  There is no Rows affected message on 3.2.2 but then the logging 
  has
  changed so who knows if it's significant. We definitely had
debugging 
  on for SQL in both cases. I tried taking out the new 
  insert-after-ejb-post-create container configuration but the result 
  was the same: inserts on 3.2.2 RC4 do not show up until you restart 
  JBoss.
  
  Rod
  
  -Original Message-
  From: Alexey 

Re: [JBoss-user] login-config.xml and ErrorHandlers

2003-10-05 Thread Brian Wallis
On Thu, 2 Oct 2003 11:33, Adrian Brock wrote:
 CIMF (Code It Mother F*ck*r) and submit the patch :-)

Language! I'm so [EMAIL PROTECTED]^ shocked! ;-)

I have just about done so but a question about how I've done it

I wanted to set a default error handler for every parser, not just this one.

So I created a new document factory called LoggingDocumentBuilderFactory that 
just delegates to the real DocumentBuilderFactory but adds a default 
ErrorHandler to every parser created. The ErrorHandler is one I've coded to 
use the standard JBoss logging. 

Then I just replace every usage of the DocumentBuilderFactory.newInstance() to 
call my one. (there are 8 or 9 of these). Should probably also look at doing 
the same for XMLReaderFacory but it doesn't seem to be used anywhere (no SAX 
parsers used?)

brian wallis...



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user