jboss

Enabling ehcache statistics in jboss 4.2.1

I've set hibernate.generate_statistics=true and now need to register the mbeans so I can see the statistics in the jmx console. I can't seem to get anywhere and this doesn't seem like it should be such a difficult problem. Maybe I'm making things overcomplicated, but in any case so far I've tried: I copied EhCacheProvider and had it in...

jboss with less memory

I have now 1gb ram at work(i hope that will change soon) and jboss takes almost half of it and that is too much, i turned off logging to file, what more can i do to reduce memory usage ? ...

How to go about web service security in Java

Does anyone have a recommendation about web service security architecture in Java (preferably under JBoss)? Any recommended reading? I want to expose a fairly rich web service to the world but the data are sensitive and it requires authentication from the current client (Flex), accessed via RPC. I definitely do not want any server-sid...

What is the best messaging server for communicating across java and .net?

We've been using jbossmq and csil. The implementation has been successful in production for 6 years, but I'm wondering if something better is available. One issue is jbossmq's thread per client model, and scheduled end of life. Another is csil's lack of support for JBossMessaging, which is the latest JMS implementation from JBoss. ...

Logging for JBoss 3.2.5 J2EE Client

I'm trying to find out why a J2EE client ( stand alone Java program that uses jbossall-client.jar) is failing to connect to a J2EE Server so it would be good to enable logging that occurs from with JBoss classes such as org.jnp.interfaces.NamingContext - presume theres a config file I can set up ? Just for info this is the actual except...

Support for EJB2 with Jboss 5CR2

How I can configure Jboss 5 to support EJB2? I'm testing the new release of jboss (5) and need to deploy my old EJB2 ...

What's the best way to share business object instances between Java web apps using JBoss and Spring?

We currently have a web application loading a Spring application context which instantiates a stack of business objects, DAO objects and Hibernate. We would like to share this stack with another web application, to avoid having multiple instances of the same objects. We have looked into several approaches; exposing the objects using JMX...

JBoss community version corresponding to EAP version

As far as i know the EAP editions of JBoss are just a bunch of community edition JBoss projects with some sugar. So, what is the community edition of the JBoss application server that JBoss EAP 4.3.0 corresponds to? ...

Would you, at present date, use JBoss or Glassfish (or another) as Java EE server for a new project?

If you started a new Java EE project today which is to be finished in about a year, which application server would you choose and why? Part of your answer should include your arguments for your decision. And also how much experience you have with the Java EE server you choose and with the other available servers on the market. These are...

Oracle ADF on JBoss: Wrapped Jdbc Connection problem.

I'm trying to run an application using Oracle ADF Business Components on a JBoss Server. I've maneged to deploy it, but when I try to load the page I get this: java.lang.ClassCastException: org.jboss.resource.adapter.jdbc.jdk6.WrappedConnectionJDK6 cannot be cast to oracle.jdbc.OracleConnection Is there a way solve this? Maybe configur...

JDBC - Oracle ArrayIndexOutOfBoundsException

I'm getting an Exception while trying to insert a row in oracle table. I'm using ojdbc5.jar for oracle 11 this is the sql i'm trying INSERT INTO rule_definitions(RULE_DEFINITION_SYS,rule_definition_type, rule_name,rule_text,rule_comment,rule_message,rule_condition,rule_active, rule_type,current_value,last_modified_by,last_modified_dttm...

Starting JBoss from Eclipse

Staring JBoss server from within Eclipse Ganymede gives me the following problem: "Server JBoss v4.0 at localhost was unable to start within 120 seconds. If the server requires more time, try increasing the timeout in the server editor." The console shows JBoss has started in so and so minutes but soon after, there is a pop up if the ab...

How to integrate seam into an existing project. Or the other way around.

Is there any documentation about introducing jBoss seam to an old Hibernate/JSF project? Have tried google, and what I found was: Start new seam project, copy&paste existing code into new project. Would be nice to know a little bit more before starting. ...

Can you use mod_python with JBoss?

Anyone know whether it is possible to put mod_python under JBoss like you can Apache HTTPD? Given that JBoss has Tomcat inside it would seem to be a reasonable thing to do. If not mod_python is there any python support under JBoss which will keep the interpreter in memory? ...

How to modify http-headers on static files served by JBoss

I have a web application (.war) that contains some static files (e.g. MS word documents). When I try to download these files, JBoss automatically sets some HTTP-headers in the response. Is there a way to configure JBoss (version 3.2.7) to set these headers to specific values (or omit them)? I'm especially interested in the Cache-Contr...

StreamCorruptedException when connecting to JBoss RMI

We're having strange behaviour when connecting to JBoss RMI when our software is running inside Eclipse. When running the program from a web-start, it works fine, but when running it from Eclipse (both 3.3 and 3.4) we're getting this StreamCorruptedException: java.io.StreamCorruptedException: invalid type code: 13 at java.io.ObjectInpu...

How do I make a thread dump in JBoss 4.0.5 on Windows

Hi! I'm running JBoss 4.0.5 on Windows 2003 x64 and wonder if there is any way to get a dump of all threads? It's stared with FireDaemon so I don't have a console windows in which to ctrl-break. It's running under java 1.5 so jstack won't work. I tried some program someone had made called sendsignal.exe, which I think actually crashe...

JBoss Monitoring / Profiling

I have a legacy JBoss 4.0.4/EJB 2.1/PostgreSQL system with zillions of "transaction scripted" procedures as server EJB methods, and many of them have very slow and clumsy execution times due to bad programming practices (like creating temporary tables everytime, etc). Is there something I can plug in JBoss (Aspect-Like) to monitor the e...

Deploying a datasource w/ JAAS login module as a .sar in jboss

Does anyone have experience bundling a datasource (-ds.xml) definition + login-config.xml as a service archive in jboss? I've been fighting with this for awhile to no avail. I'm just looking for some pointers on how I should be laying the .sar out. I want the .sar to ultimately live in a .ear. Any pointers greatly appreciated! ...

How to programmatically add portlet to the JBoss Portal dashboard

How can I programmatically add portlet to the JBoss Portal dashboard of specific user? Is there any remote API of the JBoss Portal to do this? SOAP web service, may be MBean-based API? Of course, as a last resort I can implement such service myself and deploy it to the JBoss Portal, but ideally it should not require deploying anything to...