AW: [JBoss-user] (more clues) MessageListener threw a RuntimeException

2004-01-22 Thread Janardhan Burugupalli
could be that u shuld synchronize the vector before iterating over it..just
check the java.util.Collections class for more.

jani

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Auftrag von Ionel
GARDAIS
Gesendet: Mittwoch, 21. Januar 2004 18:03
An: [EMAIL PROTECTED]
Betreff: [JBoss-user] (more clues) MessageListener threw a
RuntimeException


Hi again,

After tracing the calls, I found that the problem is
on a vector iterator.

The JMS message I received is an ObjectMessage.
The object within the message is a Vector.

Inside the onMessage, I call an outside method,
passing the Vector received: outsideMethod(theVector)

In the outsideMethod, I use an iterator on the Vector
received in parameter and do a classic
while(iterator.hasNext()) loop.

The RuntimeException is thrown when I call the
hasNext() or the next() method.


I absolutly don't know what is going on.
The Vector is not modified : I spend 10ms for the
first iteration and the next message is about 10
seconds later.

Any ideas ?

thanks,
ionel

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


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] JBoss / Jetty depended on DNS ?

2004-01-22 Thread René R. Nygaard
Hell all

Is JBoss or Jetty depended on DNS ?
Through the request.getxxx we can get the logical name of the client
connecting, but what if our DNS i pretty slow, will this not slow the
request to the server down ?

In case this is true, can we disable this somewhere ?

Thanks
 - René



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] information regarding locking policies

2004-01-22 Thread Stephane Nicoll
Hello list,

I sent a mail a while ago regarding tx lock and got no response so far. 
http://www.mail-archive.com/[EMAIL PROTECTED]/msg32131.html

As a quick recall, we are creating entities X. For this we need to test that
an instance of entity A,B,C,D and E exist (that is X could be crated only if
an instance of A with particular key exist on the DB, etc).

So A,B,C,D and E are READ-ONLY. We noticed that using an MDB to create our
entity X, nothing was done in parallel.

We changed to the one instance per transaction container configuration and it
worked quite fine. I would like to have more detail about this container. Is
it as safe as the default one. What coult be the transaction problem?

Regards,

Stephane


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] Commit Option A and ejbCreate

2004-01-22 Thread Alexey Loubyansky
Please, submit a bug report and I will look at it.

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Neal Sanche
 Sent: Thursday, January 22, 2004 12:56 AM
 To: jboss-user
 Subject: [JBoss-user] Commit Option A and ejbCreate
 
 Hi All,
 
 I have recently been experimenting with Commit Option A and 
 have noticed on rare occasions that creation of an EJB and 
 subsequent setting of some of its CMRs will fail with an EJB 
 spec violation in JBoss 3.2.4RC1. The exception mentions that 
 the CMR should only be set in the ejbPostCreate. However, I 
 am not actually setting any CMRs in the ejbCreate, I am doing 
 so in subsequent lines of the code. For
 example:
 
   MYEJBLocal ejb = myhome.create();
   ejb.setRelatedItem(item);
 
 The exception will occur on the call to setRelatedItem() 
 which is a CMR method, which is in this case a one to one 
 relation. I am also using the unknown-pk functionality with 
 mysql to have auto-incrementing primary keys, if that makes a 
 difference.
 
 So far, this doesn't ever happen when the commit option is B, 
 which is the default in the Entity container.
 
 Any ideas?
 
 -Neal
 
 
 
 ---
 The SF.Net email is sponsored by EclipseCon 2004 Premiere 
 Conference on Open Tools Development and Integration See the 
 breadth of Eclipse activity. February 3-5 in Anaheim, CA.
 http://www.eclipsecon.org/osdn
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] WebServices in Axis

2004-01-22 Thread Bruce Scharlau
Maffeo Gaetano wrote:
Hi all,

it could be stupid but i asked you the same

How can I pass a String []  to a webservices?
And How can i get the returned bean class from the service?


many thanks for any response

gaetano

Gaetano,

look at the jboss-net project pages on the jboss website for some 
tutorials and examples.
http://www.jboss.org/developers/projects/jboss/dotnet

--
cheers,
Bruce

Dr. Bruce Scharlau
Dept. of Computing Science
University of Aberdeen
Aberdeen AB24 3UE
01224 272193
http://www.csd.abdn.ac.uk/~bscharla
mailto:[EMAIL PROTECTED]


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] information regarding locking policies

