Application Server: JBOss 4.2
I have a method which I want to intercept.Its a method annotated @Timeout and invoked by javax.ejb.TimerService instance.
The method signature:
@Stateless
class A
@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
@Timeout
@Interceptors(AnInterceptor.class)
public void ...
I have a problem where I get a deadlock on a MS SQL Server. The same code runs without problems on MySQL.
My problem is that I receive a request to delete a job (which is attached to a device), and afterwards I receive a request to create a new job for the same device. Most times this works without any problems, but once in a while the ...
My setup: JBoss Messaging 1.4 running on JBoss 4.2.3
I have a couple of MDB's that subscribes on one topic, and the MDB's onMessage() tries to deliver the received message to one web service each.
My problem is that I can't figure out how to pause the subscriptions in the case when the web service is offline.
My plan is to do the foll...
I'm trying to expose Quartz (that I'm running in Jboss) to the jboss JMX console. I'm not having any luck with said process and am wondering why it's so hard to find any reference materials on doing this. Seems like a pretty useful thing.
I'd love some tips on how to get it set up, if anyone has done it.
...
I'm using JBoss Messaging 1.4.3.GA (inside JBoss AS 5.1.0.GA). I'm packaging the definitions of my queues inside my EAR using an mbean. This means applications can define and use queues without having to change our company's stock JBoss installation.
Is it possible to configure message persistence on a per application basis (inside the ...
I need to create an interval Timer that is set to run once a week automatically. I don't want it to start based on user input, but I want it to be created when the application is deployed to the server. Every example that I have seen has another class starting the timer. I don't want to use a message driven bean to create the timer becau...
Anyone know of any good documentation on securing a JBoss installation? What I'm mainly looking at is disabling the admin console to only localhost or (even better) requiring authentication to access it.
...
In JBoss 4, you could set the order that objects were deployed (.jar, .war, .sar, etc...) in the file: conf/xmdesc/org.jboss.deployment.MainDeployer-xmbean.xml.
I have been unable to find the similar configuration in JBoss 5.
Any ideas how to adjust this? We have a .sar that needs to be deployed after all of our .jars and Im' not sure ...
Hey,
I'm trying to deploy my war file on JBoss 4.2.3. This application was working fine and still is working fine (sans the bugfix that I've put into my code). I have made a new war file with a bug fix in it (which involves passing some extra http request params while requesting another app's servlet). However, when I tried to deploy th...
I am running a client/server application using JBoss.
How can I connect to the server JVM's MBeanServer? I want to use the MemoryMX MBean to track the memory consumption.
I can connect to the JBoss MBeanServer using JNDI lookup but the java.lang.MemoryMX MBean is not registered with the JBoss MBeanServer.
EDIT: The requirement is for ...
We have an application which has a swing client and java app on the server (jboss.4.2.1.GA) side. We are using ejb3.
In our application at some point we are successfuly creating an invoice and show it to the user but when user wants to chage the invoice we get the following error. After reloading the invoice user can be able to change t...
Hi!
I have two entities like the following:
@Entity
public class Trip {
@OneToMany(mappedBy = "trip", fetch = FetchType.LAZY)
private Set<Job> jobs = new HashSet<Job>();
}
@Entity
public class Job {
@ManyToOne(fetch = FetchType.LAZY)
private Trip trip;
}
The problem is that the mappedBy relationship behaves diffe...
We're running jBoss 5.1, which in turn uses the Tomcat servlet container.
We've been seeing some cases where bad HTTP clients will open a socket, make an HTTP request, fail to read all data and fail to close the connection.
The outcome is that the tomcat threads block indefinitely trying to write to the output stream:
SocketOutputStre...
I have been put on to a project using Nuxeo, late in it's lifecycle and need to change a few things before it goes live.
I am having trouble finding out where I need to look to lock down a Nuxeo based application so that a user is redirected to the login page if they are unauthorised and access a restricted page.
Can someone please sho...
Hi!
We are running JBoss with Hibernate and are having this issue.
When a session bean uses an EntityManager to find an entity, it may already exist in the EntityManager's cache and it's state may be already outdated. If the code uses such an entity to make decisions, it may make wrong decisions that would produce bugs.
Here is an exa...
Hi!
It seems to me that JBoss reuses entity managers and the underlying hibernate sessions for multiple requests. I have run a test which proves that in some cases the state of an entity may be out-dated even if it is just fetched using em.find().
How can I disable this behaviour and force to clear or throw away used sessions to ensur...
I have a web application running on JBoss 4.2.2. In order to monitor performance I have enabled the internal platform JMX server that ships with Java 5. In other words, I added:
-Dcom.sun.management.jmxremote
to JBoss' launch script. This works as expected. However, as a result of this, all MBeans are now registered on the platform MB...
I am working with a piece of code implementing JAAS LoginModule and in the commit method I set the principal with user UUID:
subject.getPrincipals().add(new SimplePrincipal(userUUID)
But for some reason when I access the user from EJB Context:
context.getCallerPrincipal().getName()
I receive the login name of the user instead of t...
I'm designing a system where I have 2 nodes: 1 node with a web server that serves JSP pages, and forwards requests to web services in another node. In this other node, these webservices forward the eequests to the business logic layer, which then interacts with a DBAcccess layer.
Is JBoss suitable for this layout? Will I have to deplo...
I'm working on an older j2ee project. It runs on JBoss. It deploys various ears and wars. It also requires many jar files in the $JBOSS_HOME/server/default/lib directory. Should those all be moved to the ear and war files?
...