Sie sind auf Seite 1von 4

UsingLDAPorLDAP/sasaJNDIStoreforBusinessWorksEMSconfiguration

Forthiseffort,IamusingEMS5.0andOpenLDAP2.1withBusinessWorks5.6andTRA5.6(currentlyin
BETAthisshouldntmatter!)
PopulateLDAPwithJNDIJavaObjects:
UsetibjmsJNDIStorefromEMS\samples\admintocopyQueueConnectionFactoryfromEMSinto
anLDAPinstance.ThisisthedefaultQCFthatshipswithEMS.Tosimplifythings,ImakemyLDAPaccept
aplainconnection(TCP)forthesakeofmakingthiscommandlineshorter
java tibjmsJNDIStore -user admin -password admin -factory
com.sun.jndi.ldap.LdapCtxFactory -url
ldap://localhost:389/o=JNDITutorial,dc=tibco,dc=com -fuser
cn=root,dc=tibco,dc=com -fpassword secret -cfactory QueueConnectionFactory

Createaqueuecalledsimple.queuewithtibemsadmin,andthenusetibjmsJNDIStoretoputitinyour
LDAPserver.
java tibjmsJNDIStore -user admin -password admin -factory
com.sun.jndi.ldap.LdapCtxFactory -url
ldap://localhost:389/o=JNDITutorial,dc=tibco,dc=com -fuser
cn=root,dc=tibco,dc=com -fpassword secret -queue simple.queue

ThenreconfigureyourLDAPtoacceptonlySSLconnections.
TheunderlyingJavaLibrariesusedforLDAPcommunicationgettheirtrustfromtheJRE,socopytheCA
CertificatethatwasusedtosigntheLDAPsServerCertificateintothe
<J RE>\ l i b\ secur i t y\ cacer t sfileusingthejavakeytool.

ConfigureDesigner:

UnlikeotherdomainusesoftheTRALDAPLibrary,BWneedstheprotocolchangedinadditiontothe
PortNumber(i.e.,ldap://host:389becomesldaps://host:636)


Addsomejava.namingJNDIproperties:
j ava. nami ng. f act or y. obj ect oftypest r i ngwithvalue
com. t i bco. t i bj ms. nami ng. Ti bj msObj ect Fact or y
j ava. nami ng. f act or y. ur l . pkgsoftypest r i ngwithvaluecom. t i bco. t i bj ms. nami ng

TestConnectionforQueueConnectionFactory:



ConfiguretheActivity:
Youwillneedtoputacn=aspartoftheDestination,inthiscasecn=simple.queue

Thereisaknowndefect:theconnectiontoEMSreusestheJNDIcredentials!Ifyoudontuse
JNDI,anonymouswilltrytoaccessEMS,andifyouhaveJNDI,theJNDIcredentialsareusedLDAPor
not.
IhaveAuthorizationdisabled,orelseitwouldntwork,butatraceflagshowthis:
2008- 07- 17 14: 29: 39. 399 [ cn=root,dc=tibco,dc=com@cmilono-wk] : Connect ed, connect i on
i d=12, t ype: queue

Das könnte Ihnen auch gefallen