EJB Lookup works, but method call does not

I have an instance of a JBoss EAP 6.1 where i deployed 2 EJB applications. The server starts without errors! Now I have created a javaSE application to call these EJBs. And here is the problem... If I make lookup of EJB from applicationA/EJBBean!br.c

When is the injected bean actually initialized?

I have the following scenario in my code base: //this bean, which will be injected, //is not annotated public class HelperUtil { //only default constructor with no args public void doThis(String _in) { //... } public void doThat() { //... } } In the

Javax.el, ELResolver: Solving Dependencies Between Variables

iam building a small application to work with variables. The first step is to resolve simple dependencies between variables. I can not get things to run properly. I can resolve very simple declarations like a=10, but it always fails if it gets a litt

Android: Http post requests ip virtual host by ip

How can I request jboss server virtual host by ip with HTTPUrlConnection or other connection type? What I tried: - Add header to http request with virtual host alias (Host:jboss.local.virtual.host) - didn't work. The problem is I added "Host:jboss.lo

How to call the bean method on each page request

In my work we develop an JSF 2 application. And I need to create a listener bean with one method which have to be executed on every page request. How to accomplish this task?The answer of your question can be found here. This method is crucial: publi

JBoss 7.2.0 does not load my log4j

I've just switched from Tomcat to JBoss and my 1st big problem is that I can't prepare my own log4j.xml file in web application deployed on JBoss. It is not loaded during application starts. I have logging but it is from default JBoss logging configu

Create a WAR file with a version that uses ANT

I have a problem trying to build a WAR file with a version number. This is my build.properties jboss.home=D\:\java\jboss-as-7.1.1.Final version=2.0 And this is part of my ANT task <project name="AS2-jBoss7" basedir="../" default=&qu

want to create a .war file using maven

Here my project consist of maven modules model,services,web Only web module war file is creating under target folder..web module consist of controllers and web pages my pom.xml http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 com.aitrich.learnw

Why is my JBoss JVM wrapper application restarted?

My OS version is Windows 7 64 bit and the JDK is 32 bit version. I started my JBoss Wrapper Application successfully, but after it ran for a while the JVM failed and restarted. The message in the JVM dump log is: # # There is insufficient memory for

Call a method after starting jobss

Hi i am using struts 2 and want to call a method just after when server is up. as on server startup we can use FILTER DISPATCHER. i am using jax ws . and i am deploying my jax client and endpoint project on same jboss server. How to solve this Plz he

A special character is added before §

I have a client application which is sending a request to a server. Server is fetching a field from a database and sending a java.lang.String response back to the client. Server is running on JBoss v5.0. The unusual thing is that, when server is runn

Inject EJB into the JAX-RS resource on JBoss7

I'm wondering why ejb injection into JAX-RS resource (RestEasy on JBoss7) is not working. EJBs are not part of war but its own EJB jar but I supposed this should not be the problem. I'm forced to do the ctx.lookups "workaround", which are not pr

Running JBoss remotely in debug mode, boot problem

I am trying to run remote jboss in debug mode to debug my application and i have set set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y %JAVA_OPTS% in run.bat file, and am trying to start the jboss server using ant jb

The Seam app can not be deployed on JBoss AS5

UPDATE: This problem goes away when I deploy as an exploded EAR i.e. by unzipping the EAR, WAR and JAR files into their constituent components. Weird. I have a Seam application (using 2.2.1-Final) which I'm trying to deploy on a brand-new JBoss AS 5

.pages.xml - restarting jboss

I use an ant script for my seam application to explode or deploy the project. The problem is that it also deploys some temp file: .pages.xml in my WEB-INF directory which makes JBOSS server to cycle.. Do you know what can be the cause or how can I av

JBoss JMX data access via JSON

Is there a way to access the JBoss JMX data via JSON? I am trying to pull a management console together using data from a number of different servers. I can achieve this using screen scraping, but I would prefer to use a JSON object or XML response i

prevent hibernation logs from printing on the jboss console

I m using jboss as application server, it very irritating when I am deploy my application on jboss server it printing hibernate logs like "FINE: ----- beginning hibernate tx 32213345 -------------------------------------------------------- 16:37:27,7

Looking for the best way to start jboss

I am trying find out, how to start JBoss with cron job at a particular time. What I am doing at the moment is setup a cron, then inside JBoss startinstance script I put sleep 700 seconds until jboss starts. Is there a better way to actually know when

Automatic JBoss redeployment

As I understand it, JBoss* monitors a variety of file types in /deploy and performs certain actions when the file changes. For example, JBoss will redeploy an EAR when its last-modified time changes. Therefore, I could use some really nasty code to m

Why contextInitialized () is called multiple times?

I'm running a Stripes web app on Jboss 4.2.3.GA and am trying to call a method when I start JBoss. I created a ServletContextListener like so: public class TimerContextListener implements ServletContextListener { @Inject private TimerManager timerMan

Configure mod_rewrite and mod_jk for Apache 2.2 and JBoss 4.2.3

My problem is as follows: I have JBoss 4.2.3 application server with AJP 1.3 connector running on one host under Windows ( for my test environment) and Apache 2.2.14 running on another FreeBSD box ( Apache acts as a "front ga

Long Term Web Service Architecture

We use axis2 for building our webservices and a Jboss server to run the logic of all of our applications. We were asked to build a webservice that talks to a bean that could take up to 1 hour to respond (depending on the size of the request) so we wo

Benefits of Upgrading from Richfaces to a Newer Version

I have a client that's running an application based on JBoss 4.0.5, Seam 1.2 and RichFaces 3.0.1. Their system is having performance problems due to the fact that a lot of data is coming back from the server to be displayed on screen and it seems lik