[Management, JMX/JBoss] - Retrieve ObjectName of webapp without id
by chicklin
Hi,
I'm trying to write a very simple web page to monitor the status of some other services and web apps. I have no problem retrieving an ObjectName of the services using "domain.com:service=ServiceName", etc., but it appears that the only way to retrieve a reference to the web app is by knowing the id, i.e. "jboss.web.deployment:war=file.war,id=4328178775". The problem is that this id changes depending on where I'm deployed. Is there a way to retrieve this without the id, or is there a way to look up the id programatically? I've tried "jboss.web.deployment:war=file.war,id=*" and "jboss.web.deployment:war=file.war,*", neither work.
Sorry if this is an easy one, I'm a little new to JMX. Thanks in advance!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018888#4018888
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018888
19Â years, 2Â months
[Security & JAAS/JBoss] - Re: https
by smeaggie
you can use a <security-constraint> tag in your web.xml to enforce https connections:
| -- snip --
| <security-constraint>
| <display-name>manager_access</display-name>
| <web-resource-collection>
| <web-resource-name>manager_pages</web-resource-name>
| <description/>
| <url-pattern>/secure/*</url-pattern>
| <http-method>GET</http-method>
| <http-method>POST</http-method>
| <http-method>HEAD</http-method>
| <http-method>PUT</http-method>
| <http-method>OPTIONS</http-method>
| <http-method>TRACE</http-method>
| <http-method>DELETE</http-method>
| </web-resource-collection>
| <auth-constraint>
| <description/>
| <role-name>manager</role-name>
| </auth-constraint>
| <user-data-constraint>
| <description/>
| <transport-guarantee>CONFIDENTIAL</transport-guarantee>
| </user-data-constraint>
| </security-constraint>
| -- snip --
|
the <user-data-constraint> here does the trick with <transport-guarantee> set to CONFIDENTIAL. It'll try to switch to https automaticly now when accessing anything behind /secure on the server. Note this example required the user to have the "manager" role and this requires some more configuration (login config etc).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018886#4018886
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018886
19Â years, 2Â months
[JBoss Eclipse IDE (users)] - JBoss-IDE preferences and Launch Configuration not working i
by RuiRosado
Hi all,
I am working in the JBossIDE-2.0.0 Beta 2 on Eclipse 3.2. Using JBoss server v4.0.5GA.
Things are working fine. One thing I cannot do is changing the server configuration:
1. First of all, in the Window>preferences ...>JBoss-IDE page I get an error: "The currently displayed page contains invalid values". There are no values on that page apart from the JBoss logo. Also the other options under JBoss-IDE in the tree, show up (sometimes) but you cannot edit them.
2. When I create a new server in the Servers perspective, I can only choose the "default","all" and "minimal" Server Configuration, although we had made a few more (copies from default) configurations.
3. OK, we used the default configuration, but now we cannot change values in the Server Overview "Open launch configuration" (i.e. after double-clicking the JBoss server in the Servers perspective).
We don't see the twiddle or stop tabs, and values that we change are not stored. They always revert to default values. There are no error messages here.
Can someone tell us how to get the Launch Configuration working?
A work-around is using the default configuration and do your adjustments there (that's what we are doing at the moment), but JBoss states in the documentation that it should be possible to work with your own server configured in JBoss-AS, at least in development.
Thanx for any suggestion.
Rui Rosado
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018874#4018874
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018874
19Â years, 2Â months