AW: [JBoss-user] problem with host name resolivng via http invoker
Title: AW: [JBoss-user] problem with host name resolivng via http invoker hi, It works fine but...it was totally a mislead in the Jboss All docus i read some thing like this InvokerURL: This is either the http URL to the InvokerServlet mapping, or the name of a system property that will be resolved inside the client VM to obtain the http URL to the InvokerServlet. This value can itself be a reference to a system property resolved in the server if the value is of the form ${x} where x is the name of the system property. This allows the URL or client side system property to be set in one place and reused in the HttpInvoker config as well as the InvokerServlet config. may u all shuld change it in the docs ...it clearly says ${x} but it shuld be given as x where x= system property key any way my problem is solved thanks jani -Ursprüngliche Nachricht-Von: Scott M Stark [mailto:[EMAIL PROTECTED]Im Auftrag von Scott M StarkGesendet: Donnerstag, 8. Januar 2004 23:48An: [EMAIL PROTECTED]Betreff: RE: [JBoss-user] problem with host name resolivng via http invoker The system property usage would be: attribute name="InvokerURL"MyJMXUrl/attribute Scott StarkChief Technology OfficerJBoss Group, LLC From: [EMAIL PROTECTED] on behalf of Janardhan BurugupalliSent: Thu 1/8/2004 8:37 AMTo: [EMAIL PROTECTED]Subject: AW: [JBoss-user] problem with host name resolivng via http invoker HI Scott,As u said i used the system property MyJMXUrl and added it to thehttp-invoker.sar/meta-inf/jboss-service.xml file as shown below. Here iguess after the dollar sign and in the flower brackets the system propertyshould lie.attribute name="InvokerURL"${MyJMXUrl}/attributeAnd i am setting this system property in the client start up before callingthis servlet or making this invocation and i get the following error. As ianalysed the property its self is not read and replaced . But if i use thecomplete URL as u said explicitly it worksattributename="InvokerURL"http://thehostiwant:8080/invoker/EJBInvokerServlet/attributebut i want the system property to be working as some of my clients are inthe local network and some are out side and both has differetn host names.So for different clients i can set at the start up this system property ifit works. attachment: winmail.dat
AW: [JBoss-user] problem with host name resolivng via http invoker
HI all, I have a problem , first look at the output i get 10:43:58,458 DEBUG [WorkClientEJBServiceLocator] Using the JNDI URL :http://localhost:80/invoker/JNDIFactory 10:43:58,520 DEBUG [HttpNamingContextFactory] Retrieving content from : http://localhost:80/invoker/JNDIFactory 10:43:58,583 DEBUG [HttpNamingContextFactory] ContentLength: -1 ContentType: application/x-java-serialized-object; class=org.jboss.invocation.MarshalledValue 10:43:58,989 INFO [Util] The URL value obtained from cleint:http://192.168.0.146:80/invoker/JMXInvokerServlet 10:43:59,114 DEBUG [EJBServiceLocator] Singleton instance of EJBServiceLocator class 'de.sepp.client.WorkClientEJBServiceLocator' created. 10:43:59,130 INFO [Util] The URL used is :http://192.168.0.146:80/invoker/JMXInvokerServlet At the first time the JNDI invocation is done withe same URL as i have provided but later while accessing the JMXInvokerServlet its resolving the IP address and instead of the host name well i can change this in the http-invoker.sar/meta-inf/jboss-service.xml by setting USeHostName property to true but what it does is it takes the InetAddress.getHostName which is nothing but the computer name in my case i am using a reverse proxy and there are two different ways of accessing this machine. From local lan it is called xx1 and from outside it is called xx2. So my request is in the second instance also it should whatever hostname i gave it in the JNDI url...is it possible any suggestions or solutions thanks in advace jani -Ursprngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von Scott M Stark Gesendet: Donnerstag, 14. August 2003 13:09 An: [EMAIL PROTECTED] Betreff: Re: [JBoss-user] Accessing a ResourceBundle from a MDB Typically WEB-INF/classes is not visable outside of the associated war. Move the common resources to the mdb jar or a common jar referenced by the ear -- Scott Stark Chief Technology Officer JBoss Group, LLC Brian McSweeney wrote: Hi all, Im deploying my app on JBoss 3.2.1_tomcat-4.1.24 Im deploying an ear which contains a war which uses Struts as the web controller. The back end uses ejbs in an ejb-jar file. Im using a resource bundle properties file successfully in my struts actions to internationalize the app. The resource bundle properties file is in the folder war file in the folder: /WEB-INF/classes All the struts actions are here too. However I also need to load the resource bundle from the back end. When I try to load the resource bundle from a Message Driven Bean it cant find the file. Now the class files for the back end in the ear are in the appname-ejb.jar file. I had hoped that if they were packaged together in the one ear than, maybe theyd be able to see all the classes, but perhaps not. So should I just copy the resource bundle file into the ejb.jar file So that my session beans and message driven beans can see the properties file? Thanks for any responses, Regards, Brian --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
AW: [JBoss-user] problem with host name resolivng via http invoker
) at java.io.ObjectInputStream.readExternalData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.defaultReadFields(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at org.jboss.invocation.MarshalledValue.get(MarshalledValue.java:78) at org.jboss.naming.HttpNamingContextFactory.getNamingServer(HttpNamingContextF actory.java:115) at org.jboss.naming.HttpNamingContextFactory.getInitialContext(HttpNamingContex tFactory.java:64) ... 19 more -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von Scott M Stark Gesendet: Donnerstag, 8. Januar 2004 17:16 An: [EMAIL PROTECTED] Betreff: RE: [JBoss-user] problem with host name resolivng via http invoker Replace: attribute name=InvokerURLPrefixhttp:///attribute attribute name=InvokerURLSuffix:8080/invoker/EJBInvokerServlet/attribute attribute name=UseHostNametrue/attribute with the explict url the client should use: attribute name=InvokerURLhttp://thehostiwant:8080/invoker/EJBInvokerServlet/at tribute this can also be system property name that is resolved at runtime in the client vm for the situation that the server does not know the external path the client takes to get to the server. Scott Stark Chief Technology Officer JBoss Group, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Janardhan Burugupalli Sent: Thursday, January 08, 2004 2:10 AM To: [EMAIL PROTECTED] Subject: AW: [JBoss-user] problem with host name resolivng via http invoker HI all, I have a problem , first look at the output i get 10:43:58,458 DEBUG [WorkClientEJBServiceLocator] Using the JNDI URL :http://localhost:80/invoker/JNDIFactory 10:43:58,520 DEBUG [HttpNamingContextFactory] Retrieving content from : http://localhost:80/invoker/JNDIFactory 10:43:58,583 DEBUG [HttpNamingContextFactory] ContentLength: -1 ContentType: application/x-java-serialized-object; class=org.jboss.invocation.MarshalledValue 10:43:58,989 INFO [Util] The URL value obtained from cleint:http://192.168.0.146:80/invoker/JMXInvokerServlet 10:43:59,114 DEBUG [EJBServiceLocator] Singleton instance of EJBServiceLocator class 'de.sepp.client.WorkClientEJBServiceLocator' created. 10:43:59,130 INFO [Util] The URL used is :http://192.168.0.146:80/invoker/JMXInvokerServlet At the first time the JNDI invocation is done withe same URL as i have provided but later while accessing the JMXInvokerServlet its resolving the IP address and instead of the host name well i can change this in the http-invoker.sar/meta-inf/jboss-service.xml by setting USeHostName property to true but what it does is it takes the InetAddress.getHostName which is nothing but the computer name in my case i am using a reverse proxy and there are two different ways of accessing this machine. From local lan it is called xx1 and from outside it is called xx2. So my request is in the second instance also it should whatever hostname i gave it in the JNDI url...is it possible any suggestions or solutions thanks in advace jani --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user