[JNDI/Naming/Network] - JNDI lookup problem from remote client present in External N
by vedgunjan
Hi,
We are using JBoss 4.0.5.GA as our application server.
The scenario is like this.
Machine A) IP Address: 192.168.XXX.YYY. [It's the Server] On this Machine Jboss4.0.5.GA and MySQL are running.
The outside system (basically the external clients) refers to this machine through address 220.225.ZZZ.XXX. This is the public ip address.
i.e the external_host_name = 220.225.ZZZ.XXX.
Machine B) it?s an external client. It is looking up for service which is running on Machine A through JNDI.
In the client code, the jndi provider URL is set up to "jnp://220.225.ZZZ.XXX:1099" when the initial context is created for the RMI access.
The client code which is running on Machine B) is doing a lookup for the service, using the following jndi.propterties:
Code:
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url=jnp://220.225.ZZZ.XXX:1099
The two machines are running on different network.
When am running the code on the Machine B), and trying to access the service running on Machine A), it is throwing java.naming.CommunicationException: connection refused, cannot connect to url: 220.225.36.247.
Can you guide us where we are going wrong and whether we are missing any setting in the JBoss Server?
I need this fix very urgently...please guide be to the solution.
Thanks and Regards.
Ved.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060906#4060906
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4060906
18Â years, 9Â months
[JBoss Seam] - Re: Seam, problem with EntityManager
by grdzeli_kaci
i found example which load data from xml file, i use seam 2.0 beta version and richfaces with ajax4jsf, here is another problem, i tried to load xml file into seam component like this :
| InputSource ins1 = new InputSource(getClass().getResourceAsStream("data.xml"));
| Digester digester = new Digester();
| Rule rule = new Rule();
| final List rulesList = new ArrayList(1);
| rulesList.add(rule);
|
| RulesBase rulesBase = new RulesBase() {
| protected List lookup(String namespace, String name) {
| return rulesList;
| }
| };
| digester.setRules(rulesBase);
| digester.setNamespaceAware(true);
| digester.parse(ins1);
|
but i got an error :
| java.net.MalformedURLException
|
i have this fine into my ejb jar file, but i can't read it :(
is there any incorrect ?
__________________
Regards,
Paata.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060898#4060898
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4060898
18Â years, 9Â months
[JBoss Seam] - Re: Using non-EJB annotated POJO as backing bean
by bdillon
Hi,
Here is the code;
package com.bd.test;
import java.io.Serializable;
import org.jboss.seam.annotations.*;
import org.jboss.seam.ScopeType;
@Scope(ScopeType.SESSION)
@Name("FirstPageBB")
public class FirstPageBB implements Serializable {
@Out
private SecondPageParameters params;
private String name = "initValue";
public FirstPageBB() {
System.out.println(" Initialising FirstPageBB !");
}
public String getName() {
System.out.println(" FirstPageBB.getName() > "+name);
return name;
}
public void setName(String name) {
System.out.println(" FirstPageBB.setName("+name+")");
this.name = name;
}
//Action Button
public String submit() {
System.out.println(" FirstPageBB.submit() called ");
params = new SecondPageParameters();
params.setName(name);
return "NavigationScen1";
}
}
Thanks,
Brian
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060896#4060896
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4060896
18Â years, 9Â months