CN101296204B - System and method for sharing digital household electronic service resource - Google Patents

System and method for sharing digital household electronic service resource Download PDF

Info

Publication number
CN101296204B
CN101296204B CN2007101018869A CN200710101886A CN101296204B CN 101296204 B CN101296204 B CN 101296204B CN 2007101018869 A CN2007101018869 A CN 2007101018869A CN 200710101886 A CN200710101886 A CN 200710101886A CN 101296204 B CN101296204 B CN 101296204B
Authority
CN
China
Prior art keywords
resource
electronic service
java
platform
java electronic
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.)
Active
Application number
CN2007101018869A
Other languages
Chinese (zh)
Other versions
CN101296204A (en
Inventor
黄永顺
沈钰翔
涂嘉寿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial Technology Research Institute ITRI
Original Assignee
Industrial Technology Research Institute ITRI
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Industrial Technology Research Institute ITRI filed Critical Industrial Technology Research Institute ITRI
Priority to CN2007101018869A priority Critical patent/CN101296204B/en
Publication of CN101296204A publication Critical patent/CN101296204A/en
Application granted granted Critical
Publication of CN101296204B publication Critical patent/CN101296204B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a system and a method for sharing digital home electronic service resources. In the invention, two different Java electronic service platforms are constructed on a same Java virtual machine, wherein, one Java electronic service platform provides a bandwidth service channel (such as an open service gateway platform), while the other Java electronic service platform provides a broadcasting service channel (such as a multimedia home platform). In addition, a bridging class module is established in a base class loader with inheritance relationship between the two Java electronic service platforms. The two Java electronic service platforms can set the resource reference to the bridging class module to share the resources.

Description

Share the system and method for digital household electronic service resource
Technical field
The present invention relates to a kind of system and method for shared resource, be applied to digital home's electronic service, to share the system and method for digital household electronic service resource.
Background technology
Flourish along with the trend of digital home and internet, various household network communication agreements and intermediary's platform also occur thereupon, and the integration of heterogeneous network becomes a major challenge in the development digital home again.Wherein be positioned at top box of digital machine (Set top box) and be connected (the Application Service Provider of application system ISP outside in-home network and the family with home gateway device (Home Gateway), ASP) hub site of network and service has become the key technology that develops home network technologies at present.
Because the strong point of home gateway device is that in conjunction with broadband network so that the network equipment of broadband service with the control household internal to be provided, the strong point of top box of digital machine then is the home audio-visual service is provided, and has human-computer interaction interface.Therefore, providing the full gateway device that has the service of propagation and broadband service concurrently in future is one of present important development.
Wherein, aspect family's gateway, by OSGi (the Open Services Gateway Initiative) open service gateway platform (hereinafter to be referred as the OSGi platform) that association proposed is an open-standards, its basic framework is a Java container (Java Container), and the component models on the OSGi platform then is called Bundle.The OSGi platform has OSGi service registry memory bank (Service Registry) mechanism, can come shared resource by OSGi service registry memory bank between the component models.
In addition, aspect top box of digital machine, Europe rule DVB (Digital Video Broadcasting) MHP (the Multimedia Home Platform that tissue proposed, hereinafter to be referred as the MHP platform) then be the standard of at present common middleware, its basic framework also is a Java container, and the component models on the MHP platform then is called Xlet.With the OSGi platform class seemingly, the MHP platform also has registration memory bank (IxcRegistry) mechanism, between the component models of MHP platform can also via the registration memory bank come shared resource.
As from the foregoing, if the service of open service gateway platform and MHP can be integrated, can provide comprehensive service.Fig. 1 illustrates the schematic diagram into the tree of the system of resource-sharing between existing integrated open service platform and MHP.Please refer to Fig. 1, the inheritance among the figure between the solid arrow representation node, this framework is integrated into single equipment with OSGi platform and MHP platform, and goes up execution at same Java Virtual Machine device (Virtual Machine).Wherein, when the Java Virtual Machine device is carried out, start-up loading device (Bootstrap loader) 101 and system's classification loader (System class loader) 103 can be loaded, load with the shared classification that the Java Virtual Machine device is provided.Then, produce applicating category loader (Application class loader) 105.
When the OSGi of OSGi middleware 107 application element thereof model (OSGi application bundle) 109 desires are used the resource of MHP middleware 113, then command information is sent to TCP/IP (the Transmission Control Protocol and InternetProtocol) classification (shown in dotted arrow A) that system's classification loader 103 is loaded, transmits to utilize the tcp/ip communication agreement.Then, system's classification loader 103 is sent to OSGi agent's component models (OSGi proxy Xlet) 115 of MHP middleware 113 with command information with the tcp/ip communication protocol mode, finishes command information (shown in dotted arrow B) to use MHP middleware 113.After treating that OSGi agent's component models 115 uses MHP middleware 113 to finish command information, again with the information of execution result with the tcp/ip communication protocol mode, be sent to system's classification loader 103 (shown in dotted arrow C) by OSGi agent's component models 115.At last, system's classification loader 103 is equally with the tcp/ip communication protocol mode, and the response message with execution result is returned to OSGi application element thereof model 109 (shown in dotted arrow D) again.In like manner, when the resource of MHP application element thereof model 117 desires use OSGi middleware 107, its steps flow chart is to above-mentioned similar, so do not give unnecessary details at this.
In sum, though OSGi platform and MHP platform are carried out on same Java Virtual Machine device, still must utilize the tcp/ip communication agreement can carry out resource-sharing.Therefore, how directly between family's gateway and top box of digital machine, to carry out then an important ring of resource-sharing for developing at present.
Summary of the invention
The invention provides a kind of system of shared digital household electronic service resource, with two different Java electronic service platforms be built in same Java Virtual Machine device (Java Virtual Machine, JVM) on so that both sides can shared resource.
The invention provides a kind of method of shared digital household electronic service resource, make that two different Java electronic service platforms can be indirectly or directly use the other side's Java electronic service resource.
The present invention proposes a kind of system of shared digital household electronic service resource, and this system comprises Java Virtual Machine device, Java electronic service (e-service) platform, the 2nd Java electronic service platform and bridge joint classification (Bridge class) module.Wherein, a Java electronic service platform and the 2nd Java electronic service platform are built on the same Java machine, and a Java electronic service platform is in order to a broadband service channel and a Java electronic service resource to be provided.The 2nd Java electronic service platform then is in order to broadcast service channel and the 2nd Java electronic service resource to be provided.In addition, the bridge joint class Modules is based upon and a Java electronic service platform and the 2nd Java electronic service platform between have on the classification path of parent class loader of inheritance.And a Java electronic service platform and the 2nd Java electronic service platform are set to the bridge joint class Modules with the resource reference of a Java electronic service resource and the resource reference of the 2nd Java electronic service resource respectively, to carry out resource-sharing between a Java electronic service platform and the 2nd Java electronic service platform.Wherein this bridge joint class Modules comprises: an open service gateway locator, in order to deposit the resource reference of described open service gateway resource; And a Java electronic service locator, in order to deposit the resource reference of described Java electronic service resource.
From another viewpoint, this system comprises Java Virtual Machine device, open service gateway (OpenService Gateway) platform, Java electronic service platform and bridge joint class Modules.Wherein, open service gateway platform and Java electronic service platform are built on the same Java Virtual Machine device, and open service gateway platform is in order to broadband service passage and open service gateway resource to be provided.Java electronic service platform then is in order to Java to be provided electronic service resource.In addition, the bridge joint class Modules then is to be based upon on the classification path of the parent class loader that has inheritance between open gateway service platform and the Java electronic service platform.And open service gateway platform and Java electronic service platform are set to the bridge joint class Modules with the resource reference of open service gateway resource and the resource reference of Java electronic service resource respectively, to carry out resource-sharing between open service gateway platform and Java electronic service platform.Wherein this bridge joint class Modules comprises: a MHP locator, in order to deposit the resource reference of described MHP resource; And a Java electronic service locator, in order to deposit the resource reference of described Java electronic service resource.
On the other hand, this system comprise Java Virtual Machine device, MHP (Multimedia HomePlatform, MHP), Java electronic service platform and bridge joint class Modules.Wherein, MHP and Java electronic service platform are built on the same Java Virtual Machine device, and MHP is in order to broadcast service channel and MHP resource to be provided.Java electronic service platform then is in order to Java to be provided electronic service resource.In addition, the bridge joint class Modules is based upon on the classification path of the parent class loader that has inheritance between MHP and the Java electronic service platform.And MHP and Java electronic service platform are set to the bridge joint class Modules with the resource reference of MHP resource and the resource reference of Java electronic service resource respectively, to carry out resource-sharing between MHP and Java electronic service platform.Wherein this bridge joint class Modules comprises: one the one Java electronic service locator, in order to deposit the resource reference of a described Java electronic service resource; And one the 2nd Java electronic service locator, in order to deposit the resource reference of described the 2nd Java electronic service resource.
The present invention proposes a kind of method of shared digital household electronic service resource, is applicable to that a Java electronic service platform uses the Java electronic service resource of the 2nd Java electronic service platform.Wherein, a Java electronic service platform and the 2nd Java electronic service platform are built on the same Java Virtual Machine device.At first, the bridge joint class Modules is based upon and a Java electronic service platform and the 2nd Java electronic service platform between have the classification path of the parent class loader of inheritance.Then, a Java electronic service platform just can be by the bridge joint class Modules to use the Java electronic service resource.
From another viewpoint, the present invention is applicable to that Java electronic service platform uses the open service gateway resource of open service gateway platform, and wherein, open service gateway platform and Java electronic service platform are built on the same Java Virtual Machine device.At first, the bridge joint class Modules is based upon and open service gateway platform and Java electronic service platform between have on the classification path of parent class loader of inheritance.Then, Java electronic service platform passes through the bridge joint class Modules to use the open service gateway resource.
On the other hand, the present invention also is applicable to that Java electronic service platform uses the MHP resource of MHP, and wherein, MHP and Java electronic service platform are built on the same Java Virtual Machine device.At first, the bridge joint class Modules is based upon and MHP and Java electronic service platform between have on the classification path of parent class loader of inheritance.Then, Java electronic service platform passes through the bridge joint class Modules to use the MHP resource.
The present invention is because of being built in two different Java electronic service platforms on the same Java Virtual Machine device, and the bridge joint class Modules is based upon and two Java electronic service platforms between have in the parent class loader of inheritance, therefore, just can carry out resource-sharing by the bridge joint class Modules.
For above-mentioned feature and advantage of the present invention can be become apparent, preferred embodiment cited below particularly, and conjunction with figs. are described in detail below.
Description of drawings
Fig. 1 illustrates the schematic diagram into the tree of the system of resource-sharing between existing integrated open service platform and MHP.
Fig. 2 is the schematic diagram according to the system architecture of the shared digital household electronic service resource of first embodiment of the invention.
Fig. 3 is the schematic diagram according to the tree of the system of the shared digital household electronic service resource of first embodiment of the invention.
Fig. 4 is the schematic diagram according to the tree of the system of the shared digital household electronic service resource of second embodiment of the invention.
Fig. 5 A-Fig. 5 D is the schematic diagram according to the shared digital household electronic service resource flow process of second embodiment of the invention.
Fig. 6 is the schematic diagram according to an application process flow process of the shared digital household electronic service resource of third embodiment of the invention.
Fig. 7 is the schematic diagram according to the Another Application method flow of the shared digital household electronic service resource of third embodiment of the invention.
Fig. 8 A and Fig. 8 B are the schematic diagrames according to the another application process flow process of the shared digital household electronic service resource of third embodiment of the invention.
The reference numeral explanation
101,301,401: the start-up loading device
103,303,403: system's classification loader
105,305: the applicating category loader
107,307,405:OSGi middleware
109,309,409,539,633,733,833:OSGi application element thereof model
111:MHP agent's component models
113,313,411,561,641,741,841:MHP middleware
115:OSGi agent's component models
117,317,415,563,647,747,845:MHP application element thereof model
210,510,610,710,810:Java virtual machine
220: the one Java electronic service platforms
Component models is provided at 221: the first
223: the first application element thereof models
225: the one Java electronic service resources
230: the two Java electronic service platforms
Component models is provided at 231: the second
233: the second application element thereof models
235: the two Java electronic service resources
240: the bridge joint class Modules
311,407,537,635,735:OSGi provides component models
315,413,565,645,745:MHP provides component models
417,560,640,740,840:MHP component models
520,620,720,820:Java chained library
521,621:OSGi locator
523,623:MHP locator
530,630,730:OSGi platform
531:UPnP substrate drives program
533,631,731,831:OSGi registers memory bank
535: the component models content
540,550:UPnP digital household appliances
567,643,743,843:MHP registers memory bank
721:OSGi service broker people
723:MHP service broker people
821:OSGi command queue
823:OSGi response queue
825:MHP command queue
829:MHP response queue
Embodiment
In order to make content of the present invention more clear, below the example that can implement according to this really as the present invention especially exemplified by embodiment.
First embodiment
Fig. 2 is the schematic diagram according to the system architecture of the shared digital household electronic service resource of first embodiment of the invention.Please refer to Fig. 2, this system comprises Java Virtual Machine device 210, a Java electronic service platform 220, the 2nd Java electronic service platform 230 and bridge joint classification (Bridge class) module 240.Wherein, a Java electronic service platform 220 and the 2nd Java electronic service platform 230 are built on the Java Virtual Machine device 210, and utilize bridge joint class Modules 240 to make and can carry out resource-sharing between the both sides.
The one Java electronic service platform 220 is to be used to provide the broadband service passage, and more provides first (Export) component models 221, the first application element thereof model 223 and a Java electronic service resource 225 (for example spendable classification or object) are provided.The 2nd Java electronic service platform 230 then is to be used to provide the broadcast service passage, and more provides second component models 231, the second application element thereof model 233 and the 2nd Java electronic service resource 235 are provided.
In addition, the one Java electronic service platform 220 and the 2nd Java electronic service platform 230 are all Java middleware (Middleware), and the Java middleware is originally as a kind of Java container (JavaContainer), therefore, the action that just can on the Java middleware, dynamically transmit and receive.
Bridge joint class Modules 240 is in order to carry out resource-sharing between a Java electronic service platform 220 and the 2nd Java electronic service platform 230, and bridge joint class Modules 240 is based upon and a Java electronic service platform 220 and the 2nd Java electronic service platform 230 between have on the classification path (Class path) of parent class loader (Parent class loader) of inheritance, make win Java electronic service platform 220 and the 2nd Java electronic service platform 230 can use bridge joint class Modules 240 jointly.
Wherein, a Java electronic service platform 220 and the 2nd Java electronic service platform 230 are set to bridge joint class Modules 240 with the resource reference of a Java electronic service resource 225 and the resource reference of the 2nd Java electronic service resource 235 respectively.
In other words, the spendable classification of an above-mentioned Java electronic service platform 220 and the component models of the 2nd Java electronic service platform 230 (promptly 221,223,231 and 233) comprises the classification path classification pointed of the classification loader at place own, and all have classification pointed under the classification path of parent class loader of inheritance.Therefore, just bridge joint class Modules 240 is seated in and a Java electronic service platform 220 and the 2nd Java electronic service platform 230 between have on the classification path of parent class loader of inheritance.
And bridge joint class Modules 240 more comprises a Java electronic service locator (not illustrating) and the 2nd Java electronic service locator (Locater) (not illustrating).Wherein, a Java electronic service locator (not illustrating) is in order to deposit the resource reference of a Java electronic service resource 225.The 2nd Java electronic service locator (not illustrating) then is in order to deposit the resource reference of the 2nd Java electronic service resource 235.In other words, promptly be the classification path point one Java chained library (Library) (not illustrating) of bridge joint class Modules 240, and comprise a Java electronic service locator (not illustrating) and the 2nd Java electronic service locator (not illustrating) in this Java chained library.
If the second application element thereof model, 233 desires on the 2nd Java electronic service platform 230 are used a Java electronic service resource 225 of a Java electronic service platform 220, its flow process is as described below.At first, by first resource reference that provides component models 221 in a Java electronic service platform 220, to obtain a Java electronic service resource 225, and the resource reference of a Java electronic service resource 225 is set to a Java electronic service locator (not illustrating) (shown in dotted arrow A) in the bridge joint class Modules 240.Then, when the second application element thereof model, 233 desires are used a Java electronic service resource 225, then the resource reference (shown in dotted arrow B) of a Java electronic service resource 225 that is provided according to a Java electronic service locator (not illustrating) of bridge joint class Modules 240 is used a corresponding Java electronic service resource 225 (shown in dotted arrow C).In addition, when the second application element thereof model, 233 desires on the 2nd Java electronic service platform 230 are used the 2nd Java electronic service resource 235, then utilize the second application element thereof model 233 directly to use and get final product (shown in dotted arrow D).
In like manner, if when the first application element thereof model, 223 desires on the Java electronic service platform 220 are used the 2nd Java electronic service resource 235 of the 2nd Java electronic service platform 230, its flow process (shown in dotted arrow E-G) is similar to above-mentioned (shown in dotted arrow A-D), so do not give unnecessary details at this.And when the first application element thereof model, 223 desires on the Java electronic service platform 220 are used a Java electronic service resource 225, then utilize the first application element thereof model 223 directly to use and get final product (shown in dotted arrow H).
What deserves to be mentioned is, the one Java electronic service platform 220 for example is the OSGi platform, then the OSGi platform can carry out resource-sharing with the arbitrary platform of framework on Java Virtual Machine device 210, and for example OSGi platform and the 2nd Java electronic service platform 230 carry out resource-sharing.And the 2nd Java electronic service platform 230 for example is the MHP platform, and the MHP platform also can carry out resource-sharing with the arbitrary platform of framework on Java Virtual Machine device 210, and for example a MHP platform and a Java electronic service platform 220 carry out resource-sharing.
It will be further appreciated that, the application process that the one Java electronic service platform 220 and the 2nd Java electronic service platform 230 utilize bridge joint class Modules 240 to carry out resource-sharing, for example, utilize bridge joint class Modules 240 as passing the pipeline of receiving object, in addition, more can utilize bridge joint class Modules 240 as service broker people (Proxy), also or as the application processes such as pipeline of the breath of pass collecting mail.And the above-mentioned application process of carrying will illustrate respectively in the 3rd embodiment.
In order clearly to express above-mentioned notion, below again for an embodiment explanation.Fig. 3 is the schematic diagram according to the tree of the system of the shared digital household electronic service resource of first embodiment of the invention.Please be simultaneously with reference to Fig. 2 and Fig. 3, the inheritance among Fig. 3 between the solid arrow representation node, the Java electronic service platform 220 in the present embodiment for example is the OSGi platform, the 2nd 230 on Java electronic service platform for example is the MHP platform.And OSGi platform and MHP platform are all the Java middleware, and OSGi middleware 307 provides OSGi application element thereof model (OSGi application bundle) 309 and OSGi that component models (OSGi export bundle) 311 is provided.In addition, 313 of MHP middlewares provide MHP that component models (MHP export Xlet) 315 and MHP application element thereof model (MHPapplication Xlet) 317 are provided.
Wherein, OSGi middleware 307 is built in the same Java Virtual Machine device with MHP middleware 313, and all is positioned on the classification path of applicating category loader 305.And when the Java Virtual Machine device is carried out, can earlier start-up loading device (Bootstrap loader) 301 and system's classification loader (Systemclass loader) 303 be loaded, load with the shared classification that the Java Virtual Machine device is provided.Then, produce applicating category loader (Application class loader) 305, to search whether classification path in the applicating category loader 305 has the classification of appointment and with its loading.In other words, it is to be carried out by classification loader (for example start-up loading device 301, system's classification loader 303 and applicating category loader 305) that the classification of Java loads, when need use classification, just in the classification loader, search the classification whether its classification path has appointment.
Since bridge joint class Modules 240 be arranged in and OSGi platform and MHP platform between have inheritance the parent class loader, therefore, bridge joint class Modules 240 just can be placed on the classification path of start-up loading device 301, system's classification loader 303 or applicating category loader 305, with the usefulness as both sides' resource-sharing.
In the present embodiment, bridge joint class Modules 240 is arranged on the classification path of applicating category loader 305, provide the resource reference of the component models 311 open service gateway resource (hereinafter to be referred as the OSGi resource) that OSGi platform desire is shared to be set in the bridge joint class Modules 240 by OSGi middleware 307 or OSGi, or the resource reference that provides component models 315 that MHP platform desire is shared MHP resource (hereinafter to be referred as the MHP resource) by MHP middleware 313 or MHP is set in the bridge joint class Modules 240.Then, OSGi application element thereof model 309 just can be obtained the resource reference of OSGi resource and the resource reference of MHP resource respectively with MHP application element thereof model 317 to bridge joint class Modules 240, directly to use OSGi resource and MHP resource.
Please continue with reference to Fig. 3, when the MHP of MHP platform application element thereof model 317 desires were used the OSGi resource, flow process was as follows.At first, the OSGi resource reference that provides component models 311 that OSGi platform desire is shared the OSGi resource is set in the bridge joint class Modules 240 pointed of the classification path of applicating category loader 305 (shown in dotted arrow A).Then, applicating category loader 305 offers MHP application element thereof model 317 (shown in dotted arrow B) with the resource reference of OSGi resource, just and MHP application element thereof model 317 can be directly to OSGi middleware 307 use OSGi resources (shown in dotted arrow C).In like manner, when the OSGi of OSGi platform application element thereof model 309 desires were used the MHP resource, its flow process (shown in dotted arrow D-F) was similar to above-mentioned (shown in dotted arrow A-C), so do not give unnecessary details at this.
In order more clearly to express above-mentioned notion, following examples all describe with the resource-sharing between OSGi platform and MHP platform.Right this field has knows the knowledgeable usually, can apply the present invention on all kinds
Second embodiment
Fig. 4 is the schematic diagram according to the tree of the system of the shared digital household electronic service resource of second embodiment of the invention.Please refer to Fig. 4, OSGi middleware 405 provides OSGi that component models 407, OSGi application element thereof model 409 and MHP component models (being MHP bundle) 417 is provided.Wherein, MHP component models 417 is that the MHP platform is encapsulated as component models (being bundle) on the OSGi platform, makes the OSGi platform by MHP component models 417 deactivation MHP platforms.And MHP middleware 411 provides MHP that component models 413 and MHP application element thereof model 415 are provided.
When the Java Virtual Machine device is carried out, just start-up loading device 401 and system's classification loader 403 can be loaded, and present embodiment will be linked up the bridge joint class Modules (not illustrating) of OSGi platform and MHP platform and will be seated in the classification path of system's classification loader 403.When system's classification loader 403 loads, just OSGi middleware 405, OSGi are provided component models 407, OSGi application element thereof model 409 and MHP component models 417 to load.
Below promptly the arrange in pairs or groups tree of system of shared digital household electronic service resource of the foregoing description describes the method flow of sharing digital household electronic service resource in detail.Fig. 5 A-Fig. 5 D is the schematic diagram according to the shared digital household electronic service resource flow process of second embodiment of the invention.At first, please refer to Fig. 4 and Fig. 5 A, this system is for being built on the Java Virtual Machine device 510, and bridge joint class Modules (not illustrating) is seated under the classification path of system's classification loader 403, and the classification path of this bridge joint class Modules is sensing one Java chained library 520, and this Java chained library 520 comprises OSGi locator 521 and MHP locator 523.
Please continue A with reference to Fig. 5, when Java Virtual Machine device 510 is performed, then, Java chained library 520 is loaded according to the classification path of bridge joint class Modules, and start OSGi platform 530, so that plug and play substrate drives program (UPnP base driver) 531 is opened.At this moment, UPnP digital household appliances 540 and 550 on the home network will be detected automatically, and the service object with UPnP digital household appliances 540 and 550 sets up and is registered in the OSGi service registry memory bank (Service Registry is hereinafter to be referred as OSGi registration memory bank) 533 by UPnP substrate drives program 531.Wherein UPnP digital household appliances 540 and 550 for example is digital refrigerator, digital air conditioner etc.
Then, please refer to Fig. 5 B, after OSGi platform 530 started, 560 of MHP component models (being MHP bundle) that are encapsulated as on the OSGi platform by the MHP platform also were activated.And MHP component models 560 comprises MHP middleware 561, to carry out MHP component models 560 in OSGi platform 530.
Then, after OSGi platform 530 and 561 startups of MHP middleware, please refer to Fig. 5 C, then OSGi platform 530 just starts OSGi provides component models 537.When OSGi provides component models 537 to be performed, OSGi platform 530 just can provide the object reference of 537 1 component models contents of component models (Bundle Context) 535 to OSGi, and OSGi provides component models 537 just can find in the OSGi platform 530 in OSGi registration memory bank 533 all available resources and use it by component models content 535.
Please continue C with reference to Fig. 5, when MHP middleware 561 desires are controlled UPnP digital household appliances 540 and 550 by home network, at first, OSGi provides component models 537 to obtain the object reference (shown in dotted arrow A) of component models content 535 from OSGi platform 530, and the object reference of component models content 535 is set to OSGi locator 521 (shown in dotted arrow B).Then, 563 object references (shown in dotted arrow C) of obtaining component models content 535 from OSGi locator 521 of MHP application element thereof model.Then, MHP application element thereof model 563 promptly uses component models content 535 (shown in dotted arrow D) according to the object reference of obtaining.At last, in OSGi registration memory bank 533, obtain the object (shown in dotted arrow E) of UPnP digital household appliances 540 and 550 by component models content 535, just can use the object of UPnP digital household appliances 540 and 550, with the UPnP digital household appliances 540 and 550 in the control home network.
From another viewpoint, the UPnP digital household appliances 540 that is connected with OSGi platform 530 and 550 information can be presented on the MHP middleware 561.Please refer to Fig. 5 D, after MHP middleware 561 starts, to directly start MHP component models 565 will be provided, and MHP provides component models 565 can produce a service, for example alert notification service (Alarm notify service), and be set to MHP registration memory bank (being IxcRegistry) 567 (shown in dotted arrow F).
Then, MHP provides component models 565 will produce MHP registration memory bank agent (IxcRegistryProxy) (not illustrating), and MHP registration memory bank agent has the function of using MHP registration memory bank 567.And MHP is registered the procuratorial object reference of memory bank be set to MHP locator 523 (shown in dotted arrow G).
Then, OSGi application element thereof model 539 can be obtained the MHP registration procuratorial object reference of memory bank (shown in dotted arrow H) from MHP locator 523.At last, 539 on OSGi application element thereof model uses corresponding MHP resource (shown in dotted arrow I) according to the procuratorial object reference of MHP registration memory bank from MHP registration memory bank 567.
For instance, with Digital Television (being MHP middleware 561), provide an alert notification service routine on Digital Television, this service routine can be presented at warning information on the interface of Digital Television.UPnP digital household appliances 540 that can will be connected with OSGi platform 530 and 550 information are presented on the Digital Television (being MHP middleware 561), allow the user can remove to receive the event notice of UPnP digital household appliances 540 and 550 by the interface of Digital Television, when not closing, this warning information can be shown to Digital Television as refrigerator doors.
In sum, when one starts OSGi platform 530 and MHP component models 560, just the object reference that can separately desire be used is set to Java chained library 520, when treating that desire is used, MHP application element thereof model 563 just can be obtained the resource reference of OSGi resource and the resource reference of MHP resource from Java chained library 520 respectively with OSGi application element thereof model 539, to use corresponding OSGi resource and MHP resource.
The 3rd embodiment
The application process that utilizes the bridge joint class Modules to carry out resource-sharing for example, can utilize the bridge joint class Modules as passing the pipeline of receiving object.In addition, more can utilize the bridge joint class Modules, also or as the application processes such as pipeline of the breath of pass collecting mail as service broker people.Illustrate respectively with regard to above-mentioned application process with next.
Fig. 6 is the schematic diagram according to an application process flow process of the shared digital household electronic service resource of third embodiment of the invention.Please refer to Fig. 6, the system architecture of the system architecture of present embodiment and second embodiment is same or similar, so do not give unnecessary details at this.Present embodiment is as passing the pipeline of receiving object with bridge joint class Modules (not illustrating), utilize component models on OSGi platform 630 and the MHP middleware 641 (promptly 633,635,645 and 647) to transmit or obtain object reference, to use the resource on the different platform.The flow process of its resource-sharing is as described below.
OSGi provides component models 635 to obtain object reference (shown in dotted arrow A) from OSGi registration memory bank 631, and directly is sent to (shown in dotted arrow B) in the OSGi locator 621.Then, just the object reference (shown in dotted arrow C) that MHP application element thereof model 647 can provide according to OSGi locator 621 directly uses OSGi registration memory bank 631 (shown in dotted arrow D).
In like manner, MHP provides component models 645 to obtain object reference from MHP registration memory bank 643, and directly is sent in the MHP locator 623.Then, just the object reference that OSGi application element thereof model 633 can provide according to MHP locator 623 directly uses MHP registration memory bank 643 (shown in dotted arrow EH).
Fig. 7 is the schematic diagram according to the Another Application method flow of the shared digital household electronic service resource of third embodiment of the invention.Please refer to Fig. 7, the system architecture of the system architecture of present embodiment and second embodiment is same or similar, so do not give unnecessary details at this.Difference is, present embodiment utilizes bridge joint class Modules (not illustrating) as service broker people, therefore, comprise OSGi service broker people 721 and MHP service broker people 723 in the Java chained library 720 pointed of the classification path of bridge joint class Modules (not illustrating).The flow process of its resource-sharing is as described below.
OSGi provides component models 735 to obtain object reference from OSGi registration memory bank 731, and deposits to OSGi service broker people 721.Then, just MHP application element thereof model 747 can go to use OSGi registration memory bank 731 (as dotted arrow A by OSGi service broker people 721 -Shown in the D).In like manner, MHP provides component models 745 to obtain object reference from MHP registration memory bank 743, and deposits to MHP service broker people 723.Then, just OSGi application element thereof model 733 can remove to use MHP registration memory bank 743 (shown in dotted arrow E-H) by MHP service broker people 723.
Fig. 8 A and Fig. 8 B are the schematic diagrames according to the another application process flow process of the shared digital household electronic service resource of third embodiment of the invention.Please refer to Fig. 8 A and Fig. 8 B, the system architecture of the system architecture of present embodiment and second embodiment is same or similar, so do not give unnecessary details at this.Difference is, present embodiment utilizes bridge joint class Modules (not illustrating) to pass the breath of collecting mail, therefore, comprise OSGi command queue 821, OSGi response queue 823, MHP command queue 825 and MHP response queue 827 in the Java chained library 820 pointed of the classification path of bridge joint class Modules (not illustrating).The flow process of its resource-sharing is as described below.
Please refer to Fig. 8 A, MHP application element thereof model 845 will use the command information of OSGi registration memory bank 831 to be set to OSGi command queue 821 (shown in dotted arrow A).Then, OSGi application element thereof model 833 is obtained command information (shown in dotted arrow B) from OSGi command queue 821, and uses OSGi registration memory bank 831 (shown in dotted arrow C) according to command information.Afterwards, OSGi application element thereof model 833 is deposited response message (promptly using the execution result of OSGi registration memory bank 831) to OSGi response queue 823 (shown in dotted arrow D) again.Then, just MHP application element thereof model 845 can be obtained response message (shown in dotted arrow E) to OSGi response queue 823.
In like manner, please refer to Fig. 8 B, OSGi application element thereof model 833 will use the command information of MHP registration memory bank 843 to be set to MHP command queue 825.Then, MHP application element thereof model 845 is obtained command information from MHP command queue 825, and uses MHP registration memory bank 843 according to command information.Afterwards, MHP application element thereof model 845 is deposited response message (promptly using the execution result of MHP registration memory bank 843) to MHP response queue 827 again.Then, just OSGi application element thereof model 833 can be obtained response message (shown in dotted arrow F-I) to MHP response queue 827.
In sum, the system and method for shared digital household electronic service resource proposed by the invention has following advantage at least:
1. be integrated on the same Java Virtual Machine device, not needing additionally to increase computer hardware can shared resource, realization easily between two different Java electronic service platforms.
Since Java electronic service platform this as the Java container, but therefore dynamic load and dynamically carrying out carries out the efficient height, system resource requirements is low.
Though the present invention discloses as above with preferred embodiment; right its is not in order to limit the present invention; have in the technical field under any and know the knowledgeable usually; without departing from the spirit and scope of the present invention; when can doing a little change and retouching, so protection scope of the present invention is as the criterion when looking the claim person of defining of the present invention.

Claims (25)

1. the system of a shared digital household electronic service resource comprises:
One Java Virtual Machine device;
One open service gateway platform is built on this Java Virtual Machine device, in order to a broadband service passage and most open service gateway resources to be provided;
One Java electronic service platform is built on this Java Virtual Machine device, in order to most Java electronic service resources to be provided; And
One bridge joint class Modules, be based upon and this open service gateway platform and this Java electronic service platform between have on the classification path of a parent class loader of inheritance, and this bridge joint class Modules is that this open service gateway platform and this Java electronic service platform are shared, and in order to carry out resource-sharing between this open service gateway platform and this Java electronic service platform, wherein this bridge joint class Modules comprises:
One open service gateway locator is in order to deposit the resource reference of described open service gateway resource; And
One Java electronic service locator is in order to deposit the resource reference of described Java electronic service resource;
Wherein, this open service gateway platform and this Java electronic service platform are set the resource reference of the resource reference of described open service gateway resource and described Java electronic service resource respectively to this bridge joint class Modules.
2. the system of shared digital household electronic service resource as claimed in claim 1, wherein, this open service gateway platform comprises:
One first provides component models, obtains the resource reference of described open service gateway resource in order to this open service gateway platform certainly, and the resource reference of described open service gateway resource is set to this open service gateway locator; And
One first application element thereof model, obtain the wherein arbitrary resource reference of described Java electronic service resource in order to this Java electronic service locator certainly, with according to the wherein arbitrary resource reference of described Java electronic service resource that obtains, use corresponding described Java electronic service resource wherein arbitrary.
3. the system of shared digital household electronic service resource as claimed in claim 1, wherein, this Java electronic service platform comprises:
One second provides component models, obtains the resource reference of described Java electronic service resource in order to this Java electronic service platform certainly, and the resource reference of described Java electronic service resource is set to this Java electronic service locator; And
One second application element thereof model, obtain the wherein arbitrary resource reference of described open service gateway resource in order to this open service gateway locator certainly, with according to the wherein arbitrary resource reference of described open service gateway resource that obtains, use corresponding described open service gateway resource wherein arbitrary.
4. the system of a shared digital household electronic service resource comprises:
One Java Virtual Machine device;
One MHP is built on this Java Virtual Machine device, in order to a broadcast service channel and most MHP resources to be provided;
One Java electronic service platform is built on this Java Virtual Machine device, in order to most Java electronic service resources to be provided; And
One bridge joint class Modules, be based upon and this MHP and this Java electronic service platform between have on the classification path of a parent class loader of inheritance, and this bridge joint class Modules is that this MHP and this Java electronic service platform are shared, and in order to carry out resource-sharing between this MHP and this Java electronic service platform, wherein this bridge joint class Modules comprises:
One MHP locator is in order to deposit the resource reference of described MHP resource; And
One Java electronic service locator is in order to deposit the resource reference of described Java electronic service resource;
Wherein, this MHP and this Java electronic service platform are set the resource reference of the resource reference of described MHP resource and described Java electronic service resource respectively to this bridge joint class Modules.
5. the system of shared digital household electronic service resource as claimed in claim 4, wherein this MHP comprises:
One first provides component models, obtains the resource reference of described MHP resource in order to this MHP certainly, and the resource reference of described MHP resource is set to this MHP locator; And
One first application element thereof model, obtain the wherein arbitrary resource reference of described Java electronic service resource in order to this Java electronic service locator certainly, with according to the wherein arbitrary resource reference of described Java electronic service resource that obtains, use corresponding described Java electronic service resource wherein arbitrary.
6. the system of shared digital household electronic service resource as claimed in claim 4, wherein, this Java electronic service platform comprises:
One second provides component models, obtains the resource reference of described Java electronic service resource in order to this Java electronic service platform certainly, and the resource reference of described Java electronic service resource is set to this Java electronic service locator; And
One second application element thereof model, obtain the wherein arbitrary resource reference of described MHP resource in order to this MHP locator certainly, with according to the wherein arbitrary resource reference of described MHP resource that obtains, use corresponding described MHP resource wherein arbitrary.
7. the system of a shared digital household electronic service resource comprises:
One Java Virtual Machine device;
One the one Java electronic service platform is built on this Java machine, in order to a broadband service passage and most Java electronic service resources to be provided;
One the 2nd Java electronic service platform is built on this Java machine, in order to a broadcast service passage and most the 2nd Java electronic service resources to be provided; And
One bridge joint class Modules, be based upon and a Java electronic service platform and the 2nd Java electronic service platform between have on the classification path of a parent class loader of inheritance, and this bridge joint class Modules is that a Java electronic service platform and the 2nd Java electronic service platform are shared, and in order to carry out resource-sharing between a Java electronic service platform and the 2nd Java electronic service platform, wherein this bridge joint class Modules comprises:
One the one Java electronic service locator is in order to deposit the resource reference of a described Java electronic service resource; And
One the 2nd Java electronic service locator is in order to deposit the resource reference of described the 2nd Java electronic service resource;
Wherein, a Java electronic service platform and the 2nd Java electronic service platform are set the resource reference of the resource reference of a described Java electronic service resource and described the 2nd Java electronic service resource respectively to this bridge joint class Modules.
8. the system of shared digital household electronic service resource as claimed in claim 7, wherein, a Java electronic service platform comprises:
One first provides component models, obtain the resource reference of a described Java electronic service resource in order to a Java electronic service platform certainly, and the resource reference of a described Java electronic service resource is set to a Java electronic service Platform Position Unit; And
One first application element thereof model, obtain the wherein arbitrary resource reference of described the 2nd Java electronic service resource in order to the 2nd Java electronic service locator certainly, with according to the wherein arbitrary resource reference of described the 2nd Java electronic service resource that obtains, use corresponding described the 2nd Java electronic service resource wherein arbitrary.
9. the system of shared digital household electronic service resource as claimed in claim 7, wherein, the 2nd Java electronic service platform comprises:
One second provides component models, obtains the resource reference of described the 2nd Java electronic service resource in order to the 2nd Java electronic service platform certainly, and the resource reference of described the 2nd Java electronic service resource is set to the 2nd Java electronic service locator; And
One second application element thereof model, obtain the wherein arbitrary resource reference of a described Java electronic service resource in order to a Java electronic service locator certainly, with according to the wherein arbitrary resource reference of a described Java electronic service resource that obtains, use a corresponding described Java electronic service resource wherein arbitrary.
10. the system of shared digital household electronic service resource as claimed in claim 7, wherein, a Java electronic service platform comprises open service gateway platform.
11. the system of shared digital household electronic service resource as claimed in claim 7, wherein, the 2nd Java electronic service platform comprises MHP.
12. the method for a shared digital household electronic service resource, be applicable to that a Java electronic service platform uses most open service gateway resources of an open service gateway platform, wherein, this open service gateway platform and this Java electronic service platform are built on the same Java Virtual Machine device, and the method for this shared digital household electronic service resource comprises the following steps:
Set up a bridge joint class Modules and this open service gateway platform and this Java electronic service platform between have on the classification path of a parent class loader of inheritance, make this open service gateway platform and this Java electronic service platform can share this bridge joint class Modules; And
This Java electronic service platform by this bridge joint class Modules to use described open service gateway resource wherein arbitrary.
13. the method for shared digital household electronic service resource as claimed in claim 12 wherein, uses the wherein arbitrary step of described open service gateway resource to comprise:
This Java electronic service platform is obtained the wherein arbitrary object reference of described open service gateway resource by this bridge joint class Modules; And
According to the wherein arbitrary object reference of described open service gateway resource, it is wherein arbitrary that this open service gateway platform is used corresponding described open service gateway resource certainly.
14. the method for shared digital household electronic service resource as claimed in claim 12 wherein, uses the wherein arbitrary step of described open service gateway resource to comprise:
Utilize this bridge joint class Modules as a service broker people, with the object of setting described open service gateway resource to this service broker people; And
By this service broker people, use the wherein arbitrary object of described open service gateway resource.
15. the method for shared digital household electronic service resource as claimed in claim 12 wherein, uses the wherein arbitrary step of described open service gateway resource to comprise:
This Java electronic service platform uses a command information of this open service gateway platform to be set to this bridge joint class Modules desire;
This open service gateway platform to this bridge joint class Modules is obtained this command information, and uses described open service gateway resource wherein arbitrary according to this command information;
This open service gateway platform transmits a response message to this bridge joint class Modules; And
This Java electronic service platform is obtained this response message from this bridge joint class Modules.
16. the method for the shared digital household electronic service resource of a digital home network service, be applicable to that a Java electronic service platform uses most MHP resources of a MHP, wherein, this MHP and this Java electronic service platform are built on the same Java Virtual Machine device, and the method for this shared digital household electronic service resource comprises the following steps:
Set up a bridge joint class Modules and this MHP and this Java electronic service platform between have on the classification path of a parent class loader of inheritance, make this MHP and this Java electronic service platform can share this bridge joint class Modules; And
This Java electronic service platform by this bridge joint class Modules to use described MHP resource wherein arbitrary.
17. the method for shared digital household electronic service resource as claimed in claim 16 wherein, uses the wherein arbitrary step of described MHP resource to comprise:
This Java electronic service platform is obtained the wherein arbitrary object reference of described MHP resource by this bridge joint class Modules; And
According to the wherein arbitrary object reference of described MHP resource, it is wherein arbitrary that this MHP uses corresponding described MHP resource certainly.
18. the method for shared digital household electronic service resource as claimed in claim 16 wherein, uses the wherein arbitrary step of described MHP resource to comprise:
Utilize this bridge joint class Modules as a service broker people, with the object of setting described MHP resource to this service broker people; And
By this service broker people, use the wherein arbitrary object of described MHP resource.
19. the method for shared digital household electronic service resource as claimed in claim 16 wherein, uses the wherein arbitrary step of described MHP resource to comprise:
This Java electronic service platform uses a command information of this MHP to be set to this bridge joint class Modules desire;
This MHP to this bridge joint class Modules is obtained this command information, and uses described MHP resource wherein arbitrary according to this command information;
This MHP transmits a response message to this bridge joint class Modules; And
This Java electronic service platform is obtained this response message from this bridge joint class Modules.
20. the method for a shared digital household electronic service resource, be applicable to that one the one Java electronic service platform uses most Java electronic service resources of one the 2nd Java electronic service platform, wherein, the one Java electronic service platform and the 2nd Java electronic service platform are carried out on same Java Virtual Machine device, and the method for this shared digital household electronic service resource comprises the following steps:
Set up a bridge joint class Modules and a Java electronic service platform and the 2nd Java electronic service platform between have on the classification path of a parent class loader of inheritance, make a Java electronic service platform and the 2nd Java electronic service platform can share this bridge joint class Modules; And
The one Java electronic service platform by this bridge joint class Modules to use described Java electronic service resource wherein arbitrary.
21. the method for shared digital household electronic service resource as claimed in claim 20 wherein, uses the wherein arbitrary step of described Java electronic service resource to comprise:
The one Java electronic service platform is obtained the wherein arbitrary object reference of described Java electronic service resource by this bridge joint class Modules; And
According to the wherein arbitrary object reference of described Java electronic service resource, it is wherein arbitrary that the 2nd Java electronic service platform uses corresponding described Java electronic service resource certainly.
22. the method for shared digital household electronic service resource as claimed in claim 20 wherein, uses the wherein arbitrary step of described Java electronic service resource to comprise:
Utilize this bridge joint class Modules as a service broker people, with the object of setting described Java electronic service resource to this service broker people; And
By this service broker people, use the wherein arbitrary object of described Java electronic service resource.
23. the method for shared digital household electronic service resource as claimed in claim 22 wherein, uses the wherein arbitrary step of described Java electronic service resource to comprise:
The one Java electronic service platform uses a command information of the 2nd Java electronic service platform to be set to this bridge joint class Modules desire;
The 2nd Java electronic service platform to this bridge joint class Modules is obtained this command information, and uses described Java electronic service resource wherein arbitrary according to this command information;
The 2nd Java electronic service platform transmits a response message to this bridge joint class Modules; And
The one Java electronic service platform is obtained this response message from this bridge joint class Modules.
24. the method for shared digital household electronic service resource as claimed in claim 22, wherein, a Java electronic service platform provides the broadband service passage, and the 2nd Java electronic service platform provides the broadcast service passage.
25. the method for shared digital household electronic service resource as claimed in claim 22, wherein, a Java electronic service platform provides the broadcast service passage, and the 2nd Java electronic service platform provides the broadband service passage.
CN2007101018869A 2007-04-25 2007-04-25 System and method for sharing digital household electronic service resource Active CN101296204B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101018869A CN101296204B (en) 2007-04-25 2007-04-25 System and method for sharing digital household electronic service resource

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101018869A CN101296204B (en) 2007-04-25 2007-04-25 System and method for sharing digital household electronic service resource

Publications (2)

Publication Number Publication Date
CN101296204A CN101296204A (en) 2008-10-29
CN101296204B true CN101296204B (en) 2010-11-03

Family

ID=40066220

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101018869A Active CN101296204B (en) 2007-04-25 2007-04-25 System and method for sharing digital household electronic service resource

Country Status (1)

Country Link
CN (1) CN101296204B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102868747B (en) * 2012-09-19 2016-07-06 深圳中兴网信科技有限公司 Resource information management method and resource information management device
CN107291561B (en) * 2016-03-31 2020-11-24 阿里巴巴集团控股有限公司 Graph synthesis method, information interaction method and system
CN110224902B (en) * 2019-05-31 2021-03-16 烽火通信科技股份有限公司 Container-based virtual home gateway implementation method and system
CN110750307B (en) * 2019-09-04 2023-04-11 北京旷视科技有限公司 Micro-service architecture construction method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1459957A (en) * 2002-05-18 2003-12-03 联想(北京)有限公司 Digital home network system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1459957A (en) * 2002-05-18 2003-12-03 联想(北京)有限公司 Digital home network system

Also Published As

Publication number Publication date
CN101296204A (en) 2008-10-29

Similar Documents

Publication Publication Date Title
US8863221B2 (en) Method and system for integrating content and services among multiple networks
JP4721600B2 (en) Numerous home network software architectures to bridge
US7171475B2 (en) Peer networking host framework and hosting API
CN1452390A (en) Method for generating user interface of controlling non-HAVI apparatus on HAVI apparatus
US8966005B2 (en) Information processing system and method providing a composed service
Perumal et al. Middleware for heterogeneous subsystems interoperability in intelligent buildings
US20060089981A1 (en) Supporting device information of a combo device in a universal plug and play network
US20010025322A1 (en) Internet protocol interfacing apparatus for controlling non IP-based network device with IP-based network device and method therefor
US20060190571A1 (en) Service framework for home network
KR100640091B1 (en) Communication method in a home network, network and device for implementing such a method
CN101296204B (en) System and method for sharing digital household electronic service resource
EP1542404B1 (en) Sharing services on a network
KR101862840B1 (en) Remotely sited execution of a software application within a network
US11438191B2 (en) Interconnection box for user devices
De Lucena et al. A home automation proposal built on the Ginga digital TV middleware and the OSGi framework
US20080229324A1 (en) System and method for sharing e-service resource of digital home
Baler et al. Multimedia middleware for the future home
Taherkordi et al. A component-based approach for service distribution in sensor networks
KR100632399B1 (en) UPnP-IEEE1394 device bridge and its method
Seigneur HOUSe-KEEPER, a vendor-independent architecture for easy management of smart homes
González Alonso et al. Interoperability Systems
Maia et al. Using the iDTV for Managing Services in the Ubiquitous Computing Environment
Fuente et al. Interoperability systems
Park et al. Home multimedia integration system using UPnP and Service Convergence Gateway engine
Bürklin et al. Interoperability between CE middleware standards

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant