(--- Weird -- I don't seem to get consistent messages across the 
jbosscmp / jboss-dev lists -- timing seems weird ---)

I also saw another Oracle patch about setBinaryStream instead of 
setBytes -- was that the one we're talking about?  If not, I'm probably 
going to add that to my "Oracle-specific" section in the code ...  
Otherwise, Jason, please send me the other patch you want put in.  I was 
only planning to patch JDBCCommand.java, but I can patch something else 
if need be.

However, I do still have a few questions:

1 (Marc)- You said in an email about a week ago that I could isolate my 
code in an Oracle-specific section.  Is there some fancy way to do this, 
or do you just want me to check which driver is running and put an 
if-else type block.  Seems ugly ...

2- Is there some documentation on the process of committing?  I know how 
to use CVS, that's not what I mean.  I mean is there a special way 
people like to see log messages, etc.

3- Are we just putting the stuff in the 2.1PRE or do we also apply the 
stuff to the 2.0 tree somehow?

++Jeff


marc fleury wrote:

> right...
> 
> jason, the problem with you was attitude.
> 
> Tell you what, do send the patch to Jeffrey, I am getting him a RW passwd
> 
> PLgC and all but dont
> go breaking my balls!
> 
> marc
> 
> 
> |-----Original Message-----
> |From: [EMAIL PROTECTED]
> |[mailto:[EMAIL PROTECTED]]On Behalf Of Jason Dillon
> |Sent: Thursday, February 01, 2001 6:08 PM
> |To: jBoss Developer
> |Cc: [EMAIL PROTECTED]
> |Subject: [JBossCMP] Re: [jBoss-Dev] <sigh> any response PLEASE?
> |
> |
> |Well I am not going to tell you to "go kiss a goat"... personally
> |I wouldn't
> |want to kiss one, nor would I suggest that anyone else do so.  As for
> |getting a patch submitted, I haven't had much luck with that
> |myself.  I have
> |given up on that for the time being, hoping that someone with commit privs
> |might run into the same problem (regarding handles and naming contexts)
> |that I ran into and decide to fix it themselves.
> |
> |If you do happen to find the magic phrase to get these folks to
> |response to a
> |patch please let me know.
> |
> |Good luck!
> |
> |--jason
> |
> |On Thu, 1 Feb 2001, Jeffrey Wescott wrote:
> |
> |> This is the third time I'm posting this.  Can someone PLEASE
> |tell me how to
> |> go about getting this patch into the JBoss source?  I'm happy to
> |do it if I
> |> can find out:
> |>
> |> 1- How to isolate the Oracle-specific code.
> |> 2- How to get commit rights.
> |>
> |> Really, any response at all, including "go kiss a goat" would be
> |appreciated.  At least I'd know then that I'm being heard.
> |>
> |>
> |> ++Jeff
> |>
> |>
> |> -------- Original Message --------
> |> Subject: [jBoss-Dev] JAWS Oracle BLOB PreparedStatement.setNull() fix ...
> |> Date: Fri, 26 Jan 2001 18:58:12 -0800
> |> From: Jeffrey Wescott <[EMAIL PROTECTED]
> |<mailto:[EMAIL PROTECTED]?subject=Re:%20[JBossCMP]%20[Fwd:%20[jBoss-
> |Dev]%20JAWS%20Oracle%20BLOB%20PreparedStatement.setNull()%20fix%20.
> |..]&amp;[EMAIL PROTECTED]>>
> |> Reply-To: "jBoss Developer" <[EMAIL PROTECTED]
> |<mailto:[EMAIL PROTECTED]?subject=Re:%20[JBossCMP]%20
> |[Fwd:%20[jBoss-Dev]%20JAWS%20Oracle%20BLOB%20PreparedStatement.setN
> |ull()%20fix%20...]&amp;[EMAIL PROTECTED]>>
> |> To: [EMAIL PROTECTED]
> |<mailto:[EMAIL PROTECTED]?subject=Re:%20[JBossCMP]%20
> |[Fwd:%20[jBoss-Dev]%20JAWS%20Oracle%20BLOB%20PreparedStatement.setN
> |ull()%20fix%20...]&amp;[EMAIL PROTECTED]>
> |>
> |>
> |>
> |>
> |>
> |> I believe that this message was cross-posted to this list, but so far I
> |> have not heard a response.  Marc Fleury replied to a related message of
> |> mine on jboss-user that there was a way to isolate Oracle-specific code
> |> within JBossCMP.  I'm not exactly sure what he meant.  I'd really like
> |> to proceed with this change, so if someone can shed some light I'd be
> |> very appreciative.
> |>
> |> Outstanding questions:
> |>
> |> 1- Is my patch viable?
> |> 2- If so, should / can it be isolated in an Oracle-specific section
> |> somehow, and if so, how?
> |> 3- If and when 1 and 2 above are resolved, how do I get commit
> |rights?  :-)
> |>
> |> ++Jeff
> |>
> |>
> |> -------- Original Message --------
> |> Subject: [jBoss-Dev] JAWS Oracle BLOB PreparedStatement.setNull() fix ...
> |> Date: Fri, 26 Jan 2001 18:58:12 -0800
> |> From: Jeffrey Wescott <[EMAIL PROTECTED]
> |<mailto:[EMAIL PROTECTED]?subject=Re:%20[JBossCMP]%20[Fwd:%20[jBoss-
> |Dev]%20JAWS%20Oracle%20BLOB%20PreparedStatement.setNull()%20fix%20.
> |..]&amp;[EMAIL PROTECTED]>>
> |> Reply-To: "jBoss Developer" <[EMAIL PROTECTED]
> |<mailto:[EMAIL PROTECTED]?subject=Re:%20[JBossCMP]%20
> |[Fwd:%20[jBoss-Dev]%20JAWS%20Oracle%20BLOB%20PreparedStatement.setN
> |ull()%20fix%20...]&amp;[EMAIL PROTECTED]>>
> |> To: [EMAIL PROTECTED]
> |<mailto:[EMAIL PROTECTED]?subject=Re:%20[JBossCMP]%20
> |[Fwd:%20[jBoss-Dev]%20JAWS%20Oracle%20BLOB%20PreparedStatement.setN
> |ull()%20fix%20...]&amp;[EMAIL PROTECTED]>
> |>
> |>
> |>
> |> Greetings all:
> |>
> |> First of all, I'm new to the jboss-dev mailing list, so go easy on
> |> me.  This is my first message to the list and today was my first day
> |> with the jBoss source, so I apologize in advance if my ignorance
> |> shines through ...
> |>
> |> There is a limitation in the standard Oracle 8i jdbc type IV driver
> |> (classes12.zip) that makes it such that you cannot issue the setNull()
> |> method on a PreparedStatement for certain "unsupported" types from the
> |> java.sql.Types class.  One of these types happens to be BLOB.
> |>
> |> Our project is using JAWS extensively, including functionality such as
> |> nesting entity beans, nesting collections of entity beans, etc.
> |> Because of the aforementioned limitation, it's exceedingly difficult
> |> (near impossible) to ejbCreate() entity beans without first
> |> initializing all of the fields which happen to be nested entity beans
> |> or collections.  The reason is that we map java objects to BLOBs in
> |> the standardjaws.xml file.
> |>
> |> After decompiling the Oracle driver code and looking at the source, I
> |> was unable to patch it successfully -- the decompiler rendered some of
> |> Oracle's source uncompilable.  :-(  However, with a one-line
> |> configuration file (standardjaws.xml) change and a one-line change to
> |> org/jboss/ejb/plugins/jaws/jdbc/JDBCCommand.java, I *WAS* able to work
> |> around the problem.  The diff of JDBCCommand.java is below.  The
> |> standardjaws.xml file change is just a matter of changing JAVA_OBJECT
> |> to BLOB for the Oracle8 configuration.
> |>
> |> This has been tested and works to solve the aforementioned problem on
> |> JBoss-2.0-FINAL (I'm not using pre-2.1.)
> |>
> |> Here are the issues:
> |>
> |> 1- Will you accept the patch so that when my company upgrades to 2.1
> |> when it is released, I don't have to re-patch it?
> |>
> |> 2- Is the patch dangerous for non-Oracle databases?  Personally, I
> |> don't see much harm.
> |>
> |> ---------------------- FILENAME ----------------------
> |> org/jboss/ejb/plugins/jaws/jdbc/JDBCCommand.java:
> |> --------------------- BEGIN DIFF ---------------------
> |> 290c290
> |> <           if (jdbcType == Types.JAVA_OBJECT) {
> |> ---
> |>  >           if (jdbcType == Types.JAVA_OBJECT || jdbcType ==
> |Types.BLOB) {
> |> ---------------------- END DIFF ----------------------
> |>
> |> Thanks.
> |>
> |> ++Jeff
> |> [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]?subject=Re:%20[JBossCMP]%20[Fwd:%20[jBoss-Dev]%20JA
> WS%20Oracle%20BLOB%20PreparedStatement.setNull()%20fix%20...]&amp;replyto=3A
> [EMAIL PROTECTED]>
> 
> 
> --
> This is the JBossCMP mailing list. Please send email to
> '[EMAIL PROTECTED]'
> with the command 'unsubscribe jbosscmp [email@address]' in the body of the
> mail
> to be removed from this list.
> 
> 
> 
> 
> 



Reply via email to