[jboss-user] [Installation, Configuration DEPLOYMENT] - Serious class leak under load. Please help

2008-09-03 Thread rituraj_tiwari
Folks, We are running an EJB3/JAXWS 2.1 application on JBoss 4.2.2. We are encountering a leak of classes. Our application causes JBoss to crash with out of memory error under load. We did a lot of profiling to try and understand where the leak was coming from. We currently suspect that

[jboss-user] [JBoss Tools (users)] - JBoss tools need JST or the whole WTP?

2008-07-08 Thread rituraj_tiwari
I am working on a Flex project using Flex builder. I only want to add the modules absolutely necessary. My server-side code is based on JBoss Seam. I want to add modules to the Flex Builder to allow me to run and debug a JBoss app server from within Eclipse. To that end, I plan on getting only

[jboss-user] [EJB 3.0] - Re: Bean Managed Transaction: No JTA transaction found

2008-05-25 Thread rituraj_tiwari
An update on this issue: I moved the entity manager creation code inside my worker thread so as to skirt any issues with transactions being threadlocal etc. I stilll cannot find a way to get a JTA transaction: | ... | | InitialContext ctx = new InitialContext(); |

[jboss-user] [EJB/JBoss] - Doing persistence operations in worker threads

2008-05-25 Thread rituraj_tiwari
Folks, I am running into a problem where I have come to a dead end after following several leads. I am launching an operation asynchronously in a separate thread which gathers some info and then starts persisting some entities. Problem is, I cannot seem to get anything written to the

[jboss-user] [EJB 3.0] - Re: Bean Managed Transaction: No JTA transaction found

2008-05-25 Thread rituraj_tiwari
Al, Thanks for your response. I am doing ut.begin() right after I create the user transaction. This is a simplified version of my worker thread's method: | InitialContext ctx = new InitialContext(); | EntityManagerFactory emf = (EntityManagerFactory)ctx.lookup(

[jboss-user] [EJB 3.0] - Re: Bean Managed Transaction: No JTA transaction found

2008-05-25 Thread rituraj_tiwari
No. I did not realize that would be needed since it seems to work just fine when invoked from session beans. I want to use the same, working infrastructure, but from a worker thread. That being said, this is my persistence.xml: | persistence-unit name=MyProject |

[jboss-user] [EJB/JBoss] - Re: Doing persistence operations in worker threads

2008-05-25 Thread rituraj_tiwari
jaikiran wrote : Please do not post the same question in multiple forums http://www.jboss.com/index.html?module=bbop=viewtopict=136149 Please do not post a response if you cannot be helpful. Given my problem, its unclear which camp it belongs in: Seam, Hibernate, JTA, Jboss EJB. Given that

[jboss-user] [EJB 3.0] - Re: Bean Managed Transaction: No JTA transaction found

2008-05-25 Thread rituraj_tiwari
Andrew, That is really what I am trying to figure out here: How do I start a JTA transaction? I know that one is magically available to me if I am running inside an EJB (or a Seam Component). It is not clear how I go about starting one if I am in this worker thread that was launched by my own

[jboss-user] [EJB 3.0] - Re: Bean Managed Transaction: No JTA transaction found

2008-05-25 Thread rituraj_tiwari
Andrew, This is the best thing I have heard all week!! Of course, I would look at my logs and everytime I created the entity manager from my entitymanager factory it would say that there was no active JTA transaction to join. Now I have flipped the order of processing: - I first create the

[jboss-user] [EJB/JBoss] - Re: Doing persistence operations in worker threads

2008-05-25 Thread rituraj_tiwari
Folks, Here is a resolution to my problem: What fixed this for me was doing UserTransaction.begin() before creating the entity manager from the entity manager factory. If I create my entity manager and then start the user transaction, the entity manager is never able to associate with the

[jboss-user] [EJB 3.0] - Transaction in injected EJB

2008-05-24 Thread rituraj_tiwari
Folks, I have a SLSB that launches tasks in a threadpool. The task threads need to access entities and persist them. I am accessing this SLSB by injecting it into another SLSB (which is also a seam component). My problems are : 1. The moment my threads try to persist anything using the

[jboss-user] [EJB 3.0] - Bean Managed Transaction: No JTA transaction found

2008-05-24 Thread rituraj_tiwari
I am resorting to BMT due to the need to launch persistence operations in worker threads. I am using the BMT format as described here http://www.hibernate.org/hib_docs/entitymanager/reference/en/html/transactions.html So, I have | @PersistenceUnit EntityManagerFactory m_emf; | @Resource

[jboss-user] [JBoss Tools (users)] - Re: upgrade to WTP 2.0.2 breaks EAR deployment in JBoss Tool

2008-03-09 Thread rituraj_tiwari
I encountered the same problem as Baz (seam jar missing). Erimag's tip on editing application.xml helped. Now I have a new problem. The ejb module as created by Eclipse is missing the META-INF folder. The first error this causes is missing persistence unit. This is followed by a flurry of

[jboss-user] [Installation, Configuration Deployment] - Re: How to configure and run web and ejb tiers on separate m

2007-04-18 Thread rituraj_tiwari
Elias, Many thanks for taking the time to respond. These are good pointers. I am still a little surprised that there is no formal JBoss HOTWO on doing this. -Raj View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4038552#4038552 Reply to the post :

[jboss-user] [Installation, Configuration Deployment] - How to configure and run web and ejb tiers on separate machi

2007-04-16 Thread rituraj_tiwari
Hello all, I was hoping to find a ton of info on what I think is a very common use case. Surprisingly, not only is info hard to come by, JBoss (4.0.5) is incredibly hard to configure for this. My situation: Security best practices and other constrains require I run my servlets and web services

[jboss-user] [JBossWS] - Re: JNDI Configuration for a JBoss Cluster

2007-02-16 Thread rituraj_tiwari
A simple ab initio analysis of your situation tells me that you should use the load balanced IP in your jndi.properties and not the individual server IP. Otherwise, you might as well not have the load balancer in there. My thinking is that its a better idea to front the web tier with a load

[jboss-user] [JBossWS] - Re: org.jboss.ws.WSException: Cannot find java method when i

2007-02-15 Thread rituraj_tiwari
Figured it out. I was not using the netbeans wscompile in the right way to generate the necessary classes. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4017109#4017109 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4017109

[jboss-user] [JBossWS] - JBoss WSTools reference?

2007-02-14 Thread rituraj_tiwari
Hi, I am trying to use NetBeans 5.5 (vanilla) with JBoss 4.0.5. I am running into endless trouble with nb's wscompile. I would like to use jboss' wscompile tool within my nb project's ant scripts. Has anyone tried this before? Is there a document that describes the options and functionality

[jboss-user] [JBossWS] - org.jboss.ws.WSException: Cannot find java method when invok

2007-02-14 Thread rituraj_tiwari
Hi, Using JBoss 4.0.5 with NetBeans 5.5. When I try to invoke a web service operation using a generated client, I see the following exception in my jboss output: | ERROR [SOAPFaultExceptionHelper] SOAP request exception | org.jboss.ws.WSException: Cannot find java method: myOperation |