jboss

JBoss Database Connection Pool

I am new to jboss and i have been asked to incorporate jboss connection pooling mechanism with an existing web application. Considering that a web application database layer is properly written i.e. all resultsets, statements and connections being closed properly when not needed, What all code changes i will have to make in my web app af...

jboss-4.2.3.GA-jdk6.zip is it stable?

It seems as if the jboss teams doesn't want to say that the Java 6 compile of Jboss AS 4.2.3 is a GA, they write that it shouyld be considered expiremental. Anyone using it in production? we're using it in test and plan to move it to prod as it hasn't shown any problems. ...

Jboss 5.0 EJB 3.0 Asynchronous Proxy

At http://www.java2s.com/Code/Java/EJB3/EJBtutorialfromJBossAsynchronouscall.htm i've found an example showing how to call ejb methods in asynchronous fashion. Do you use asynchronous proxy in EJB 3.0 on Jboss AS and does it work as it should? ...

How to log on JBoss console

I'm experimenting with Netbeans and JBoss and I'd like to print stuff on JBoss console from my code. Can I use log4j for that? ...

Netbeans Exploded EAR Development with JBoss5

I'd like for Netbeans to deploy directly into an exploded ear in JBoss, instead of the current process of deploying a whole .ear file. Development would be much quicker if it were possible to edit .jsps and backing beans without a redeploy after each change. Is this possible? ...

How should unit tests set up data sources when not running in an application server?

Thank you all for your help. A number of you posted (as I should have expected) answers indicating my whole approach was wrong, or that low-level code should never have to know whether or not it is running in a container. I would tend to agree. However, I'm dealing with a complex legacy application and do not have the option of doing a...

How do I register a server in the default RMI registry for JBoss and access it from a client running in another JVM?

I am trying to access a Jackrabbit repository deployed on a JBoss application server via RMI. I am getting the following exception when I try to connect to the factory using ClientRepositoryFactory.getRepository('rmi://xxx.xxx.xxx.xxx:1099/imageserver'). But if I create a web application that starts a new RMI registry on the server with...

How to get the user roles in Servlet?

I'm using Jbos AS 5 and the DatabaseServerLoginModule for the authorization. I've my application policy defined as (for example only, not the actual code): <application-policy name = "jbossmq"> <authentication> <login-module code = "org.jboss.security.auth.spi.DatabaseServerLoginModule" flag = "required"> <module-opt...

Rich Faces Tree Control for handheld device

Currently I have a rich tree which works as expected; however the tree itself is not appropriate for small devices where you use your finger for navigation. The arrow that represents the child nodes, and their expansion, is too small. Is there any way to change that graphic, or increase its size? ...

How to get stateless EJBs JNDI path?

Hi, is there a way to get my stateless EJBs JNDI path? Supposing that I have written an EJB like this: @Stateless public class BookBean implements IBookBeanLocal { @Resource SessionContext sctx; .... @PostConstruct public void afterInit(){ // sctx?? } } Is there a way do discover the BookBeans JNDI path during initialization...

setting up JBoss5 with MyEclipse

Hello, I have been using Weblogic as my company used it. Now I want to try JBoss as an alternative. I'm using Eclipse with MyEclipse 7.1 plugin. I downloaded and unzipped JBoss 5.0.1GA with Java JDK 1.5.0.14. I set the server up using MyEclipse interface and got the following error (couldn't find solution elsewhere online): 10:42:54,24...

JBoss UnknownHostException when on different network.

I'm having a bit of a problem with getting JBoss working across networks. As a quick overview, we have a development network (which I'll call DEV), and a client network (say.. CLIENT!). These are connected via a firewall. In the Dev network, the server is known as 192.168.100.50, on the client network it's known as 10.0.100.50. DNS in bo...

Encrypting sensitive information in JBoss configuration

The standard data source configuration in JBoss requires the username and password of the database user to be in the xxx-ds.xml file. If I define my data source as a c3p0 mbean I encounter the same issue. Is there a standard way to have the user and password encrypted? What is a good place to save the key? This of course relevant to to...

How do I set up Jetty 6 & Jboss 4.0.5 virtual hosting?

I have 2 webapps deployed in the same JBoss/Jetty server. In Jetty 5.1.14 I had the following jetty-web.xml which configured one of the apps to run as a virtual host (on the same port): <Configure class="org.jboss.jetty.JBossWebApplicationContext"> <Call name="addVirtualHost"><Arg>app2.localhost.com</Arg></Call> </Configure> This ...

Restore session after restart in JBoss

Can I somehow restore the session on JBoss after restart? I want to use it on my development machine. ...

JBoss AOP syntax to intercept exceptions

I'm familiar with the AspectJ syntax for intercepting Exceptions using the "handler" designator, but I'm trying to get the same item working with JBossAOP. Would anyone know how to catch all exception throws so I can log them using JBossAOP? Thanks! ...

Is it possible to read a properties file from all .war files deployed in a JBoss container.

Hi. I've managed to deploy a .war to the Jboss web container containing and read the pom.properties located under /META-INF/groupid-dir/artifactid-dir/ To access the file I've used the following code inside a JSP in the same war: ServletContext servletContext = getServletConfig().getServletContext(); InputStream in = servletContext....

How do I connect a JBoss4 Message Driven Bean to a topic on a remote server?

I have a JBoss server (Server A) that is publishing messages on a topic. I have a message driven bean on another server (Server B) that needs to retrieve the messages from Server A. How do I go about it? I can easily get everything working if the publisher and subscriber are on the same server but I can't find any information about how ...

JBoss 4.2.3 + WebServices Client

Hi, I have Web application deployed on a JBoss 4.2.3, that access a SOAP Webservices deployed at a GlassFish V2. When a I run the web application in my local Jetty, it runs smoothly. When I deploy it to JBoss 4.2.3 (Java 1.6), it raises an EOFException. Caused by: javax.xml.ws.WebServiceException: java.io.IOException: Could not tra...

Out of Memory error starting JBoss with Portal from Eclipse

I cannot get JBoss Portal to start from Eclipse, though the AS alone starts fine, and the Portal starts correctly as well, when started from the command line as opposed to from within Eclipse. I'm running in Windows, with 3GB. Suggestions? Thank you. ...