You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@celix.apache.org by "tonychen0924 (via GitHub)" <gi...@apache.org> on 2023/11/15 03:33:18 UTC
[I] Shell command support as consumerbundle (celix)
tonychen0924 opened a new issue, #687:
URL: https://github.com/apache/celix/issues/687
My project is C++ , Now I want to create a bundle as consumer to give interface to control bundle . For example , it has a interface to do "install bundle" function . But I can not find a suitable demo . Before , I only to do service provider and consumer are all C++ .
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@celix.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Shell command support as consumerbundle (celix)
Posted by "PengZheng (via GitHub)" <gi...@apache.org>.
PengZheng commented on issue #687:
URL: https://github.com/apache/celix/issues/687#issuecomment-1811768377
I found the issue description incomprehensible.
You may try to translate it into your native language using AI tools like deepl.com to double-check that.
I suggest describe your issue in native language first and use AI tools to translate it into English before posing it.
Or if you happen to speak Chinese (I made the guess from your ID), you can raise an issue in Chinese: https://github.com/PengZheng/Celix_CN
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@celix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Shell command support as consumerbundle (celix)
Posted by "tonychen0924 (via GitHub)" <gi...@apache.org>.
tonychen0924 commented on issue #687:
URL: https://github.com/apache/celix/issues/687#issuecomment-1811896614
What you said is very difficult for me, "celix/examples/celix - examples/readme_cxx_examples/SRC/MyShellCommandProviderBundleActivator. Cc" such as the file, The executeCommand inside I was hoping to implement specific operations on the bundle, but it doesn't. Then you can in the class MyShellCommandProviderBundleActivator "write executeCommand (" install", "XXX.zip"...) "I don't know what the other two parameters are. If you can provide such an example here, I can write the server side and the consumer side to achieve my functions
To summarize, to mention "MyShellCommandProviderBundleActivator. Cc"
1. I want the executeCommand I call to have an interface that implements the actual operations of the bundle, not just a printf simulation
2. The interface can be tested when the container is started
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@celix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Shell command support as consumerbundle (celix)
Posted by "PengZheng (via GitHub)" <gi...@apache.org>.
PengZheng closed issue #687: Shell command support as consumerbundle
URL: https://github.com/apache/celix/issues/687
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@celix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Shell command support as consumerbundle (celix)
Posted by "PengZheng (via GitHub)" <gi...@apache.org>.
PengZheng commented on issue #687:
URL: https://github.com/apache/celix/issues/687#issuecomment-1811840669
`Celix::http_admin` serves as a server, and `Celix::shell_wui` exposes the ability of bundle management via WEB, which I believe you already have tried in #592.
Now you can install/uninstall/start/stop bundle using browser (remotely of course).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@celix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Shell command support as consumerbundle (celix)
Posted by "tonychen0924 (via GitHub)" <gi...@apache.org>.
tonychen0924 commented on issue #687:
URL: https://github.com/apache/celix/issues/687#issuecomment-1811828516
Thank you for your advice. I'm sorry for the inconvenience caused by my native language being Chinese
In Celix's existing example, after starting the container, bundles can be operated on the terminal through commands such as "lb" and "install". Now I need to expose an interface in the C++ project as a server, and the client sends instructions to remotely operate on the bundle, that is, remotely complete the "install bundle" operation.
However, before I used celix, I used the same language C++ to complete the service side and the consumer side (see "celix/examples/celix-examples/services_example_cxx/src/SimpleConsumer) Bundleactivater.cc "). In the current project of Celix, I have not seen an example of C++ as a server, so I would like to ask if there is a similar case that can be used as a reference to achieve my needs? In addition, although the official website describes that C can be used as a server and C++ can be used as a consumer, it is only a description
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@celix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Shell command support as consumerbundle (celix)
Posted by "PengZheng (via GitHub)" <gi...@apache.org>.
PengZheng commented on issue #687:
URL: https://github.com/apache/celix/issues/687#issuecomment-1811849983
If you are C++ fans, I would recommend https://github.com/CppMicroServices/CppMicroServices or https://github.com/volt-software/Ichor.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@celix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Shell command support as consumerbundle (celix)
Posted by "PengZheng (via GitHub)" <gi...@apache.org>.
PengZheng commented on issue #687:
URL: https://github.com/apache/celix/issues/687#issuecomment-1811911758
I will wait if others can understand your question.
Or you could describe it in Chinese here: https://github.com/PengZheng/Celix_CN
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@celix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Shell command support as consumerbundle (celix)
Posted by "tonychen0924 (via GitHub)" <gi...@apache.org>.
tonychen0924 commented on issue #687:
URL: https://github.com/apache/celix/issues/687#issuecomment-1811855638
The example you mentioned I have tried before, it can be used. However, my current requirement is to create a component in my project that controls the bundle as a service consumer and invokes the interface in the bundle on the server side to achieve Bundle management. The http example is essentially still entering terminal instructions on the web page, which is not what I need to lock. What I want is:
provider bundle-> call function(std::string commandLine, std:string bundleName) -> consumer bunde
std::string commandLine = "install";
std:string bundleName = "path/to/xx.zip"
At present, I only find some scattered implementation parts written in C language, and I feel more difficult to use C++ to connect with him, because I only see the same language C or C++ to realize the server side and consumer side examples
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@celix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Shell command support as consumerbundle (celix)
Posted by "PengZheng (via GitHub)" <gi...@apache.org>.
PengZheng commented on issue #687:
URL: https://github.com/apache/celix/issues/687#issuecomment-1811862789
> provider bundle-> call function(std::string commandLine, std:string bundleName) -> consumer bunde
What service does the provider bundle provide? What service does the consumer bundle? What does the service do?
It seems to me that the provider call a function implement by the consumer.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@celix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org