jboss

Upgrade to Quartz 1.6 on JBoss 4.2.x

Is there a recommended way to upgrade Quartz in JBoss 4.2.x? JBoss bundles quartz 1.5.2, but I have encountered issues (QUARTZ-399, QUARTZ-520) that I want to avoid. I would not want to patch quartz.jar in JBoss just to resolve the errors, but instead provide a new quartz.jar (plus associated configuration artifacts). The Quartz 1.6 mi...

JAVA Swing client, Data Access to Remote Database; Ibatis

I've got a Java client that needs to access a remote database. It is the goal to hide database credentials from the user and not hardcode any credentials within the code. Therefore, the database access will probably have to be on the server side. I'm restricted to use Ibatis as a data abstraction framework. Apart from that I have JBoss ...

Consuming web services with jboss

Can someone point me a good step-by-step tutorial to consuming an already running web service in java? PS: I tried creating the classes with wsconsume, but it cries with [ERROR] rpc/encoded wsdls are not supported in JAXWS 2.0. (my web service is rpc/encoded) If I can consume web services entirely by hand (using no wizards), and under...

JNDI without a J2EE Container (with JNP? Maybe some other provider?)

I need to run a JNDI provider without the overhead of a J2EE container. I've tried to follow the directions in this article, which describes (on page 3) exactly what I want to do. Unfortunately, these directions fail. I had to add the jboss-common.jar to my classpath too. Once I did that, I get a stack trace: $ java org.jnp.server.M...

How to get the status of a JBOSS server

I am working on writing a Highly Available agent for JBOSS to run on Solaris Open HA Cluster. As I don't know much of JBOSS, can someone please tell me how can I probe the status of the JBOSS server. I want to know the health of JBOSS server, ie, whether it is currently running or not. -Abhishek ...

JBOSS admin console?

I know that JBOSS has the JMX-Console for administration. My question is, is there any command line admin tool which comes with JBOSS using which the status of various services under the control of JBOSS can be tested? ...

64-bit JVM on Server, 32-bit JVM on Client, combination possible?

Hi, I'm having a JBoss EJB3 Application and a Swing client, running in 32-bit Java 6 VM's. We now have to change the Server JVM to 64 bit. May this combination of JVM's cause any trouble (do I need to use 64-bit JVM on the client, too)? Greetings, buzztee ...

Large JSP response is truncated :(

I have a JSP accessed through JBoss. It renders a list (a search result). If the response gets big, approximately larger than 200k the response is truncated. I can see how the page just ends in the middle of a tag in Firefox. IE totally freaks out an so does Fiddler. Responses smaller than 200k are no problem. Anyone has experienced thi...

Configure multiple keystores in JBoss depending on requested hostname

Hello, I have my J2EE application deployed into a JBossAS. My Application has to respond to two different hostnames (https://foo.com/myApp and https://bar.com/myApp). It is the same instance of the app serving those two hostnames. But I don't know how to configure the keystores. I need different keystores for each hostname. Is there a ...

Learning j2ee, jboss, etc.

I've been doing "plain old java objects" programming for 10 years now, with Swing and JDBC, and I consider myself pretty good at it. But I start a new job in two weeks where they use JBoss, and I'd like to get a heads up and start learning all this stuff before I start. What are good resources? On-line tutorials, books, e-books, anyth...

How do the ExceptionSorter classes in JBoss work?

I am wondering how the JBoss ExceptionSorter classes are able to check for database errors. The application (the EJB or persistence framework) is holding the reference to the database Connection, so SQLExceptions are caught by the application. How is JBoss able to see the contents of the exception? Does JBoss wrap the connection and in...

Large Inner classes and private variables

One thing I've run into a few times is a service class (like a JBoss service) that has gotten overly large due to helper inner classes. I've yet to find a good way to break the class out. These helpers are usually threads. Here's an example: /** Asset service keeps track of the metadata about assets that live on other systems. Compl...

Hot Deploy a Java EAR to Minimize or Eliminate Downtime of an Application on a Server?

I have heard that this is what JavaRebel does but is there any other good way to deploy a new version of an EAR while allowing users to remain active on the previous version? We use JBoss for the application server... ...

No suitable MySQL driver found for JBoss application

Hello, I am new to creating Java web applications and came across this problem when trying to interact with my database (called ccdb) through my application: java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost/ccdb/ My application runs on JBoss and uses Hibernate to interact with the MySQL database. I have the M...

How do I look up an ejb in jBoss 4.2?

I have a simple j2ee application: foo.ear - foo.war - foo.jar (ejb3 jar) I am deploying into jBoss 4.2.2, which is J2EE 1.4 compliant, with an ejb3 jar deployer. Thus, at present it is not possible to use the @EJB annotation in servlets. In a regular 1.4 j2EE app I could use a <ejb-local-ref> element in my web.xml, however, because ...

How can you uniquify context-root on jBoss

Say I have a simple j2EE ear: foo.ear - foo.war I would like to deploy the same ear twice so I rename the ear: bar.ear - foo.war The META-INF\application.xml file looks like this: <application> <module> <web> <web-uri>foo.war</web-uri> <context-root>/baz</context-root> </web> </modul...

JBoss/EJB vs Symmetric DS

Hi all I'm working on a project which is just about to start, and since I was busy with another one my colleagues went ahead and started working on the specs to the new one. When I came in, they had just chosen to do persistence with plain SQL (promptly accepted my suggestion to add Hibernate, though) but insisted in that data replicati...

expose RMI server in JBoss?

I need to access RMI methods from a client front end. For different reasons, I have JBoss running on the server side. This makes me thinking of using JBoss to expose the RMI server methods. I'm kinda new to JBoss, so my question would be: What steps are required in order to make the RMI server methods visible to the client? ...

Difference btw org.hibernate.jmx.HibernateService and org.jboss.hibernate.jmx.Hibernate

Both of them are mbeans. Both are intended to setup Hibernate Session Factory and expose it through JNDI. Both are implemented in Red Hat. But at the same time each of them belongs to separate classes hierarchy. What is actually the difference between them? Thank you in advance. ...

Custom Error Pages in JBoss

Hey all, This is my first question here! I'm trying to setup custom error pages in my JBoss RESTful web service. I'm starting with the 400 error, so in my web.xml I've added <error-page> <error-code>400</error-code> <location>/400.html</location> </error-page> and I've placed 400.html at the root of my war file (I've also tried pl...