File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss and the fly likes how to create Environment Entries in jboss Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "how to create Environment Entries in jboss" Watch "how to create Environment Entries in jboss" New topic
Author

how to create Environment Entries in jboss

qcom
Greenhorn

Joined: Jul 03, 2001
Posts: 4
Hi,
I want to create an Environment Entries in jboss, so I create a file name em.xml ,and put it under deploy directory, but the error message said Incompletely deployed packages. the contents in xml file is below



<env-entry>
The maximum number of tax exemptions allowed
<env-entry-name>maxExemptions</env-entry-name>
<env-entry-type>java.lang.Integer</env-entry-type>
<env-entry-value>15</env-entry-value>
</env-entry>



anybody knows how to set the Environment Entries in the jboss without ejb descripter?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 8141
    
  52

Do you have a web application? If yes, then you could add those entries to the web.xml file of the application.


[My Blog] [JavaRanch Journal]
qcom
Greenhorn

Joined: Jul 03, 2001
Posts: 4
hi Jaikiran,
thank you, there is no web application . in Tommcat , I can set the enviorment entry in server.xml, but in Jboss I don't know where to set it.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56150
    
  13

"qcom",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: how to create Environment Entries in jboss
 
Similar Threads
getInitParameter with a MessageDrivenBean
How do you access [env-entry] values in web.xml from Java code?
value for Context.PROVIDER_URL
Getting "Lookup Error Name comp/env/mail not found in context "java:"." error
JBoss JNDI question - very basic