[JBoss-user] [EJB/JBoss] - Re: Transaction across different DBs

2006-03-30 Thread sriramp_here
Regarding your scenario,  you have to use XA-transactions, as well as configure 
your datasource as XA datasource.  Please have a look at jboss wiki for further 
inforamation.
Hope this helps,
Regards
Sriram.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3933664#3933664

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3933664


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Hibernate unable to startNewTransaction

2006-03-30 Thread sriramp_here
Ignore the earlier post. In your specific case i guess you are starting 
different transaction with in a single threaded call which i guess is not 
possible. Lets say you have to start a new transaction from an EJB you have to 
look up again another component to do it. In shor you cannot have nested 
transactions withh in a single thread.

Hope this helps,
Regards,
Sriram

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3933662#3933662

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3933662


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Hibernate unable to startNewTransaction

2006-03-30 Thread sriramp_here
In your specific case i guess you are starting different transaction with in a 
single threaded call. Lets say you have to start a new transaction from an EJB 
you have to look up again another component to do it. In shor you can have 
nested transactions withh in a single thread.

Hope this helps,
Regards,
Sriram

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3933661#3933661

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3933661


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Transaction is not active

2006-03-30 Thread sriramp_here
Hi ,
This occurs because the Jboss Transaction Manger time out the underlying 
connection if your database transactions are longer. One way to prevent is, 
first find the piece of code i 
  300
  
  true
  jboss:service=XidFactory
   
in the file jboss-service.xml  and change the

< attribute name="TransactionTimeout" >300< /attribute >   

to some larger value so that your transaction does not time out. 
Hope this helps.

Regards
Sriram


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3933659#3933659

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3933659


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Error looking up a stateless session bean

2006-02-27 Thread sriramp_here
Hi 
Try adding jboss-j2ee.jar to your classpath.
Regards
Sriram

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926483#3926483

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926483


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: EJB Working in windows but not in Linux

2006-02-27 Thread sriramp_here
Hi ,
The information is not sufficient i guess.
But possible things you can look is.
1) Please check the class loader configurations. 
2) Since Jboss uses dynamic proxies, you may not able to find the exact issue.

Regards
Sriram

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926463#3926463

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926463


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Optimistic Locking policy in jboss

2006-02-26 Thread sriramp_here
Hi, 
To add to my above comments i also looked in to the standardjboss.xml where, i 
saw different container configurations. There i noticed that the 
 is only   applied  on Entity Beans ( Container managed as well 
as Bean Managed). Is it possible to apply a  for Session Beans 
as well as Message Driven Beans.

Regards
Sriram

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926443#3926443

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926443


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Optimistic Locking policy in jboss

2006-02-26 Thread sriramp_here
Hi 
I tried what you have mentioned in the reply. But still it is not working.
Please have a look at my jboss.xml. I have purposefully added a space for 
session tag. So do consider that as a mistake. Other than than can you tell me 
is there something else where i am going wrong.



http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd";>



  < session>
FilterBuilderService

mercury-catalog-admin-1.0/ejb/com.ketera.catalog.service.FilterBuilderService
   

CacheBuilderMDB

queue/CatalogQueue
CMP 2.x Optimistic 
Locking



CMP 2.x Optimistic 
Locking

org.jboss.ejb.plugins.lock.JDBCOptimisticLock


   




View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926433#3926433

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926433


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Optimistic Locking policy in jboss

2006-02-21 Thread sriramp_here
Hi 
I have a question regarding locking policy in jboss. I am using an oracle 
database. Now what I am doing is, I am updating a set of records from oracle 
using normal JDBC Connection (using a datasource of course), from an MDB.The 
update operation takes some time since there are a number of records. Meanwhile 
i m trying to update the same set of reocords from another thread,(which can be 
a java program or a normal sql plus window) but this updation wont happen 
unless the transaction in the MDB completes.  So for this(since i know the 
default locking policy is Pessimistic), i made the locking policy as 
Optimistic, and I assume that the above scenario should work.But this does not 
work. Can any one explain why this is not working.  I have pasted my jboss.xml 
below


http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd";>






FilterBuilderService

mercury-catalog-admin-1.0/ejb/com.ketera.catalog.service.FilterBuilderService

  

CacheBuilderMDB

