Aaron:


Sory for the delay in responding to this email - have been somewhat preocupied with the release stuff.


J Aaron Farr wrote:


On Wed, 2003-09-10 at 01:21, J Aaron Farr wrote:


Greetings!

After much too long of a delay, we now have new releases of PhoenixJMS
and the new PhoenixMDS packages.




<snip/>

Now with the release out, I want to add that I had a number of issues
with PhoenixJMS and Merlin.  Some of which might be my own fault, but in
any case, here's a list:

1. Security Policies:

   The Phoenix SAR doesn't require I have any special security policy,
   but when I run the same code in merlin, I get all sorts of security
   violations.  The solution is to add a policy file and include it in
   the JVM options.  We might want to include a default policy file in
   the Merlin distribution to help accommodate this.


A security file could only address the bootstrap process. After bootstrapping - the security policy would need to be established on a per container/component basis. I took a look at the security policy file you have for the JMS server and immediately noticed that this is tied to the deployment command line assumptions. What we really need is the potential to set the JMS server policies based on the deployment scenario - otherwise it will not be usable in a composite scenario.




2. urn:avalon:home

Already discussed in an earlier thread. The new release assumes
we can use the -app command line option.



Which is linked to the secuiry policy declaration currently in place because you need to grant permission to a known path. The better solution is to have merlin grant the permission when establishing the value for urn:avalon:home for your component.


3. block imports

I had trouble with this, but I think it was my misunderstanding of
how imports work. You can see some of what I was trying in the mds-test module in PhoenixJMS CVS. Basically, the imports just didn't work the way I expected.



Havn't been able to locate the issue. Can you provide an example of the <import/> statement you were using and the block defintion you were importing.



4. Asynchronous start ups


   So I was launching a listener component and a publisher component
   and I needed to make sure the listener started first, so I added
   a Thread.sleep(1000) or something like that in the publisher's
   lifecycle method (start or initialize, I can't remember).  Now,
   the interesting thing is that Merlin happened to decide to launch
   the publisher first.  This resulted in delaying the listener which
   has no dependencies on the publisher.  I expected asynchronous
   startups.  Am I missing something here?


Is there any reason why the listener is not declaring a dependency on the publisher?



5. Odd startup behavior
I swear a couple times Merlin started up more than one instance of
my MDSManager component, which has a singleton lifestyle, but
I didn't have enough time to track down where this was coming from.
Perhaps I just had something misconfigured. Has anyone else seen
anything similar to this?



Something to keep in mind is that a singleton is a single "deployment scenario". That deployment scenario (identifiable by the partiion and component name will only exist once in the JVM. This does not precude the possibility of multiple instances of a singleton type - but it does preclude multiple instances of the type with the same path.


The only reason why multiple singletons would be created is if you have a composite container heirachy, and Merlin has figured out that your MDSManager is required to solve a dependency solution, but no explicity declared solution exists in the same or higher scope. Looking at your block.xml I can see that you are even close to such a scenario.

Cheers, Steve.

--

Stephen J. McConnell
mailto:[EMAIL PROTECTED]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to