Hi everyone,
I'm trying to access a data source that is defined within a web container (JBoss) from a fat client outside the container.
I've decided to look up the data source through JNDI. Actually, my persistence framework (Ibatis) does this.
When performing queries I always end up getting this error:
java.lang.IllegalAccessExcepti...
The Weblogic servers we are using have been configured to allow JNDI datasource names like "appds".
For development (localhost), we might be running Tomcat and when declared in the <context> section of server.xml, Tomcat will hang JNDI datasources on "java:comp/env/jdbc/*" in the JNDI tree.
Problem: in Weblogic, the JNDI lookup is "app...
I've got a J2SE application that I am maintaining uses JNDI.
(It uses JNDI to find it's J2EE application server.)
It has pretty poor error reporting of failure to find the JNDI server.
I've been looking around fora way to display which server the InitialContext is trying to talk to.
Has anyone got a neat way to do this ?
...
When I try the following lookup in my code:
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:comp/env");
return (DataSource) envCtx.lookup("jdbc/mydb");
I get the following exception:
java.sql.SQLException: QueryResults: Unable to initialize naming context:
Name java:comp is not bound in th...
In a servlet I do the following:
Context context = new InitialContext();
value = (String) context.lookup("java:comp/env/propertyName");
On an Apache Geronimo instance (WAS CE 2.1) how do i associate a value with the key propertyName?
In Websphere AS 6 i can configure these properties for JNDI lookup under the "Name Space Bindings...
http://localhost:8080/rtsclient/loginform.faces
Url jnp://localhost:1099
Application Server Type jboss40
Datasource jdbc/ilogDataSource
User rtsAdmin
Password rtsAdmin
The above is for jboss.
Now i have deployed RTS onto Sun Application Server. And i want to configure the jndi such that.
My RTS client can actually access it.
How d...
I'm using the mockrunner package from http://mockrunner.sourceforge.net/ to set up a mock queue for JUnit testing an XML filter which operates like this:
sets recognized properties for an ftp server to put and get xml input and a jms queue server that keeps track of jobs. Remotely there waits a server that actually parses the xml once ...
I'm using jmockit with my tests and with one class I wish to test, uses InitialContext directly. So I have the following:
public class MyClass {
public void myMethod() {
InitialContext ic = new InitialContext();
javax.mail.Session mailSession = ic.lookup("my.mail.session");
// rest of method follows.....
}
In my test ...
http://localhost:8080/rtsclient/loginform.faces Url jnp://localhost:1099 Application Server Type jboss40 Datasource jdbc/ilogDataSource User rtsAdmin Password rtsAdmin
The above is for jboss. Now i have deployed RTS onto Sun Application Server. And i want to configure the jndi such that. My RTS client can actually access it.
How do i g...
All stuff is running under Windows XP Pro SP2/32-bit.
I have downloaded Jetty 7 pre3 from http://dist.codehaus.org/jetty/jetty-7.0.0-prereleases/jetty-7.0.0pre3/jetty-assembly-7.0.0pre3.zip>dist.codehaus.org.
I have extracted jetty to C:\jetty-7.0.0pre3\ (so I have C:\jetty-7.0.0pre3\bin\ and other dirs)
I have put my webapp into C:\jet...
I need to run a JNDI provider without the overhead of a J2EE container. I've tried to follow the directions in this article, which describes (on page 3) exactly what I want to do. Unfortunately, these directions fail. I had to add the jboss-common.jar to my classpath too. Once I did that, I get a stack trace:
$ java org.jnp.server.M...
I have the problem, that getting a ressource from my archive failed with a MalformedURLException: unknown protocol: jndi
The archive is a war file and is deployed into Websphere successfully.
When I try to access some files inside the archive via
jndi://server/context/filename
I get the MalformedURLException.
Did anyone know, how t...
Both of them are mbeans. Both are intended to setup Hibernate Session Factory and expose it through JNDI. Both are implemented in Red Hat. But at the same time each of them belongs to separate classes hierarchy.
What is actually the difference between them?
Thank you in advance.
...
My application runs under tomcat.
It is using GSS API (JNDI) to connect to Active Directory LDAP Server using Kerberos.
It allows the user to define AD servers and try to connect to them.
However, once the first Kerberos using connect attempt is done, the application does not read Kerberos configuration again (/etc/krb5.conf).
Hence, any...
I'm trying to access a remote ejb which is not available yet. But the lookup takes 5 min before I get the NameNotFoundException. Is there a way I can set the lookup timeout to a lesser value so that the client application doesn't hang for 5 mins?
Thanks in advance...
...
In Websphere when you do an LDAP query using LdapContext are the transmission of credentials encrypted?
LdapContext ctx = new InitialLdapContext (env, null);
Lets say I make an LdapContext for a web app to do some custom LDAP calls.
How do I know if my call is secure / encrypted?
...
Hi,
Is there a way to limit the rows returned at the oracle datasource level in a tomcat application?
It seems maxRows is only available if you set it on the datasource in the java code. Putting maxRows="2" on the datasource doesnt apply.
Is there any other way limit the rows returned? without a code change?
Thanks,
Dan
...
I've implemented an object factory to lookup LDAP objects, but the supplied context does not return the DN (via nameCtx.getNameInNamespace()) from the LDAP. Am i doing it wrong in some way?
public class LdapPersonFactory implements DirObjectFactory {
@Override
public Object getObjectInstance(Object obj, Name name, Contex...
I need to put an LDAP contextSource into my JEE container's JNDI tree so it can be used by applications inside the container.
I'm using Spring-LDAP to perform queries against ORACLE OVD. For development, I simply set up the contextSource in the Spring xml configuration file. For production, however, I need to be able to use a JNDI looku...
Hi
I am getting this error when starting up Jetty that uses Mysql Connection Pool. Could someone help me out please?
[root@localhost test]# java -DOPTIONS=plus,ext.default -classpath %CLASSPATH% -jar /usr/src/jetty7/start.jar myjetty.xml
2008-12-20 18:24:08.138::INFO: Logging to STDERR via org.mortbay.log.StdErrLog
2008-12-20 18:24:0...