在 Java v3 Bloomberg API 中启动 bbcomm
当我使用 Java Bloomber V3 API 时,它通常可以工作。但是,有时,尤其是重新启动后,bbcomm.exe 不会在后台运行。我可以通过运行 blp.exe 手动启动它,但我想知道是否有办法通过 API 来执行此操作?
When I use the Java Bloomber V3 API it usually works. However, sometimes, especially after a reboot, bbcomm.exe is not running in the background. I can start it manually by running blp.exe, but I wondered if there was a way of doing this via the API?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
与服务台交谈后,发现在 64 位 Windows 上,在 64 位 JVM 下运行的 bbcomm 不会自动启动。这在 32 位 Java 下不会发生 - 在 32 位 bbcomm 下自动运行。
所以我的解决方案要么等待彭博社解决问题(现在我明白了),要么检查这个具体案例。
检查具体情况:
os.arch
)java.vm.name
)Runtime.exec()
运行bbcomm.exe
我还没有测试过上面的内容。它可能与 Bloomberg 在 64 位虚拟机上遇到的问题完全相同。
After talking to the help desk, it turns out that on 64 bit Windows, running under a 64bit JVM bbcomm is not automatically started. This does not happen under 32bit Java - under 32 bit bbcomm automatically runs.
So my solutions are either to wait for the problem to be fixed by Bloomberg (now I understand it) or to check this specific case.
To check the specific case:
os.arch
)java.vm.name
)bbcomm.exe
is not running. Try to runbbcomm.exe
usingRuntime.exec()
I haven't tested the above yet. It may have exactly the same issues as Bloomberg have with 64bit VMs.
在使用帮助帮助一段时间后,似乎当您使用 Excel API 或运行 API 演示时,bbcomm 就会启动。但从 Java API 调用时它不会自动启动。启动它的可能方法是:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
中添加一个名为bbcomm
的字符串值code> 的值为C:\blp\API\bbcomm.exe
- 但这会打开一个保持可见的命令窗口,因此并不是一个真正的选项(如果关闭该窗口,它会终止 bbcomm 进程)START /MIN C:\blp\API\bbcomm.exe
并将注册表中的条目替换为该条目(未经测试),以静默方式调用 bbcommShellUtils.java
After spending some time with Help Help, it seems that bbcomm gets started either when you use the Excel API or run the API demo. But it does not get started automatically when called from the Java API. Possible ways to start it are:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
add a String value calledbbcomm
with valueC:\blp\API\bbcomm.exe
- but that opens a command window which remains visible, so not really an option (and if you close that window it terminates the bbcomm process)START /MIN C:\blp\API\bbcomm.exe
and replace the entry in the registry with that (not tested) to call bbcomm silentlyShellUtils.java
如果有人需要帮助从代码隐藏控制台窗口检查/启动 bbcomm.exe 进程,此代码段是用 C# 编写的;我希望你能轻松地将它翻译成Java。
In case someone needs help checking/starting bbcomm.exe process from the code hiding console window, this snippet is written in C#; I hope you can easily translate it to Java.
bbcomm.exe 由 V3 API 自动启动。
bbcomm.exe is automatically started by the V3 API.