jndi

Sending Text Message using JMS on glassfish server

别等时光非礼了梦想. 提交于 2019-12-10 23:55:49
问题 I am testing JMS with glassfish server so for that i want to send simple text message on glassfish server queue. I have tried with ActiveMQ and that is going fine but i unable to understand what can i put in configuration jndi.properties file and which jar is needed for glassfish server. Please give me some idea to implement this. thanks in advance 回答1: Since you're using Glassfish, the easiest way is to write simple application (EJB) that will perform the task. You have to define in GF:

Tomcat JNDI resource name aliases

半腔热情 提交于 2019-12-10 22:29:29
问题 Is it possible to create a JNDI tomcat resource with multiple names (synonyms, aliases)? Something like <Resource name="jdbc/product-ds" alias="jdbc/product-cfg-ds" type="com.mchange.v2.c3p0.ComboPooledDataSource" ... /> I need this, because there are two modules which use the same DataSource, but with different JNDI name. The simplest solution will be to sync those names, but unfortunately it's not possible at the moment. 回答1: You can do this. It took me a while to work out the correct

active directory filter with objectGUID encoded as specified in rfc2254 doesn't work

只愿长相守 提交于 2019-12-10 18:43:36
问题 I'm using java ldap to access active directory, more specifically spring ldap. a group search by objectGUID yields no results when the filter is encoded as specified in rfc2254. this is the guid in its hex representation: \49\00\f2\58\1e\93\69\4b\ba\5f\8b\86\54\e9\d8\e9 spring ldap encodes the filter like that: (&(objectClass=group)(objectGUID=\5c49\5c00\5cf2\5c58\5c1e\5c93\5c69\5c4b\5cba\5c5f\5c8b\5c86\5c54\5ce9\5cd8\5ce9)) as mentioned in rfc2254 and in microsoft technet: the character must

JNDI Add Users to Groups with ADS

限于喜欢 提交于 2019-12-10 17:53:19
问题 We have been trying to add users to groups using JNDI. Our directory server is Active Directory on Windows 2003. We were able to create users and groups just fine. However, making these users part of any group is a problem. Here is what the code looks like (inspired by this): ModificationItem mod[] = new ModificationItem[1]; mod[0] = new ModificationItem(DirContext.ADD_ATTRIBUTE, new BasicAttribute("member", "CN=User1,OU=LocationOfUser")); localcontext.modifyAttributes("CN=Group1,ou=Group,ou

ActiveMQ JNDI Lookup Issues

▼魔方 西西 提交于 2019-12-10 17:39:12
问题 Trying to get ActiveMQ with JNDI running following (http://activemq.apache.org/jndi-support.html) and i have all the required activeMQ jars in my jboss/server/node/lib folder and my jndi.properties looks like: java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory # use the following property to configure the default connector java.naming.provider.url = vm://localhost # use the following property to specify the JNDI name the connection factory # should appear as.

maven tomcat7:run configure datasource

僤鯓⒐⒋嵵緔 提交于 2019-12-10 16:10:40
问题 I have a multimodule maven project, and I want to use it with tomcat7 maven plugin and start it with: mvn tomcat7:run But I can't figure out how to configure a jndi datasource. I've tried to put in my pom.xml : <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.0</version> <configuration> <contextFile>tomcat/context.xml</contextFile> </configuration> </plugin> and in the context.xml : <?xml version="1.0" encoding="UTF-8"?> <Context>

Weblogic javax.naming.NameNotFoundException while running application

你离开我真会死。 提交于 2019-12-10 13:38:18
问题 I have created a data source name in Weblogic 10.3.6 as jdbc/appsmDS and the same name has been given in application to lookup. However when I am trying to run application, I am getting the following error javax.naming.NameNotFoundException: While trying to lookup 'jdbc/appsmDS' didn't find subcontext 'jdbc'. Resolved ''; remaining name 'jdbc/appsmDS' How can I resolve this issue? 回答1: when looking up the DS the full JNDI structure maps to java:jdbc/appsmsDS . Please use it for lookup. 回答2:

Spring Jndi Configuration, Server.xml

我怕爱的太早我们不能终老 提交于 2019-12-10 13:19:54
问题 I have a problem setting up my configuration for JNDI with Spring. I checked the other posts but could not get my problem solved. I am using Tomcat 6 as my container. From my understanding I need to set up a resource on the server. So in my server.xml file I have this: <GlobalNamingResources> <Resource auth="Container" driverClassName="org.postgresql.Driver" maxActive="100" maxIdle="5" maxWait="10000" minEvictableIdleTimeMillis="60000" name="jdbc/myTomcatPool" password="password" testOnBorrow

Why does Spring LDAP's LdapTemplate not return title, department & company attributes?

梦想与她 提交于 2019-12-10 12:59:47
问题 I'm using spring-ldap-core-2.3.1.RELEASE.jar over JDK 1.8 & Tomcat 8.0 to access AD information through LdapTemplate . The attributes such as title , department & company are not being returned by the ldapTemplate.search(..,.,..) method. I'm using the following lines of code to search :- LdapQuery ldapQuery = LdapQueryBuilder.query() .where("objectclass").is("user") .and("objectcategory").is("person") .and("cn").like(strWildcardText+"*"); ldapTemplate.search(ldapQuery, new

Differences between javax.jms.ConnectionFactory and javax.jms.XAConnectionFactory

Deadly 提交于 2019-12-10 11:04:44
问题 I'm entering the world of JTA, due to need of distributed transactions, and I'm uncertain about the differences between javax.jms.ConnectionFactory and javax.jms.XAConnectionFactory or more accurately how can it be that javax.jms.ConnectionFactory performed what I expected only javax.jms.XAConnectionFactory can do for me. The details: I'm using Atomikos essentials as my transaction manager and my app is running on Apache Tomcat 6. I'm running a small POC with a dummy app where I have my JMS