jboss

What could be a reason of a big lag between exit from RESTeasy controller and enter into MainFilter

I have EJB RESTEasy controller with CMT. One critical method which creates some entities in DB works fine and quickly on single invocation. But when i try to invoke it simultaneously by 10 users it works very slowly. I've tracked time in logs and the most expanded place vs. single invocation is lag between exit from RESTeasy controll...

How to specify a different jndi-name than the default for an EJB in JBoss 4.2.2.GA?

By default it seems the jndi name of a bean is based on the ear in which it is contained. An EJB named MyBean my-app.ear will have the name "my-app/MyBean/local". How can I change that behavior declaratively? I want the jndi name to be "something-else/MyBean/local". It has to be declarative rather than with an annotation b/c I can'...

Automatically starting a JBoss service (MBean)

I'm trying to build a JBoss service that should be started automatically, each time the server is initiated. I've got the following class structure for my service: public interface CumbiaXPMServiceMBean extends org.jboss.system.ServiceMBean public class CumbiaXPMService extends org.jboss.system.ServiceMBeanSupport implements CumbiaXPMS...

jboss problem with JMXConnectorServer

Hello, I just installed JBoss and tried to run it from Eclipse. When I first tried to run it I got an error stating that ports 8080 and 1098 are already being bound to something else. I changed those in the config files. Here is example of where I changes port 1098 to 10098 <bean class="org.jboss.services.binding.ServiceBindingMeta...

Servlet or POJO bringing web application down

Can someone tell how to stop an web application when critical error is met while initializing, for e.g. important property is missing which will affect the whole application, I want to halt the web application, if system.exit is not a good option, can anyone point how to bring down the application. Pls don't tell me to log the error, se...

How can I configure JBoss JDBC data source connections outside the XML config file?

I would like to override the portion of JBoss that loads JDBC connection information from the XML config file. I would like to continue using the rest of JBoss's connection pooling/caching features. I just want to load the connection data from another source. Which MBean should I be implementing and how do I configure the override in J...

JBoss - ExportException: Port already in use: 1098

Hello, I'm getting the following error when I try to start JBoss 10:10:43,298 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/ 10:10:43,938 ERROR [AbstractKernelController] Error installing to Start: name=jboss:service=Naming state=Create mode=Manual requiredState=Installed java.rmi.server.ExportException: Port alre...

How do you go on about learning enterprise Java application servers?

Alright, the question might be broad. We've been looking at Jboss and a few other similar app. servers. From the feature list it would be perfect for replacing our soon to be outdated homegrown reporting application on the server side. But at this point, for 2 developers, just grasping all the setup, configuration, administration, tunin...

Unable to create SSL Socket Factory for client

Hello, I am using Java 1.5.0_16 (JBoss-4.2.3.GA application). My application implements a WS client which needs to integrate with an external Web Service. This communication needs to be handled through https.I am getting following error when i trying to call remote Api via web services.can anybosy help me out what could be the cause 14:...

JNDI Name binding in JBOSS 5.1.0 Beta

Hi, I am following the MasteringEJB4thEdition book, which I downloaded from The Server Site website. There is a simple example of HelloBean, which works perfectly with GlassFish V3 app server. The same example when deployed on JBOSS fails because of JNDI name lookup. Is there any rule how the JNDI lookup names in JBOSS are decided if ...

JBoss doesn't sends a JmsTemplate (Spring) message

Well, actually JBoss does send the message, but only when the current transaction started by the EJB is finished. We have this problem with JBoss 4.0.3 and Spring's JmsTemplate. An EJB sends a message to a queue with a temporary queue as the reply_to field. Then, inside the same transaction, we listen for the response given by the first...

How is it possible to limit the number of instances of an EJB ?

I wan to check if my stateful bean is passivated/activated and the corresponding callbacks are called properly. For that I want to configure the containers GlassFish and/or JBOSS to limit the number of instances of the bean. Is it possible ? If yes, how ? ...

How do you add a dependency to a JBoss EJB with a generated WebService?

I'm trying to deploy an EJB in JBoss that uses the @WebService annotation. However, the EJB has a dependency on an EJB in another ear. By adding the @Depends annotation, the EJB start is delayed until after the ear is loaded, but it appears the WebService generator is still trying to start up the generated WAR as soon as it sees the anno...

Caching in J2EE application

I use JBoss AS. I have a long and heavy SQL that run inside the application server. I want to cache the results based on input parameters. I have a few options here: Use a caching manager and manually putting the results in the cache. Use a caching manager with loader that will "load" the results into cache when there's no results in ...

java.rmi.UnmarshalException: --- Cannot shutdown jboss

in trying to shutdown jboss it’s giving me an error and won’t shutdown. Any ideas what this means? /var/app/comcast/jboss-4.2.2.GA/bin/shutdown.sh -S Exception in thread "main" javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalException: error unmarshalling return; nested exception is: java.io.EOFException...

org.jboss.deployment.DeploymentException: url file:x.ear/lib/y.jar, could not be opened, does it exist?

I am deploying an ear file in jboss with a lib directory and a few jars in it. The actual jars that I need are declared in application.xml. Some of the jars in the lib directory contain references with the "wrong" names, i.e. xerces.jar, instead of xerxes-2.0.4.jar as declared in the application.xml. The problem is that while I have exa...

How can I use the hostname of the server instead of localhost with JBoss?

I setup JBoss 4.2.2 GA on a local server of mine. I am able to access the JBoss Application Server by going to http://localhost:8080. However, I would like to use the hostname instead of localhost so that other computers on the same network can use the server as well. When I try http://hostname:8080, or even http://192.168.1.100:8080, I ...

Sending messages to a remote JMS Topic

I am writing a small utility to send JMS messages to a remote server, but I am failing to configure correctly the InitialContext (or so it seems) code to init the Context: Properties p = new Properties(); p.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); p.put(Context.URL_...

How do I start with EJB3 and JBoss?

I'd like to get into ejb3 to gain some practice in writing for it. I searched for tutorials and how-to's but could find some scarce unhelpful information. I'm looking for a tutorial or walkthrough that will guide me from the very basics (Which software do I need to install?) to write a "Hello World" for EJB3 with JBoss. In short - Wher...

How to hide RuntimeException details from EJB client ?

I have a JEE5 application that exposes services using (local) session beans. When an internal fault occurs during service execution, a RuntimeException is thrown and encapsulated by JBoss(5.0.1) in a javax.ejb.EJBTransactionRolledbackException. The problem is that client applications receiving this EJBTransactionRolledbackException can...