David,
We know how to do it using low level calls to the mbeans, I was trying to see if I can
hand over the process of creating/modifying these to a technical support person who can
use the HTML interface. If I can get away from a new UI, even if this one is not the
easiest, I shave some time off of development and QA.
Based on the work the last few hours it looks like my problem is that the Properties attribute
is a Properties object stored in a byte array formatted String. When I apply the change in the
HTML Adaptor it must lose something significant in the format that it pushes back.
However, not 5 minutes ago through a JSP I was able to modify, stop and start a
ConnectionFactoryLoader and switch database connection URL properties and have them
take effect without an error. I had to put the values back into a properties object,
store it to a byte array and then call toString("ISO-8859-1"); the reverse of what the
ConnectionFactoryLoader does.
Since I don't see anything in the JMX 1.1 Change Log related to this I think I'm out of
options but to do a simple UI.
HTML, the original message get sent in HTML format? I don't get Outlook, I have my mail set
to send in Plain-Text but I still get this crap. I even checked before I sent because
of the prior e-mail that I got flamed on. I am staring at the top of the message box
that clealy says Message (Plain Text). Creating a new message I see the same.
John -Moving To Netscape- Moore
-----Original Message-----
From: David Jencks [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 6:50 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] New/Changed JCA connection factory
please lose the html.
Its pretty easy to instruct the jmx server to start and configure a
ConnectionFactoryLoader mbean in code. There's a 3.0 testcase that does
this (in jmx somewhere).
I think the "save" button saves to jboss-auto.jcml in 2.4.x, which is
fortunately ignored (it created endless headaches when it was used).
I don't know what happens if you change property values. You will probably
have to at least stop, change, and start the mbean. We're thinking about
how to deal with this kind of issue but no work has been done yet.
david jencks
On 2002.04.02 20:50:59 -0500 John Moore wrote:
>
> Is it possible to change properties related to a JCA connection factory
> and
> have them take effect without restarting jboss? I am using JBoss 2.4.4
> with
> Embedded Tomcat 3.2.3 and would like to be able to modify connections to
> databases using the JMX interface on the fly. Currently, when I change a
> property (e.g. connectionURL) and stop/start the mbean I get a connection
> failure. My greater goal is to create new database entries on the fly. We
> are using the MinervaXACMFactory for our work. Our app (servlets/jsp's)
> can
> switch between databases and I would like to be able to add new
> connections
> on test/production servers without bringing down the app server and all
> of
> the active users.
>
> Also, does the save method on the Configuration service work for
> dynamically
> added services. I don't see any change to the jboss.jcml file after I try
> to
> save.
>
> John Moore
>
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user