G
gk
in ejb tutorial i have found the following code for JNDI set up
code
====
import javax.naming.*;
javax.rmi.PortableRemoteObject;
import java.util.Properties;
............
............
public class BeanClient {
public static void main(String[] args) {
// preparing properties for constructing an InitialContext object
Properties properties = new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
properties.put(Context.PROVIDER_URL, "localhost:1099");
My question is:
Question 1 :
what is this url "localhost:1099" ?
i am using JBoss application server. my application directory(context
path ) is "/myapps"
should i change this url to "localhost:1099/myapps" ??
question 2: what is this port "1099" . is it the admin server port ? is
it the port of local server ?
code
====
import javax.naming.*;
javax.rmi.PortableRemoteObject;
import java.util.Properties;
............
............
public class BeanClient {
public static void main(String[] args) {
// preparing properties for constructing an InitialContext object
Properties properties = new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
properties.put(Context.PROVIDER_URL, "localhost:1099");
My question is:
Question 1 :
what is this url "localhost:1099" ?
i am using JBoss application server. my application directory(context
path ) is "/myapps"
should i change this url to "localhost:1099/myapps" ??
question 2: what is this port "1099" . is it the admin server port ? is
it the port of local server ?