JNDI 2 « Java EE « Spring Q&A





1. PropertyPlaceholderConfigurer and JNDI - get single environment reference from tomcat    forum.springsource.org

Jul 31st, 2007, 08:03 AM #1 c.petz@efkon.com View Profile View Forum Posts Private Message Junior Member Join Date Jun 2007 Posts 25 PropertyPlaceholderConfigurer and JNDI - get single environment reference from ...

2. JNDI usage in Spring    forum.springsource.org

Hai, I am new to spring framework. I have used the class is org.springframework.jdbc.datasource.DriverManagerD ataSource. we had get the Database resources using that DriverManagerDataSource class. Now I want to use the ...

3. How to set JNDI object?    forum.springsource.org

4. jndi reference problem    forum.springsource.org

jndi reference problem Hi all, trying to use the new jee:jndi-lookup functionality and am having problems. I have a very simple datasource.xml as shown below, but it wont validate (through sax) ...

5. How to provide jndi testresources?    forum.springsource.org

Hello, I use spring for configuring JUnit tests. My app depends on hibernate using JTA. Most resources can be injected via spring. But the hibernate JtaTransaction always makes a jndi-lookup for ...

6. How to configure fallback object ?    forum.springsource.org

When using the old JndiObjectFactoryBean, you could pass a defaultObject property to use when an object can't be found in JNDI. How do I go about configuring this when using the ...

7. jee:jndi-lookup issue...please help    forum.springsource.org

Hi, I am using a jndi-lookup in my spring config xml to load a properties file. This is the following code I am using. When ...

8. JNDI Lookup with Spring 2.0.6    forum.springsource.org

Nov 8th, 2007, 08:11 PM #1 sanpraka View Profile View Forum Posts Private Message Junior Member Join Date Nov 2007 Posts 2 JNDI Lookup with Spring 2.0.6 Hi , I am ...

9. FileSystemXmlApplicationContext - JNDI - JMX    forum.springsource.org

FileSystemXmlApplicationContext - JNDI - JMX Hi, I develop a web application running on Tomcat. And I would like to test my JNDI-dependent source code with JUnit without running Tomcat, i.e. I ...





10. Not binding factory to JNDI, no JNDI name configured    forum.springsource.org