queue/CatalogQueue


  


  
org.jboss.ejb.plugins.lock.JDBCOptimisticLock


  


   



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925335#3925335

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925335


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: EJB deployment problem

2006-02-21 Thread sriramp_here
I guess Problem is with your JNDI naming. Please checke the JNDI naming  in 
ejb-jar.xml as well as jboss.xml

Regards
Sriram

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925316#3925316

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925316


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Different Timeout for different Connection Pools

2006-01-17 Thread sriramp_here
Can i configure different Connection time out for different Connection pools.
I know that there is an attribute in the jboss-service.xml namely 
TransactionTimeout, for which i can set the value of the timeout. But If i do 
this, this property is applied to all the connection pools in my server.Any 
solution for this.
Regards
Sriram

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3917861#3917861

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3917861


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Repeated Transaction Timeouts

2006-01-17 Thread sriramp_here
You can try making the connection timeout property as 0,so that the connectio n 
never times out.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3917846#3917846

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3917846


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Multiple databases

2005-09-22 Thread sriramp_here
You can use the same jboss server to connect to differnet database server. You 
can add the two database configurations in the same oracle-ds.xml.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3896310#3896310

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3896310


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: session values

2005-07-31 Thread sriramp_here
Hi, 
Try deleting the contents under the folder work and tmp. This may help but not 
sure ;-)

Sriram.P


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3887630#3887630

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3887630


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Jboss multi-instances and queue sharing

2005-07-31 Thread sriramp_here
I guess this is not the correct form to ask this. Why dont you try the same 
post in JM/Messaging or clustering.

Regards
Sriram.P

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3887627#3887627

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3887627


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: use

2005-07-26 Thread sriramp_here
I am not sure about this. According New Java Spec says that if the package is 
null then we may get this Exception. Make sure that your classes are in porper 
package.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3886563#3886563

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3886563


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Durable Subscription

2005-06-06 Thread sriramp_here
Hi 
I have a question regarding making a subscription durable. I went a lot through 
the documentation but still i am not able to get it right. 
This is my publisher code only part of it. 

  Context ctxInitCtxt = new InitialContext();
TopicConnectionFactory factory = 
(TopicConnectionFactory)ctxInitCtxt.lookup("ConnectionFactory");
topicConn= factory.createTopicConnection();
topicSession= 
topicConn.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
Topic topic = (Topic) 
ctxInitCtxt.lookup("topic/DEFTopic");
TopicPublisher publisher = 
topicSession.createPublisher(topic);
ObjectMessage objMsg 
=topicSession.createObjectMessage();
objMsg.setObject(dfrep);
publisher.publish(objMsg);

I guess the durable subscription should happen from the client. Now i have an 
MDB which listens to this topic.  

My MDB 

