首页 \ 问答 \ 如何配置Neo4j Browser以使用自定义REST端点?(How to configure Neo4j Browser to use a custom REST endpoint?)

如何配置Neo4j Browser以使用自定义REST端点?(How to configure Neo4j Browser to use a custom REST endpoint?)

服务器正在运行使用以下行配置的自定义REST端点

org.neo4j.server.webadmin.data.uri=/db/abc

neo4j-server.properties 。 然后,REST使用/db/abc工作正常,但浏览器客户端( http://$SERVERHOST:7474/browser )停止工作并显示Disconnected from Neo4j消息Disconnected from Neo4j 。 数据包嗅探表明它仍在尝试连接到db/data 。 清除本地网页缓存并没有帮助。 有没有办法指向浏览器客户端使用自定义端点?

消息来源表明/db/data可能被硬编码到浏览器中,作为客户端“设置”的一部分(见第23行)。 假设有一种方法可以在客户端中使用:config命令重新配置这些设置,但命令栏仅在客户端已连接到服务器时可用。

有没有办法让这个工作,或者它可能是浏览器客户端中的错误?


The server is running a custom REST endpoint configured using the following line

org.neo4j.server.webadmin.data.uri=/db/abc

in neo4j-server.properties. REST is then working fine using /db/abc, but then the browser client (http://$SERVERHOST:7474/browser) stops working and displays the Disconnected from Neo4j message. Packet sniffing indicates it is still trying to connect to db/data. Clearing local web caches doesn't help. Is there a way to point the browser client to use a custom endpoint?

Sources indicate that /db/data is possibly hardcoded into the browser as part of client "Settings" (see line 23). There is supposedly a way to reconfigure these settings using the :config command in the client, but the command bar is only available when the client is already connected to the server.

Is there a way to get this to work, or is it possibly a bug in the browser client?


原文:https://stackoverflow.com/questions/30093933
更新时间:2022-02-21 20:02

最满意答案

HttpRuntime.Cache存在于应用程序域中,因此您无法从其他应用程序访问它。 如果您希望其他应用程序访问它,您需要通过wcf,web api等公开该缓存。 还要考虑使用分布式缓存。


HttpRuntime.Cache exists in the app domain, so no you can't access it from another app. You'll need to expose that cache via wcf, web api, etc if you want another app to access it. Also consider using a distributed cache.

相关问答

更多
  • 我从http://theengineroom.provoke.co.nz/archive/2007/04/27/caching-using-httpruntime-cache.aspx中找到以下详细信息 对于缓存,我研究了使用HttpContext.Current.Cache,但在阅读其他博客之后,我发现使用HttpContext进行缓存使用HttpRuntime.Cache进行实际的缓存。 直接使用HttpRuntime的优点是它始终可用,例如在控制台应用程序和单元测试中。 使用HttpRuntime.C ...
  • 存储项目的缓存位于Web API主机内的服务器上。 然后,正在您在客户端控制台应用程序中检查的缓存实例中没有任何项目是正常的 - 这些是2个完全不同的对象实例,它们位于2个不同的应用程序中。 The cache in which items are stored lives on the server inside your Web API host. It is then normal that the cache instance that you are checking inside your cl ...
  • 我在MVC框架的错误位置,我所追求的是VirtualPathProvider的Cache,我找到了我必须覆盖的方法。 对于那些面临同样问题的人。 GetCacheDependency GetFileHash I was in the wrong place of the MVC Framework, what i was after is the Cache of the VirtualPathProvider, I have found the methods which I have to overwr ...
  • 您的代码中可能存在不一致的DateTime.Today.AddHours(6)无效。 你应该使用DateTime.Now.AddHours(6) DateTime.Today是从12:00 AM开始的当天,如果你的代码在6:00 AM之后运行,显然httpruntime缓存不可用。 There is a potential inconsistent in your code that DateTime.Today.AddHours(6) that will not work. you should use ...
  • 仅供参考,我最后选择了SPCache。 它确实是一个非常不寻常的SharePoint类:有文档记录,简单易用,无需管理。 它确实提供了HttpRuntime.Cache不做的一件事:允许我创建自己的子类并使其无效而不擦除整个HttpCache。 我可以使用HttpCache中的Dictionary来实现相同的功能,但是锁定它有一些潜在的问题。 我在SPCache上反思并找到了一个可靠,线程安全的实现,这就是我的用法。 需要注意的是:SPCache似乎只是SharePoint Server,而不是Founda ...
  • 您可以在Azure Web角色中使用HttpRuntime.Cache而不会出现任何问题,因为我们也在使用它。 要记住的是,此缓存是特定于机器的,如果您运行多个实例,则每个实例都有自己的缓存数据。 You can use HttpRuntime.Cache in Azure web role without any problem as we too are using it. Thing to keep in mind is that this Cache is machine specific, in ...
  • 当你每隔两分钟说出插入的值设置为空时,这是否意味着你感兴趣的项目或缓存中的每一个项目? 我问这个问题是因为缓存只存在于应用程序运行时才存在。 如果应用程序重新启动,缓存将消失。 这将解释如果每隔2分钟都会消失的行为。 在这种情况下,您手上有一个不同的问题:为什么应用程序每2分钟重新启动一次。 如果它只是一些项目,那么它可能是一个内存问题。 缓存清理自己以响应低内存。 我相信有一种方法可以对插入的值设置优先级。 但是,如果内存不足,这应该只是一个问题。 如果这仍然不能解决您的问题,那么有一种方法可以发现项目被 ...
  • HttpRuntime.Cache存在于应用程序域中,因此您无法从其他应用程序访问它。 如果您希望其他应用程序访问它,您需要通过wcf,web api等公开该缓存。 还要考虑使用分布式缓存。 HttpRuntime.Cache exists in the app domain, so no you can't access it from another app. You'll need to expose that cache via wcf, web api, etc if you want anoth ...
  • Load Cluster Environment是什么意思? 您是否指出缓存的内容在群集的所有成员上应该相同? 如果是这种情况,可以通过两种方式完成 使用Sql server序列化缓存,让所有服务器指向同一个sql-instance 使用ASPNet状态服务器,这是一个Windows服务asp.net将通过TCP交谈。 再次,让所有webserver实例指向同一个状态服务器。 另一种方法是不使用HttpRuntime.Cache,而是实现自己的缓存提供者并使用memcached等技术。 What do yo ...
  • 缓存存储在Web服务器内存中。 您应该了解Viewstate,Cache和Session之间的区别 Cache is stored in web server memory. You should understand the differences between Viewstate, Cache and Session

相关文章

更多

最新问答

更多
  • h2元素推动其他h2和div。(h2 element pushing other h2 and div down. two divs, two headers, and they're wrapped within a parent div)
  • 创建一个功能(Create a function)
  • 我投了份简历,是电脑编程方面的学徒,面试时说要培训三个月,前面
  • PDO语句不显示获取的结果(PDOstatement not displaying fetched results)
  • Qt冻结循环的原因?(Qt freezing cause of the loop?)
  • TableView重复youtube-api结果(TableView Repeating youtube-api result)
  • 如何使用自由职业者帐户登录我的php网站?(How can I login into my php website using freelancer account? [closed])
  • SQL Server 2014版本支持的最大数据库数(Maximum number of databases supported by SQL Server 2014 editions)
  • 我如何获得DynamicJasper 3.1.2(或更高版本)的Maven仓库?(How do I get the maven repository for DynamicJasper 3.1.2 (or higher)?)
  • 以编程方式创建UITableView(Creating a UITableView Programmatically)
  • 如何打破按钮上的生命周期循环(How to break do-while loop on button)
  • C#使用EF访问MVC上的部分类的自定义属性(C# access custom attributes of a partial class on MVC with EF)
  • 如何获得facebook app的publish_stream权限?(How to get publish_stream permissions for facebook app?)
  • 如何防止调用冗余函数的postgres视图(how to prevent postgres views calling redundant functions)
  • Sql Server在欧洲获取当前日期时间(Sql Server get current date time in Europe)
  • 设置kotlin扩展名(Setting a kotlin extension)
  • 如何并排放置两个元件?(How to position two elements side by side?)
  • 如何在vim中启用python3?(How to enable python3 in vim?)
  • 在MySQL和/或多列中使用多个表用于Rails应用程序(Using multiple tables in MySQL and/or multiple columns for a Rails application)
  • 如何隐藏谷歌地图上的登录按钮?(How to hide the Sign in button from Google maps?)
  • Mysql左连接旋转90°表(Mysql Left join rotate 90° table)
  • dedecms如何安装?
  • 在哪儿学计算机最好?
  • 学php哪个的书 最好,本人菜鸟
  • 触摸时不要突出显示表格视图行(Do not highlight table view row when touched)
  • 如何覆盖错误堆栈getter(How to override Error stack getter)
  • 带有ImageMagick和许多图像的GIF动画(GIF animation with ImageMagick and many images)
  • USSD INTERFACE - > java web应用程序通信(USSD INTERFACE -> java web app communication)
  • 电脑高中毕业学习去哪里培训
  • 正则表达式验证SMTP响应(Regex to validate SMTP Responses)