2004-01-22 Thread Alexey Loubyansky
In Instance Per Transaction container each transaction gets its own
cache of instances, i.e. each one get its own copy of persistent data.
And, thus, allows different transactions to access the same persistence
data at the same time.

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Stephane Nicoll
 Sent: Thursday, January 22, 2004 3:12 PM
 To: JBoss user (E-mail)
 Subject: [JBoss-user] information regarding locking policies
 
 Hello list,
 
 I sent a mail a while ago regarding tx lock and got no 
 response so far. 
 http://www.mail-archive.com/[EMAIL PROTECTED]/m
 sg32131.html
 
 As a quick recall, we are creating entities X. For this we 
 need to test that an instance of entity A,B,C,D and E exist 
 (that is X could be crated only if an instance of A with 
 particular key exist on the DB, etc).
 
 So A,B,C,D and E are READ-ONLY. We noticed that using an MDB 
 to create our entity X, nothing was done in parallel.
 
 We changed to the one instance per transaction container 
 configuration and it worked quite fine. I would like to have 
 more detail about this container. Is it as safe as the 
 default one. What coult be the transaction problem?
 
 Regards,
 
 Stephane
 
 
 ---
 The SF.Net email is sponsored by EclipseCon 2004 Premiere 
 Conference on Open Tools Development and Integration See the 
 breadth of Eclipse activity. February 3-5 in Anaheim, CA.
 http://www.eclipsecon.org/osdn
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Problem when query contains international characters

2004-01-22 Thread Milen Dyankov
Hi again,
Some new information regarding the problem I have described in my 
previous mail.
It doesn't seem to be related to any particular  JBoss version (tested 
with the same result on 3.2.1, 3.2.2 and 3.2.3).
It doesn't  seem to depend on the JVM version (tested with J2SDK 
1.4.1_02 and  1.4.2_03).
It is not OS specific (tested on Linux 2.4.22 {system encoding set to 
ISO-8859-2} and Windows2000/XP {system encoding set to WIN-1250})

We have tried to replace the DynamicSQL query with a EJBQL query and 
JBossQL query but it didn't help.
Queries still returning no results if special characters are used. We 
can't see how they are transformed though
because JBoss only logs the prepared statement and all we see is '?'.

Situation currently looks like this:
Creating and updating CMP entities works just fine!  Special characters 
are stored to and read from database without problem.
EJBQL, JBossQL and DynamicQL queries work ONLY if query does not contain 
special characters!
Non of them works if query contains special characters!

I downloaded JBoss source code and tried to trace the calls.
It seems to me that special characters gets changed somewhere in 
JBossQLParser.jjt and/or EJBQLParser.jjt.
Don't have any idea of JJTree so unfortunately there my investigation 
was interrupted.

Our application is  JBoss - Tomcat - Struts web application.
All our JSPs are in utf-8 
encoding:   %@ page 
contentType=text/html; charset=UTF-8 language=java 
pageEncoding=utf-8%
In both doGet and doPost() in Struts ActionServlet we have:  
httpRequest.setCharacterEncoding(utf8);
Our struts configuration file 
includes:  controller 
contentType=text/html;charset=UTF-8 ... /
Database and JDBC driver are set to use UTF8 as well.

I have tried to run JBoss with -Dfile.encoding=utf8 but it didn't made 
any difference.

Any ideas of what is going on are highly appreciated.  I have ran out of 
them!
Please!

Milen Dyankov



Few days ago I wrote:

Hi,
I'm running JBoss 3.2.3(200311301445) on Debian Woody with J2SDK 
1.4.1_02-b06
I have strange problem with DynamicQL. It looks like non-English 
characters in queries get somehow changed.

This is my ejbHome method calling the dynamic ejbSelectGeneric :

   public Collection ejbHomeSearchCompanies (CompanyCriteriasGroup 
companyCriteriasGroup) throws FinderException {
   NDC.push(ejbHomeFindCompanies);
   log.debug (called);
 Collection result = null;
   if (companyCriteriasGroup != null) {
   StringBuffer jbossQl = new StringBuffer();
   jbossQl.append(SELECT OBJECT(c) );
   jbossQl.append(FROM Company c );
   jbossQl.append(WHERE );
   jbossQl.append(companyCriteriasGroup.toSQL());
 Object[] args = {}; // no arguments
 
log.debug(**);
   log.debug(jbossQl.toString());
   
log.debug(**);
 result = ejbSelectGeneric(jbossQl.toString(), 
args); // call dynamic-ql query
 
log.debug(**);
   log.debug(result);
   
log.debug(**);
   }
 log.debug (end);
   NDC.pop();
   return result;
   }

