[JBoss-user] [Messaging, JMS & JBossMQ] - Re: MDB Access over HTTP

2004-06-09 Thread Marat
There is a third party solution available that allows you to run most of J2EE APIs 
over HTTP(S). 

Have a look at http://www.jproxy.com

Cheers,
Marat

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

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


---
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: MDB Access over HTTP

2004-04-10 Thread [EMAIL PROTECTED]
Which part of the following section from the "Read this first" topic did
you or Adam not understand?

anonymous wrote : 
  | Do not post ME TOO . If you have the same problem but nothing
  | to add to the problem, don't add noise to the thread!
  | 
  | Always start a new thread for a new problem. Do NOT hijack
  | somebody's problem. Try to keep to one question per thread,
  | it is easier for others to follow. 
  | 

You are not helping Jula so why are you posting on his/her thread?


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

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


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: MDB Access over HTTP

2004-04-09 Thread jkerr
I'm working with Adam on this problem and wanted to add a little clarification on all 
the pieces of this puzzle and what we're trying to accomplish.

Let's say that we're dealing with two groups of IP addresses:
Behind firewall: 192.x.x.x
and the client requests will originate from 137.x.x.x
and suppose the address of the JBoss server is 192.1.1.10

The way that the NAT is set up (which we have no control over) forwards requests 
originating from 137.x.x.x for ports 8080 and   to 192.1.1.10 while any request 
originating from 192.x.x.x is routed somewhere else.

We can use force a particular address to be used via the file 
deploy/http-invoker.sar/META-INF/jboss-service.xml  but will only work in the favor of 
either the client or the MDB (set it to 192.1.1.10 and the MDBs are happy but the 
client can't resolve the address.  Use the external address and the client can connect 
but the MDB gets redirected into never never land)

Is there any way to specify one address for the client and another for the MDB?

Jon


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

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


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: MDB Access over HTTP

2004-04-08 Thread ajordens
I'm having similar problems with the HTTPConnectionFactory.

JBoss is running on an internal NAT'd machine.  I need to be able to run JMS over 8080 
to facilitate someone from outside the firewall to be able to receive messages.

I've made the following client side changes:

Properties props = new Properties();
props.put(Context.INITIAL_CONTEXT_FACTORY, 
"org.jboss.naming.HttpNamingContextFactory");

props.put(Context.PROVIDER_URL, 
"http://10.1.15.5:8080/invoker/JNDIFactory";);

props.put( "java.naming.rmi.security.manager", "no");
props.put( "jnp.disableDiscovery", "true"); 

Right now, I'm considering 10.1.15.5 to be the outside ip address.

On the server, I have made changes to the http-invoker.sar/META-INF/jboss-service.xml

and set the InvokerURL to be based on the machines local ip address.  I have tried 
both local and remote ip addresses without much luck.


I'm wondering what settings are appropriate for the client side and server side in 
order to get JMS out through 8080 in a NAT'd environment.

Much appreciated,
Adam.


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

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


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: MDB Access over HTTP

2004-03-17 Thread [EMAIL PROTECTED]
If you were using HTTP why does your stacktrace say OIL?

[qoute]
 at javax.net.DefaultSocketFactory.createSocket(DashoA6275)
at org.jboss.mq.il.oil.OILServerIL.createConnection(OILServerIL.java:563)
at org.jboss.mq.il.oil.OILServerIL.checkConnection(OILServerIL.java:507)
at org.jboss.mq.il.oil.OILServerIL.authenticate(OILServerIL.java:289)
at org.jboss.mq.Connection.authenticate(Connection.java:876)
... 5 more 


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

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


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: MDB Access over HTTP

2004-03-17 Thread jula
Adrian: I am back @ square one: 

If you refer the very fist code post, you should see that I used HTTPConnectionFactory 
before and you wanted me to use UIL2 and so on. Now you want me to use 
HTTPConnectionFactory again. 

However, I suspect the issue is to do with firewall. 

Please tell whether HTTPConnectionFactory is supporting NAT on JBoss 3.2.3.

I don't wanna use the following fix which was posted on some other thread:
String hostName = addr.getHostName(); 
addr = InetAddress.getByName(hostName); 

