jboss

How do I get Java "hot code replacement" working in JBoss?

I am running JBoss 4.0.3.SP1_CP04 and connecting to it with Eclipse 3.4.1's debugger, both using JDK 1.6.0_11. When I make a minor change to a method (e.g. changing a "+ 1" in the logic to a "+ 2") and save it, I immediately receive an error message dialog titled "Hot Code Replace Failed" with the error "Delete method not implemented" ...

NamingException when trying RMI/HTTP from JBoss 4.0.1 to 4.2.3

I've got an application that is trying to call a method on an EJB running on JBoss 4.2.3 GA. The application is a legacy app; it works when it accesses the original server which ran on JBoss 4.0.1. Its RMI code is in jbossall-client.jar from JBoss 4.0.1. It is trying to call a method which will give it new code to allow it to update it...

Using HeapDumpOnOutOfMemoryError parameter for heap dump for JBoss

I was told I can add the -XX:+HeapDumpOnOutOfMemoryError parameter to my JVM start up options to my JBoss start up script to get a heap dump when we get an out of memory error in our application. I was wondering where this data gets dumped? Is it just to the console, or to some log file? If it's just to the console, what if I'm not lo...

JBoss target deploy

Hi, is there a way to point a maven target (with classess) path to jBoss instead of building .ear and deploying it everytime I edit some sources? Thanks in advance, Etam. ...

How to direct hibernate logger statements in different log files for differnet applications using jboss-log4j.xml file

Hi, I am using JBOSS 4.2.2 server to deploy multiple web applications. Each application uses Hibernate and for each application there are saperate log files and saparate appendar. Now for Hibernate logging statements of one application should go in log file of that particular application. Does anybody has idea how to configure log4j.xml ...

Can I inject properties into a JPA Entity Listener

I could prototype this and see what happens, but I am being lazy. I want to be able to inject an EJB3 into my JPA Entity Listener so that it can access functionality of the EJB during the PrePersist operation. Is that possible? If not... then under JBoss, will the Listener be created once, or once per method invocation? I guess I am tryi...

SecurityException when accessing (ejb2-) session bean via local interface in JBoss 5

I have the following problem with an EJB 2 SessionBean when deploying in JBoss 5: The SessionBean (called LVSKeepAliveDispatcher) requires a specific user role (called "LVSUser"), specified by <method-permission > <description></description> <role-name>LVSUser</role-name> <method > <description></descripti...

How to limit user access at database level in Hibernate

The App I need to implement a web app that will be used by different users. Each user has different privileges on various tables, e.g. User A can see fields 'name' and 'address' from the table Student User B can see fields 'name' and 'phone number', but not 'address' from the table Student User C can see and modify all fields me...

Clover on Java EE Container

Hi, I would like to run Atlassian Clover in a production environment (I don't have an issue with overhead ). Does anyone have experience with this, or can you direct me how to do it? My goal is to get clover reports based on real users actions. I'm using JBoss + JDK 1.5 ...

Using JBoss 4.2.x, how can I deploy a new data source without undeploying existing ones?

Configuration management for our EE application requires us to create a new database connection datasource from time to time. We do this right now by modifying the deploy/[dbtype]-ds.xml file, inserting an additional connection definition into this file. The problem is, doing so causes the existing connections to be undeployed and rede...

How do I get information from a servlet into a portlet in JBoss Portal 2.5.4

I have a portal built on JBoss Portal 2.5.4 that needs to have some I18N. On the login.jsp page (which is in portal-server.war), we added a language switch. One of the links on the page is to the Forget Password facility. For reasons related to look-and-feel, the ForgetPassword page is implemented as a maximized portlet inside our...

Webservice problem with base64 data when upgrading to JBoss 4.2.3

Hi, This is a long one du to config files... I'm running a upgrade from JBoss 4.0.5 to 4.2.3 The system I work with have a legacy webservice. It is based on J2EE webservices 1.1. It has a SLSB (EJB2) as endpoint. The WSDL file points out a schema (XSD-file) file for the definition of the parameters to the webservice. And there is a mappi...

JPA reserverd keywords to postgres

I'm using JPA with a postgres DBMS and I'm trying to create a new entity that maps to the table "User". This is a very common problem as User is a reserved word in Postgres. My question is, how can i "escape" the reserved keyword or set JPA to escape it? I tried @Table(name = "\"user\"") with no luck: 2009-02-25 15:43:14,218 ERROR...

JMS Messaging Performance: Lots of Topics/Queues vs. Extensive Filtering (Message Selectors)

I'm working on a project that is going to make heavy use of JBoss Messaging (JMS). I'm tasked with building an easy to use wrapper around Messaging for other developers and am thinking about using JMS's Message Selectors to provide a filtering technique to keep unnecessary sending of messages to a minimum. I'm curious if anyone has any e...

Running JBoss 5 and JBoss 4 simultaneously

I thought this would be a JBoss FAQ, but I can't find it. I'd like to run JBoss 4 and JBoss 5 at the same time. I manually changed all the ports on the JBoss 5 server/default instance by changing the port's leading digit to a 9, and it seems to work. I can start JBoss 4 and JBoss 5 with no port conflicts. One of my colleagues said th...

Is Oracle BC4J Still Supported?

We need to move from OAS 9.0.4 to JBoss and we want to take our BC4J application with us. I'm looking for information on the supportability of BC4J on our new platforma and what licenses would be required. ...

What ec2 image (ami) do you recommend for working with java 5, jboss, mysql, apache?

What ec2 image (ami) do you recommend for working with java 5, jboss, mysql, apache? ...

Multiple Apps on one JBoss Instance

I am trying to find out if it is possible to configure One instance of JBOSS to run multiple apps. Each application serve on a different port and I hope JBoss has this capability? ...

Issues with HTTP Compression?

We are investigating the use of HTTP Compression on an application being served up by JBoss. After making the setting change in the Tomcat SAR, we are seeing a compression of about 80% - this is obviously great, however I want to be cautious... before implementing this system wide, has anyone out there encountered issues using HTTP Compr...

How to find creator of JmSession closed by CachedConnectionManager in JBoss

Hi I am getting the following error in my logs on JBoss 5.0.1 with JBPM. I can't for the life of me work out where this session is getting opened and not closed (wherever we use JMS we cleanup the collection inside a finally block). 2009-03-05 13:11:12,595 INFO [org.jboss.resource.connectionmanager.CachedConnectionManager] (WorkerThre...