public void onMessage(Message msg)
   {
ObjectMessage objMsg = (ObjectMessage) msg;
String strClassName=this.getClass().getName();
   try 
   {
  Report dfrpt = (Report)objMsg.getObject(); 
  // The bean has received the following message from the 
JMS Queue.  
  DEFLogger.logInfo("["+className+"]"+"Mesasge driven 
Bean(MDB) has received the message with 
reportClassName-->"+dfrpt.getReportClassName() ); 
  ReportController.extractKXMLDoc(dfrpt);   
   
  
   }
   catch(Exception ex) 
   {
  DEFLogger.logFatal(ex);
   }
   }


My jboss.xml is 


http://www.jboss.org/j2ee/dtd/jboss.dtd";>


   
 
 DEFReportEJB
 DEFReportEJB
 
 
 DEFReportMDB
 
topic/DEFTopic
   
   
   
   


My ejb-jar.xml is 



http://java.sun.com/dtd/ejb-jar_2_0.dtd";>

  

  Message Driven Bean
  DEFReportMDB
  DEFReportMDB
  com.ketera.dataextraction.common.DEFReportMDBBean
  
  javax.jms.Topic
  durable

  Container
  Auto-acknowledge

  
  

  
DEFReportEJB
*
  
  Required

  


Can anyone help me out in this regard.






View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3880400#3880400

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3880400


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Transaction Timeout

2005-05-31 Thread sriramp_here
I guess the best solution is to upgrade to JBoss 4.0.0

Sriram

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3879535#3879535

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3879535


---
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - MDB invoked multiple times

2005-05-30 Thread sriramp_here
We have JBoss4.0.0 installed with Oracle as database. But for JMS persistance 
and state management we are using the HSQLDB. Now I have a MDB which has 
subscribed to a specific topic. From a Servlet we are invoking a Session Bean 
which in turn publishes a message to the topic to which the MDB listens. Now 
sometimes for a single publish of the message the MDB is invoked thrice. One 
more strange thing is this error is not reproducable.I am pasting the log for 
this specific instance. Please help me out . Vauable suggestions are welcome.  
So I am posting the log.  Here you can see the same MDB is getting invoked for 
a single invocation of the servlet.

2005-05-27 12:19:58,116 DEBUG 
[org.jboss.resource.connectionmanager.IdleRemover] run: IdleRemover notifying 
pools, interval: 45
2005-05-27 12:23:25,989 INFO  [STDOUT] -
2005-05-27 12:23:25,990 INFO  [STDOUT] reportId   POERP_01
2005-05-27 12:23:25,990 INFO  [STDOUT] criterion  
POERP_0113930MMDD1Y
2005-05-27 12:23:25,990 INFO  [STDOUT] queryinfo 
PSV 
2005-05-27 12:23:25,990 INFO  [STDOUT] -
2005-05-27 12:23:26,023 INFO  [DEFLogger] 
[com.ketera.dataextraction.helper.DEFvalidateReportParam]Validating the 
mandatory report parameters
2005-05-27 12:23:26,062 DEBUG 
[org.jboss.mq.referenceable.SpyConnectionFactoryObjectFactory] Extracting 
SpyConnectionFactory from reference
2005-05-27 12:23:26,064 DEBUG 
[org.jboss.mq.referenceable.SpyConnectionFactoryObjectFactory] The 
GenericConnectionFactory is: [EMAIL PROTECTED] 
connectionProperties={UIL_ADDRESS_KEY=10.200.91.22, UIL_CHUNKSIZE_KEY=100, 
UIL_TCPNODELAY_KEY=yes, 
ClientILService=org.jboss.mq.il.uil2.UILClientILService, UIL_PORT_KEY=8193, 
UIL_BUFFERSIZE_KEY=2048, PingPeriod=6}]
2005-05-27 12:23:26,065 DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin 
ReadTask.run
2005-05-27 12:23:26,065 DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin 
ReadTask.run
2005-05-27 12:23:26,065 DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin 
WriteTask.run
2005-05-27 12:23:26,065 DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin 
WriteTask.run
2005-05-27 12:23:26,066 DEBUG [org.jboss.mq.il.uil2.SocketManager] Created 
ObjectOutputStream
2005-05-27 12:23:26,066 DEBUG [org.jboss.mq.il.uil2.SocketManager] Created 
ObjectOutputStream
2005-05-27 12:23:26,066 DEBUG [org.jboss.mq.il.uil2.SocketManager] Created 
ObjectInputStream
2005-05-27 12:23:26,067 DEBUG [org.jboss.mq.il.uil2.SocketManager] Created 
ObjectInputStream
2005-05-27 12:23:26,067 DEBUG [org.jboss.mq.il.uil2.UILClientILService] Starting
2005-05-27 12:23:26,068 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] 
Setting up the UILClientIL Connection
2005-05-27 12:23:26,068 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] 
The UILClientIL Connection is set up
2005-05-27 12:23:26,071 DEBUG 
[org.jboss.mq.referenceable.SpyDestinationObjectFactory] 
SpyDestinationObjectFactory->getObjectInstance()
2005-05-27 12:23:26,074 INFO  [DEFLogger] 
[com.ketera.dataextraction.util.DEFEmail]mail with the content {The Report 
Generation Request has been initiated with reference number  05052718} is being 
sent
2005-05-27 12:23:26,074 DEBUG [com.ketera.platform.email.EmailJMSUtil] Queue 
name is queue/emailQueue
2005-05-27 12:23:26,074 DEBUG 
[org.jboss.mq.referenceable.SpyConnectionFactoryObjectFactory] Extracting 
SpyConnectionFactory from reference
2005-05-27 12:23:26,075 INFO  [DEFLogger] 
[com.ketera.dataextraction.common.DEFReportMDBBean]Mesasge driven Bean(MDB) has 
received the message with reportClassName-->PoERPHelper
2005-05-27 12:23:26,076 DEBUG 
[org.jboss.mq.referenceable.SpyConnectionFactoryObjectFactory] The 
GenericConnectionFactory is: [EMAIL PROTECTED] 
connectionProperties={UIL_ADDRESS_KEY=10.200.91.22, UIL_CHUNKSIZE_KEY=100, 
UIL_TCPNODELAY_KEY=yes, 
ClientILService=org.jboss.mq.il.uil2.UILClientILService, UIL_PORT_KEY=8193, 
UIL_BUFFERSIZE_KEY=2048, PingPeriod=6}]
2005-05-27 12:23:26,076 DEBUG 
[org.jboss.mq.referenceable.SpyDestinationObjectFactory] 
SpyDestinationObjectFactory->getObjectInstance()
2005-05-27 12:23:26,077 DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin 
ReadTask.run
2005-05-27 12:23:26,094 DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin 
WriteTask.run
2005-05-27 12:23:26,094 DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin 
ReadTask.run
2005-05-27 12:23:26,094 DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin 
WriteTask.run
2005-05-27 12:23:26,094 DEBUG [org.jboss.mq.il.uil2.SocketManager] Created 
ObjectOutputStream
2005-05-27 12:23:26,094 DEBUG [org.jboss.mq.il.uil2.SocketManager] Created 
ObjectOutputStream
2005-05-27 12:23:26,095 DEBUG [org.jboss.mq.il.uil2.SocketManager] Created 
ObjectInputStream
2005-05-27 12:23:26,096 DEBUG [org.jboss.mq.il.uil2.SocketManager] Created 
ObjectInputStream
2005-05-27 12:23:26,096 DEBUG [org.jboss.mq.il.uil2.UILClientILService] Starting
2005-05-27 12:23:26,097 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] 
Setting up the UILClientIL Connection
2005-05-27