I tried assigning the external IP through JAVA_OPTS in run.bat. Then I get the "Bind 
Exception" so that's also out.

TIA
/Jula

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

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


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] [Messaging, JMS & JBossMQ] - Re: MDB Access over HTTP

2004-03-16 Thread [EMAIL PROTECTED]
If you want access JMS over http use the HTTPConnectionFactory

Regards,
Adrian

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

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


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: MDB Access over HTTP

2004-03-16 Thread jula
Thanks Adrian for your support so far.

Further to my previous posts, I also opened the 8093 port on my firewall. But I am 
confused about the random ports at the client. Obviously I can't open those on my 
firewall.

Can't I configure JBoss to talk only through port 80 or atleast few fixed ports? Both 
on client side and server side.

I hope the reply is not to use JProxy :-((.

TIA
/Jula



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

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


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: MDB Access over HTTP

2004-03-15 Thread jula
log4j Output:

2004-03-16 11:58:17,487 TRACE [org.jboss.mq.Connection(1)] {main} Authenticating user 
phuser
2004-03-16 11:58:17,487 TRACE [org.jboss.mq.il.uil2.UILServerIL(1)] {main} Connecting 
to : /203.94.78.157:8093
2004-03-16 11:58:17,487 TRACE [org.jboss.mq.il.uil2.UILServerIL(1)] {main} Connecting 
with addr=/203.94.78.157, port=8093, localAddr=null, localPort=0, [EMAIL PROTECTED], 
enableTcpNoDelay=true, bufferSize=2048, chunkSize=100
2004-03-16 12:02:09,160 TRACE [org.jboss.mq.il.uil2.UILServerIL(1)] {main} Connecting 
to : /203.94.78.157:8093
2004-03-16 12:02:09,160 TRACE [org.jboss.mq.il.uil2.UILServerIL(1)] {main} Connecting 
with addr=/203.94.78.157, port=8093, localAddr=null, localPort=0, [EMAIL PROTECTED], 
enableTcpNoDelay=true, bufferSize=2048, chunkSize=100

The firewall allows only port 80 communication. Isn't there an attempt to communicate 
on 8093? 

Regards
/Jula

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

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


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: MDB Access over HTTP

2004-03-15 Thread jula
Sorry if my wording gave the wrong impression. But I didn't add log4j.properties to my 
classpath, instead added a folder name and had the file in it. As u said: it's basic 
stuff.

Infact I removed the ORIGINAL log4j.properties file from the jbossall-client.jar, 
thinking it could do any harm. 

Thanks
/Jula




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

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


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: MDB Access over HTTP

2004-03-15 Thread [EMAIL PROTECTED]
"jula" wrote : Thanks Adrian:
  | 
  | My client doesn't have log4j configured. I tried adding the log4j.properties in my 
classpath. But it didn't create any log file. Do I have to code my client to support 
log4j to support this or have I missed any thing.
  | 
  | On the server: I get the following but the client connection could not be seen.
  | 

You did it wrong. *Please* think about it for yourself. 
Did you
java -classpath log4j.properties (which is wrong)
or 
java -classpath somedirectoryorjarcontainingthelog4j.properties

If you can't configure a classpath, I'd be surprised if you've configured
your network correctly. :-)

"jula" wrote : 
  | 18:01:05,477 DEBUG [DefaultPartition] [Mon Mar 15 18:01:05 GMT+06:00 2004] [ERROR] 
NAKACK.handleXmitReq(): (requester=phslt01:1872 (additional data: 17 bytes))
  | message with seqno=5 not found in sent_msgs ! sent_msgs=19 18 17 16 15 14 13 12 11 
10 9 8 7 6
  | 

Completely different issue, but it does suggest there is something screwy on
your network/firewall. Please keep topics to one question. But feel free
to repost it in the clustering forum.

Regards,
Adrian

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

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


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: MDB Access over HTTP

2004-03-15 Thread jula
Thanks Adrian:

My client doesn't have log4j configured. I tried adding the log4j.properties in my 
classpath. But it didn't create any log file. Do I have to code my client to support 
log4j to support this or have I missed any thing.

On the server: I get the following but the client connection could not be seen.

18:01:05,477 DEBUG [DefaultPartition] [Mon Mar 15 18:01:05 GMT+06:00 2004] [ERROR] 
NAKACK.handleXmitReq(): (requester=phslt01:1872 (additional data: 17 bytes))
message with seqno=5 not found in sent_msgs ! sent_msgs=19 18 17 16 15 14 13 12 11 10 
9 8 7 6

Hope to hear from you soon.
Regs
/Jula


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

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


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: MDB Access over HTTP

2004-03-15 Thread [EMAIL PROTECTED]
The default is discovery, but that is irrevelent, you already got past that stage.

I posted instructions on enabling trace logging on the client here:
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3816091

This should show you where it is trying to connect to.

Regards,
Adrian



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

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


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: MDB Access over HTTP

2004-03-15 Thread jula
Many Thanks Adrian;

Now I am using UIL2ConnectionFactory and removed 
"props.put("jnp.disableDiscovery","true");", if that is what you meant by Discovery is 
not supported through a firewall. However I still get the same exception.

In addition I changed the bind ip address of the UIL2-service.xml and 
http-invoker\\META-INF\\jboss.xml to the ip address which is exposed out. We have NAT 
and thoght this is needed. 

What else have I missed?

Appreciate any hints :-)

