JP2010066903A - Information processor, program registration/start method and registration/start program - Google Patents
Information processor, program registration/start method and registration/start program Download PDFInfo
- Publication number
- JP2010066903A JP2010066903A JP2008231281A JP2008231281A JP2010066903A JP 2010066903 A JP2010066903 A JP 2010066903A JP 2008231281 A JP2008231281 A JP 2008231281A JP 2008231281 A JP2008231281 A JP 2008231281A JP 2010066903 A JP2010066903 A JP 2010066903A
- Authority
- JP
- Japan
- Prior art keywords
- program
- layer
- registration
- activated
- daemon
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
Description
本発明は、情報処理装置、プログラム登録起動方法、登録起動プログラムに係り、特に一のプログラム言語をベースとした所定のフレームワークを適用した情報処理装置、プログラム登録起動方法、プログラム起動プログラムに関する。 The present invention relates to an information processing apparatus, a program registration activation method, and a registration activation program, and more particularly to an information processing apparatus, a program registration activation method, and a program activation program to which a predetermined framework based on one program language is applied.
近年、情報処理装置の一例としての画像形成装置には必要なモジュールをプラグインできるものが存在するようになった。プラグインとは、小さなプログラム(プラグイン)を用いて各種アプリケーション等に機能を追加するものである。なお、画像形成装置は例えばコピー,プリンタ,スキャナ,ファクシミリ,複合機等の総称である。 In recent years, some image forming apparatuses as an example of information processing apparatuses can plug in necessary modules. A plug-in is a function for adding functions to various applications using a small program (plug-in). Note that the image forming apparatus is a generic name for, for example, a copy, a printer, a scanner, a facsimile machine, and a multifunction machine.
図1は必要なモジュールをプラグインできる画像形成装置のソフトウェア構成を示した簡略図である。画像形成装置1はOSGi(Open Service Gateway initiative)フレームワーク11を適用している。
FIG. 1 is a simplified diagram showing a software configuration of an image forming apparatus in which necessary modules can be plugged in. The
OSGiフレームワーク11は、OSGiアライアンスによる標準化技術であり、Java(登録商標)言語をベースとしたオープンなソフトウェア部品化技術である。OSGiフレームワーク11を適用している画像形成装置では、Java(登録商標)言語のソフトウェアがバンドル(Bundle)というソフトウェア部品の単位(バンドル単位)で実装される。
The OSGi
図1の画像形成装置1は、機能をバンドルにより構成することができると共に、機能のアップデートやカスタマイズ、メンテナンスをバンドルのインストールにより実現することができる。
The
図1の画像形成装置1は、Java(登録商標)言語のソフトウェアを実行する為のCVM(Compact Virtual Machine)10,バンドルの管理を行うOSGiフレームワーク11,バンドル12,Java(登録商標)言語のソフトウェアであるコンポーネント13,Native言語のソフトウェアであるデーモン(Daemon)14を有する。
The
図1の画像形成装置1のOSGiフレームワーク11上においてコンポーネント13はバンドル12を用いてJava(登録商標)層に対するコンポーネント13のプラグインを行う。なお、Native言語のソフトウェアであるデーモン14をNative層にインストールする場合、従来の画像形成装置1は、例えばバンドル12にデーモン14を含める形で行っていた。バンドル12にデーモン14を含める形でNative言語のソフトウェアであるデーモン14をNative層にインストールする形は、デーモン14の登録が容易であった。なお、OSGiフレームワーク11を適用した画像形成装置1は従来から知られている(例えば特許文献1参照)。
しかし、図1の画像形成装置1では、Native層にインストールされたデーモン14がJava(登録商標)層のコンポーネント13とメッセージ送受信を行う場面で問題が生じる。
However, in the
バンドル12にデーモン14を含める形でNative言語のソフトウェアであるデーモン14をNative層にインストールした場合、Java(登録商標)層とNative層との間のメソッド呼び出しは、主にJNI(Java Native Interface)で行われる。JNIは、Java(登録商標)言語で開発されたコンポーネント13と、Native言語で開発されたデーモン14との間でメソッド呼び出しを行う為のAPI(Application Program Interface)である。
When the
JNIでメソッド呼び出しを行う場合は、相手のクラス名やメソッド名の指定が必要となるため、デーモン14は、その指定をハードコーディングする必要があり、呼び出し相手のコンポーネント13と依存関係ができてしまう。このため、図1の画像形成装置1ではNative言語で開発されたデーモン14にありがちなバージョンアップや脆弱性対応が難しくなるという問題があった。
When calling a method with JNI, it is necessary to specify the class name and method name of the other party. Therefore, the
つまり、従来の画像形成装置1は、Java(登録商標)言語で開発されたコンポーネント13と、Native言語で開発されたデーモン14との依存関係を無くすことと、Native層にデーモン14とを容易にインストールすることとの両立が難しかった。
In other words, the conventional
本発明は、上記の点に鑑みなされたもので、異なる層で起動されるプログラム間の依存関係を無くすこと、プログラムの登録を容易化することを両立できる情報処理装置、プログラム登録起動方法、登録起動プログラムを提供することを目的とする。 The present invention has been made in view of the above points, and is an information processing apparatus, a program registration activation method, and a registration that can eliminate the dependency between programs activated in different layers and facilitate program registration. The purpose is to provide a startup program.
上記課題を解決する為、本発明は、一のプログラム言語をベースとした所定のフレームワークを適用している情報処理装置であって、前記一のプログラム言語で記述された第1プログラムが起動される前記フレームワーク上の第1層に起動される第1仲介手段と、他のプログラム言語で記述された第2プログラムが起動される前記フレームワーク上の第2層に起動される第2仲介手段と、前記第1層に起動された前記第1プログラムからのメッセージを受け付ける第1仲介手段と前記第2層に起動された前記第2プログラムからのメッセージを受け付ける第2仲介手段との間で通信を行う通信手段と、前記第2層への前記第2プログラムの登録を受け付け、前記第2プログラムを前記第2層に起動する為に必要な設定情報をデータ管理手段に保存する登録受付手段と、を有し、前記フレームワークの起動後、前記第1仲介手段は前記データ管理手段に保存されている前記設定情報に従って前記第2仲介手段を起動し、前記第2仲介手段は前記設定情報に従って前記第2プログラムを起動し、前記第2プログラムは前記設定情報に従って動作することを特徴とする。 In order to solve the above problem, the present invention is an information processing apparatus to which a predetermined framework based on one program language is applied, and the first program described in the one program language is activated. First mediating means activated in the first layer on the framework and second mediating means activated in the second layer on the framework where the second program written in another programming language is activated Between the first mediating means for accepting a message from the first program activated in the first layer and the second mediating means for accepting a message from the second program activated in the second layer. And a communication unit for receiving the registration of the second program in the second layer and setting information necessary for starting the second program in the second layer to the data management unit Existing registration acceptance means, and after starting the framework, the first mediation means activates the second mediation means according to the setting information stored in the data management means, and the second mediation means Starts the second program according to the setting information, and the second program operates according to the setting information.
なお、本発明の構成要素、表現または構成要素の任意の組合せを、方法、装置、システム、コンピュータプログラム、記録媒体、データ構造などに適用したものも本発明の態様として有効である。 In addition, what applied the component, expression, or arbitrary combination of the component of this invention to a method, an apparatus, a system, a computer program, a recording medium, a data structure, etc. is also effective as an aspect of this invention.
本発明によれば、異なる層で起動されるプログラム間の依存関係を無くすこと、プログラムの登録を容易化することを両立できる情報処理装置、プログラム登録起動方法、登録起動プログラムを提供可能である。 According to the present invention, it is possible to provide an information processing apparatus, a program registration activation method, and a registration activation program capable of eliminating the dependency relationship between programs activated in different layers and facilitating program registration.
次に、本発明を実施するための最良の形態を、以下の実施例に基づき図面を参照しつつ説明していく。 Next, the best mode for carrying out the present invention will be described based on the following embodiments with reference to the drawings.
図2は本実施例の画像形成装置のソフトウェア構成を示した簡略図である。図2の画像形成装置2は、CVM10と、OSGiフレームワーク11と、デーモン14と、httpサービスコンポーネント(http serviceCMP)21と、データ管理コンポーネント22と、各種アプリケーションなどの機能を持つOSGiフレームワーク11上にある印刷管理コンポーネント,FAXコンポーネント等のコンポーネント23と、仲介コンポーネント24と、仲介デーモン25とを有する。
FIG. 2 is a simplified diagram illustrating a software configuration of the image forming apparatus according to the present exemplary embodiment. The image forming apparatus 2 illustrated in FIG. 2 includes a CVM 10, an OSGi
なお、図2の画像形成装置2は図1の画像形成装置1と同一部分について同一符号を付して説明を適宜省略する。httpサービスコンポーネント21は、デーモン14を追加して登録する際の受付口の例である。データ管理コンポーネント22は各種設定情報等のデータを管理するものである。データ管理コンポーネント22は各種設定情報等のデータの保管を担うものである。コンポーネント23は、デーモン14が最終的にメッセージを送受信したい相手である。
In the image forming apparatus 2 in FIG. 2, the same parts as those in the
また、仲介コンポーネント24は、Java(登録商標)層とNative層との間のメッセージの橋渡しをする上でJava(登録商標)層側のメッセージ受付を行うものである。仲介デーモン25はJava(登録商標)層とNative層との間のメッセージの橋渡しをする上で、Native層側のメッセージ受付を行うものである。
The
図2に示すように、画像形成装置2はJava(登録商標)層に仲介コンポーネント24が起動されると共に、Native層とに仲介デーモン25が起動される。この理由はJava(登録商標)層とNative層との間で通信する際に、相手とJNIの関数を固定する必要があるからである。JNIの関数を仲介コンポーネント24と仲介デーモン25とで固定することにより、Java(登録商標)層とNative層との間で通信するデーモン14等の利用者は、JNIを意識せずに通信が可能となる。
As shown in FIG. 2, in the image forming apparatus 2, the
図1に示した画像形成装置1では、コンポーネント13のプラグインの概念によって様々な機能の追加が可能である。しかし、多くの場合、Native層で起動されるNative言語のソフトウェアであるデーモン14は、Java(登録商標)によって提供されているI/Fを直接呼び出すことができないため、プラグインの概念で様々な機能の追加に対応できない。
In the
図2に示した本実施例の画像形成装置2は、Java(登録商標)層及びNative層に、それぞれJava(登録商標)層及びNative層の依存関係を代理で吸収する仲介コンポーネント24及び仲介デーモン25が起動されることで、Java(登録商標)層及びNative層の依存関係を無くし、Native言語のソフトウェアであるデーモン14を、OSGiフレームワーク11に対応する形で動的に追加する仕組みを提供する。
The image forming apparatus 2 according to the present exemplary embodiment illustrated in FIG. 2 includes a
図3は本実施例の画像形成装置のソフトウェア構成におけるクラス図である。httpサービスコンポーネント21は登録データ31を取得する。登録データ31は、デーモン14のプログラムとXMLで記述された設定情報のセットである。httpサービスコンポーネント21は、登録データ31をデーモン14のプログラムとXMLで記述された設定情報とに分解し、デーモン14のプログラムをインストールする。httpサービスコンポーネント21は、XMLで記述された設定情報の内容を解析し、デーモン14のプロファイルと仲介デーモン25のプロファイルとを作成してデータ管理コンポーネント22に登録する。
FIG. 3 is a class diagram of the software configuration of the image forming apparatus according to the present exemplary embodiment. The
また、仲介コンポーネント24は、データ管理コンポーネント22からデーモン14のプロファイルと仲介デーモン25のプロファイルとを取得して、仲介デーモン25用の設定ファイル32と、デーモン14用の設定ファイル33とを生成する。仲介デーモン25は仲介デーモン25用の設定ファイル32を参照し、デーモン14を起動する。デーモン14は、デーモン14用の設定ファイル33を参照し、デーモン14用の設定ファイル33に従って動作する。
Further, the
起動されたあと、仲介コンポーネント24はJava(登録商標)層側からメッセージを受信し、Java(登録商標)層側へメッセージを送信する。また、仲介コンポーネント24はNative層側からメッセージを仲介デーモン25経由で受信し、Native層側へメッセージを仲介デーモン25経由で送信する。
After being activated, the
仲介デーモン25はNative層側のデーモン14からメッセージを受信し、Java(登録商標)層側へメッセージを仲介コンポーネント24経由で送信する。また、仲介デーモン25はJava(登録商標)層側からメッセージを仲介コンポーネント24経由で受信し、Native層側のデーモン14へメッセージを送信する。
The
(デーモン14の登録時の処理)
図4はデーモンの登録時の処理を示した簡略図である。ユーザはデーモン14を登録する場合、登録データ31のインストールを行う。登録データ31はデーモン14のプログラム41とXMLで記述された設定情報42のセットである。なお、登録データ31の内容は一例である。例えば登録データ31は、デーモン14のプログラム41とXMLで記述された設定情報42以外にも予め定義されている情報が含まれていたり、暗号化や独自フォーマット化されていたりする場合も考えられる。
(Process when registering daemon 14)
FIG. 4 is a simplified diagram showing processing at the time of daemon registration. When the user registers the
図5はXMLで記述された設定情報の一例を示す構成図である。図5の設定情報は仲介デーモン25のプロファイルを作成する為の情報部分51とデーモン14のプロファイルを作成する為の情報部分52とを有する構成である。情報部分51には、仲介デーモン25がデーモン14を起動する為の情報(例えばファイルパス,起動プログラム名,起動オプション等)が記述されている。情報部分52には、デーモン14が動作する為の情報(例えばデーモン14用の設定ファイル33のパス,ファイル名,設定内容等)が記述されている。
FIG. 5 is a configuration diagram showing an example of setting information described in XML. The setting information in FIG. 5 has a configuration including an
登録データ31がインストールされると、デーモン14用の仲介コンポーネント24が生成される。httpサービスコンポーネント21は、登録データ31をデーモン14のプログラムとXMLで記述された設定情報とに分解する。httpサービスコンポーネント21は、デーモン14のプログラムを所定の場所に配置する。また、httpサービスコンポーネント21は、XMLで記述された設定情報の内容を解析し、デーモン14のプロファイルと仲介デーモン25のプロファイルとを作成してデータ管理コンポーネント22に登録する。httpサービスコンポーネント21は仲介デーモン25が次回起動以降に生成されるようにOSGiフレームワーク11へ登録を行う。
When the
図6はデーモンの登録時の処理を示したシーケンス図である。デーモン14を登録する場合、ユーザはステップS1に進み、登録データ31のインストールを行う。登録データ31のインストールが行われると、httpサービスコンポーネント21はステップS2に進み、取得した登録データ31をパースし、デーモン14のプログラムとXMLで記述された設定情報とに分解する。
FIG. 6 is a sequence diagram showing processing at the time of daemon registration. When registering the
ステップS3に進み、httpサービスコンポーネント21は、XMLで記述された設定情報の内容を解析し、デーモン14のプロファイルを作成してデータ管理コンポーネント22に登録する。また、ステップS4に進み、httpサービスコンポーネント21はXMLで記述された設定情報の内容を解析し、仲介デーモン25のプロファイルを作成してデータ管理コンポーネント22に登録する。
In
ステップS5に進み、httpサービスコンポーネント21はデーモン14のプログラムを予め決定している所定の場所に配置する。ステップS6に進み、httpサービスコンポーネント21は仲介コンポーネント24を生成する。ステップS7に進み、httpサービスコンポーネント21は仲介デーモン25が次回起動以降に生成されるようにOSGiフレームワーク11へ登録を行う。
(仲介デーモン24の起動時の処理)
図7は仲介デーモンの起動時の処理を示した簡略図である。OSGiフレームワーク11の起動時、仲介コンポーネント24はデータ管理コンポーネント22からデーモン14のプロファイルと仲介デーモン25のプロファイルとを取得する。仲介コンポーネント24は取得した仲介デーモン25のプロファイルから仲介デーモン25用の設定ファイル32を生成する。また、仲介コンポーネント24は取得したデーモン14のプロファイルからデーモン14用の設定ファイル33を生成する。
In step S5, the
(Processing when the
FIG. 7 is a simplified diagram showing processing at the start of the mediation daemon. When the
図5の設定情報の場合、仲介コンポーネント24は例えば図8に示すようなデーモン14用の設定ファイル33を生成する。図8はデーモン用の設定ファイルの一例を示す構成図である。仲介デーモン25用の設定ファイル32及びデーモン14用の設定ファイル33を生成したあと、仲介コンポーネント24は仲介デーモン25を起動する。
In the case of the setting information of FIG. 5, the
図9は、仲介デーモンの起動時の処理を示したシーケンス図である。OSGiフレームワーク11の起動時、仲介コンポーネント24はステップS11に進み、データ管理コンポーネント22から仲介デーモン25のプロファイルを取得する。また、ステップS12に進み、仲介コンポーネント24は仲介デーモン25のプロファイルから仲介デーモン25用の設定ファイル32を生成する。
FIG. 9 is a sequence diagram illustrating a process when the mediation daemon is activated. When the
ステップS13に進み、仲介コンポーネント24はデータ管理コンポーネント22からデーモン14のプロファイルを取得する。ステップS14に進み、仲介コンポーネント24はデーモン14のプロファイルからデーモン14用の設定ファイル33を生成する。ステップS15に進み、仲介コンポーネント24は仲介デーモン25を起動する。
(仲介デーモン24の起動後の初期処理)
図10は仲介デーモンの起動後の初期処理を示した簡略図である。仲介デーモン25は起動された直後に、自分が動作する設定を仲介デーモン25用の設定ファイル32から取得する。仲介デーモン25用の設定ファイル32には仲介デーモン25が起動するデーモン14に関する記載が含まれる。仲介デーモン25は仲介デーモン25用の設定ファイル32の記載に従ってデーモン14を起動する。
In
(Initial processing after start of mediation daemon 24)
FIG. 10 is a simplified diagram showing the initial processing after the activation of the mediation daemon. Immediately after being activated, the
デーモン14は、デーモン14用の設定ファイル33を参照し、デーモン14用の設定ファイル33に従って動作する。仲介デーモン25は、この後、メッセージ受付待ち状態となる。メッセージの詳細に関しては、後述する。
The
図11は、仲介デーモンの起動後の初期処理を示したシーケンス図である。仲介デーモン25は起動された直後、ステップS21に進み、自分が動作する設定を仲介デーモン25用の設定ファイル32から取得する。仲介デーモン25用の設定ファイル32には仲介デーモン25が起動するデーモン14に関する記載が含まれる。
FIG. 11 is a sequence diagram showing an initial process after the activation of the mediation daemon. Immediately after being activated, the
ステップS22に進み、仲介デーモン25は仲介デーモン25用の設定ファイル32の記載に従ってデーモン14を起動する。ステップS23に進み、デーモン14はデーモン14用の設定ファイル33を参照し、デーモン14用の設定ファイル33に従って動作する。仲介デーモン25は、この後、メッセージ受付待ち状態となる。
(仲介デーモン24の起動からデーモン14の起動までの全体処理)
図12は仲介デーモンの起動からデーモンの起動までの全体処理を示したシーケンス図である。ステップS11〜S23は図9及び図11のシーケンス図をまとめて表したものである。ここでは説明を省略する。
In step S22, the
(Overall processing from the start of the
FIG. 12 is a sequence diagram showing the entire process from the start of the mediation daemon to the start of the daemon. Steps S11 to S23 collectively represent the sequence diagrams of FIGS. The description is omitted here.
ステップS23に続いてステップS24に進み、デーモン14は自分自身を仲介デーモン25に登録する。なお、デーモン14は終了時、ステップS25に進み、仲介デーモン25に登録の解除を依頼する。
Proceeding to step S24 following step S23, the
図13はデーモンが自分自身を仲介デーモンに登録する処理を示す簡略図である。図13のデーモン14はステップS22において起動され、ステップS23においてデーモン14用の設定ファイル33を参照した後、仲介デーモン25に自分自身を登録する。
FIG. 13 is a simplified diagram illustrating a process in which the daemon registers itself with the intermediary daemon. The
デーモン14と仲介デーモン25とのメッセージ手段に関しては特に限定しない。例えばデーモン14と仲介デーモン25とのメッセージ手段とは、Unix(登録商標) Domain Socketによる通信などのプロセス間通信処理が考えられる。この場合の通信先ソケットファイル名などはconfの仕組みを利用する。
The message means between the
デーモン14の登録時、仲介デーモン25はデーモン識別IDを割り当てる。以後、そのデーモン識別IDを利用して、デーモン14はメッセージを交換する。仲介デーモン25はデーモン識別IDによりデーモン14を区別する。
When the
図14は、デーモンが仲介デーモンから自分自身の登録を解除する処理を示す簡略図である。図14のデーモン14は終了時、ステップS25に進み、仲介デーモン25に自分自身の登録の削除を依頼する。デーモン14の登録の削除時、仲介デーモン25はデーモン識別IDの割り当てを解除し、その旨をデーモン14に通知する。
(デーモン14の起動後の通信処理)
図15は、デーモンの起動後の通信処理を示した簡略図である。図15の仲介デーモン25は、デーモン14に対してI/Fを提供し、メッセージを仲介する。仲介コンポーネント24は、仲介デーモン25からメッセージを受け付ける入り口となる。また、仲介コンポーネント24はメッセージに従い、他のJava(登録商標)層とメッセージを送受信する。なお、仲介デーモン25と仲介コンポーネント24との間では、JNIによるJava(登録商標)−Native変換が行われる。
FIG. 14 is a simplified diagram illustrating a process in which a daemon cancels its own registration from an intermediary daemon. When the
(Communication processing after starting the daemon 14)
FIG. 15 is a simplified diagram showing communication processing after the daemon is started. The
図16はデーモンの起動後の通信処理を示したシーケンス図である。デーモン14からJava層へのメッセージはステップS31〜S33のように送信される。ネットワークからのデータ受信等をトリガとしてデーモン14はステップS31に進み、ネットワークから受信したメッセージ(データ)を仲介デーモン25へ送信する。
FIG. 16 is a sequence diagram showing communication processing after the daemon is started. A message from the
ステップS32に進み、仲介デーモン25はJNI呼び出しで仲介コンポーネント24にメッセージを送信する。ステップS33に進み、仲介コンポーネント24は必要に応じてOSGiフレームワーク11上の所定のコンポーネント23にメッセージを送信する。
In step S32, the
Java層からデーモン14/ネットワークへのメッセージはステップS34〜S36のように送信される。ステップS34に進み、仲介コンポーネント24はJava層にあるコンポーネント23からデーモン14宛のメッセージを受信する。
Messages from the Java layer to the
ステップS35に進み、仲介コンポーネント24はJNI呼び出しで仲介デーモン25へメッセージを送信する。ステップS36に進み、仲介デーモン25はデーモン14に対してメッセージを送信する。なお、図16のシーケンス図に示したやりとりはデーモン14の登録依頼も含めて同様な動きとなる。
(サービス層を有する画像形成装置への応用)
本願発明は例えば図17に示すような構成の画像形成装置にも応用可能である。図17はサービス層を有する画像形成装置のソフトウェア構成を示した簡略図である。印刷アプリケーション100は図2のデーモン14に対応する。サービス層110は図2のJava層に対応する。OSGiフレームワーク11はJSDK Environment120に対応する。
In step S35, the
(Application to image forming apparatus with service layer)
The present invention can also be applied to an image forming apparatus configured as shown in FIG. FIG. 17 is a simplified diagram showing a software configuration of an image forming apparatus having a service layer. The
また、httpサービス111は、図2のhttpサービスコンポーネント21に対応する。データ管理サービス112は図2のデータ管理コンポーネント22に対応する。各種アプリケーションなどの機能を持つJSDK Environment120上にあるプリントサービス,FAXサービス等のモジュール113は、図2の印刷管理コンポーネント,FAXコンポーネント等のコンポーネント23に対応する。
The
したがって、図17の画像形成装置は図2の仲介コンポーネント24及び仲介デーモン25に対応する構成を設けることで、本願発明と同様な効果を奏することができる。
Therefore, the image forming apparatus of FIG. 17 can achieve the same effect as the present invention by providing a configuration corresponding to the
本発明は、具体的に開示された実施例に限定されるものではなく、特許請求の範囲から逸脱することなく、種々の変形や変更が可能である。 The present invention is not limited to the specifically disclosed embodiments, and various modifications and changes can be made without departing from the scope of the claims.
1,2 画像形成装置
10 CVM(Compact Virtual Machine)
11 OSGi(Open Service Gateway initiative)フレームワーク
12 バンドル
13,23 コンポーネント
14 デーモン(Daemon)
21 httpサービスコンポーネント(http serviceCMP)
22 データ管理コンポーネント
24 仲介コンポーネント
25 仲介デーモン
31 登録データ
32 仲介デーモン25用の設定ファイル
33 デーモン14用の設定ファイル
41 デーモン14のプログラム
42 XMLで記述された設定情報
1, 2
11 OSGi (Open Service Gateway initiative)
21 http service component (http serviceCMP)
22
Claims (17)
前記一のプログラム言語で記述された第1プログラムが起動される前記フレームワーク上の第1層に起動される第1仲介手段と、
他のプログラム言語で記述された第2プログラムが起動される前記フレームワーク上の第2層に起動される第2仲介手段と、
前記第1層に起動された前記第1プログラムからのメッセージを受け付ける第1仲介手段と前記第2層に起動された前記第2プログラムからのメッセージを受け付ける第2仲介手段との間で通信を行う通信手段と、
前記第2層への前記第2プログラムの登録を受け付け、前記第2プログラムを前記第2層に起動する為に必要な設定情報をデータ管理手段に保存する登録受付手段と、を有し、
前記フレームワークの起動後、前記第1仲介手段は前記データ管理手段に保存されている前記設定情報に従って前記第2仲介手段を起動し、前記第2仲介手段は前記設定情報に従って前記第2プログラムを起動し、前記第2プログラムは前記設定情報に従って動作することを特徴とする情報処理装置。 An information processing apparatus to which a predetermined framework based on one programming language is applied,
First mediating means activated in a first layer on the framework in which the first program written in the one program language is activated;
Second mediating means activated in a second layer on the framework where a second program written in another programming language is activated;
Communication is performed between first mediating means for accepting a message from the first program activated in the first layer and second mediating means for accepting a message from the second program activated in the second layer. Communication means;
Registration acceptance means for accepting registration of the second program in the second layer and storing setting information necessary for starting the second program in the second layer in a data management means;
After the framework is activated, the first mediating means activates the second mediating means according to the setting information stored in the data management means, and the second mediating means executes the second program according to the setting information. An information processing apparatus that is activated and operates according to the setting information.
前記登録データを前記第2プログラムと前記設定情報とに分解し、前記設定情報を前記データ管理手段に保存し、前記第2プログラムを前記フレームワーク上の第2層に配置する手段と
を有することを特徴とする請求項1記載の情報処理装置。 The registration accepting means obtains registration data including the second program and the setting information;
Means for decomposing the registration data into the second program and the setting information, storing the setting information in the data management means, and placing the second program in a second layer on the framework. The information processing apparatus according to claim 1.
前記第1層に起動された前記第1プログラムにメッセージを送信する手段と、
前記第2層に起動された前記第2プログラムからのメッセージを、前記第2仲介手段を介して受信する手段と、
前記第2層に起動された前記第2プログラムへのメッセージを、前記第2仲介手段を介して送信する手段と、
を有することを特徴とする請求項1又は2記載の情報処理装置。 The first mediating means receives a message from the first program activated in the first layer; and
Means for sending a message to the first program activated in the first layer;
Means for receiving a message from the second program activated in the second layer via the second mediating means;
Means for transmitting a message to the second program activated in the second layer via the second mediating means;
The information processing apparatus according to claim 1, further comprising:
前記第2仲介手段は、前記第2仲介手段用の設定ファイルを参照する手段と、
前記第2仲介手段用の設定ファイルに従って前記第2プログラムを起動する手段と、
を有することを特徴とする請求項3記載の情報処理装置。 The first mediating means obtains the setting information for the second mediating means and the setting information for the second program from the data management means to obtain the setting file for the second mediating means and the second program. A means for generating a configuration file;
The second mediating means includes means for referring to a setting file for the second mediating means;
Means for starting the second program according to the setting file for the second mediating means;
The information processing apparatus according to claim 3, further comprising:
前記第2層に起動された前記第2プログラムにメッセージを送信する手段と、
前記第1層に起動された前記第1プログラムからのメッセージを、前記第1仲介手段を介して受信する手段と、
前記第1層に起動された前記第1プログラムへのメッセージを、前記第1仲介手段を介して送信する手段と、
を更に有することを特徴とする請求項4記載の情報処理装置。 The second mediating means comprises means for receiving a message from the second program activated in the second layer;
Means for sending a message to the second program activated in the second layer;
Means for receiving a message from the first program activated in the first layer via the first mediation means;
Means for transmitting a message to the first program activated in the first layer via the first mediating means;
The information processing apparatus according to claim 4, further comprising:
前記第2プログラム用の設定ファイルに従って動作する手段と
を有することを特徴とする請求項4又は5記載の情報処理装置。 The second program refers to a setting file for the second program;
6. The information processing apparatus according to claim 4, further comprising means for operating according to the setting file for the second program.
前記第2仲介手段は登録された前記第2プログラムに識別子を割り当て、前記識別子を用いて前記第2プログラムを区別することを特徴とする請求項1乃至6何れか一項記載の情報処理装置。 After the second program is activated, it registers itself in the second mediation means,
The information processing apparatus according to claim 1, wherein the second mediating unit assigns an identifier to the registered second program and distinguishes the second program using the identifier.
前記情報処理装置は、
前記一のプログラム言語で記述された第1プログラムが起動される前記フレームワーク上の第1層に起動される第1仲介手段と、
他のプログラム言語で記述された第2プログラムが起動される前記フレームワーク上の第2層に起動される第2仲介手段と、
前記第1層に起動された前記第1プログラムからのメッセージを受け付ける第1仲介手段と前記第2層に起動された前記第2プログラムからのメッセージを受け付ける第2仲介手段との間で通信を行う通信手段と、
前記第2層への前記第2プログラムの登録を受け付ける登録受付手段と、を有し、
前記登録受付手段が、前記第2層への前記第2プログラムの登録を受け付けるステップと、
前記登録受付手段が、前記第2プログラムを前記第2層に起動する為に必要な設定情報をデータ管理手段に保存するステップと、
前記フレームワークの起動後、前記第1仲介手段が前記データ管理手段に保存されている前記設定情報に従って前記第2仲介手段を起動するステップと、
前記第2仲介手段が前記設定情報に従って前記第2プログラムを起動するステップと、
前記第2プログラムが前記設定情報に従って動作するステップと
を有することを特徴とするプログラム登録起動方法。 A program registration start method executed by an information processing apparatus applying a predetermined framework based on one program language,
The information processing apparatus includes:
First mediating means activated in a first layer on the framework in which the first program written in the one program language is activated;
Second mediating means activated in a second layer on the framework where a second program written in another programming language is activated;
Communication is performed between first mediating means for accepting a message from the first program activated in the first layer and second mediating means for accepting a message from the second program activated in the second layer. Communication means;
Registration accepting means for accepting registration of the second program in the second layer,
The registration accepting unit accepting registration of the second program in the second layer;
The registration accepting means storing in the data management means setting information necessary for starting the second program in the second layer;
After the framework is activated, the first mediation means activates the second mediation means according to the setting information stored in the data management means;
The second mediating means starting the second program according to the setting information;
And a step of operating the second program according to the setting information.
前記登録データを前記第2プログラムと前記設定情報とに分解し、前記設定情報を前記データ管理手段に保存し、前記第2プログラムを前記フレームワーク上の第2層に配置するステップと
を有することを特徴とする請求項12記載のプログラム登録起動方法。 The registration receiving means obtains registration data including the second program and the setting information;
Disassembling the registration data into the second program and the setting information, storing the setting information in the data management means, and placing the second program in a second layer on the framework. The program registration starting method according to claim 12.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008231281A JP5206257B2 (en) | 2008-09-09 | 2008-09-09 | Information processing apparatus, program start method, start program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008231281A JP5206257B2 (en) | 2008-09-09 | 2008-09-09 | Information processing apparatus, program start method, start program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2010066903A true JP2010066903A (en) | 2010-03-25 |
JP5206257B2 JP5206257B2 (en) | 2013-06-12 |
Family
ID=42192453
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008231281A Expired - Fee Related JP5206257B2 (en) | 2008-09-09 | 2008-09-09 | Information processing apparatus, program start method, start program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5206257B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013178606A (en) * | 2012-02-28 | 2013-09-09 | Sumitomo Heavy Ind Ltd | Control apparatus for embedded system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004318459A (en) * | 2003-04-16 | 2004-11-11 | Alpine Electronics Inc | Life time management method for native application in virtual system and computer program |
JP2008059482A (en) * | 2006-09-01 | 2008-03-13 | Canon Inc | Information processor and processing method |
WO2008032922A1 (en) * | 2006-09-14 | 2008-03-20 | Electronics And Telecommunications Research Institute | Apparatus and method for lightweighting application through duplicated application management in osgi middleware environment of embedded terminal |
-
2008
- 2008-09-09 JP JP2008231281A patent/JP5206257B2/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004318459A (en) * | 2003-04-16 | 2004-11-11 | Alpine Electronics Inc | Life time management method for native application in virtual system and computer program |
JP2008059482A (en) * | 2006-09-01 | 2008-03-13 | Canon Inc | Information processor and processing method |
WO2008032922A1 (en) * | 2006-09-14 | 2008-03-20 | Electronics And Telecommunications Research Institute | Apparatus and method for lightweighting application through duplicated application management in osgi middleware environment of embedded terminal |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013178606A (en) * | 2012-02-28 | 2013-09-09 | Sumitomo Heavy Ind Ltd | Control apparatus for embedded system |
Also Published As
Publication number | Publication date |
---|---|
JP5206257B2 (en) | 2013-06-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8522229B2 (en) | Image forming apparatus, information processing method, and recording medium for directly update a module of the image forming apparatus without changing other modules | |
US9218224B2 (en) | Electronic apparatus, information processing method, and recording medium storing information processing program | |
JP2014149594A (en) | Information processing system and control method of the same, and program | |
JP2005204279A (en) | Communication apparatus, communication control method, communication control program and recording medium | |
US20100220352A1 (en) | Image forming apparatus, image forming system, and information processing method | |
US20090300478A1 (en) | Image forming apparatus, information processing method and program | |
US20090257085A1 (en) | Generation of a web page including menu items for web pages | |
JP7059696B2 (en) | Equipment, information processing systems, information processing methods and programs | |
JP5419637B2 (en) | Management device, method and program | |
JP2010211469A (en) | Information processor, information processing method, and program | |
US20120113467A1 (en) | Image processing apparatus, information processing system, information processing method and storage medium | |
JP5822581B2 (en) | Image forming apparatus, method thereof, and program | |
JP2009205262A (en) | Application program installation device, application program installation method, program, and recording medium | |
JP5206257B2 (en) | Information processing apparatus, program start method, start program | |
CN109597659A (en) | Image forming apparatus and its control method | |
JP2006338268A (en) | Data processor, network interface substrate and application program registering method | |
JP6066751B2 (en) | Information processing system, control method therefor, and program | |
JP5333035B2 (en) | REMOTE MANAGEMENT SYSTEM, MANAGEMENT DEVICE, DEVICE, PROGRAM UPDATE METHOD, PROGRAM, AND RECORDING MEDIUM | |
JP2009137165A (en) | Image formation device, information processing method and program | |
JP6300896B2 (en) | Image processing apparatus, control method therefor, and program | |
JP2009225140A (en) | Transmitter, receiver, control method, program and storage medium | |
JP5825302B2 (en) | REMOTE MANAGEMENT SYSTEM, MANAGEMENT DEVICE, DEVICE, PROGRAM UPDATE METHOD, PROGRAM, AND RECORDING MEDIUM | |
JP5663983B2 (en) | Image forming apparatus, connection control method, and program | |
KR20080113957A (en) | Job control apparatus and multi-function product, and operating method thereof | |
JP6288206B2 (en) | Program and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20110701 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20121016 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20121217 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20130122 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130204 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20160301 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20160301 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |