当前我正在阅读文档http://camel.apache.org/ldap.html
并尝试为LDAP配置SSL,我没有找到bean的方式或位置 ldapserver指的是bean customSocketFactory。 任何建议或提示都非常欢迎!
$( document ).ready ->
App.myauction = App.cable.subscriptions.create({
channel: 'MyauctionChannel'
id: $('#auctionID').attr('data-id')
},
connected: ->
console.log "Connected"
# Called when the subscription is ready for use on the server
disconnected: ->
# Called when the subscription has been terminated by the server
speak: (message) ->
@perform 'speak', message: message
received: (data) ->
console.log(data)
# Called when there's incoming data on the websocket for this channel
)
App.myauctionuser = App.cable.subscriptions.create({
channel: 'MyauctionChannel',
id: $('#auctionID').attr('data-uuid-code')
},
connected: ->
console.log "user connected"
# Called when the subscription is ready for use on the server
disconnected: ->
# Called when the subscription has been terminated by the server
speak: (message) ->
@perform 'speak', message: message
received: (data) ->
# console.log ("user channel ")
# console.log(data)
)
https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd“>
<?xml version="1.0" encoding="UTF-8"?>
答案 0 :(得分:1)
正是您发布的配置中的这一行创建了链接
<prop key="java.naming.ldap.factory.socket" value="zotix.co.util.CustomSocketFactory"/>
我猜想通常会创建zotix.co.util.CustomSocketFactory
的实例。但是因为在Spring上下文中已经有一个,所以它使用了那个。因此,两个bean之间不需要显式链接。
我只是在猜测,但是您可以通过(停用)customSocketFactory
bean来进行测试。如果这在标准(非SSL)和SSL工厂之间切换,则看起来像这样。