Not binding factory to JNDI, no JNDI name configured I am getting this error after solving previous one: Not binding factory to JNDI, no JNDI name configured(This error message comes int ...

11. Muliple JNDI    forum.springsource.org

Hi, I am working on application that using spring jms to connect mq server. But for communication from different queue, i want different queue.For this I need different jndi name in ...

12. accessing JNDI params from xml    forum.springsource.org

accessing JNDI params from xml I have a requirement in which some configuration values will be specified as JNDI resources on the WPS6.0(Websphere Portal Server).I want to refer to the jndi ...

13. JMS with JndiTemplate in HA-JNDI environment    forum.springsource.org

JMS with JndiTemplate in HA-JNDI environment Hi there. My environment: Spring app in JBoss cluster with JMS bound in HA-JNDI. So JMS destinations are available under the same JNDI name but ...

14. JNDI Lookup in Spring Portlets    forum.springsource.org

Hi Can anybody give the code snippet for JNDI lookup. I have already created Datasource in WAS of my portal Server. Here is the following code which I have written IntialContext ...

15. Declarative JMS Destinations without JNDI?    forum.springsource.org

Declarative JMS Destinations without JNDI? I'm building a sample application to demonstrate Spring's JMS integration and MDPs. When JNDI is available I can declaratively define the queues via:

16. Spring JNDI working in POC but not in integrated application    forum.springsource.org

Mar 6th, 2008, 04:48 AM #1 dinsush View Profile View Forum Posts Private Message Junior Member Join Date Jul 2006 Posts 21 Spring JNDI working in POC but not in integrated ...





17. "Rebinding JNDI object with name" in JndiTemplate after which no response from server    forum.springsource.org

Mar 11th, 2008, 02:49 PM #1 vinupillairv View Profile View Forum Posts Private Message Junior Member Join Date Mar 2008 Posts 1 "Rebinding JNDI object with name" in JndiTemplate after which ...

18. JNDI Bind from Spring Context...    forum.springsource.org

Is there a way to bind a bean to JNDI directly from within the Spring Context XML? I would like to do it similar to how the JMX MBean stuff works, ...

19. How to use Tomcat 6 JNDI through Spring?    forum.springsource.org

Please don't create duplicate threads! JNDI is clearly explained in the tomcat reference guide. On how to register a datasource with JNDI in tomcat. It has a couple of samples in ...

20. JBoss 4.2.2 + Spring 2.5.2 JNDI lookup    forum.springsource.org

JBoss 4.2.2 + Spring 2.5.2 JNDI lookup Hi everybody, I've been surfing the web for the 'CONNECTION NOT BOUND' error and its everywhere, but without a clean solution. I've tried every ...

21. Confussed about how to proceed: JNDI vs. Others for HA    forum.springsource.org

Apr 7th, 2008, 10:17 PM #1 mbabauer View Profile View Forum Posts Private Message Member Join Date Feb 2006 Posts 89 Confussed about how to proceed: JNDI vs. Others for HA ...

22. Spring2.5 + glassfish + jndi remote + Controller    forum.springsource.org

Spring2.5 + glassfish + jndi remote + Controller I have a plain http servlet running under glassfish. It contains an EJB reference: public class TestServlet extends HttpServlet { @EJB(name="beanName") private Bean ...

23. org.springframework.jndi.TypeMismatchNamingExcepti on in Weblogic 9.1    forum.springsource.org

org.springframework.jndi.TypeMismatchNamingExcepti on in Weblogic 9.1 Hi All, I have the following ejb context xml: weblogic.jndi.WL InitialContextFactory t3://ip : port ...

24. JNDI UnsatisfiedDependencyException - What am I doing wrong?    forum.springsource.org

Apr 15th, 2008, 10:36 AM #1 spastos View Profile View Forum Posts Private Message Junior Member Join Date Feb 2008 Posts 8 JNDI UnsatisfiedDependencyException - What am I doing wrong? I've ...

25. Store custom object in JNDI    forum.springsource.org

Store custom object in JNDI Hi I was wondering if there is a way to store a custom object defined in some bean in application-context.xml, in the JNDI. The reason is ...

26. JNDI Lookup Spring 2 RAD 6 SDK 1.4 WinXP    forum.springsource.org

JNDI Lookup Spring 2 RAD 6 SDK 1.4 WinXP I have been developing a J2EE application in the IBM Rational Software Development Platform (RAD 6). I am using SDK 1.4 with ...

27. Spring JNDI    forum.springsource.org

You need to create a datasource in your code and bind it to the respective jdni-name. Sample code : jndibuilder = SimpleNamingContextBuilder .emptyActivatedContextBuilder(); Properties dataSourceConfig = new Properties(); dataSourceConfig.load(new FileReader("Database.properties")); DataSource ...

28. Spring JNDI    forum.springsource.org

I did not understand what did you mean by the runtime environment fiel. In two files there is the tag and the files are following: 1) jboss-web.xml Code: jdbc/kousik ...

29. JNDI binding issue    forum.springsource.org

JNDI binding issue Hi everyone, I'm having an issue with a not bound exception. According to the logs, I'm getting the not bound exception with the following details: The excerpt is ...

30. Reusing the applicationcontext through jndi lookup    forum.springsource.org

Reusing the applicationcontext through jndi lookup Hi All, In my project, we are using Spring 1.2.8. Right now, the application server loads/initializes the context and we are also using Hibernate with ...

31. Questions regarding multiple JVMs & JNDI    forum.springsource.org

Questions regarding multiple JVMs & JNDI Hello everyone, First I'll explain the scenario. I have an app that runs on Tomcat 6 and makes much use of Spring. There is a ...

32. JNDI with JMStemplate102    forum.springsource.org

JNDI with JMStemplate102 Hello, I have been using the JMSTemplate 102 to write messages to MQ that was configured via JNDI on Websphere. This works fine when I'm within the webapp. ...

33. Catalina, Spring DM, Equinox, and JNDI    forum.springsource.org

Catalina, Spring DM, Equinox, and JNDI Hi all, I am trying to do the following: 1. Launch Equinox via the Eclipse Servlet Bridge within Tomcat. 2. Develop a set of bundles ...

34. JBOSS JNDI and stack overflow    forum.springsource.org

As a starting point we're using: Spring 2.0.2 Hibernate 3.2.6 JBoss 4.3.GA Any assistance would be helpful... I'm trying to move our Tapestry Hibernate Spring application from weblogic to JBOSS. The ...

35. JNDI lookup with default autowire set to autodetect    forum.springsource.org

JNDI lookup with default autowire set to autodetect This is partly question and partly to help others out who might run across the same problem. I have a set of beans ...

36. ClassNotFoundExceptions with JNDI resources    forum.springsource.org

Jun 27th, 2008, 08:31 AM #1 jmcginn View Profile View Forum Posts Private Message Member Join Date May 2008 Location Pittsboro, NC Posts 31 ClassNotFoundExceptions with JNDI resources Hi all, I ...

37. jndi-lookup    forum.springsource.org

38. jee:jndi-lookup no setter for exposeAccessContext in JndiObjectFactoryBean    forum.springsource.org

jee:jndi-lookup no setter for exposeAccessContext in JndiObjectFactoryBean Hi. I'm getting the following as an error in eclipse: "No setter found for property 'exposeAccessContext' in class 'org.springframework.jndi.JndiObjectFactoryBean'" Version of Spring is 2.5.4 ...

39. Weird Error when doing a JNDI lookup for an aspect    forum.springsource.org

Weird Error when doing a JNDI lookup for an aspect In my application context I am trying to perform a JNDI lookup for an object that I would like to use ...

40. objects return from JNDI could not be converted to the required type    forum.springsource.org

objects return from JNDI could not be converted to the required type Hi, I have a simple bundle with a bean that uses spring jndiTemplate to create an instance for injection. ...

41. JNDI naming error    forum.springsource.org

Aug 28th, 2008, 02:37 PM #1 vynceo View Profile View Forum Posts Private Message Junior Member Join Date Aug 2008 Posts 2 JNDI naming error Hello, i'm working on a web ...

42. [AbstractSSB] How to bind bean factory to JNDI?    forum.springsource.org

[AbstractSSB] How to bind bean factory to JNDI? To invoke business logic wrapped in Spring's POJO in EJB, as document, the EJB bean needs to extend AbstractStatelessSessionBean and also implements the ...

43. problem of "org.springframework.jndi.JndiObjectFactoryBea n"    forum.springsource.org

problem of "org.springframework.jndi.JndiObjectFactoryBea n" hi guys, I want Spring to inject dataSource by doing following config in beans-config.xml: ...

44. Value of JNDI    forum.springsource.org

I'm trying to use stateful bean(ejb 3.0) in spring(2.5), but i'm don't know how should look value of JNDI property. I would like to add that I use wls 10. I ...

45. @Resource JNDI Lookup problems Sun GlassfishV2UR2: javax.naming.NameNotFoundException    forum.springsource.org

Oct 17th, 2008, 04:39 AM #1 Jan.Vissers@cumquat.nl View Profile View Forum Posts Private Message Junior Member Join Date Aug 2008 Posts 19 @Resource JNDI Lookup problems Sun GlassfishV2UR2: javax.naming.NameNotFoundException Hi, I'm ...

46. Using PropertyPlaceholderConfigurer to pull properties from jndi    forum.springsource.org

Using PropertyPlaceholderConfigurer to pull properties from jndi I am using the PropertyPlaceholderConfigurer to pull properties from a list of classpath locations like so: Code: classpath:Messaging.properties ...

47. OutOfMemoryError on the java heap if object not found when using jee:jndi-lookup    forum.springsource.org

OutOfMemoryError on the java heap if object not found when using jee:jndi-lookup Hi! I ran into a weird problem when deploying my Spring app to a new environment today. What went ...

48. excessive JNDI lookups on weblogic    forum.springsource.org

excessive JNDI lookups on weblogic I am trying to use JMS from spring on weblogic 10 (from the app server). I configured a security policy on the weblogic hosted JMS server. ...

49. JNDI resources and jetty-maven-plugin 6.1.12    forum.springsource.org

Hi! After upgrading from jetty-maven-plugin 6.1.11 to jetty-maven-plugin 6.1.12 I started getting BeanCreationException on our dataSource. When downgrading to 6.1.11 this work just fine. Code: Error creating bean with name 'dataSource' ...

50. JNDI lookup in Tomcat and JBoss    forum.springsource.org

On specifying a Datasource's JNDI name as 'jdbc/myDatasource', Tomcat (6) binds that as 'java:/comp/env/jdbc/myDatasource' while JBoss (5) binds as 'java:/jdbc/myDatasource'. When I try to do lookup using Spring like below- Code: ...

51. Default values for JNDI lookups?    forum.springsource.org

Default values for JNDI lookups? I might be doing my search wrong, but I couldn't find anything that told me what I'm looking for. Is there a way to have a ...

52. Using @Resouce for custom JNDI configs and jee:jndi-lookup    forum.springsource.org

Using @Resouce for custom JNDI configs and jee:jndi-lookup I have some code that retrieves the SOAP endpoint address via a JNDI search with an LDAP provider like so... ... /* sets ...

53. Mapping JNDI values to Spring beans    forum.springsource.org

Environment: Spring 2.5 with Websphere 6.0 We have configured many JNDI attributes through the websphere admin console. What is the best and suggested way to map JNDI attributes to a bean ...

54. Bind ApplicationContext to JNDI    forum.springsource.org

You can do that if your jndi implementation doesn't obey for the stored objects to be serializable, i.e. if you use jndi just as a shared registry within a single standalone ...

55. jndi problem    forum.springsource.org

Jan 19th, 2009, 11:13 PM #1 brenda.kwok View Profile View Forum Posts Private Message Junior Member Join Date May 2008 Location Hong Kong Posts 13 jndi problem Dear, I have several ...

56. Exposing Context via JNDI    forum.springsource.org

Exposing Context via JNDI This is a bump for another thread I posted in the EJB section as I wasn't getting any leads that might help and I figured more people ...

57. jee:jndi-lookup vs JndiObjectFactoryBean    forum.springsource.org

Hi I spent a while trying to get the jee:jndi-lookup definition working (Hibernate EntityManager on Tomcat) without success (it seemed like the flashy way to do things). Code: ...

58. JndiDestinationResolver and Jndi Properties issue    forum.springsource.org

JndiDestinationResolver and Jndi Properties issue The main issue is I am looking for a way to define the JndiDestinationResolver's Jndi properties, but not in the spring-config.xml in Jboss. I am trying ...

59. Help with Spring and JBoss for JNDI    forum.springsource.org

Help with Spring and JBoss for JNDI Hello All, I am porting an Application Running in Weblogic to JBoss developed with SpringFramework. I have created a JNDI in JBoss and when ...

60. Use JNDI Resource with Spring    forum.springsource.org

Use JNDI Resource with Spring Hello everyone, i am trying to get Jackrabbit working with spring over JNDI and somehow i cant create the bean. I had it working with RMI ...

61. Creating a JNDI context within a Spring application    forum.springsource.org

Hey all, I just read an old thread on this forum that discussed two options for creating a JNDI context using Spring: Use SimpleNamingContextBuilder Create a class that instantiates InitialContext and ...

62. JNDI with credential configuration does not work    forum.springsource.org

JNDI with credential configuration does not work Dear Sir, I got the error "cannot find datasource bean" when I tried start weblogic server. The datasource configuration looks like below: I used ...

63. jee jndi lookup and jboss    forum.springsource.org

Ok I am new to jboss and I am trying to get an existing spring/jpa app that was deployed on tomcat to work on jboss. I read in the spring docs ...

64. Spring IDE "Referenced bean not found" w/    forum.springsource.org

Spring IDE "Referenced bean not found" w/ Hello folks! I'm having a minor issue with Spring IDE's validation of my bean configuration file(s). I am getting a "Referenced bean not found" ...

65. Issue using Jboss JNDI with Spring    forum.springsource.org

Issue using Jboss JNDI with Spring Hi, I am trying to use Spring2.5 to connect to a datasource through JNDI. The datasource is deployed via Jboss 4.2.2. The datasource is registered ...

66. issue with jndi.xml and propertyConfigurer    forum.springsource.org

issue with jndi.xml and propertyConfigurer I am creating a common-data-services component using Hibernate jpa, dbunit, spring, and jndi data source with xbeans and building with maven. I created a ./src/test/resources/jndi.xml Code: ...

67. JNDI and JBoss 5    forum.springsource.org

Hi, I'm trying to setup Spring to use a datasource loaded in the JBoss AS 5.0. The datasource is loaded by the JBoss and is configured like this: Code: ...

68. Standalone JNDI provider    forum.springsource.org

Standalone JNDI provider I am converting an ejb module to a standalone application. within this module I am using jndi resources to connect to database and other nodes. I want to ...

69. Using jee:jndi-lookup instead of JndiObjectFactoryBean    forum.springsource.org

At most I use jee:jndi-lookup instead of creating a bean of JndiObjectFactoryBean and with no problem. In one case I have a check that fails when using jndi-lookup instead of JndiObjectFactoryBean. ...

70. NotWritablePropertyException with jee:jndi-lookup    forum.springsource.org

NotWritablePropertyException with jee:jndi-lookup Hi all, I can't get my JEE injection to work. I have a Spring bean which gets some JNDI entries injected. The JNDI entries are available, I've tested ...

71. JNDI configuration / managing configuration    forum.springsource.org

We love Spring and Spring Security! We are rolling out a webapplication to many clients. They each have different enterprise security so often have complex configurations. Is there any way to ...

72. How to Update JNDI properites at run time    forum.springsource.org

73. bind persistence unit to jndi    forum.springsource.org

Aug 17th, 2009, 09:27 AM #1 springuser2009 View Profile View Forum Posts Private Message Junior Member Join Date Aug 2009 Posts 1 bind persistence unit to jndi Hi, I am working ...

74. Mock JNDI Environments???    forum.springsource.org

Mock JNDI Environments??? Hiyas, I have a question: how are the mock JNDI environments are intended to be configured within unit tests? I see the three classes: ExcpectedLookupTemplate, SimpleNamingContext, and SimpleNamingContextBuilder ...

75. Spring JNDI Context    forum.springsource.org

76. EMF JNDI Look up    forum.springsource.org

Hi All, I have an interesting issue that cropped up when I tried to deployed my app onto another machine. One my main server I look up my emf via this ...

77. jee:jndi-lookup, how to make lookup optional?    forum.springsource.org

I've searched the forum and can't seem to find any relevant posts, so here's my question: Is it possible to make a jndi lookup optional so that the application doesn't blow ...

78. JNDI for resource lookup    forum.springsource.org

JNDI for resource lookup Hi all, I've been recently skimming through the 12th chapter of Spring in Action, 2nd edition. In the section which deals with sending mails, the author mentions: ...

79. Remote JNDI lookup    forum.springsource.org

Jan 29th, 2010, 11:41 AM #1 kannanMugundan View Profile View Forum Posts Private Message Senior Member Join Date Feb 2009 Posts 110 Remote JNDI lookup Hi, I have a JMS Servers ...

80. jee:jndi-lookup and properties file    forum.springsource.org

jee:jndi-lookup and properties file Hi, I am trying to use jndi-name from properties file for jndi-lookup however it is not working. During execution the property name is not getting replaced by ...

81. spring / glassfish / jndi    forum.springsource.org

Hello, I'm stuck with my jndi from my glassfish server, I've already post a thread on Roo forum (http://forum.springsource.org/showthread.php?t=84270) It would be kind of someone who has already configure a spring ...

82. Does Spring handle stale JNDI destinations?    forum.springsource.org

Does Spring handle stale JNDI destinations? Hi, Reading the WebLogic documentation http://download.oracle.com/docs/cd/E...html#wp1311973 it states: ..some JMS providers, like WebLogic JMS, may invalidate a Destination object after a server failure. So, if ...

83. SpringBeanAutowiringInterceptor, ApplicationContext, and JNDI    forum.springsource.org

SpringBeanAutowiringInterceptor, ApplicationContext, and JNDI The SpringBeanAutowiringInterceptor states it will store the ApplicationContext for the EJB in JNDI, that way a new context isn't created every time the EJB is invoked. My ...

84. Acquiring Remote Objects Through JNDI    forum.springsource.org

Hi Everyone, Currently, I am able to setup my spring application to acquire local objects since my web application and ejb application are both deployed in the same application server (which ...

85. Using PropertyPlaceholderConfigurer with jndi.properties    forum.springsource.org

Using PropertyPlaceholderConfigurer with jndi.properties Hi, I am using PropertyPlaceholderConfigurer to replace some tokens. See the configuration below which is in "spring-schedulingevent-rmi-client-wl.xml" classpath:jndi.properties ...

86. Hello!, i am Receiving a Warning : Could not bind factory to JNDI javax.naming.NoIni    forum.springsource.org

Hello!, i am Receiving a Warning : Could not bind factory to JNDI javax.naming.NoIni Hello People!, i am pretty new to this framework and so far i've been awesome .. BUT!, ...

87. JNDI issue    forum.springsource.org

JNDI issue Hi I'm new to this community not sure if the post is in the right category (my issue is with JNDI not JMS).... I'm using Jboss 4.2.3 + Jboss ...

88. jee:jndi-lookup error: no declaration can be found for element 'jee:jndi-lookup'    forum.springsource.org

jee:jndi-lookup error: no declaration can be found for element 'jee:jndi-lookup' Hi, When I'm trying to obtain remote reference to EJB usind JNDI or remote-slsb the following error occurs: Code: Exception in ...

89. Facing problem in getting JNDI to work.    forum.springsource.org

Facing problem in getting JNDI to work. Facing problem in getting JNDI to work. I am getting below exception when i am trying to deploy my web application on tomcat 5.5 ...

90. jee:jndi-lookup question    forum.springsource.org

jee:jndi-lookup question I am using the Spring configuration element to access JNDI properties. My intent is to do this to access environment-specific properties (e.g., server names, configuration properties, etc.) instead ...

91. jboss-6.0.0.20100911-M5 and Spring application context Jndi look up issue.    forum.springsource.org

jboss-6.0.0.20100911-M5 and Spring application context Jndi look up issue. jboss-6.0.0.20100911-M5 and Spring application context Jndi look up issue. I was looking into upgrading our Jboss envrionment to Jboss6. But noticed that ...

92. jndi.properties not bound exception    forum.springsource.org

jndi.properties not bound exception Hi All, I am developing my project from scratch, and getting error while creating bean, can you please check the below files and give me the idea ...

93. testing jndi:jee outside the server.    forum.springsource.org

Hi i want to know how do i test a jndi application outside a server , in a stand alone environment . What is the best way? i have this in ...

94. JNDI    forum.springsource.org

I am probably missing something very obvious but for the life of me I cannot find any information regarding this. When you specify a JndiObjectFactoryBean, you specify the jndiName but where ...

95. JNDI and Unit testing    forum.springsource.org

JNDI and Unit testing What is the recommended way to test JNDI accessed objects within a basic unit test framework? I have a JMS topic and connection factory that I retrieve ...