[JBoss-user] [Persistence & CMP/JBoss] - Beware of Instance Per Tx and read-only methods

2004-10-19 Thread scoy
If you use this particular combination, your performance will suffer dramatically. If you have methods marked read-only, the instance cache used for the duration of the transaction seems to be flushed whenever the read-only method is invoked. The culprit for this can be found in org.jboss.ejb.p

[JBoss-user] [Persistence & CMP/JBoss] - Re: EJBs not storing data

2004-10-18 Thread scoy
"scoy" wrote : Hibernate database Oops, that should read: anonymous wrote : Hypersonic database. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3851726#3851726 Reply to the post : http://www.jboss.org/index.html?module=bb&op=postin

[JBoss-user] [Persistence & CMP/JBoss] - Re: EJBs not storing data

2004-10-18 Thread scoy
Sounds like you are connecting to the DefaultDS datasource, which is the built-in Hibernate database. You should read the QuickStart Guide. Steve Coy View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3851724#3851724 Reply to the post : http://www.jboss.org/in

[JBoss-user] [Persistence & CMP/JBoss] - Re: jboss 3.2.4 + oracle : bug with byte[] fields ?

2004-10-18 Thread scoy
Additionally, check the jdbc-type that you have set for your LONG RAW column. It should be set to LONGVARBINARY, in which case the get/setBinaryStream ResultSet methods would still be used. It's only broken where you have set the jdbctype to BLOB, perhaps by default because the mapping has defa

[JBoss-user] [Persistence & CMP/JBoss] - Re: jboss 3.2.4 + oracle : bug with byte[] fields ?

2004-10-18 Thread scoy
Hi, I'm the guy that originally fixed this so it worked - and yes, it does appear to have been broken again. Have you tried the latest Oracle 10g JDBC drivers? There is a possibility that these will now work using the standard LOB api's (the release notes hint at it in places). Steve Coy Vie

[JBoss-user] [Persistence & CMP/JBoss] - Re: Initializing a java.sql.Blob cmp field (JBoss 3.2.3/Orac

2004-10-14 Thread scoy
This is not true - please read my FAQ post again. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3851431#3851431 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3851431 --

[JBoss-user] [Persistence & CMP/JBoss] - Re: Initializing a java.sql.Blob cmp field (JBoss 3.2.3/Orac

2004-10-14 Thread scoy
First of all I don't believe that there is anything in the rule book that says a java.sql.Blob is serializable. Therefore, by definition it cannot be used as a type for a CMP field. If you want to use blobs, use a byte[] type and configure it with appropriate sql-type/jdbc-type parameters in yo

[JBoss-user] [Persistence & CMP/JBoss] - Re: HELP REQUIRED: oracle problem : automatic table creation

2004-10-14 Thread scoy
The Oracle user that you are using has too many privileges, so it can "see" tables in other schema belonging to other users. JBoss can see a table with the specified name in another schema. Steve C. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3851407#38514

[JBoss-user] [Persistence & CMP/JBoss] - Re: Oracle XA Error

2004-10-13 Thread scoy
We have just encountered this. Strangely, it goes away if you use earlier versions of classes12.jar (such as the one that comes with Oracle 9 - not Oracle 9.2), or any of the Oracle 10g classes12.jar or ojdbc14.jar. View the original post : http://www.jboss.org/index.html?module=bb&op=viewto

[JBoss-user] [EJB/JBoss] - Re: Creating beans with blob data members

2004-03-26 Thread scoy
Sorry, I should not be answering questions at 2:00am. If your cmp field is binary data, such as an image, then you should probably map to byte[]. Otherwise, the field can be any java.lang.Object that implements java.io.Serializable. Note that JBoss will not magically convert your field into so

[JBoss-user] [EJB/JBoss] - Re: Creating beans with blob data members

2004-03-26 Thread scoy
Jerry, anonymous wrote : For binary data, JBoss stores byte array data directly to the database. | All other java types are serialised using a java.rmi.MarshalledObject, | therefore your object must be serialisable. | I hope this answers it for you. Steve http://www.jboss.org/index.

[JBoss-user] [EJB/JBoss] - Re: Creating beans with blob data members

2004-03-25 Thread scoy
http://jboss.org/index.html?module=bb&op=viewtopic&t=26748 :-) http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3827517#3827517";>View the original post http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3827517>Reply to the post ---

[JBoss-user] [EJB/JBoss] - Re: Creating beans with blob data members

2004-03-25 Thread scoy
Did you look in the FAQ? http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3827515#3827515";>View the original post http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3827515>Reply to the post --- This SF.Net email is

[JBoss-user] [EJB/JBoss] - Re: Does anybody know how to do EJB-QL successfully?

2004-03-22 Thread scoy
"pouncil" wrote : scoy, Are you sure about this You could be right - my CMP is a bit rusty at the moment. My first instinct was that there was something wrong with your declarations for the accessors: public abstract String getFirstName(); public abstract setFirstName(Strin

[JBoss-user] [EJB/JBoss] - Re: using ServiceLocator to cache RemoteHomes

2004-03-22 Thread scoy
I would try having your ServiceLocator also implement javax.servlet.ServletContextListener and use its hook to clean up when the application is redeployed. I'm assuming that contextDestroyed will be called in this scenario. Steve Coy http://www.jboss.org/index.html?module=bb&op=viewtopic&p=38

[JBoss-user] [EJB/JBoss] - Re: possible memory leak in long lived transaction ?

2004-03-21 Thread scoy
I've always assumed that the memory is being consumed by the transaction manager. I think that you will find that no actual database updates are performed until the the transaction is committed. It might be possible to use XA Transactions to get the database to assume this overhead - I did not

[JBoss-user] [EJB/JBoss] - Re: can't find data source: TestDS

2004-03-21 Thread scoy
It doesn't help when the forum gobbles the XML tags! | | | | java:TestDS | Oracle9i | |... | | http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826787#3826787";>View the original post http://www.jboss.org/index.html?module=bb&op=posting&mode

[JBoss-user] [EJB/JBoss] - Re: can't find data source: TestDS

2004-03-21 Thread scoy
java:TestDS Oracle9i ... Steve Coy http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826785#3826785";>View the original post http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3826785>Reply to the post --

[JBoss-user] [EJB/JBoss] - Re: Does anybody know how to do EJB-QL successfully?

2004-03-21 Thread scoy
Your customer ejb is called CustomerEJB, therefore that is how it must be referenced in the ejb-ql. ie. SELECT OBJECT (c) FROM CustomerEJB AS c ... Steve Coy http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826782#3826782";>View the original post http://www.jboss.org/index.html?modu

[JBoss-user] [EJB/JBoss] - Re: possible memory leak in long lived transaction ?

2004-03-20 Thread scoy
This is something that CMP is not particularly good at. You would be better off using raw JDBC to perform this work and allow the database itself to manage the transaction. We have run into this issue ourselves (with phone numbers for a carrier), and had to resort to this solution. Steve htt