jboss5.x

How does JBoss choose which AJP port to use?

Hi, In JBoss 5.1.0, there is a file called <INSTANCE>/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml which includes some settings for applying an offset to the port numbers. This is used to enable multiple instances to run on the same box without going through painful reconfiguration of the ports for each instance. There is...

Are there any built-in method for obtaining a list of existing EJB3 Sessions?

I use JBoss 5. I would like to destroy sessions manually. Are there any way to query container for sessions of particular type, for particular authenticated user. Or at least, query for all managed sessions? ...

JBoss 5.1 message replication

I have a multi client application with some unique network requirements. We have several server instances running, and each server has several clients. Server A Client 1 Client 2 Server B Client 3 Client 4 I want to put a JBoss 5.1 server on server A and server B with JBoss Messaging configured. Both servers will have the s...

Is it safe to set java.io.tmpdir to <INSTANCE>/tmp in JBoss

Hi We have multiple instances of JBoss 5.1.0 running on the same physical server, using multiple instances of the same VM: <JBOSS_HOME>/server/instance1 <JBOSS_HOME>/server/instance2 with the appropriate configuration to avoid port clashes etc. For each instance there is the tmp folder: <JBOSS_HOME>/server/instance1/tmp <JBOSS_HOME...

JBoss 5.0.1: log4j.properties file not taking effect in EAR

Hello, all. I cannot get the settings in my log4j.properties file to take effect. I've already followed the advice in the following forum discussion: http://community.jboss.org/message/198690#198690 Here is my log4j.properties file (in the root directory of the EAR): # # The root logger is set to INFO by default. # This level can be ...

glassfish v3 remote jboss EJB client

Hi ladies and gents, I have some interesting issue regarding calling EJB 3 stateless deployed on Jboss 5 from Glassfish v3. I managed to do this successfully on glassfish 2.1 and jboss 5, by packing Jboss client jars with my app, but now when I do the same thing on gf3 I get ClassNotFoundException for many of jboss classes (other then ...

How to inject EJBs with custom injector?

How can I inject EJBs with my own injector? I have a distributed environment and a service locator, which can locate all EJBs. Is it possible to use the standard @EJB-Annotation, but make the lookup on my own? For example: @javax.ejb.EJB(name = "ejb/StackOverflow") private StackOverflow stackOverflowService; Should finally do: retu...

JBoss AS Classloader implementation?

Hi, I'm migrating a small tool I wrote for our application that was working on WAS and WLS to JBoss AS 5.1. Basically, the tools helps me to troubleshoot classloading issues: it discovers the classloading hierarchy of a specified class, at runtime, and finds out all classes and jars loaded by each classloader. It is a fairly simple tool...

EJB3 Remoting/Security problem in JBoss with classloader isolation.

I have an application in JBoss. For some reason I had to enable classloader isolation. To do so, I had to dublicate remoting.jar inside application ear. Now, I am trying to implement EJB3 Session Bean and after InitialContext.lookup for my session I cannot do anything with it because of: at org.jboss.ejb3.BlockContainerShutdownInte...

Jboss 5.1 ActiveMQ 5 standalone broker MDB setup

I'm attempting to use the sample broker that comes with ActiveMQ 5 with an MDB deployed on JBoss 5.1 AS. I've deployed the activemq rar to the deploy directory. I've deployed activemq-jms-ds.xml to deploy/messaging which defines my connection factories. I have the broker running on localhost:61616 as defined in the connectionfactory con...

How to set up DBAppender with log4j in JBoss5?

I would like to be able to set up my clustered JBoss5 instances to write log4j messages to a database. I am trying to use a DBAppender (rather than a JDBCAppender, for the reasons given in this question). Has anyone done this? As of now, I've added an <appender> tag to jboss-log4j.xml and put the logback-classic-0.9.17.jar file in every...

Access JMS Queues from WebLogic in JBoss

What is the recommended approach for an application deployed as an EAR in JBoss 5.1 to access JMS destinations on WebLogic 9.2? The current implementation, which worked just fine on 4.2.3, does not even start without errors on JBoss 5.1. The application deployed to 4.2.3 used a Spring JmsTemplate to connect to WebLogic. WebLogic's clien...

Is it safe to empty the tmp folder from Jboss/Server/default ?

I'm using JBoss 5.1.0.GA, I notticed the tmp folder at: server/default/tmp is mora than 1GB big. Can I safely delete all the files in it? ...

Error while booting Jboss 5.0.1. Can anybody help?

Hi @all, i'm experiencing some problems while JBOSS 5.0.1 is booting. These are the error messages i receive: 10:54:55,655 WARN [HDScanner] Failed to process changes org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS): DEPLOYMENTS MISSING DEPENDENCIES: De...

How to connect JMS queues from JBOSS 4 and 5?

I have a server on which a Jboss 4.2.2 and a Jboss 5.1.0 runs. The problem is that a 3rd party is not able to upgrade its application to Jboss 5.1.0 in the near future, for us it is a simple matter. Unfortunately we need to send and receive some JMS messages from the third party app running on Jboss 4.2.2. What is the easiest way to ena...

What to do with common jars in EAR for JBoss?

We have 2 web applications. And we are going to move them to EAR file. Is it possible to move common jars from these two web applications to some separate directory in EAR? ...

How to deploy EAR into web configuration in JBoss?

We use "web" configuration of JBoss. Now we deploy war files only. But we are going to deploy ear to JBoss. As far as I can see it is impossible to deploy ear on web configuration because there is no ear deployer in web configuration. Will it be enough just to copy file default\deployers\ear-deployer-jboss-beans.xml to web\deployers dire...

How do I configure SonicMQ in JBoss 5.1?

Trying to setup SonicMQ as the primary messaging provider in my JBoss 5.1.0GA server. The resources available for this are horribly outdated (This wiki article on JBoss is 3 years old, and references a broken link from Sonic's parent company, thus providing incomplete instructions for an outdated version of JBoss (4.x)). I need to use ...

How to start/configure JBoss clustering

Hi, I am totally new to JBoss. Basically i am needed to setup a JBoss clustering environment on windows. Meaning, JBossA sits on machine A and JBossB sits on machine B. So when JBossA fails, it will redirect the clients to JBossB. I have downloaded the enterprise-installer-5.0.1.jar. After which, I have totally no idea on how to go ab...

Why is Jboss "better" than Tomcat?

Hi all. I'm currently starting a new app development. The app architect insists we use JBoss5 because its "better". Do anyone has a wider definition of "better" (if its the case)? I have experience using Tomcat5 and 6 in large scale applications with big user loads and it handles pretty well (IMHO). Both would be running over a RedHat...