Very useful info, Jarl -- thanks.

Hugo,

Thanks for the answer re: 7.1 Mid-Tier JNI dependency.
It was very helpful -- though not the answer I wanted to hear, though it has been confirmed elsewhere. Based on logs in recent thread "Re: Mid-Tier 7.1 on Linux Apache Tomcat 5.5.23 (UNCLASSIFIED)"
it appears that authentication is still using JNI.

As to the event-container "issue", it is not an issue, just a discussion at a different layer of abstraction, which does not seem to be serving anybody but me, so I will drop it. (though I think your discussion and Jarl's recent finding tends to reinforce the idea -- depends still on whether persistence is managed differently than C plugin)

It was an attempt to understand "why" instead of just what, and whether it was a bad port or just bad documentation, and if there are likely to be other "surprises".

Dan


----- Original Message ----- From: "Jarl Grøneng" <[EMAIL PROTECTED]>
Newsgroups: public.remedy.arsystem.general
To: <[email protected]>
Sent: Thursday, October 04, 2007 7:56 AM
Subject: Re: Plugin and initialize() method


I have no proble understand how the plugin-server handle these
funstion. But it seems that there is a difference in how a C and Java
plugin behave.

TAnd the plugin documentation states this:
initialize(ARPluginContext context)
"An initialization routine called once at startup load time for each
plugin that is loaded.

And this does not happend when the plugin loads, it happend when it
gets accessed first time. And for each thread the plugin-server runs.

The documentation should be like this:
"An initialization routine called once at startup load time for each
thread instance".


If you add this to the plugin:
public static void init(ARPluginContext context){
//
};

It does this function when its loads. Sems like I have to move my
initialization code here.

--
Jarl

On 10/4/07, Carey Matthew Black <[EMAIL PROTECTED]> wrote:
Jarl,

I think there might be a bit of confusion due to the terms used...

I think it is more like this...


Ref: Integrating-710.pdf  pg 102
Figure 7-2: C plug-in call sequence

ARPluginIdentify ()
ARPluginSetProperties ()
ARPluginInitialization ()
ARPluginCreateInstance() -- one or more times

AREA, ARDBC, or AR Filter calls --
    I think this is per Filter Action

ARPluginDeleteInstance ()
ARPluginTermination ()


I think... the plugin server calls the first 4 methods as soon as _it_
starts up. Then when the ARS Server talks to the Plugin Server the
only things that are done are the "AREA, ARDBC, or AR Filter calls"
portion(s) of the code.

I think this makes some sense too. But I do not think it prevents the
"AREA, ARDBC, or AR Filter calls" from doing things like spawning new
threads (ARPluginCreateInstance() ) or other calls to the previous
methods. ( With a possible exception of the ARPluginIdentify ()
method. I doubt the Plugin Server would deal with a loaded plugin
trying to change its identity very well. But I could be wrong about.)


Then... when the Plugin server is being shut down I think the
ARPluginDeleteInstance () and ARPluginTermination () methods are
called.


So in summary "when the plugin loads" is when the Plugin Server reads
and loads the plugin into memory on startup. (And not when a Plugin
Call from the ARS server is executed.) The plugins are "standing
daemons" that wait and listen for inquiries.

But that is just my read of things. (Reality might be very different
than what the docs indicate.)

--
Carey Matthew Black
Remedy Skilled Professional (RSP)
ARS = Action Request System(Remedy)

Love, then teach
Solution = People + Process + Tools
Fast, Accurate, Cheap.... Pick two.


On 10/4/07, Jarl Grøneng <[EMAIL PROTECTED]> wrote:
> Hugo,
>
> The documentation of the java plugin states this:
>
> public void initialize(ARPluginContext context) throws ARException {}
> "An initialization routine called once at startup load time for each
> plugin that is loaded. The plugin can do all its initialization and
> setup in this method."
>
> I see benefits running initialize when the plugin loads.
>
> --
> Jarl

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the Answers Are"


_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the Answers Are"



_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the Answers 
Are"

Reply via email to