jboss

Writing on a separate thread for a web app.

For one of the URLs that my clients will be calling, I want it to return as soon as possible with minimal disruption, so even if the database is down or slow, the request still returns pretty fast. I still need to do some processing of the data sent, so I am thinking about having a separate "queue" that holds the data and then process ...

Running JUnit tests with Embedded Jboss

Hi I need to run junit tests for classes using ejb3 beans. In our case setting up jboss just for this purpose is not an option and therefore we need an alternative way to simulate the ejb communication. I've read that this should be possible with Embedded Jboss's EJB3StandaloneBootstrapper, but the problem is that I cannot get it to wor...

Spring vs Jboss

What are the advantages and disadvantages for Spring vs. Jboss for an enterprise web application. ...

JBoss 5 AS and EJB3 bean injection from servlets?

It was my understanding that JBossAS 5.x supported EJB3 bean injection in servlets with the @EJB3 annotation. I'm using the default configuration for JBossAS 5.0.1.GA and it's not working. I've added the mappedName argument to the @EJB annotation with the session beans JNDI name, and it just doesn't do anything. No apparent errors, the b...

How to automate build, deploy and test java web application?

For now I have a web java project which builds automatically and deployed to the JBoss by just copying ear archive to server dir (all using Ant). What I need is a mechanism how to no only automatically deploy application, but also to verify if application deployed successfully and run HttpUnit tests on it. The problem is how to autom...

Web-module isolation in jboss 4.2.2 when deployed inside a isolated .EAR file

How can one reach web-module isolation (i.e. each contained web-app is isolated from the others in the same .EAR) in jboss 4.2.2 when deployed inside a isolated .EAR file? Jboss 4.2.2 keeps warning that web-module (jboss-web) level deployment descriptor class loading configuration is ignored when deployng an EAR file. ...

Diving into JBoss

Can anyone suggest any books/blogs/URLs to start learning about JBoss? I'd like to get an overview of the architecture and get a good understanding of what JBoss can do for me and why I should use it rather than sticking with Tomcat. A tutorial on installing, configuring and getting a hello world up and running would be great. I looke...

EJBs and Storing Objects in a Data Structure (Map, List, etc)

Is it possible to have objects stored in a data structure for the duration of an App Server's uptime? Basically I want an EJB that interfaces with this Data Structure, but does not require a full fledged database solution. As an example I made this dummy animal object: package com.test.entities; public class Animal implements java.io...

EJB Timers and Reliability

I need a method to be called in an App Server (Glassfish) every 5 seconds, no matter what. Are timers reliable enough for this? What are my options. ...

Parallel processing of JMS messages ?

Is it possible to create a pool of Message Listeners or a Message Driven Beans to process messages from a JMS queue or topic in parallel ? I am using JBoss and JBoss's JMS ...

OptimisticLockException when trying to fetch data from postgreSQL

We're developing a WebSite that's intended to have several requests per second.- Our current environment is JavaEE, JBoss 4.2.3, Struts2 for MVC, JPA with Hibernate as ORM and Postgres as DB.- This is the scenario: whenever a request comes to any of the pages, some action checks for information in the DB to fill the requested page (tha...

Error while connecting to DB2 from JBoss Application Server

Hi, I'm trying to connect to the AS400 database DB2 from a Java application hosted in JBoss application server. But, I'm getting the below error when ever I run my application: Apparently wrong driver class specified for URL: class: com.ibm.as400.access.AS400JDBCDriver, url: jdbc:as400://DBSYTEM;driver=toolbox;trace=false;errors=full;p...

Hibernate: Generate Statistics

So in my persistence.xml I turned on hibernate.generate_statistics. <property name="hibernate.generate_statistics">true</property> My question is.. how do I access them? Where do the statistics go? ...

Resource injection in webapplication JBoss 5

Is it possible to inject resources (like message queues, EJBs) using the @Resource annotation in webapplications running in JBoss 5? The webapp is part of an .ear file. ...

JBoss5: Cannot deploy due to java.util.zip.ZipException: error in opening zip file

I have a web client and a EJB project, which I created with Eclipse 3.4. When I want to deploy it on Jboss 5.0.1, I receive the error below. I searched a lot but I wasn't able to find a solution to this. 18:21:21,899 INFO [ServerImpl] Starting JBoss (Microcontainer)... 18:21:21,900 INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.1....

JBoss Seam tutorials

Let's say that I'm new to JBoss Seam, is there a way to get my skills up to speed? Are there any good tutorials? ...

My JBoss server hits 100% SYS CPU on Linux; what can cause this?

We've been debugging this JBoss server problem for quite a while. After about 10 hours of work, the server goes into 100% CPU panic attacks and just stalls. During this time you cannot run any new programs, so you can't even kill -quit to get a stack trace. These high 100% SYS CPU loads last 10-20 seconds and repeat every few minutes. W...

Is there a better way to work with Flex Builder and the AMF Gateway?

I'm using Flex Builder 3 to connect to a bunch of back-end code via the AMF gateway. Another developer packaged up all the AMF Gateway code into a war file. Here's my development process: Deploy most recent AMF-gateway.war file into local jboss server War file gets unpacked into [jboss]/server/tmp/deploy/tmp23241AMF-gateway-exp.war/...

Java WebServiceException: Undefined port type with JBoss

I am new to Web Services with JBoss. A client is connecting to an EJB3 based Web Service With JBoss AS 5 and JDK 6 using JAX-WS. I am stuck with the following exception: Exception in thread "main" javax.xml.ws.WebServiceException: Undefined port type: {http://webservice.samples/}HelloRemote at com.sun.xml.internal.ws.client.WSServiceDe...

Singleton in Java App Server.. How bad of an idea is this?

I am currently working on some older java code that was developed without App Servers in mind. It is basically a bunch of "black box code" with an input interface, and an output interface. Everything in the "black box" classes are static Data Structures that contain state, which are put through algorithms at timed intervals (every 10 s...