jboss

Does it make sense to use QueuedPessimisticEJBLock and optimistic-locking simultaneously?

I'm working on a J2EE application where the EntityBeans (EJB 2.1) are using the container configuration "Standard CMP 2.x EntityBean" which uses the locking-policy QueuedPessimisticEJBLock: <container-configuration> <container-name>Standard CMP 2.x EntityBean</container-name> ... <locking-policy>org.jboss.ejb.plu...

How to stop JBoss from spamming logs if an exception occurs in onMessage of a MDB?

I have a listener bean which calls on a session beans method in the MDBs onMessage method. If an exception occurs, such as IllegalStateException (which I throw) or NPE, then JBoss keeps logging the exception, and also keeps retrying to deliver the same message, again spamming the logs, then it sends the message to DLQ, and again calls on...

I have an slsb in ejb3.0 with a number of methods, do I need to annotate each method with transaction attributes ?

class decalaration: @Stateless @Local( { IMyLocalSLSB.class }) @Remote( { IMyRemoteSLSB.class }) }) public class mySLSB implements IMySLSB { private EntityManager em; and now some methods for inserting/updating and deleting db records are transactions annotations required, I thought they were not as jboss and EJB3.0 handle them using...

Can the SEAM authenticator reside in the ear file lib folder?

For a couple of reaons we have a project-commons.jar located in the lib directory of our ear. project.ear project-web.war project-ejb.jar lib project-commons.jar Currently if I annotate a class that is placed in project-commons.jar as the @Name("authenticator") @Scope(ScopeType.APPLICATION) SEAM reports a stack trace (be...

jboss can't listing files

Hi All I have created a dynamic webproject in eclipse and configured that project with jboss 4.0 server.I can able to start the server successfully but if i gave my context path in the browser i can't get my project folder structure in the console. http://localhost:8080/HomeDesk/ -->here if i give the URL till 8080 i can able t...

Finding the origin of JAR files from source code to determine frameworks used?

I'm doing some project maintenance on the source code for an MVC JS website running on JBoss. The project contains both Java and Javascript and I'm trying to figure out all of the frameworks that were used on this project, seeing that the Javascript code is somewhat lacking in project documentation. In WEB_INF/lib/, I see these files: ...

spring 2.5.6 tiles integration

I have been searching to determine what is required to integrate Tiles and Spring 2.5.6. So far the integration has not been successfully. I tried to make use of the version of Tiles that is included with the Spring bundle (V2.0.4) and the latest version and still does not seem to work. I get the following error from JBoss: org.sprin...

Long Polling with Java and JBoss

I'm looking for an example, how to implement a longpoling mechanism in java. I would love to use a stateless EJB. I know that something like that would work: @WebService(serviceName="mywebservice") @Stateless public class MyWebService { @WebMethod public String longPoll() { short ct = 0; while(someCondition ==...

which version of Spring + Hibernate + JBoss work

Looking for guidance as to what version of Spring, Hibernate and JBoss work together. I am currently using: <dependencies> <dependency org="javax.servlet" name="jstl" rev="1.1.2" conf="runtime->default"/> <dependency org="org.springframework" name="spring" rev="2.5.6" conf="runtime->default"/> <dependency org="org.springfra...

Java netty can only take X number of request per second?

Java netty can only take X number of request per second? With the selector approach is it true that it can be a bottleneck in terms of serving request per second? We find that when the traffic is high, clients are unable to connect through, resulting in a time out. ...

How to acccess an EJB ?

Hi, I am trying to develop a Basic EJB3 application on JBOSS 4.2 in Eclipse I have created an EJB project in eclipse. The following are my remote and local interfaces. package com.test; import javax.ejb.Local; @Local public interface HelloWorldLocal { public String getGreeting(); } package com.test; import javax.ejb.Remote; @R...

Jboss order loading problem

Hello to everybody) Imagine we have 2 wars to deploy. First war should load some data into JCR repository, or any other storage. Second war uses data that is loaded by first war in storage. Now we have situation when first war is successfully deployed, but it is in the middle of initialization process(loading data). Second war is start...

Problem with a service jboss using remoting objects

Does anybody know which mean this error java.io.NotSerializableException: org.jboss.resource.adapter.jdbc.xa.XAManagedConnection, this throws when i'm to pass a java.sql.Connection to my service ...

Can jboss snmp adapter(snmp agent) be extended to support my defined MIB?

I have our own MIB files, and I know in many cases, I have to write snmp agent to support my own MIB. But this time, I think if I can make jboss snmp adapter(JBossSNMPAdapter) to support my MIB, it will be much easier. So that, through jboss snmp adapter, I can query by its oid. I know JBossSNMPAdapter already suppport MIB-II. I wonde...

What's the best way to mix Spring MVC and CDI/JEE6?

I'm not a fan of JSF. Spring MVC makes a lot of sense to me and I've used it in the past. Can you talk me out of it or provide tips for integrating it nicely into JEE6 and share and gotchas with CDI. I don't mind having an application context just for the MVC stuff but if I use @Inject or @EJB in my MVC controllers, what's going to go ...

JBoss Classloader Repository

Hi all, Running JBoss 4.2.3.GA and trying to deploy a WAR that is using Spring/Hibernate/JPA. I'm getting ClassCastExceptions (quite a lot of different ones) so I'm trying to setup a Classloader Repository for my WAR. This is my catalog.war/WEB-INF/jboss-web.xml file <jboss-web> <loader-repository> com.moo.catalog:loader=...

Remove server name from JSESSIONID

Hi, Our application runs on JBOSS and its front end on Apache. When accessign the URL externally, the JSESSIONID displays the servername within the Content property of the cookie. Any ideas how this can be removed??? Thanks, ...

jsf-console 3.x on JBoss 6.x possible?

Hi, I'm trying to move an application from JBoss 4.2.2 AS to 6.x AS. Right now I'm trying to get jbpm 3.x running on the AS I have this problem when trying to upload a .par file to the server: 13:41:51,713 ERROR [org.jbpm.db.GraphSession] (http-127.0.0.1-8888-1) java.lang.ClassCastException: org.jbpm.graph.def.Node_$$_javassist_92 canno...

JBoss based rails application cant find activerecord-jdbcmysql-adapter

Hi All I have a rails application deployed to jboss as a war packaged using warbler. The application has been working great for a while now. I am looking to change the rails application so that rails, all gems and their dependencies are vendor'd. To that extent I have it working great and can boot the application locally using mongrel...

After adding login-required in pages.xml styles are no longer loaded.

In a seam-gen generated application I added the login-required attribute, to force a user login. After that the CSS-Styles from richfaces aren't loaded neither in the login page itself nor at the other pages after successful authentication. (The application is unusable) <page view-id="*" login-required="true"> <navigation> <...