[JBoss-user] [Beginners Corner] - Turning SQL debug on

2005-04-13 Thread sriramp_here
Hi 
I am currently using JBOSS with Oracle. I am executing some stored procedures. 
If i want to log  the SQL  statements  which are being executed how can i do 
that. Turning the true  in standardjaws.xml will only help of Entity beans. 
Here i am using DAO's for executing the stored procedure. Please help me in 
this regard.
Thanks & Regards
Sriram.P

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3873694#3873694

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3873694


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - JMS provider failure detected:

2005-04-05 Thread sriramp_here
Hello,
I dont understand why this error is happening. I have a oracle database with 
JBOSS. I also have a MDB im my application. The application is connecting to 
the database perfectly. I guess while connecting to JMS I am getting an error. 
But when I am trying to look up a connection factory I am getting an error. Can 
you guys please help me out. I am pasting the config files below as well as a 
small part of application log. Please help me out!

The log message i am getting is
11:43:03,713 WARN  [JMSContainerInvoker] JMS provider failure detected:
javax.jms.JMSException: Error creating the dlq connection: XAConnectionFactory 
not bound
at 
org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:171)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:237)
at 
org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:164)
at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:542)
at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:764)
at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.onException(JMSContainerInvoker.java:1267)
at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker$1.run(JMSContainerInvoker.java:776)
11:42:53,709 INFO  [JMSContainerInvoker] Trying to reconnect to JMS provider




This is my standardjaws.xml( I mean part relevant to the problem)


java:/OracleDS
Oracle9i
false

true
false
true
false
300
false
false

.


This is my relevant standardjbosscmp-jdbc.xml

java:/OracleDS
Oracle9i

This is my relevant part of jbossmq-destinations-service.xml



jboss.mq:service=DestinationManager
jboss.mq:service=SecurityManager









The login-config.xml contents are




sa
sa

jboss.jca:service=LocalTxCM,name=OracleDS





The sample piece of code I am trying to access the Message Bean from a 
Enterprise bean.

