I've got some questions about this article
(I would like to have some details for fs access, not ldap):
-1- Here is the xml code to add what I want (in jboss.jcml):
<!-- Bind the /Scott filesystem directory -->
<mbean code="org.jboss.naming.ExternalContext"
name="DefaultDomain:service=ExternalContext,jndiName=external/fs/Scott" >
<attribute name="JndiName">external/fs/Scott</attribute>
<attribute name="Properties">scott_fs.props</attribute>
<attribute name="InitialContext">javax.naming.InitialContext</attribute>
</mbean>
question: where do I put the file scott_fs.props? in the same directory
of jboss.jcml?
-2- Extract of the article:
...
This example is binding an external LDAP context into the JBoss JNDI
namespace under the name
"external/ldap/dscape". An example dscape.ldap properties file is:
----------------------------------------------------------------------------
----
java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
java.naming.provider.url=ldap://ldaphost.displayscape.com:389/o=displayscape
.com
java.naming.security.principal=cn=Directory Manager
java.naming.security.authentication=simple
java.naming.security.credentials=secret
----------------------------------------------------------------------------
----
With this mbean loaded, you can access the external LDAP context located at
"ldap://ldaphost.displayscape.com:389/o=displayscape.com" from within the
JBoss VM using the following code fragment
...
question: what would contain the file scott_fs.props?
something like that:
----------------------------------------------------------------------------
----
java.naming.factory.initial=com.sun.jndi.directory.???
java.naming.provider.url=file://D:/MY_DIRECTORY ???
java.naming.security.principal=cn=Directory Manager ???
java.naming.security.authentication=simple ???
java.naming.security.credentials=secret ???
something else ???
----------------------------------------------------------------------------
----
TIA
Loic
-----Message d'origine-----
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]De la part de Dmitri
Colebatch
Envoy� : mardi 16 avril 2002 23:41
� : Simon Stewart; Mark Gulbrandsen
Cc : [EMAIL PROTECTED]
Objet : Re: [JBoss-user] File-system access
Have a look at EXternalContext -
http://jboss.org/online-manual/HTML/ch13s126.html
hth
dim
----- Original Message -----
From: "Simon Stewart" <[EMAIL PROTECTED]>
To: "Mark Gulbrandsen" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, April 17, 2002 3:05 AM
Subject: Re: [JBoss-user] File-system access
> And is there a portable way of doing this? Portable between different
> app servers, that is....
>
> On Tue, Apr 16, 2002 at 10:30:08AM -0600, Mark Gulbrandsen wrote:
> >
> > Maybe I could ask a different question.
> >
> > Can I assign a resource so that I can do a jndi lookup?
> >
> > Can I configure JBoss to load an arbitrary jar file and set it to a jndi
> > name such as "jndi:/user/resource1.jar" "jndi:/usr/resource2.jar"? Then,
a
> > context lookup would return a JarFile for each of these resource jars.
Is
> > this possible with Branch_3_0?
> >
> > -Mark
>
> Cheers,
>
> Simon
>
> --
> "You can't have everything...Where would you put it?" --- Steven Wright
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user