[JBoss-user] [Beginners Corner] - Re: how to set a jndi name for a mbean

2004-11-04 Thread rixc
In the jboss docs they provide a jboss specific implementation for binding your mbean 
to the jndio namespace

private void rebind() throws NamingException
  | {
  | InitialContext rootCtx = new InitialContext();
  | Name fullName = rootCtx.getNameParser("").parse(jndiName);
  | NonSerializableFactory.rebind(fullName, contextMap, true);
  | }
  | 
  | private void unbind(String jndiName)
  | {
  | try
  | {
  | InitialContext rootCtx = new InitialContext();
  | rootCtx.unbind(jndiName);
  | NonSerializableFactory.unbind(jndiName);
  | }
  | catch(NamingException e)
  | {
  | e.printStackTrace();
  | }
  | }
  | 

This works well but obviously ties you to Jboss. I am just now in the process of 
trying to find a non-jboss specific implementation but as yet have not found one.



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853902#3853902

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853902


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: Network troubles. - What must I change to enable logging

2004-10-22 Thread rixc
For those interested, I think I have found a solution to my problem.

There was a fix in jboss 3.2.5, 
http://sourceforge.net/docman/display_doc.php?docid=23676&group_id=22866, that 
mentions setting the bind address to the generated RMI stubs.

This sounds alot like it addresses my problem

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852309#3852309

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852309


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Advanced Documentation] - How up to date is the Pay-for documentation?

2004-10-21 Thread rixc
Hi all,

We currently use jboss 3.2.6 and have no immediate plans to move to Jboss 4 

We have the pay-for docs for jboss 3.2.1 and are considering renewing it. But what is 
the status of the current documents. What versions of jboss does it cover?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852180#3852180

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852180


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Network troubles. - What must I change to enable logging

2004-10-20 Thread rixc
Hi all,

We have encountered a problem at one of our clients where we have our java client 
running on a windows machine and jboss running on an AIX. 

The network setup at the client is as follows:
- java client running on network 'A' with jdk1.4.2
- jboss 3.2.3 on AIX running on network 'B' with jdk1.4.2. The AIX machine has 3 
network addresses of which only one address is public.

We passed in the -b 10.247.25.189 (public address of the AIX) to the run.sh to make 
jboss bind to the public address and can see it used through the logs on the 
server.log:
[org.jboss.naming.NamingService] Started jnpPort=1099, rmiPort=1098, backlog=50, 
bindAddress=/10.247.25.189, etc.

We also comfirmed that the client machine can ping 10.247.25.189.

Our problem is that our client is throwing an  exception during connection:
javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: 
  | Connection refused to host: 192.168.20.12; nested exception is:
  |   java.net.ConnectException: Connection refused: connect]
  |   at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:647)
  |   at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
  |   at javax.naming.InitialContext.lookup(InitialContext.java:347)
  | 
The problem is that 192.168.20.12 is one of the private network addresses on the AIX 
machine. even though I specified the public address in the connection properties as 
shown below.
props.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
  | props.put("java.naming.provider.url", "10.247.25.189:1099");
  | props.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");

So to finaly get to my questions:
1. Why is jboss returning an internal address when I have told it to bind to a public 
address?
2. What logging can I enable to see why jboss is returning this internal address.

Unfortunately, networking is not my speciality so all suggestions are welcome. 

Ricardo

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852023#3852023

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852023


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user