I am using jboss and want to have jboss provide database connection pool
services for my servlet. Within the default that come with the jboss/tomcat,
there is a XA connection pool for the instantdb. when run
[InstantDB] XA Connection pool InstantDB bound to java:/InstantDB
And then I thought it is ok, for my little java program that do a jndi
lookup to "InstantDB".
Connection con = null;
Statement stmt = null;
try {
Properties env = new Properties();
env.setProperty("java.naming.factory.initial",
"org.jnp.interfaces.NamingContextFactory");
env.setProperty("java.naming.provider.url", "localhost:1099");
env.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming");
InitialContext jndiContext = new InitialContext(env);
System.out.println("Got context");
Object ref = jndiContext.lookup("InstantDB");
But I always get:
Got context
javax.naming.NameNotFoundException: InstantDB not bound
Did anyone encounter the same problem. Please Advice.
Steven Hui
-----Original Message-----
From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 09, 2001 10:45 AM
To: [EMAIL PROTECTED]
Subject: Re: 3 little questions
Nah - post it to the forum so we can ALL see if he's doing something
st00pid!
;-)
Cheers!
Mark
----- Original Message -----
From: "Nic Ferrier" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 08, 2001 3:11 PM
Subject: Re: 3 little questions
> >>> Mike Whittaker <[EMAIL PROTECTED]> 08-May-01 8:05:29 PM >>>
> ><1> I'm trying to POST objects over an ObjectOutputStream
> >with an HttpURLConnection is this possible? I get no exceptions
> >from the applet when I try.
>
> Depends on your browser I'd guess. HttpURLConnections don't have much
> reliability for POSTs. Still, if you send me your code I can tell you
> if you're doing anything really stoopid.
>
>
> ><2> How do you output to the Tomcat console when
> >testing servlets on localhost
>
> Tomcat redirects System.out to the log file. Try System.err.
>
>
> ><3> How can I know from one servlet instance what
> >another servlet instance is doing?
>
> Osmosis?
>
> You can't really... but it's a strange question. Perhaps if you
> clarify what you want to do someone here might be able to help you.
>
>
>
> Nic Ferrier
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
**********************************************************************
This correspondence is for the named person's use only. It may
contain confidential or legally privileged information or both.
No confidentiality or privilege is waived or lost by any
mistransmission. If you receive this correspondence in error, please
immediately delete it from your system and notify the sender. You
must not disclose, copy or rely on any part of this correspondence
if you are not the intended recipient.
Any views expressed in this message are those of the individual sender,
except where the sender expressly, and with authority, states them to
be the views of Vodafone.
This email has been checked for viruses.
**********************************************************************
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html