Context ctxInitCtxt = new InitialContext();
TopicConnectionFactory factory = 
(TopicConnectionFactory)ctxInitCtxt.lookup("ConnectionFactory");
TopicConnection topicConn = factory.createTopicConnection();
TopicSession topicSession = topicConn.createTopicSession(false, 
Session.AUTO_ACKNOWLEDGE);
Topic topic = (Topic) ctxInitCtxt.lookup("topic/DEFTopic");
TopicPublisher publisher = topicSession.createPublisher(topic);
ObjectMessage objMsg =topicSession.createObjectMessage();
objMsg.setObject(dfrep);
publisher.publish(objMsg);
strClassName=this.getClass().getName();


Regards
Sriram.P 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3872822#3872822

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3872822


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - JMS provider failure detected:

2005-04-05 Thread sriramp_here
Hello,
I dont understand why this error is happening. I have a oracle database with 
JBOSS. I also have a MDB im my application. The application is connecting to 
the database perfectly. I guess while connecting to JMS I am getting an error. 
But when I am trying to look up a connection factory I am getting an error. Can 
you guys please help me out. I am pasting the config files below as well as a 
small part of application log. Please help me out! 

The Log messge I am getting in the console.

11:40:23,486 INFO  [JMSContainerInvoker] Reconnected to JMS provider
11:40:23,486 WARN  [JMSContainerInvoker] JMS provider failure detected:
javax.jms.JMSException: Error creating the dlq connection: XAConnectionFactory 
not bound
at 
org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:171)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:237)
at 
org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:164)
at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:542)
at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:764)
at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.onException(JMSContainerInvoker.java:1267)
at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker$1.run(JMSContainerInvoker.java:776)



This is my standardjaws.xml( I mean part relevant to the problem)


java:/OracleDS
Oracle9i
false

true
false
true
false
300
false
false

.


This is my relevant standardjbosscmp-jdbc.xml

java:/OracleDS
Oracle9i

This is my relevant part of jbossmq-destinations-service.xml



jboss.mq:service=DestinationManager
jboss.mq:service=SecurityManager









The login-config.xml contents are




sa
sa

jboss.jca:service=LocalTxCM,name=OracleDS





The sample piece of code I am trying to access the Message Bean from a 
Enterprise bean.

Context ctxInitCtxt = new InitialContext();
TopicConnectionFactory factory = 
(TopicConnectionFactory)ctxInitCtxt.lookup("ConnectionFactory");
TopicConnection topicConn = factory.createTopicConnection();
TopicSession topicSession = topicConn.createTopicSession(false, 
Session.AUTO_ACKNOWLEDGE);
Topic topic = (Topic) ctxInitCtxt.lookup("topic/DEFTopic");
TopicPublisher publisher = topicSession.createPublisher(topic);
ObjectMessage objMsg =topicSession.createObjectMessage();
objMsg.setObject(dfrep);
publisher.publish(objMsg);
strClassName=this.getClass().getName();


Regards
Sriram.P 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3872821#3872821

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3872821


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - XAConnectionFactory not bound

2005-04-05 Thread sriramp_here
Hello,
  I dont understand why this error is happening. I have a oracle database with  
JBOSS. I also have a MDB im my application. The application is connecting to 
the database perfectly. I guess while connecting to JMS I am getting an error. 
But when I am trying to look up a connection factory I am getting an error. Can 
you guys please help me out. I am pasting the config files below as well as a 
small part of application log. Please help me out!

This is my standardjaws.xml( I mean part relevant to the problem)


   java:/OracleDS
   Oracle9i
   false
   
  true
  false
  true
  false
  300
  false
  false
   
.


This is my relevant  standardjbosscmp-jdbc.xml

  java:/OracleDS
  Oracle9i

This is my relevant part of jbossmq-destinations-service.xml



jboss.mq:service=DestinationManager
jboss.mq:service=SecurityManager

   
 
 
 
  

  

The login-config.xml contents are 



  
   sa
   sa
   
   jboss.jca:service=LocalTxCM,name=OracleDS
  




The sample piece of code I am trying to access the Message Bean from a 
Enterprise bean.

  Context ctxInitCtxt = new InitialContext();
TopicConnectionFactory factory = 
(TopicConnectionFactory)ctxInitCtxt.lookup("ConnectionFactory");
TopicConnection topicConn = 
factory.createTopicConnection();
TopicSession topicSession = 
topicConn.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
Topic topic = (Topic) 
ctxInitCtxt.lookup("topic/DEFTopic");
TopicPublisher publisher = 
topicSession.createPublisher(topic);
ObjectMessage objMsg 
=topicSession.createObjectMessage();
objMsg.setObject(dfrep);
publisher.publish(objMsg);  
strClassName=this.getClass().getName();


