Hi,
I have an EJB app. which basically has to execute a SQL query when it is shutdown. A shutdown hook would presumably work, but that way I can't use injected entitymanager/datasource etc.
Is there a way to provide a shutdown hook that can invoke methods on EJB bean?
Our EJB container is JBoss5.1.
Thanks!
...
Hi
How can I get the source code for Arjuna/JBossTM that matches my JBoss version?
More specifically, is there a way to reliably identify the version of a library that is distributed with JBoss 5.1.0?
The options I've tried so far:
opening the manifest file of jbossjts.jar which gives me 5.1.0
opening the file jar-versions.xml, but ...
I'm running JBoss as a server started from within Eclipse. I have a strange problem where turning on automatic publishing (so the ability to hot deploy a class while debugging, etc.) causes the war to redeploy. When it redeploys it's over 3 times the size of what it was originally. Has anyone seen this? I'd like some method to update Jav...
Hi,
I hoping someone could help related to configuring JBoss 4.2.3.GA to disable weak & medium ciphers.
We've scanned JBoss with Nessus and it identified weak & medium ciphers on port 8443.
I was able to remove those scan results by limiting the ciphers. I added the following to the connector in server.xml
ciphers="SSL_RSA_WITH_RC4_...
Hello,
I got a question about usage of JMS(Java Message Queue). Somewhere in documentation I have seen that everything I need to use JMS is jms.jar on the machine where the client is going to run. But I still not sure if I need glassfish or JBoss also installed on machine.. Anyone can me tell if it's really only jms.jar is needed or I n...
How would I get Authentication and roles information from a JBoss realm that uses kerberos/SPNEGO from MSAD into a web-app using Spring security 3? Do I need to create a custom AuthenticationProvider or UserdetailsService? I've noticed that Spring Security 2 had container adapters, but they decided it was too much of a pain to keep the...
Right now I'm getting this exception from a simple JMS client I wrote to just test to see if I can connect to the JBoss JMS. Here is the snippet of my code below:
Properties props = new Properties();
props.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
props.setProperty("java.naming.fac...
I intended to use JBoss-Maven-Plugin for hotdeployment of jars to JBoss. I have three projects A, B, C that depend on each other so if I want to redeploy A I first have to undeploy C, then B, then redeploy A, then B, then C. Now I'm having a hard time finding a way undeploying the artifacts and then deploying them in reverse order. Might...
I am planning a URL rewriter/encoder (maybe rewriter is a better term). The main purpose is to hide the exact URL from the client, since if he is smart enough, he can figure out how to mess up the application.
The URL encoder would be an injective function f(x) = y. The decoder would be the inverse function of f, say g such that g(y) =...
I get this error while starting jboss, has anyone had it before?
17:10:14,352 ERROR [Naming] Could not start on port 1099
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source...
I'm attempting to get my Jboss Server running as a windows service using the JbossService.exe, and I had it working until I uninstalled it (with ./JbossService -uninstall JbossService), and now, while it will install and the service will appear in the windows service list, attempting to start it will only yield the error message:
"The J...
Hi,
for security reasons, we want to block users by IP adress in our application, if they are trying to login as admin and they type in the a wrong password 3 times.
It is very easy to get the IP Adress of the user trying to login. I use this code snippet to get the IP:
ExternalContext context = FacesContext.getCurrentInstance().getEx...
Can anyone help me with this? I've read through http://dev.mysql.com/doc/refman/5.0/en/connector-j-reference-replication-connection.html and created a JBoss datasource with
<connection-url>jdbc:mysql:replication://sys1:3306,sys2:3306,sys3:3306/mydb</connection-url>
<driver-class>com.mysql.jdbc.ReplicationDriver</driver-class>
In my JB...
hello
i'm new to jboss, i wish to setup a development server on my local machine to be used with netbeans, under windows xp; I need to install the oracle jdbc driver on it. I've searched the web and all the articles i found say to copy the jar in the server default folder. Will it be visible also to all and minimal folder ? there's ano...
Does the order of the imports in a JSP page matter? I have a JSP page that worked just fine in JBoss 4, but is not compiling in JBoss 6. These are the imports:
<%@ page import="com.at.enp.SecurityManager,
com.at.enp.util.webUtil,
com.at.vb.mod.fa.db.RPData.ResetOption,
com.at.enp.modules.loyalty.MetricSetting,
...
i have to run 2 web apps on two diffrent ports , one on default port 80 and other is on 89 port, i am using Jboss 4.2.3 , and i need to depoly both WARs to same JBoss intance.
...
Preface:
Most of J2EE applications are using container managed datasources through JNDI. This is fine as it gives one place for configuring these connections.
The problem arises when we want to use ORM framework (like hibernate) or something that have to know the default schema (mostly for Oracle, may be others too), which can be differe...
Thanks for your replies!
...
I have a web-app I'm trying to setup under jboss 4.2.3 and I am mimicing (the best I can) a 4.2.1 installation. It's doing fine feeding up pages under http, but when its https, it just kicks out the raw jsp file. I followed instructions for creating a self-signed cert. Not sure what specific info to provide, but can anyone try to point m...
Hi all,
I`am using jboss-5.0.0.GA-jdk6.
Ive implemented a JMS que, and MDB which listens to it.(so far so good)
What im trying to achive is: after 3 attempts of errors, instead of sending the error msg to DLQ, i wanna send it to a new custom Error Que which I want to define, so I can handle the errors in that que the way I want.
any i...