JNDI in JSE?
Is it possible to use JNDI to fetch an EntityManager(!) in JSE, not JEE?
The alternative I have is store the EM in a Thread(Group) based store and fetch that on demand.
Oh, actually the reason is quite simple: I want to open an EM, store it somewhere and fetch it when I need it versus having to drag it through all method calls.
As said, it can be stored in a Thread based repository, but since JEE is using JNDI to access it, I was thinking that maybe doing something similar in JSE might be practical too.
Can you elaborate on how your suggestion would work? You mean a "Bootstrap" class which opens the EM and holds it in a static variable. Singleton alike?
I am currently porting our j2ee application to weblogic 7.0. The application already runs successfully on Orion and Jboss. I have got everything working now except for our client applications, which all fail with a JNDI lookup error. The exception is
I create a datasource which jndi name is jdbc/allianzB2CDataSource and the target is AdminServer ,and i deploy a web application in AdminServer.In that web application,the code(base on spring framework) is: public static DataSource getJndiDataSource(
I need to perform an atomic operation (get & set) in LDAP that is synchronized between multiple applications (i.e. across JVMs). Is that possible using iDS 4.x or 5.x? Does iDS implementation of JNDI/LDAP API provide a global lock mechanism (I know t
This is an easy question: Once I get the object represented by my connection pool from the Weblogic JNDI tree, how do I get a connection from the returned object of type weblogic.common.internal.ResourceAllocator? I keep getting ClassCastExceptions.
Hi there, I have a rather interesting / complex problem......creating a connection to CA-IDMS from Tomcat using JDBC type 4 drivers (CA provide the type 4 driver). We have a zSeries 9 IBM mainframe running CA-IDMS r16.1, and I need to connect to the
Hi, I am currently working on a project that requires connections between PI and Oracle AQ. It was advised that we shoule use PI JMS adpater with JNDI driver. However, it seems that not many people have tried this approach. Has anyone had similar sol
Hi, we have a swing appln that gets downloaded via java webstart - which was working fine with 1.4.x until 5.0 came. I know that JSE 5.0 includes java webstart too - but when I start my application, I get Marshal error & filenotfound Exception. What
Hello friends. I have a situation where some of my JMS Queues do not show up in the JNDI tree. Other Queues / Topics show up fine. I cannot find any difference in the interface that tells me what my cause this to happen. Any insight would be apprecia
hi all, i am newbie on Weblogic Application Server and i have some issues, i have weblogic application server 10.0, also i have oracle timesten in-memory database, i have configured datasource and deploy my ejb 3.0 application, but i could not done j
We just upgraded to the newest Developer Preview of JDEV and all of a sudden client code that compiled and ran fine under the old version is no longer running. I'm guessing something changed in the libraries, but I'm not sure what and why this is occ
Hi, Basically, what I've done is to use the Tomcat administration web application to create the DataSource, which looks like it populated the server.xml (see below). I then try to access the testconn.jsp, and am getting that "Name java:comp is not bo
Hi all, i have a problem with JNDI in WLE 5.1. i am accessing an LDAP on another machine running Netscape Directory Server. The host URL is ldap://myhost:65535/o=marco, c=fi i am always getting back the following exception: javax.naming.NoInitialCont
I'm having problem working with OpenLDAP and JNDI. First I have changed LDAP's slapd.conf file: suffix "dc=antipodes,dc=com" rootdn cn=Manager,dc=antipodes,dc=com directory "C:/Program Files/OpenLDAP/data" rootpw
I've CR 12 (2008) I've a report actually bind to datasource via DSN to a sql server. Now we need to migrate this connection to JDBC. So i downloaded microsft sql driver for jdbc and copied as C:\Program Files (x86)\Business Objects\Common\4.0\java/li
I am trying to create a Crystal Reports XI report in a JSP using Sun One 6.1 Web server sp 5. At this point I am getting the error �Error finding JNDI name� on Sun One The application will run on Netbeans/Tomcat I have done the following: I edited CR
Hi guys, My problem is that I am creating a web service and I cannot get to a properties file without creating an absolute reference to that file. If I was creating a servlet I would simple use getServletContext() method to get a relative reference t
I need to convert one of our internal web application from using Crystal Report Server 10 RAS to using Crystal Report XI Java Component (JRC). I found several examples from SAP/BusinessObjects but am stuck with a database connectivity problem. The ba
Hi I got two questions on JNDI/DNS service provider: 1) How to resolve a host name when i got an IP I understand How I do it inverse. Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.dns.DnsContextFactory")
When I am trying to deploy my ear file. I am getting the error mentioned below. I have made a connection pool and 3 data sources at console. Is there a problem with the way I have defined them. Please do let me know. Thank You Ronak Parekh Connection