Regards
Sriram.P


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3872760#3872760

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3872760


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Connection Pooling In JBOSS

2005-03-29 Thread sriramp_here
Hi 
Thanks a lot for the explanation.
Regards
Sriram.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3871979#3871979

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3871979


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Connection Pooling In JBOSS

2005-03-28 Thread sriramp_here
Hi,
I am Using oracle as the datasource. I have a doubt whether I should write any 
connection pool for the JBoss app Server.Lets Say I have a maximum of
15 connections configured in my oracle-xa-da.xml. I have pasted my oracle-xa-ds 
below.



XAOracleDS

false
oracle.jdbc.xa.client.OracleXADataSource
jdbc:oracle:oci8:@tc
scott
tiger




5


20

org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter





jboss:service=TransactionManager





I have written a connection pool class as shown below.

import java.sql.*;
import javax.sql.*;
import javax.naming.*;

public class DBConnector {
public Connection getConnection(){

try {

Context ctx = new InitialContext();

DataSource ds = (DataSource) ctx.lookup("java:/DevelopmentDS");

return ds.getConnection();

}catch(Exception exe){

System.out.println ("The exception is " + exe);

return null;

}

}


public void closeConnection (PreparedStatement stmt, ResultSet rs, Connection 
con){


try{

if (stmt != null){

stmt.close();

}

if (rs != null){

rs.close();

}

if (con != null){

con.close();

}

}catch(Exception exe){

}

}

}

If 25 different Session Beans tries to get the connection from the pool
what will happen, will JBoss internally Queue the Bean until they get a 
connection. Please help me

Regards
Sriram.P 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3871842#3871842

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3871842


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Connection Pooling In JBOSS

2005-03-28 Thread sriramp_here
Hi,
I am Using oracle as the datasource. I have a doubt whether I should write any 
connection pool for the JBoss app Server.Lets Say I have a maximum of 
15 connections configured in my oracle-xa-da.xml. I have pasted my oracle-xa-ds 
below.


  
XAOracleDS

false

oracle.jdbc.xa.client.OracleXADataSource
jdbc:oracle:oci8:@tc
scott
tiger




  
  5

  
  20


org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter


  

  
jboss:service=TransactionManager
  




I have written a connection pool class as shown below. 

import java.sql.*;
import javax.sql.*;
import javax.naming.*;

public class DBConnector {
public Connection getConnection(){

try {

Context ctx = new 
InitialContext();

DataSource ds = (DataSource) 
ctx.lookup("java:/DevelopmentDS");

return ds.getConnection();

}catch(Exception exe){

System.out.println ("The 
exception is " + exe);

return null;

}

}


public void closeConnection (PreparedStatement stmt, ResultSet rs, 
Connection con){


try{

if (stmt != null){

stmt.close();

}

if (rs != null){

   rs.close();

}

if (con != null){


con.close();

}

}catch(Exception exe){

}

}

}

If 25 different Session Beans tries to get the connection from the pool 
what will happen, will JBoss internally Queue the Bean until they get a 
connection. Please help me

Regards
Sriram.P




View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3871759#3871759

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3871759


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: JDBC:ODBC driver for jboss-hypersonic required please he

2005-03-28 Thread sriramp_here
HI 
Instead of this use the JNDI Data source Configuration. 







   

  
  
  DefaultDS

  
  jdbc:hsqldb:hsql://localhost:1701

  
  
  
jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB

  
  org.hsqldb.jdbcDriver

  
  sa
  

  
  


  
  

  
  5

  
  20

  
  
  
  0

  

  

  

  
  

  

  
  HsqlDbRealm

  

  
  jboss:service=Hypersonic,database=localDB
   

   
   
 1701
 true
 default
 false
 true
   
 

   
   
 localDB
 true
   


Save this in file hsqldb-ds.xml and put in the deploy directory.

Alternatively 

The Driver you are looking for is org.hsqldb.jdbcDriver
URL is given in the  tag. Alternatively you can refer the 
Beginers guide for JBOSS from the site

Regards
Sriram

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3871757#3871757

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3871757


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user