Now this is what I have in my log file:

. . .
2004-01-20 09:21:44,507 DEBUG [CompanyBean] (ejbHomeFindCompanies) called
2004-01-20 09:21:44,507 DEBUG [CompanyBean] (ejbHomeFindCompanies) 
**
2004-01-20 09:21:44,507 DEBUG [CompanyBean] (ejbHomeFindCompanies) 
SELECT OBJECT(c) FROM Company c WHERE ((c.name LIKE '%%'))
2004-01-20 09:21:44,507 DEBUG [CompanyBean] (ejbHomeFindCompanies) 
**
2004-01-20 09:21:44,507 DEBUG 
[plugins.cmp.jdbc.JDBCDynamicQLQuery.Company#ejbSelectGeneric] 
(ejbHomeFindCompanies) DYNAMIC-QL: SELECT OBJECT(c) FROM Company c 
WHERE ((c.name LIKE '%%'))
2004-01-20 09:21:44,510 DEBUG 
[plugins.cmp.jdbc.JDBCDynamicQLQuery.Company#ejbSelectGeneric] 
(ejbHomeFindCompanies) SQL: SELECT t0_c.symbol_ FROM COMPANY_ t0_c 
WHERE (((t0_c.name_ LIKE '%|z[BD%')))
2004-01-20 09:21:44,510 DEBUG 
[plugins.cmp.jdbc.JDBCDynamicQLQuery.Company#ejbSelectGeneric] 
(ejbHomeFindCompanies) Executing SQL: SELECT t0_c.symbol_ FROM 
COMPANY_ t0_c WHERE (((t0_c.name_ LIKE '%|z[BD%')))
2004-01-20 09:21:44,530 DEBUG [CompanyBean] 
(TP-Processor2:findCompanies findCompanies ejbHomeFindCompanies) 
**
2004-01-20 09:21:44,530 DEBUG [CompanyBean] 
(TP-Processor2:findCompanies findCompanies ejbHomeFindCompanies) []
2004-01-20 09:21:44,530 DEBUG [CompanyBean] 
(TP-Processor2:findCompanies findCompanies ejbHomeFindCompanies) 
**

[JBoss-user] MDB defined in one module - Queue defined in another module

2004-01-22 Thread Stephane Nicoll
Hello,

We have an ear application with multiple ejb-jar modules. Module A contains a
session bean that write stuff on a queue X. This module A also declares the
queue X in a SAR. Module B contains an MDB which is mapped on queue X.

The problem we have is that module B is deploying, queue X does not exist. As
a result, JBoss (3.2.3) creates a temporary destination. When module B
deploys, the creationg of the queue failed because it was already created, as
temporary. Is there a way to solve this problem through some dependencies or
something?

Also, what's the difference between a temporary destination and a destination
created by a sar (through MBean).

Thanks,

Stephane


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] (no subject)

2004-01-22 Thread frederic . kieffer

Hi people.

I designed to CMP beans (printer, consumables). They're link to each other
thanks to a m:n relationship.
When deploying my app, when JBoss tries to create the relationship table, I
got the following issue :

Caused by: java.sql.SQLException: Wrong data type: NUMBER in statement
[CREATE TABLE CONSUMABLE_PRINTER (printerId_fk INTEGER NOT NULL,
consumableId_fk NUMBER(10) NOT NULL, CONSTRAINT PK_CONSUMABLE_PRINTER
PRIMARY KEY (printerId_fk, consumableId_fk))]

When I execute the statement in the DB, the table is created.
Can someone help me.

Both PKs in bean are stored as Integers.

snip :

/**
* Returns the printerId
* @return the printerId
* 
* @ejb.persistent-field 
* @ejb.persistence
*column-name=PRINTER_ID
* sql-type=INTEGER
* @ejb.pk-field 
* @ejb.interface-method
*/
public abstract java.lang.Integer getPrinterId();



/**
 * @ejb.interface-method 
 * 
 * @ejb.relation 
 *name = consumable-printer
 *role-name = consumableToprinter
 * 
 * @jboss.relation-table 
 *table-name = consumable_printer
 *create-table = true
 *remove-table = false
 * 
 * @jboss.relation 
 *fk-column = printerId_fk
 *related-pk-field = printerId
 * 
 * @jboss.relation-mapping 
 *style = relation-table
 * 
 * 
 */
public abstract Collection getPrinters();



/**
* Returns the consumableId
* @return the consumableId
* 
* @ejb.persistent-field 
* @ejb.persistence
*column-name=CONS_ID
* sql-type=INTEGER
* @ejb.pk-field 
* @ejb.interface-method
*/
public abstract java.lang.Integer getConsumableId();



/**
 * @ejb.interface-method 
 * 
 * @ejb.relation 
 *name = consumable-printer
 *role-name = printerToConsumable
 * 
 * @jboss.relation-table 
 *table-name = consumable_printer
 *create-table = true
 *remove-table = false
 * 
 * @jboss.relation 
 *fk-column = consumableId_fk
 *related-pk-field = consumableId
 * 
 * @jboss.relation-mapping 
 *style = relation-table
 * 
 * 
 */
public abstract Collection getConsumables();


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] Problem when query contains international characters

2004-01-22 Thread Rupp, Heiko
What database are using?
Some databases don't like utf-8 for example when support for it is not
especially compiled in.



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] WrappedConnections and Oracle Stored Procedures

