jboss

How can I obtain port binding information at runtime? (JBoss 5.1)

Basically what I want to do is to obtain the port number on which JBoss is listening for HTTP requests (the one that is normally 8080). I came upon this article, which sounds promising, but unfortunately some of the links are broken and I cannot figure out the part: ManagementView managementView = getManagementView(); // via JNDI looku...

ordering of multiple jndi.properties on classpath

I have a jboss web service that is getting the wrong initial context. I want it to use the java.naming.factory.initial from the jndi.properties in the services root directory and not the one in jboss jndi.properties which is the NamingContextFactory. In the ant build file I put the jndi.properties in the classpath and made sure it copi...

Periodical status messages by Jopr?

Hey everyone, I'm evaluating Jopr 2.3.1 to monitor a JBoss 4.2.3 Application Server. Jopr, based on the better known RHQ Project from Redhat, supports to send email notifications triggered by so called alerts. Alerts can be defined to react to certain changes of system parameter such as metrics (e.g. 'Active Thread Count', 'JVM Free Mem...

Use JBoss with IntelliJ for creating Grails apps.

Hi, I want to run my grails apps from intelliJ on JBoss-5.1.0.GA installed locally on my machine. If somebody has any experience please share. Thanks, p.s. The aim is to simulate different production enivronments (development,Staging & test) ...

Kill all instances of jboss on win xp

Hi, I want to kill all instances of jboss running on win xp How can I do the same ? ...

Changes to JBoss web.xml have no effect

I just added this to my web.xml on my JBOSS server. But it had no effect. I am still allowed to connect to ports that do not use bi-directional certificate exchange. Anyone have an ideas? <!-- Force SSL for entire site as described here: http://wiki.metawerx.net/wiki/ForcingSSLForSectionsOfYourWebsite --> <security-constraint> ...

Acegi, Grails, JBoss, SSL going back and forth from http<>https

I have installed SSL on my server. My question is how can i forcehttps only on selected controllers/pages via the acegi plugin. Acegi plugin supports a property forcehttps, which when set to true makes all the pages secured once the user logs in. I want to change this behaviour where once the users log off, they should be redirected to ...

Monitoring resource use in Jboss in JMeter performance test

Dear all, We are performing some JMeter tests on a JBoss 4.0.5 deployed web app. We want to integrate the resource usage on the application on the server (memory, threads, etc) with the JMeter response time results. We have found a tutorial for doing that with Tomcat: http://www.informit.com/guides/content.aspx?g=java&amp;seqNum=273 an...

JBoss Seam: component installed in JNDI, access of component says Not Bound

My SFSB Seam component is bound to JNDI on deployment, as evidenced by this log message: Component: example, scope: CONVERSATION, type: STATEFUL_SESSION_BEAN, class:com.purecharger.action.ExampleAction, JNDI: purecharger/ExampleAction/local My interface: @Local public interface Example { public List<String> getExample(); ...

JBoss RESTEasy - show ALL path mappings

Is there any way to dump out a list of mapped paths in RESTEasy? I've searched the documentation and came up empty. ...

How to prime cache and keep it updated

I'm planning on caching some information using ehcache. Normally, I would follow the pattern: if data in cache return from cache else lookup from source put into cache return data But for this data, I'd like it to always be in memory. I'd prefer to do: Populate cache while appserver starts up (I'm using JBoss) Have a "...

JBoss5 MainDeployer MBEAN listDeployer returns empty collection

It seems that the MainDeployer MBean doesn't work/is not implemented. how to retrieve the list of deployed application in JBoss 5? ...

JBOSS 5.1 bean installing sequence

I am debugging my project and found that in my jboss log, the beans are loaded in this sequence: 14:30:01,015 INFO [JBossASKernel] installing bean: jboss.j2ee:ear=EJB3-JPA2.jar,jar=EJB3-JPA2.jar,name=RecorderBean,service=EJB3 14:30:01,015 INFO [JBossASKernel] Added bean(jboss.j2ee:ear=EJB3-JPA2.jar,jar=EJB3-JPA2.jar,name=...

JBOSS DROOLS using XmlDumper with .dslr

I am able to parse a .DRL file into the XmlDumper and get the correct output. How I can I pass a .DSLR file through the XmlDumper to achieve the same results? The .DSLR file contains the language file(.DSL) ...

Need example of Java Client Destop App consuming Two-way SSL Secured webservice

I'm looking for an example of a java desktop application that consumes a Two-way SSL secured web service. Any tutorials or examples would be great, especially if they are based on the Eclipse IDE. Thanks. ...

JBoss Seam: components injected into POJOs, but not Session Beans

I have a Seam component that handles login, with the name "authenticator": @Name("authenticator") public class AuthenticatorAction implements Authenticator { @PersistenceContext private EntityManager em; @In(required=false) @Out(required=false, scope = SESSION) private User user; public boolean authenticate...

Log4j Grouping application logs

Hi, I am trying to group logs of multiple related applications to a single log file. For example I have 3 applications A1.esb, A2.esb, A3.esb. I want all the logs from these 3 applications get logged to a single log file called A.log. Similarly, I want B.log for B1.esb, B2.esb and B3.esb. I am using log4j in JBoss application server...

Deliberately delayed response from JBoss

What is the best way to deliberately delay a response from the JBoss server? I would like to implement a delayed login functionality, where if a username has been used in a failed login attempt recently, the AS will wait a few seconds before returning to the user. The stack consists of SQL-db, JBoss runnning the application, EJBs expos...

Is it possible to disable traces printed to console in JBoss 5.1?

By default there are two appenders in JBoss5.1 - CONSOLE and FILE. Do we need to use both of these appenders in production? Is it possible to use FILE appender only? I removed CONSOLE appender from web\conf\jboss-log4j.xml but there are still a lot of traces in console. Why? I do not want traces in console in production. Is it possibl...

Extract DRL from DSLR

How can I access the DRL generated within a DSLR file in Drools? ...