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
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
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();
|
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
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(
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
|
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
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
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
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
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
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
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
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 :
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
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
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
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
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
|
19 matches
Mail list logo