Regards
/Jula

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

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


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: MDB Access over HTTP

2004-03-15 Thread [EMAIL PROTECTED]
1) OIL does not work through a firewall, use UIL2
2) Discovery doesn't work through a firewall either

Most likely your connection factories are bound to 192.168.1.11
making them inaccessible on the internet. Check your host configuration.

Regards,
Adrian

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

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


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: MDB Access over HTTP

2004-03-14 Thread jula
Full stack trace.

org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: 
(java.net.ConnectException: Connection timed out: connect)
at org.jboss.mq.Connection.authenticate(Connection.java:883)
at org.jboss.mq.Connection.(Connection.java:238)
at org.jboss.mq.SpyConnection.(SpyConnection.java:49)
at 
org.jboss.mq.SpyConnectionFactory.createQueueConnection(SpyConnectionFactory.java:135)
at jbosstest.Test.(Test.java:51)
at jbosstest.Test.main(Test.java:104)
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:426)
at java.net.Socket.connect(Socket.java:376)
at java.net.Socket.(Socket.java:291)
at java.net.Socket.(Socket.java:147)
at javax.net.DefaultSocketFactory.createSocket(DashoA6275)
at org.jboss.mq.il.oil.OILServerIL.createConnection(OILServerIL.java:563)
at org.jboss.mq.il.oil.OILServerIL.checkConnection(OILServerIL.java:507)
at org.jboss.mq.il.oil.OILServerIL.authenticate(OILServerIL.java:289)
at org.jboss.mq.Connection.authenticate(Connection.java:876)
... 5 more


However I can access the jmx-console over the Internet.

TIA
/Jula

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

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


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: MDB Access over HTTP

2004-03-14 Thread jula
Client Code:

Properties props = new Properties();

 
props.put(Context.INITIAL_CONTEXT_FACTORY,"org.jboss.naming.HttpNamingContextFactory");
 //LOCAL IP->props.put(Context.PROVIDER_URL, 
"http://192.168.1.11:8080/invoker/JNDIFactory";);
 props.put(Context.PROVIDER_URL, "http://203.94.78.157:8080/invoker/JNDIFactory";);
 props.put("java.naming.rmi.security.manager","no");
 props.put("jnp.disableDiscovery","true");


   ctx = new InitialContext(props);
   QueueConnectionFactory conFactory =
  (QueueConnectionFactory) ctx.lookup("HTTPConnectionFactory");

/*ERROR>*/   connection = conFactory.createQueueConnection("phuser","phpass");

EXCEPTION on Client:

org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: 
(java.net.ConnectException: Connection timed out: connect)

at org.jboss.mq.Connection.authenticate(Connection.java:883)

BUT:

Identical code works in LAN with IP address changed and using ConnectionFactory.

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

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


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: MDB Access over HTTP

2004-03-14 Thread [EMAIL PROTECTED]
Post the full stacktrace and configuration.

Your question just says "It does not work" without any context.

Regards,
Adrian

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

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


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user