File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes Externalize config Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Externalize config" Watch "Externalize config" New topic

Externalize config

Collins Mbianda
Ranch Hand

Joined: Aug 11, 2007
Posts: 259
Hi guys,
I'm deploing my webapp on JBoss. I want to externalise some data without modifying the war.
The same war is deployed on different JBoss. But the application is pointing to an external service. The url of the service change any time.

I think to do it with JNDI (
The problem is that when i create my xyz-service.xml the resource was not found.

Can any one suggest the best way to to this with or without JNDI ?
Thanks !!!

SCJP 5.0 | SCWCD 1.4
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 9327

Which version of JBoss AS? What does your configuration look like? What errors do you get when you try that configuration?

[My Blog] [JavaRanch Journal]
Collins Mbianda
Ranch Hand

Joined: Aug 11, 2007
Posts: 259
Hi Jaikiran,

I m using the Version 4.2.1 of JBoss.
The resource is not found. I just add my xyz-service.xml in the deploy directory. I'm having the following exception:
javax.naming.CommunicationException: Receive timed out [Root exception is Receive timed out]

Collins Mbianda
Ranch Hand

Joined: Aug 11, 2007
Posts: 259
I think the problem is that my Naming server is not found.
Addind a JNDI provider it work. Is there any of resolving it without modifying the conf/ ?

Thanks !!!
I agree. Here's the link:
subject: Externalize config
Similar Threads
Starting jboss automatically after booting the machine.
blind link for older documentation of JBOSS AS (4.2.0)?
migrate from jboss 4.0.3 to jboss AS 5.0.1
Can't call ejb 3.1 form app client project in jboss 6.0 final