2004-01-22 Thread Pedro Salazar
On Mon, 2003-05-19 at 13:30, David Jencks wrote:
 Try something like
 
 (OracleConnection)((WrappedConnection)wc).getUnderlyingConnection())
 
 Be careful not to close the OracleConnection!
 
 david jencks
 

Isn't possible to do it but avoiding specific jboss classes hard-coded?
Here I have the jboss org.jboss.resource.adapter.jdbc.WrappedConnection
reference on the code which if I pretend to take my solution to another
container I would to fix every specific statement.

Any ideas?

 On 2003.05.19 07:45 Peter Spiess wrote:
  I'm trying to execute a stored procedure within a BMP entity bean.  This
  procedure uses custom types and in order to use them I need to call
  oracle.sql.ArrayDescriptor.createDecscriptor(String,Connection).  When I
  do
  this within my bean a ClassCastException is thrown.  My current guess is
  that this is because the Connection that I am passing ins a
  org.jboss.resource.adapter.jdbc.WrappedConnection and the Oracle driver
  is
  expecting something else.  When I execute this code as just a POJO I pass
  a
  oracle.jdbc.driver.OracleConnection which does work.  
  
  Maybe there's another way to handle this situation?
   
  Thanks,
  
  Peter
-- 
-PS



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] EJB-QL question

2004-01-22 Thread Steven Nakhla
I have a simple web app that I've been developing to get practice working with J2EE. It is an app to manage product license keys. The beans I have are as follows:

LicenseKey: properties=keyValue (String)
Vendor: properties=name (String)
Product properties=title (String), version (String)

These beans all have CMRs setup as well. The relations are as follows:

Vendor (1) - Product (Many)
Product (1) - LicenseKey (Many)

I would like to create a finder method that allows me to locate a Product based on the LicenseKey entered. Can someone give me an example of how this might be accomplished? I've poked around on Google for EJB-QL examples, but can't seem to find something that fits. I'd appreciate any help you could give. Thanks!

Steve Nakhla

Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

Re: [JBoss-user] Commit Option A and ejbCreate [auf Viren geprüft]

2004-01-22 Thread Jonathan . O'Connor
Neal,
What are the transaction types for the ejbCreate(), the 
ejb.setRelatedItem(item) and the calling method? You must be creating 
multiple transactions, and with commit-option A, its caching the value. 
Still doesn't make sense though. Also, why can't you move setting the CMRs 
into ejbPostCreate?
Ciao,
Jonathan O'Connor
XCOM Dublin



Neal Sanche [EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED]
21.01.2004 22:55
Please respond to
[EMAIL PROTECTED]


To
jboss-user [EMAIL PROTECTED]
cc

Subject
[JBoss-user] Commit Option A and ejbCreate [auf Viren geprüft]






Hi All,

