users@glassfish.java.net

Re: How to configure domain's NAME or IP address?

From: Tim Quinn <Timothy.Quinn_at_Sun.COM>
Date: Fri, 26 Jan 2007 06:33:46 -0600

Hello, again, Witold.

Before I go on, please note that issue 2223 has the painful side-effect
of breaking the Java Web Start feature in build 33 of the PE variant.

You can work around this temporarily by specifying

    
<jvm-options>-Dcom.sun.enterprise.server.ss.ASQuickStartup=false</jvm-options>

in the domain.xml file. You can place this next to any of the
jvm-options that already exist there.

As far as the traffic is concerned, I will let others who are more
familiar with the messaging details respond. Do you see the same
traffic levels when you trigger the "find customer" logic the second,
third, etc. times, once the form has been opened once?

- Tim

Witold Szczerba wrote:
> Hello Tim,
> before I get your answer I decided to make a complete mess in our
> network, so I rewired computers in a way that right now "ubu" is the
> first computer connected directly to the Internet. I have inserted a
> second network card, configured it with public IP address and
> re-configured configured Glassfish. This is fresh V2 build 33 now.
> Ubu's iptables configuration includes entry that opens ports: 4848
> (for remote administration) 8080 and 3700
>
> In Glassfish webadmin:
> 1) HTTP Service -> HTTP Listeners -> http-listener 1: Server Name:
> my.dnsname.com:8080
> 2) ORB->IIOP Listeners->orb-listener-1: Network Address: xx.xx.xx.xx
> (its my public IP), port 3700
>
> (are the two steps above a proper way to configure Glassfish? Or maybe
> I should let them be default and manage this on some higher level?)
>
> I have configured JDBC as well and deployed application's .ear file.
> Everything works fine, I cannot tell if it would work if Ubu would be
> still as it was before. It must stay like this for few days or even
> more, as I cannot close Glassfish until our customer see and try
> application...
>
> Thanks for your help,
> Witek
>
> p.s.
> I opened traffic monitor to see how much data is needed to be
> transfered, when I open, for example, the "customer details" form in
> our application. I was shocked when I saw that that simple operation
> generates 36kB that is transferred from AS into ACC and about 25kB
> from ACC into AS. The service looks +/- like this:
>
> //stateless session bean:
> Customer c = em.find(Customer.class, id);
> return c;
>
> This is more or less the main point of client-server interaction when
> opening such a form, maybe few more little queries on very small
> entities... The Customer entity bean does not annotate anything as
> EAGER or LAZY, so defaults are taken and most of columns are nulls
> right now. Do you know if I could try to use some "profiler" to see
> exactly which session beans calls generates how much traffic?
>
> 2007/1/25, Tim Quinn <Timothy.Quinn_at_sun.com>:
>>
>> Hello, Witold.
>>
>> Sorry for the confusion.
>>
>> You may have encountered this known issue, #944. It was fixed in
>> GlassFish
>> V2 build 14, which is after the build you are using.
>>
>> I do not know if using a later release is an option for you. Even
>> if it is
>> not, would you be willing to try a build that contains the fix and
>> tell us
>> if that resolves the problem? If not we should open a new issue so
>> we can
>> address it in time to include the fix in V2 FCS.
>>
>> Thanks.
>>
>> - Tim
>>
>> Witold Szczerba wrote:
>> Thanks for reply :)
>> I think I wasn't understood correctly.
>> The entire problem is that I want that Glassfish server (this is
>> 9.0_01 build b02-p01) not to use "ubu" as there is no "ubu" or
>> "ubu.something.org" or whatever else outside its network.
>>
>> I want that Glassfish to use the IP address or DNS name of my
>> router/firewall which forwards connections on all required ports from
>> outer networks.
>>
>> I do not have DNS server, the only DNS name I have, is assigned to the
>> main router by ISP. That router is redirecting connections on
>> different ports to different computers behind that router and one of
>> that computers is my 'ubu' (this is, by the way, is Ubuntu 6.10).
>>
>> Can I tell Glassfish somehow to forget about /etc/hosts or any other
>> OS specific settings and use different IP address or DNS name?
>>
>> So far, I was trying to use some tricks like setting router's IP/name
>> in ubu's etc/hosts but nothing actually works. When I try to launch my
>> application sometimes I can see that WebStart cannot access "ubu",
>> sometimes it is complaining about IP address 192.168.1.3 (which is
>> ubu's local IP).
>> Anything I try, Glassfish is always use one of these two... is there
>> any cure for that?
>>
>> For long time we have working Tomcat server which is installed like
>> this and there are no problems, I am sure there must be some way to
>> stop Glassfish figuring on its own its IP or name :/
>>
>>
>>
>> 2007/1/24, Tim Quinn <Timothy.Quinn_at_sun.com>:
>>
>> Hello, Witold.
>>
>> Sorry this is not working easily for you. I have a few questions
>> for you.
>>
>> 1. What release and build of GlassFish are you using? This may not
>> make
>> a difference but please let us know.
>>
>> 2. Can you please try the following experiment? Instead of trying to
>> launch the app client from the admin GUI, try launching it yourself
>> from
>> a command-line prompt using:
>>
>> javaws "http://ubu:8080/SOP/SOP-app-client"
>>
>> Based on the info you sent, I think this URL should work. If not, look
>> in the server.log file around the time you deployed the app or after
>> the
>> most recent restart if the app was already deployed. The log file will
>> contain a message announcing what "context-root" will work for
>> launching
>> that app's client. If your client expects any command-line arguments,
>> add them to the URL as a query string such as
>> ?arg=firstArg&arg=secondArg.
>>
>> 3. I assume when you try to access the app from another network you use
>> the full host name, such as something like ubu.mycorp.com. Is that
>> right?
>>
>> 4. What OS is your server system (ubu) running?
>>
>> 5. If it's a Windows system, does the networking properties properly
>> identify the system with its full path and not just ubu? (I'm less
>> familiar with the corresponding setup on non-Windows systems.)
>>
>>
>> - Tim
>>
>> Witold Szczerba wrote:
>> > Hello there,
>> > I had really hard time trying to run my EAR application deployed on
>> > remote Glassfish server.
>> > To make things easier I am focusing right now on Java WebStart.
>> >
>> > Every thing's working perfectly when I launch that application from
>> > within the same computer/network where Glassfish is. But when I go to
>> > another computer (it is actually on different ip network) and point
>> > mozilla at glassfish admin page, navigate to my application and
>> > download .jnlp file, then Java WebStart cannot start it.
>> > Exception:
>> >
>> > com.sun.deploy.net.FailedDownloadException: Unable to
>> load resource:
>> >
>> http://ubu:8080/__JWSappclients/__appclient/SOP/SOP-app-client/main.jnlp
>> >
>> > I have opened that jnlp file in text editor and there are, for
>> example:
>> > <jnlp ..............
>> >
>> href="http://ubu:8080/__JWSappclients/__appclient/SOP/SOP-app-client/main.jnlp">
>>
>> >
>> >
>> > The reason that is not working is that from withing the Internet or
>> > any other network inside my company "ubu" does not exist. It is
>> inside
>> > special network (something like DMZ) where are servers and
>> firewall is
>> > redirecting different ports to different computers.
>> >
>> > I was thinking I can manually change every "ubu" into router's
>> name or
>> > IP. I did it, but it did not help much... Here is another exception:
>> >
>> > com.sun.deploy.net.FailedDownloadException: Unable to
>> load resource:
>> >
>> http://ubu:8080/__JWSappclients/__appserver/aslib/fscontext.jar
>> >
>> > It looks like my domain1 is really insisting to be visible everywhere
>> > on this planet as "ubu".
>> >
>> > How can I tell my "domain1" to use different name and/or IP address?
>> >
>> > Right now I really do not know what to do. I have few days to make
>> > this working, our customer wants to see our application (he is in
>> > different city and wants see it installing/starting with one click on
>> > html link - this is what we promised him) and I cannot make Glassfish
>> > usable outside our DMZ network :( - the only network he can be
>> visible
>> > as "ubu".
>> >
>> > Please help me or I will be in big troubles :(
>> >
>> >
>> ---------------------------------------------------------------------
>> > To unsubscribe, e-mail:
>> users-unsubscribe_at_glassfish.dev.java.net
>> > For additional commands, e-mail:
>> users-help_at_glassfish.dev.java.net
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail:
>> users-help_at_glassfish.dev.java.net
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail:
>> users-help_at_glassfish.dev.java.net
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>