Re: [JBoss-user] Beans not cached using A and read-only

2003-12-03 Thread Alexey Loubyansky
Yes, keep the custom container and just try a simple test.

Alwyn Schoeman wrote:

On Tue, Dec 02, 2003 at 10:02:58PM +0200, Alexey Loubyansky wrote:

Sorry, I was inattentive. Of course, it should work w/o read-only in 
jbosscmp-jdbc.xml.
Can you check whether commit option A works at all for you? Just a 
simple example. If so, under what config options it breaks?
Thanks.


In doing the test, must I keep the custom container config as is and just try
with read-only, not read-only and with findByPrimaryKey?
Sorry I'm very new to CMP.



---
This SF.net email is sponsored by OSDN's Audience Survey.
Help shape OSDN's sites and tell us what you think. Take this
five minute survey and you could win a $250 Gift Certificate.
http://www.wrgsurveys.com/2003/osdntech03.php?site=8
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Beans not cached using A and read-only

2003-12-02 Thread Alexey Loubyansky
Try with read-only=true in jbosscmp-jdbc.xml.

Alwyn Schoeman wrote:
Hi,

I am using 3.2.2.  When I look at the database logs I can see that the database is 
queried for
each access to the Bean. Also the console shows no entries in the cache.
I am accessing the Bean from a servlet. Also the bean is found by executing a custom finder.

The following is my deployment descriptor:

?xml version=1.0 encoding=UTF-8?
!DOCTYPE jboss PUBLIC -//JBoss//DTD JBOSS 3.2//EN 
http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd;
jboss

   enterprise-beans

  entity
 ejb-nameU2TransactionPropertyBean/ejb-name
 local-jndi-nameu2/cmp/U2TransactionPropertyBeanLocal/local-jndi-name
 read-onlytrue/read-only
 configuration-nameCMP 2.x with cache/configuration-name
method-attributes
/method-attributes
  /entity

   /enterprise-beans

   resource-managers
   /resource-managers
container-configurations
container-configuration extends=Standard CMP 2.x EntityBean
  container-nameCMP 2.x with cache/container-name
  commit-optionA/commit-option
/container-configuration
  /container-configurations
/jboss

Kind regards,



---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Beans not cached using A and read-only

2003-12-02 Thread Alwyn Schoeman
On Tue, Dec 02, 2003 at 10:11:27AM +0200, Alexey Loubyansky wrote:
 Try with read-only=true in jbosscmp-jdbc.xml.
 
It seems to be set.  The following is my jbosscmp-jdbc.xml:


?xml version=1.0 encoding=UTF-8?
!DOCTYPE jbosscmp-jdbc PUBLIC -//JBoss//DTD JBOSSCMP-JDBC 3.2//EN 
http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_2.dtd;

jbosscmp-jdbc
   defaults
   /defaults

   enterprise-beans

  entity
 ejb-nameU2TransactionPropertyBean/ejb-name
 datasourcejava:/DefaultDS/datasource
 datasource-mappingPostgreSQL 7.2/datasource-mapping
 create-tablefalse/create-table
 remove-tablefalse/remove-table
 read-onlytrue/read-only
 table-nameU2_TRANSACTION_PROPERTIES/table-name

 cmp-field
field-nametransactionCode/field-name
column-nametrancode/column-name

/cmp-field
 cmp-field
field-nametransactionHandler/field-name
column-nametranhandler/column-name

/cmp-field
 cmp-field
field-namex/field-name
column-namex/column-name

/cmp-field
 cmp-field
field-nameXT/field-name
column-namext/column-name

/cmp-field
 cmp-field
field-names/field-name
column-names/column-name

/cmp-field
 cmp-field
field-named/field-name
column-named/column-name

/cmp-field
 cmp-field
field-nameDE/field-name
column-namede/column-name

/cmp-field
 cmp-field
field-namep/field-name
column-namep/column-name

/cmp-field
 cmp-field
field-namea/field-name
column-namea/column-name

/cmp-field
 cmp-field
field-nameo/field-name
column-nameo/column-name

/cmp-field
 cmp-field
field-nameMSISDN/field-name
column-namemsisdn/column-name

/cmp-field

!-- jboss 3.2 features --
!-- optimistic locking does not express the exclusions needed --
  /entity

   /enterprise-beans

/jbosscmp-jdbc

-- 
Alwyn Schoeman
SMART Money Inc.

If you're a SMARTY and you're using the better DNS connections, you
can access my homepage at http://nevyn.smarties.com.ph/Members/alwyn.
The other unlucky ones: http://10.126.68.24/myplone


---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Beans not cached using A and read-only