I have recently been experimenting with Commit Option A and have 
noticed on rare occasions that creation of an EJB and subsequent 
setting of some of its CMRs will fail with an EJB spec violation in 
JBoss 3.2.4RC1. The exception mentions that the CMR should only be 
set in the ejbPostCreate. However, I am not actually setting any CMRs 
in the ejbCreate, I am doing so in subsequent lines of the code. For 
example:

  MYEJBLocal ejb = myhome.create();
  ejb.setRelatedItem(item);

The exception will occur on the call to setRelatedItem() which is a 
CMR method, which is in this case a one to one relation. I am also 
using the unknown-pk functionality with mysql to have 
auto-incrementing primary keys, if that makes a difference.

So far, this doesn't ever happen when the commit option is B, which is 
the default in the Entity container.

Any ideas?

-Neal



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] WrappedConnections and Oracle Stored Procedures

2004-01-22 Thread Ravinder_Muppidi
Title: RE: [JBoss-user] WrappedConnections and Oracle Stored Procedures





we can avoid importing of WrappedConnection object by using java reflection api...we can pass the connection from pool
to a method which uses reflection api to get the OracleConnection object from it..


here is the sample code..


 /// 
 public OracleConnection getOracleConnection( java.sql.Connection conFromPool ) throws PEException {


  OracleConnection oraCon = null;


  try {
   Class[] parms = null;
   java.lang.reflect.Method theMethod;
   theMethod = (conFromPool.getClass()).getMethod(getUnderlyingConnection,parms);
   oraCon = (OracleConnection) theMethod.invoke(conFromPool,parms);
   
  } catch (InvocationTargetException ite) {
   throw new PEException(ite.getMessage(),ite);
  }
  catch (Exception e) {
   throw new PEException(e.getMessage(),e);
  }


  return oraCon;


 }
 


if we the close the OracleConnection object it will close the Connection instead of returning to the pool
so, we are closing the connection object returned by pool only and leaving OracleConnection object as it is..
hope this wont create any problems...is there any other away to avoid this


any ideas please share...


Thanks
ravinder


-Original Message-
From: Pedro Salazar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 22, 2004 10:18 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] WrappedConnections and Oracle Stored
Procedures



On Mon, 2003-05-19 at 13:30, David Jencks wrote:
 Try something like
 
 (OracleConnection)((WrappedConnection)wc).getUnderlyingConnection())
 
 Be careful not to close the OracleConnection!
 
 david jencks
 


Isn't possible to do it but avoiding specific jboss classes hard-coded?
Here I have the jboss org.jboss.resource.adapter.jdbc.WrappedConnection
reference on the code which if I pretend to take my solution to another
container I would to fix every specific statement.


Any ideas?


 On 2003.05.19 07:45 Peter Spiess wrote:
  I'm trying to execute a stored procedure within a BMP entity bean. This
  procedure uses custom types and in order to use them I need to call
  oracle.sql.ArrayDescriptor.createDecscriptor(String,Connection). When I
  do
  this within my bean a ClassCastException is thrown. My current guess is
  that this is because the Connection that I am passing ins a
  org.jboss.resource.adapter.jdbc.WrappedConnection and the Oracle driver
  is
  expecting something else. When I execute this code as just a POJO I pass
  a
  oracle.jdbc.driver.OracleConnection which does work. 
  
  Maybe there's another way to handle this situation?
  
  Thanks,
  
  Peter
-- 
-PS




---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
** 
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.

**





[JBoss-user] Garbage Collector: Service?

2004-01-22 Thread Muraly R
Hi Gurus,
	Is there any particular service available in JBoss to schedule the garbage 
collector?

	The reason for this question is our application is using heavy weight 
objects like Vector, HashTable, etc. heavily. As a result of this after a 
simple get query the JBoss memory shoots up and it is not returning to is 
normal state.

	Hence this query.

	Also, for SessionBeans(Stateful/Stateless), if the cache-policy-conf is 
configured as follows:
cache-policy-conf
	min-capacity50/min-capacity
	max-capacity100/max-capacity
	remover-period600/remover-period
	max-bean-life600/max-bean-life
	overager-period300/overager-period
	max-bean-age300/max-bean-age
	resizer-period400/resizer-period
	max-cache-miss-period60/max-cache-miss-period
	min-cache-miss-period1/min-cache-miss-period
	cache-load-factor0.75/cache-load-factor
/cache-policy-conf

and if the ejbRemove() of the corresponding beans are populated with code 
to 'null' the object will this help.
Please suggest.

Cheers
Muraly
	



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user