jboss

Calling a Remote Bean vs Local Bean in App Server

Is there a noticeable amount of performance overhead in using Remote Bean Interface over using a Local Bean Interface? I would like to have every Client application connect to remote beans if there is little performance difference. ...

How do you specify the root context in your <web-app> tags in web.xml?

I would like specify the root context of my Java Web Application in my WAR file. How can I do this using valid web-app xml in web.xml file? Oh, yes I would like to do this in an Application Server agnostic way. Thank you in advance, Rob ...

How to create resource ref for a JBoss MBean

A have application deployed to JBoss. It contains Inside it I register Quartz MBean wich trigger scheduled task. How can I create reouce ref for that MBean to access resource by java:/comp/env/* and not java:/* in my task code. ...

What is the cause of EJB 2.x "reentrant method call detected" Exceptions? How to solve them?

Hi all, I'm mantaining a EJB 2 CMP legacy app runing on a JBoss 4.0.4 GA application server with deployed entity/stateless session beans. All the EJB boilerplate code is generated via XDoclet from the EntityEJB/EntityEJBManager annotations. I've noticed that when my GUI client invokes the facade create method, I have lots of cases of E...

Can Java Code tell if it is in an App Server?

Is there something I can call from a POJO to see if the code is currently in an App Server or outside of an App Server? Something like this (In rough PseudoCode): System.getRunningEnvironment().equals(Environment.Glassfish) or System.getRunningEnvironment().equals(Environment.ApplicationServer) or System.getRunningEnvironment().e...

JBoss 4.0.5 MDB Configuration

This one is beating me, and I have not been able to figure it out ... So here it goes. I want to add a Message Drive Bean to my app which is packaged as a .ear file Following the documentation I've created a jboss.xml and a ejb-jar.xml, which I tried to put on the META-INF and the root and on the WEB-INF but I just don;t see it working ...

How to configure startup sequence of JBoss services (JmsActivation)

When I deploy my application on JBoss 5 the EJBs are created before the QueueService is started. Creation of Message Driven beans now fails miserably because the queues are not yet available: 17:11:29,151 INFO [EJBContainer] STARTED EJB: ..... 17:11:29,266 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI: ....

How do I set up the JBoss Maven repository in NetBeans 6.5?

I tried to configure the Maven plug in (version 4) to add the JBoss Maven repository at http://repository.jboss.com/maven2/ following the guide at http://wiki.netbeans.org/MavenBestPractices#section-MavenBestPractices-UtilizingAndManagingMavenRepositories. The new repository appears in the list of Maven repositories, but I can not see a...

When to ditch a J2EE container (i.e. JBoss) for straight Tomcat

At present we deploy to JBoss 4.2 as this is the application server deployed on our cluster. The application currently only makes use of JBoss's connection pool handling through JNDI and the JBossWeb's embedded Tomcat and a couple of JBoss' Tomcat valves (specifically RewriteValve, nothing too difficult to do ourselves). JBoss seems li...

Eclipse 3.4 and Jboss deployment issue:

I have a problem when trying to deploy my project in JBoss. The generated war file contains the servlet.jar that are part of my dependencies but conflicts with the servlet classes of JBoss. Error ...servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class I can remove the servle...

Jboss configuration on Eclipse 3.4 : stopping issue

I have a problem with my jboss configuration on eclipse ide : I had to change the Jboss configuration in jboss-service.xml because the default port used was already in use (1099 port). A server configuration change on eclipse wasn't taken into account : It seems to me that jndi port in server properties isn't taken into account on start ...

Caching solutions and Querying

Are there any in-memory/caching solutions for java that allow for a form of Querying for specific attributes of objects in the Cache? I realize this is something that a full blown database would be used for, but I want to be able to have the speed/performance of a cache with the Querying ability of a database. ...

JMS Topic Creation in JBoss 5 AS

In Jboss 4, when I deployed an ear with an MDB for a topic that had not been specified in the deployment descriptors, the server would automatically create the topic (after posting a warning saying that topic didn't exist). In Jboss 5, it doesn't seem to automatically create the topics anymore (errors out instead). Is there a configurat...

Replace JBoss error page with Axis2 fault XML response

I'm developing a webservice with Axis2 1.4.1 on JBoss 4.2.3/Tomcat 5.5.27 and Java 1.5.0 (15-b04). It works flawlessly but when an exception happens I get a JBoss error 500 HTML page instead of an Axis2 XML/SOAP fault. This behavoir is vexing, because it difficults to handle errors in the webservice client or in SoapUI while developing....

Can I from a client detect which EJBs the current user is authorized to use?

I have various EJBs on a J2EE-server, with different security roles. Now, from a Java Swing client application, when I log the user on to the server, I would like to discover which of these EJBs that are accessible to the user, without actually trying to create them or invoke them. The reason I want to do this is to adjust the user int...

Thread dump not getting generated on JBoss.

Hi I used to generate thread dumps by running kill -quit and I would get them in a log file where my server logs were there. When the file grew too large I removed it using rm and created a new file of the same name. Now when I use kill -quit to take the thread dumps, nothing gets copied in the log file - its empty. Can anyone help? ...

JBOSS has too many libs! (a problem with m2eclipse)

I admit it is not the best title, but I don't know how to prase it without having a title of three lines. I have a project with the (for instance) dependency JTA, using the scope "provided" (JBOSS brings its own JTA implementation). If I use m2eclipse it resolves all dependencies just fine. My problem is, if I deploy this project to jb...

How can I enforce that a user is only logged in once in Jboss/J2EE?

I need to enforce that some users (that have a flag at true) can only have 1 active session. I mean, the users logs in 1 browser and can't login in another browser/computer. I tried using my own loginmodule but the second time I login (in another browser) the loginmodule isn't used, it seems something is being cached... ...

Hot Deploy for JBoss on Eclipse 3.4: Ganymede

Hello, I am using Ganymede (Eclipse 3.4) to do some Java EE based web development targeting a JBoss 4.2 application server. I have always liked Eclipse very much for a Java editor. The thing is, for Java EE is not as useful as one might think. It's buggy, deployment and debugging is very slow, and you have to re-deploy your Java EE ap...

Advice on handling multiple ear deployments into jBoss

We have a typical J2EE application: ear war A war B domain jar datasource config ejb.jar EJBs JPA config We use jBoss as our J2EE container. The same application must be deployed multiple times into the same container (in order to support different independent customers). This is proving to be a troublesome and error prone task s...