2003-12-02 Thread Alexey Loubyansky
Sorry, I was inattentive. Of course, it should work w/o read-only in 
jbosscmp-jdbc.xml.
Can you check whether commit option A works at all for you? Just a 
simple example. If so, under what config options it breaks?
Thanks.

Alwyn Schoeman wrote:

On Tue, Dec 02, 2003 at 10:11:27AM +0200, Alexey Loubyansky wrote:

Try with read-only=true in jbosscmp-jdbc.xml.

It seems to be set.  The following is my jbosscmp-jdbc.xml:


---
This SF.net email is sponsored by OSDN's Audience Survey.
Help shape OSDN's sites and tell us what you think. Take this
five minute survey and you could win a $250 Gift Certificate.
http://www.wrgsurveys.com/2003/osdntech03.php?site=8
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Beans not cached using A and read-only

2003-12-02 Thread Adrian Brock
On Tue, 2003-12-02 at 07:42, Alwyn Schoeman wrote:
 Hi,
 
 I am using 3.2.2.  When I look at the database logs I can see that the database is 
 queried for
 each access to the Bean. Also the console shows no entries in the cache.
 
 I am accessing the Bean from a servlet. Also the bean is found by executing a custom 
 finder.
 

Do you do anything beyond the finder?
A finder (on the home interface) just generates the client proxy(ies).
It doesn't load/cache the bean instances until the remote/local
interfaces are used.

Regards,
Adrian

 The following is my deployment descriptor:
 
 
 ?xml version=1.0 encoding=UTF-8?
 !DOCTYPE jboss PUBLIC -//JBoss//DTD JBOSS 3.2//EN 
 http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd;
 
 jboss
 
enterprise-beans
 
   entity
  ejb-nameU2TransactionPropertyBean/ejb-name
  local-jndi-nameu2/cmp/U2TransactionPropertyBeanLocal/local-jndi-name
  read-onlytrue/read-only
  configuration-nameCMP 2.x with cache/configuration-name
 method-attributes
 /method-attributes
 
   /entity
 
/enterprise-beans
 
resource-managers
/resource-managers
 
 container-configurations
 container-configuration extends=Standard CMP 2.x EntityBean
   container-nameCMP 2.x with cache/container-name
   commit-optionA/commit-option
 /container-configuration
   /container-configurations
 
 /jboss
 
 Kind regards,
-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
This SF.net email is sponsored by OSDN's Audience Survey.
Help shape OSDN's sites and tell us what you think. Take this
five minute survey and you could win a $250 Gift Certificate.
http://www.wrgsurveys.com/2003/osdntech03.php?site=8
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Beans not cached using A and read-only

2003-12-02 Thread Alwyn Schoeman
On Tue, Dec 02, 2003 at 08:49:13PM +, Adrian Brock wrote:
 
 Do you do anything beyond the finder?
 A finder (on the home interface) just generates the client proxy(ies).
 It doesn't load/cache the bean instances until the remote/local
 interfaces are used.
 
 Regards,
 Adrian

The finder is done on the local home interface.
The finder operates on 2 non-key columns.
After that the only calls made are getXXX on the different cmp-field methods.

-- 
Alwyn Schoeman
SMART Money Inc.

If you're a SMARTY and you're using the better DNS connections, you
can access my homepage at http://nevyn.smarties.com.ph/Members/alwyn.
The other unlucky ones: http://10.126.68.24/myplone


---
This SF.net email is sponsored by OSDN's Audience Survey.
Help shape OSDN's sites and tell us what you think. Take this
five minute survey and you could win a $250 Gift Certificate.
http://www.wrgsurveys.com/2003/osdntech03.php?site=8
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Beans not cached using A and read-only

2003-12-02 Thread Alwyn Schoeman
On Tue, Dec 02, 2003 at 10:02:58PM +0200, Alexey Loubyansky wrote:
 Sorry, I was inattentive. Of course, it should work w/o read-only in 
 jbosscmp-jdbc.xml.
 Can you check whether commit option A works at all for you? Just a 
 simple example. If so, under what config options it breaks?
 Thanks.

In doing the test, must I keep the custom container config as is and just try
with read-only, not read-only and with findByPrimaryKey?

Sorry I'm very new to CMP.

-- 
Alwyn Schoeman
SMART Money Inc.

If you're a SMARTY and you're using the better DNS connections, you
can access my homepage at http://nevyn.smarties.com.ph/Members/alwyn.
The other unlucky ones: http://10.126.68.24/myplone


---
This SF.net email is sponsored by OSDN's Audience Survey.
Help shape OSDN's sites and tell us what you think. Take this
five minute survey and you could win a $250 Gift Certificate.
http://www.wrgsurveys.com/2003/osdntech03.php?site=8
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user