Sun JNDI

連線能力 > 容器 > Sun JNDI

這是一個 jndi.properties 檔案的範例

java.naming.factory.initial = com.sun.jndi.fscontext.RefFSContextFactory

這是一個 .bindind 檔案的範例

對於 ActiveMQ Classic 4.x,它是

Archive/ClassName=org.apache.activemq.command.ActiveMQQueue Archive/FactoryName=org.apache.activemq.jndi.JNDIReferenceFactory Archive/RefAddr/0/Type=physicalName Archive/RefAddr/0/Content=Archive Archive/RefAddr/0/Encoding=String

GateIn/ClassName=org.apache.activemq.command.ActiveMQQueue GateIn/FactoryName=org.apache.activemq.jndi.JNDIReferenceFactory GateIn/RefAddr/0/Type=physicalName GateIn/RefAddr/0/Content=GateIn GateIn/RefAddr/0/Encoding=String

ProviderIn/ClassName=org.apache.activemq.command.ActiveMQQueue ProviderIn/FactoryName=org.apache.activemq.jndi.JNDIReferenceFactory ProviderIn/RefAddr/0/Type=physicalName ProviderIn/RefAddr/0/Content=ProviderIn ProviderIn/RefAddr/0/Encoding=String

ProviderOut/ClassName=org.apache.activemq.command.ActiveMQQueue ProviderOut/FactoryName=org.apache.activemq.jndi.JNDIReferenceFactory ProviderOut/RefAddr/0/Type=physicalName ProviderOut/RefAddr/0/Content=ProviderOut ProviderOut/RefAddr/0/Encoding=String

QueueConnectionFactory/ClassName=org.apache.activemq.ActiveMQConnectionFactory QueueConnectionFactory/FactoryName=org.apache.activemq.jndi.JNDIReferenceFactory QueueConnectionFactory/RefAddr/0/Type=brokerURL QueueConnectionFactory/RefAddr/0/Content=vm\://127.0.0.1 QueueConnectionFactory/RefAddr/0/Encoding=String QueueConnectionFactory/RefAddr/1/Type=brokerName QueueConnectionFactory/RefAddr/1/Content=ID\:zdv-1189-1098562819250-0\:0 QueueConnectionFactory/RefAddr/1/Encoding=String QueueConnectionFactory/RefAddr/2/Type=password QueueConnectionFactory/RefAddr/2/Content=defaultPassword QueueConnectionFactory/RefAddr/2/Encoding=String QueueConnectionFactory/RefAddr/3/Type=userName QueueConnectionFactory/RefAddr/3/Content=defaultUser QueueConnectionFactory/RefAddr/3/Encoding=String

對於 ActiveMQ Classic 3.x,它是

Archive/ClassName=org.activemq.message.ActiveMQQueue Archive/FactoryName=org.activemq.jndi.JNDIReferenceFactory Archive/RefAddr/0/Type=physicalName Archive/RefAddr/0/Content=Archive Archive/RefAddr/0/Encoding=String

GateIn/ClassName=org.activemq.message.ActiveMQQueue GateIn/FactoryName=org.activemq.jndi.JNDIReferenceFactory GateIn/RefAddr/0/Type=physicalName GateIn/RefAddr/0/Content=GateIn GateIn/RefAddr/0/Encoding=String

ProviderIn/ClassName=org.activemq.message.ActiveMQQueue ProviderIn/FactoryName=org.activemq.jndi.JNDIReferenceFactory ProviderIn/RefAddr/0/Type=physicalName ProviderIn/RefAddr/0/Content=ProviderIn ProviderIn/RefAddr/0/Encoding=String

ProviderOut/ClassName=org.activemq.message.ActiveMQQueue ProviderOut/FactoryName=org.activemq.jndi.JNDIReferenceFactory ProviderOut/RefAddr/0/Type=physicalName ProviderOut/RefAddr/0/Content=ProviderOut ProviderOut/RefAddr/0/Encoding=String

QueueConnectionFactory/ClassName=org.activemq.ActiveMQConnectionFactory QueueConnectionFactory/FactoryName=org.activemq.jndi.JNDIReferenceFactory QueueConnectionFactory/RefAddr/0/Type=brokerURL QueueConnectionFactory/RefAddr/0/Content=vm\://127.0.0.1 QueueConnectionFactory/RefAddr/0/Encoding=String QueueConnectionFactory/RefAddr/1/Type=brokerName QueueConnectionFactory/RefAddr/1/Content=ID\:zdv-1189-1098562819250-0\:0 QueueConnectionFactory/RefAddr/1/Encoding=String QueueConnectionFactory/RefAddr/2/Type=password QueueConnectionFactory/RefAddr/2/Content=defaultPassword QueueConnectionFactory/RefAddr/2/Encoding=String QueueConnectionFactory/RefAddr/3/Type=useEmbeddedBroker QueueConnectionFactory/RefAddr/3/Content=true QueueConnectionFactory/RefAddr/3/Encoding=String QueueConnectionFactory/RefAddr/4/Type=userName QueueConnectionFactory/RefAddr/4/Content=defaultUser QueueConnectionFactory/RefAddr/4/Encoding=String QueueConnectionFactory/RefAddr/5/Type=useAsyncSend QueueConnectionFactory/RefAddr/5/Content=true QueueConnectionFactory/RefAddr/5/Encoding=String

Apache、ActiveMQ、Apache ActiveMQ、Apache 羽毛標誌和 Apache ActiveMQ 專案標誌是 The Apache Software Foundation 的商標。版權所有 © 2024,The Apache Software Foundation。根據 Apache License 2.0 授權。