jboss

JMS on Jboss

Hi, I am doing a POC for runnig JMS on JBoss 4.0.5 GA. can anyone privide me a link which shows examples on how to 1. Create a queue in Jboss 2. Crate a factory in Jboss. 3. Configuration If the above are not applicable, the is there a default que, topic, factory in Jboss. Adhir ...

How can I perform programmatic authorisation with jBoss?

I have a Java web application bundled as a WAR. The application is deployed in jBoss 5.0.1. For historical reasons I am unable to use the built in authentication & authorisation specified via web.xml. Primarily this is because it isn't possible to specify the URLs that should be protected using web.xml's "web-resource-collection" elemen...

How to resend a message from the JBoss 4.2.2 message queue after retry expired

Is there a way to resend expired messages in a JBoss 4.2.2 message queue? The issue is they exceeded their retry amounts, but now the problem is fixed, so is there a way to resend them? In JBoss 3 they were just text files that you could move around. Now that it is stored in a database, how can you do it? ...

How do specify clientId and subscriptionName for EJB3 message driven bean durable subscription without hard coding the values?

I have a server running JBoss4.2.1 containing a JMS Topic. I also have multiple terminals, each running their own JBoss with an EJB3 message driven bean that need to subscribe to the topic using durable subscriptions. Since each subscription needs to specify a unique clientId and subscriptionName I can't hard code the values in the Activ...

How to verify correct operation of Hibernate second level caching in a cluster?

I am wondering how to verify that Hibernate's L2 cache performs correctly. I have an application running on a cluster of JBoss 5 instances with JBoss Cache. Load testing would answer the question of performance. But how to make sure that cluster related issues like the cache invalidation between nodes works like it should be? ...

Can I inject a SessionBean into a JEE AroundInvoke-Interceptor?

I have an EAR with modules: foo-api.jar foo-impl.jar interceptor.jar In foo-api there is: @Local FooService // (interface of a local stateless session bean) In foo-impl there is: @Stateless FooServiceImpl implements FooService //(implementation of the foo service) In interceptor.jar I want public class BazInterceptor { @EJB...

Development Environment Java 6, Maven 2.x, Eclipse 3.4.x, JBoss 5 and JBoss Seam

I have to organize a development environment where I can run Maven projects with JBoss Seam, IDE eclipse 3.4.x and deploying to JBoss 5. The projects that will run on this environment are based in Java 6, EJB3 and JSF1.2. The environment has to support hot-deploy. I used to work in a development environment with Sysdeo Plugin to make To...

Using JBoss Cache as directory for Apache Lucene

Has anyone tried to store Lucene index in JBoss Cache? Are there any good implementations of Lucene Directory for it? I found sources only for this one but I can't find any documentation or testimonials on it. Basically what I would like to do is to store Lucene index in JBoss Cache and manipulate it with application written with GridGa...

How do I remove messages from a JBoss JMS Topic?

I have configured my Topic in jbossmq-destinations-service.xml as follows: <mbean code="org.jboss.mq.server.jmx.Topic" name="jboss.mq.destination:service=Topic,name=myTopicName"> <depends optional-attribute-name="DestinationManager"> jboss.mq:service=DestinationManager</depends> <depends optional-attribute-name="Secur...

SEAM projects run in JBoss AS?

How do I run Seam applications in JBoss AS? I put JBoss SEAM as a dependence (using MAVEN2) of my project and deployed it in JBoss AS - just that will sufice to make my project work properly (with all the features provided by JBoss Seam) or do I need to modify JBoss AS in any way (like, for example, include some extra seam library in th...

FileIO from an stateless session bean

I need to read and write xml files to disk from a stateless session bean running in JBoss. What is the preferred way of doing this? Right now we are accessing the file system using the java.io classes. I found a simple file system RAR example and have got that working but it may be more buggy than just using java.io directly. ...

Is it possible to override settings in a jboss-web.xml file?

Is it possible to override the settings in war file's WEB-INF/jboss-web.xml? I have a war file from a vendor, and I'd like to change the datasource which it uses without modifying the war file itself. <?xml version="1.0" encoding="UTF-8"?> <jboss-web> .... <resource-ref> <res-ref-name>jdbc/primaryDatasource</res-ref-name> ...

How do I use JBossAS 5 with Apache Ivy?

I am relitively new to Apache Ivy and am trying to move an existing dev project to using Ivy for dependency management. The last dependency I have to configure is jboss-javaee.jar. I can't find it anywhere and am getting the following error message when running [ivy:retrieve] :: problems summary :: [ivy:retrieve] :::: WARNINGS [ivy:r...

JBoss Hot deploy Exploded files

I have an issue hot deploying on JBoss4.2.3.GA. The server does not redeploy the application when i update web.xml file. Is it that only classes changed will make the server to redploy the application ? If this is the case how do I redeploy non-class files ? Please advice. Thanks, Saquib ...

Can a JBoss JDBC connection be invalidated so that it doesn't get resupplied from the connection pool?

I have a circumstance where a JDBC connection places the Oracle session to which it is attached into a particular state (i.e. DBMS_FLASHBACK enabled mode). It's possible for the exit of this mode to fail (at least theoretically) which means that the session is left in the state erroneously. In this case, the connection can be returned to...

Enabling SSI (ServerSide Includes) in JBoss?

Any of you guys have enabled SSI (ServerSide Includes) in JBoss? I guess it should be not difficult as it is built on top of a Tomcat instance. ...

Getting JBoss 4.2.2 work on Eclipse 3.2

Hi guys, I am on a very very slow Internet connection where downloading big packages like Eclipse or JBoss is next to impossible. I often have to buy books that come with CDs to install such things on my home PC. I recently could get Eclipse 3.2 with WTP and JBoss 4.2.2 (for EJB3). But sadly found that the JBoss server definitions in ec...

Problem using two xa-datasources with Jbpm

Hello, I'm using Seam, JBoss Jbpm and Resteasy. I have a very simple process definition: <start-state name="create"> <transition name="send" to="inbox" /> </start-state> <node name="inbox"> <action expression="#{test.sayHello}" /> <transition name="acknowledge" to="acknowledged" /> </node> <end-state name="acknowledged" /> Thi...

J2EE Seam Framework, getting started too complicated?

Hey guys, PS: Using Windows XP Pretty much I'm trying to get started with J2EE using Seam Framework. I think that the documentation is too shallow if you are new. I'm completely lost here. I want to get started building simple J2EE apps with Seam, but as I read, there so much to get started. Ant JBoss/Tomcat Maven ?? Seam Thats ...

Javascript source files on JBoss have the wrong content-type/mime type?

I am writing a JSP application and am deploying it to JBoss 5.0. When I attempt to retrieve my CSS or Javascript files, JBoss returns the wrong Content-type for the file, so Firefox refuses to execute code supplied in them. Here is my web.xml file: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLS...