Re: [jBoss-User] jBoss, firewalls & SSL/TLS - Readdressed

2000-10-27 Thread Brandon Campbell

Thanks, that would save a lot of headaches.

>>> [EMAIL PROTECTED] 10/27/00 09:29AM >>>
Hi!

Brandon Campbell wrote:
> >This is probably for the JNDI provider, for which we don't have a port
> >selection. A range configuration would be ok?
> 
> If it was a known range and wasn't too large it would be ok.  (my network people say 
>that 100 ports for a range is too large)
> 
> Is there a known range?

No, currently it is random. I will look into making it a range instead.

regards,
  Rickard

-- 
Rickard Öberg

Email: [EMAIL PROTECTED] 
http://www.telkel.com 
http://www.jboss.org 
http://www.dreambean.com 



--
--
To subscribe:[EMAIL PROTECTED] 
To unsubscribe:  [EMAIL PROTECTED] 
Problems?:   [EMAIL PROTECTED] 




--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




Re: [jBoss-User] jBoss, firewalls & SSL/TLS - Readdressed

2000-10-27 Thread Rickard Öberg

Hi!

Brandon Campbell wrote:
> >This is probably for the JNDI provider, for which we don't have a port
> >selection. A range configuration would be ok?
> 
> If it was a known range and wasn't too large it would be ok.  (my network people say 
>that 100 ports for a range is too large)
> 
> Is there a known range?

No, currently it is random. I will look into making it a range instead.

regards,
  Rickard

-- 
Rickard Öberg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com



--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




Re: [jBoss-User] jBoss, firewalls & SSL/TLS - Readdressed

2000-10-27 Thread Brandon Campbell



Rickard wrote

>This is probably for the JNDI provider, for which we don't have a port
>selection. A range configuration would be ok?

If it was a known range and wasn't too large it would be ok.  (my network people say 
that 100 ports for a range is too large)  

Is there a known range? 

Brandon






--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




Re: [jBoss-User] jBoss, firewalls & SSL/TLS - Readdressed

2000-10-26 Thread Rickard Öberg

Hi!

Brandon Campbell wrote:
> I'm not sure that the original message was answered, and I also have the same 
>question about jBoss and ports.  I know that I need port 1099 for naming and  for 
>?,  but there is one other port that is needed which seems to be a 'floating' port.  
>It apears that jboss has some way of choosing this port but when dealing with a 
>firewall I need more specifics than I can currently find.  So, My question is - Is 
>there a range that is used?  If so, where is this information stored?  I did a search 
>through the source for port and could find nothing that would help me.  Is anybody 
>using jBoss with a firewall between jBoss and the client?

This is probably for the JNDI provider, for which we don't have a port
selection. A range configuration would be ok?

/Rickard

-- 
Rickard Öberg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com



--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




Re: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-26 Thread Kyle Cordes


> > Alas, no... just something I saw in a newsgroup or mailing
> > list somewhere.
> > I will replace that vague answer with your specific benchmarks  :-)
>
> Or even better... run some tests yourself ;-)

I probably should.  It's hard to get motivated, though, since they are all
in the category of "fast enough".

> It still seems like RMI/JRMP and CORBA/IIOP are equal WRT performance (and
> yes I still believe that, in general, other factors and features such as
> interoperability, scalability, being able to dynamically download stubs
and
> so on... are more important than raw performance...).

I agree completely.

Kyle Cordes
www.kylecordes.com






--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




RE: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-26 Thread Per Bockman

Hi,

> > > >efficient to serialize in Java.  Apparently JRMP is
> quite a bit more
> > > >efficient/fast than IIOP, and some third-party RMI protocols
> > > (WebSphere's,
> > > >Orion's) are potentially even more efficient/fast.
>
> > Have you run any benchmarks to "prove" this!?! I'm writing
> a generic load
> > test suite with plugins for SOAP, CORBA, RMI, EJB, and local method
> > invocations.
>
> Alas, no... just something I saw in a newsgroup or mailing
> list somewhere.
> I will replace that vague answer with your specific benchmarks  :-)

Or even better... run some tests yourself ;-)

> In your JRMP test, did the client load the classes remotely,
> or were they in
> the client's classpath?  And does this matter?

I generated the client stubs using rmic and then the JVM loaded them from
the the classpath. How the stubs are obtained should (AFAIK) not matter at
all.

I just re-ran the test, this time using "true" remote invocations over a 10
MB/s LAN (the previous test was between two JVM:s on one host). The servers
ran on RedHat Linux 7.0 using JDK1.3.0 and the clients ran on WinNT 4 sp 5
using JDK1.3.0.

It still seems like RMI/JRMP and CORBA/IIOP are equal WRT performance (and
yes I still believe that, in general, other factors and features such as
interoperability, scalability, being able to dynamically download stubs and
so on... are more important than raw performance...).

Regards,
Per

> Kyle Cordes
> www.kylecordes.com



--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




Re: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-24 Thread Rickard Öberg

Hey

Aaron Mulder wrote:
> On Tue, 24 Oct 2000, Rickard Oberg wrote:
> > Nope, I think it would be better to add this to
> > org.jboss.ejb.deployment.JRMPContainerInvokerConfiguration where it belongs.
> 
> Okay, the change is in CVS.  This coincided with moving the
> standardXXX.xml files out of JARs and into the conf directory.  In order
> to change the port that the RMI objects are registered on, edit
> conf/standardjboss.xml and change all appearances of "" to something
> else.  Or you can remove the parameter altogether and then each object
> will pick its own port to listen on.  It's in there once for each
> container configuration.

Remember that explicitly setting port to "0" will also give you a
Whatever Port(tm). It may be good to keep the setting in there, but set
to 0, so that you can easily change to something more explicit later on.

> You still can't run the server twice out of the same installation
> directory unless you remove the port setting and use anonymous ports
> (because both instances of the server read the same standardjboss.xml
> file).  However, you can remove the parameter, and then set up a second
> set of configuration files as Rickard discussed in another thread, and
> that should work.
> I'll add this to the discussion in the manual on default ports and
> multiple server instances per machine.

I have thought about the configuration thingy and have an idea. The
current workings are not very good, and a simpler and better solution
would be like this:
Instead of having the startup parameter mean "look in foo.conf,
foo.jcml" etc., it should mean "look in foo/jboss.conf, foo/jboss.jcml"
etc., i.e. it should be a directory prefix. This would have the benefit
of having the same name for each conf file (which should reduce
confusion considerably, and it would also make it easier to actually
locate the files. Why? Because all we have to do is add
"../conf//" to the app classloader and then code can access
files such as "../conf//jboss.conf" by simply doing
getClass().getClassLoader().getResource("jboss.conf")!!! So, all we have
to do is change what directory is added to classpath and then all the
jBoss code can access those files.

Makes sense? It's a 1-minute fix too, so it's very to implement.

Let me know if there are any objections, otherwise I will go ahead with
this (i.e. move jboss.conf+jboss.jcml to
/jboss/jboss.conf+/jboss/jboss.jcml and add ../conf/ to
classpath).

regards,
  Rickard

-- 
Rickard Öberg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com



--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




Re: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-24 Thread Rickard Öberg

Hi!

Rick Horowitz wrote:
> This certainly increases the likelihood of bugs. What is the plan...to
> update EJX to use org.jboss.metadata?

The plan, in my mind at least, is to unify the models. How this will be
done I don't know just yet.

regards,
  Rickard

-- 
Rickard Öberg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com



--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




Re: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-24 Thread Aaron Mulder

On Tue, 24 Oct 2000, Rickard Oberg wrote:
> Nope, I think it would be better to add this to
> org.jboss.ejb.deployment.JRMPContainerInvokerConfiguration where it belongs.

Okay, the change is in CVS.  This coincided with moving the
standardXXX.xml files out of JARs and into the conf directory.  In order
to change the port that the RMI objects are registered on, edit
conf/standardjboss.xml and change all appearances of "" to something
else.  Or you can remove the parameter altogether and then each object
will pick its own port to listen on.  It's in there once for each
container configuration.
You still can't run the server twice out of the same installation
directory unless you remove the port setting and use anonymous ports
(because both instances of the server read the same standardjboss.xml
file).  However, you can remove the parameter, and then set up a second
set of configuration files as Rickard discussed in another thread, and
that should work.
I'll add this to the discussion in the manual on default ports and
multiple server instances per machine.

Aaron



--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




Re: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-24 Thread Kyle Cordes

> > >efficient to serialize in Java.  Apparently JRMP is quite a bit more
> > >efficient/fast than IIOP, and some third-party RMI protocols
> > (WebSphere's,
> > >Orion's) are potentially even more efficient/fast.

> Have you run any benchmarks to "prove" this!?! I'm writing a generic load
> test suite with plugins for SOAP, CORBA, RMI, EJB, and local method
> invocations.

Alas, no... just something I saw in a newsgroup or mailing list somewhere.
I will replace that vague answer with your specific benchmarks  :-)

In your JRMP test, did the client load the classes remotely, or were they in
the client's classpath?  And does this matter?

Kyle Cordes
www.kylecordes.com






--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




RE: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-24 Thread marc fleury

ok let's cool it down, the metadata rewrite was necessary since it was
unmaintainable/buggy/client stuff before.  At least now it is back to life
and it is moving afaict, which is good.

there is a price to pay and right now it means the client EJX needs to be
following closely the metadata model that evolves in jboss.  If EJX can't
follow the pace, don't be surprised since there are few people that can work
with that code :(

it is useless arguing it.  it was never a question of this is better than
that, it was "we need this in the container" and simple... what EJX needs I
don't know, you do rickard, it's your code...

For the newbie question, the metadata is the org.jboss.metadata, there was a
com.dreambean metadata before that caused us problems.  It still lives in
the EJX GUI and has a tough time following the pace of the jboss changes

roger?

marc


|-Original Message-
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of Rick Horowitz
|Sent: Tuesday, October 24, 2000 12:27 PM
|To: jBoss
|Subject: Re: [jBoss-User] jBoss, firewalls & SSL/TLS
|
|
|> > Here we begin seeing the problem of having two metadata
|models. I will not
|> > say anything, but you know my opinion on this one...
|>
|> Well, you know my opinion on the old model.  Perhaps instead of
|> insinuating insults, we could all work together to design a
|newer, better,
|> unified metadata scheme.
|
|For a newbie trying to learn the jboss internals...just what are you
|referring to with meta data models?  I've been through the code that
|reads the various xml files to obtain the meta data, the bean verifier
|and all. (Very nice code, btw).  What is the other meta data model?
|
|Rick Horowitz
|
|
|--
|--
|To subscribe:[EMAIL PROTECTED]
|To unsubscribe:  [EMAIL PROTECTED]
|Problems?:   [EMAIL PROTECTED]
|
|



--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




Re: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-24 Thread Rick Horowitz

Hi,

Rickard Öberg wrote:
> 
> Hey
> 
> Rick Horowitz wrote:
> > > > Here we begin seeing the problem of having two metadata models. I will not
> > > > say anything, but you know my opinion on this one...
> > >
> > > Well, you know my opinion on the old model.  Perhaps instead of
> > > insinuating insults, we could all work together to design a newer, better,
> > > unified metadata scheme.
> >
> > For a newbie trying to learn the jboss internals...just what are you
> > referring to with meta data models?  I've been through the code that
> > reads the various xml files to obtain the meta data, the bean verifier
> > and all. (Very nice code, btw).  What is the other meta data model?
> 
> The EJX GUI tool use one metadata model for the XML files, which is in
> org.jboss.ejb.deployment.
> 
> The container itself uses another metadata model for the XML files,
> which is in org.jboss.metadata.
> 
> Preferably these two should merge so that updating it is sufficient for
> both uses. Otherwise it is easy to update one and not the other and then
> we get usability problems such as "well, you can't do that because it's
> not up to date". Etc.

This certainly increases the likelihood of bugs. What is the plan...to
update EJX to use org.jboss.metadata?

> 
> /Rickard
> 
> --
> Rickard Öberg
> 
> Email: [EMAIL PROTECTED]
> http://www.telkel.com
> http://www.jboss.org
> http://www.dreambean.com
> 
> --
> --
> To subscribe:[EMAIL PROTECTED]
> To unsubscribe:  [EMAIL PROTECTED]
> Problems?:   [EMAIL PROTECTED]


--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




Re: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-24 Thread Rickard Öberg

Hi!

Rickard Öberg wrote:
> > No, I can't. From my knowledge of classloaders (middling) your logic
> > seems right. FYI, the JAAS sources are supposed to be includeed in the
> > jdk 1.4 release.
> 
> I just decompiled some JAAS classes  and it seems like Oleg was right
> :-( I have sent a note about this to the security folks at JavaSoft.
> We'll see.

I got an answer from the security team: they agree it's too paranoid,
and will change to simply use the context classloader. Yiha :-)

/Rickard

-- 
Rickard Öberg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com



--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




Re: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-24 Thread Rickard Öberg

Hey

Rick Horowitz wrote:
> > > Here we begin seeing the problem of having two metadata models. I will not
> > > say anything, but you know my opinion on this one...
> >
> > Well, you know my opinion on the old model.  Perhaps instead of
> > insinuating insults, we could all work together to design a newer, better,
> > unified metadata scheme.
> 
> For a newbie trying to learn the jboss internals...just what are you
> referring to with meta data models?  I've been through the code that
> reads the various xml files to obtain the meta data, the bean verifier
> and all. (Very nice code, btw).  What is the other meta data model?

The EJX GUI tool use one metadata model for the XML files, which is in
org.jboss.ejb.deployment.

The container itself uses another metadata model for the XML files,
which is in org.jboss.metadata. 

Preferably these two should merge so that updating it is sufficient for
both uses. Otherwise it is easy to update one and not the other and then
we get usability problems such as "well, you can't do that because it's
not up to date". Etc.

/Rickard

-- 
Rickard Öberg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com



--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




RE: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-24 Thread marc fleury

these files should NOT be there... we use the server ones by default

in fact i DONT know why they are there (EJX)

marc


|-Original Message-
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of Aaron Mulder
|Sent: Tuesday, October 24, 2000 10:15 AM
|To: jBoss
|Subject: Re: [jBoss-User] jBoss, firewalls & SSL/TLS
|
|
|On Tue, 24 Oct 2000, Aaron Mulder wrote:
|>  Okay, no problem.  It looks like JRMPContainerInvoker loads its
|> content directly from the XML Element in the new MetaData scheme, so that
|> should be a trivial fix.  I'll go ahead.  I'll make it default to
|> anonymous ports if the tag is not present, so you only specify it if you
|> have something to specify.
|
|   I remember why this is a bad idea.  standardjboss.xml is still in
|a JAR, which means that we can't expect users to change it.  So if you
|want to run 2 servers on the same machine, you have to create a jboss.xml
|for every EJB JAR, and then make 2 copies with different settings for this
|different server.  This is really ugly too.
|   I guess the solution is to move standardjboss.xml and
|standardjaws.xml out of the JARs, which is one of the things on my task
|list anyway.  I'll play around with that a little.  I'd really like them
|to go in jboss/conf, and since that should already be on the classpath,
|this shouldn't be a problem.  Any thoughts?
|
|Aaron
|
|
|
|--
|--
|To subscribe:[EMAIL PROTECTED]
|To unsubscribe:  [EMAIL PROTECTED]
|Problems?:   [EMAIL PROTECTED]
|
|



--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




Re: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-24 Thread Rick Horowitz

> > Here we begin seeing the problem of having two metadata models. I will not
> > say anything, but you know my opinion on this one...
> 
> Well, you know my opinion on the old model.  Perhaps instead of
> insinuating insults, we could all work together to design a newer, better,
> unified metadata scheme.

For a newbie trying to learn the jboss internals...just what are you
referring to with meta data models?  I've been through the code that
reads the various xml files to obtain the meta data, the bean verifier
and all. (Very nice code, btw).  What is the other meta data model?

Rick Horowitz


--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




RE: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-24 Thread marc fleury

|Per Bockman wrote:
|> > When it's done.
|>
|> Well, that's pretty obvious... and kinda non-informative...
|
|But extremely accurate. ;-)

LOL *0)

marc

|
|> Great! In the final release we'll be able to configure almost
|every aspect
|> of jBoss.
|>
|> 1) Is it possible to have different configuration settings for
|_one_ jBoss
|> installation (i.e. host)?  I'd like to be able to swap configuration
|> settings without editing / copying files to and from the conf
|directory. So
|> is it possible to do something like this:
|> java -Djboss.config.dir=..\testconf org.jboss.Main ?
|
|Indeed it is possible. The startup of jBoss is really:
|org.jboss.Main 
|but confname happens to default to "jboss" (i.e. "load /conf/jboss.conf
|and then apply /conf/jboss.jcml before starting all modules").
|
|So, you can have as many configurations as you want within one
|installation.
|
|That said, I just realized that the configuration MBean always stores to
|"jboss.jcml". Bummer. I'll fix that so it is instead stored to
|.jcml. Of course.
|
|> 2) I'd also like to be able to run several instances of jBoss on one host
|> simultaneously (e.g. one EJB Server for production and one for testing).
|
|The above should be helpful in doing this.
|
|I'll fix the conf name thingy.
|
|/Rickard
|
|--
|Rickard Öberg
|
|Email: [EMAIL PROTECTED]
|http://www.telkel.com
|http://www.jboss.org
|http://www.dreambean.com
|
|
|
|--
|--
|To subscribe:[EMAIL PROTECTED]
|To unsubscribe:  [EMAIL PROTECTED]
|Problems?:   [EMAIL PROTECTED]
|
|



--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




RE: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-24 Thread Per Bockman

> >> Almost.  I worked on a production CORBA system with applet client
> >> and custom server for intranets (1-5000 users, no
> tunneling or anything).
> >> We did a trial conversion to RMI & EJBs, and found the
> performance of RMI
> >> to be significantly better than CORBA, though that may be
> due to the fact
> >
> >As I understand, the idea of IIOP is to be Interoperable,
> not necessarily
> >efficient to serialize in Java.  Apparently JRMP is quite a bit more
> >efficient/fast than IIOP, and some third-party RMI protocols
> (WebSphere's,
> >Orion's) are potentially even more efficient/fast.

Have you run any benchmarks to "prove" this!?! I'm writing a generic load
test suite with plugins for SOAP, CORBA, RMI, EJB, and local method
invocations.

Below you'll find fresh (5 minutes old) results comparing JavaIDL/IIOP
(probably a rather crappy ORB) and RMI/JRMP (from SUN). There might be
something suspicious with my code, but both the CORBA and the RMI plugin
gets called from the same plugin-manager class. I ran the test on WinNT 4 sp
5 using JDK1.3.

The methods that the plugins implement are list below:
public void basicTest(short s, double d, String str) throws Exception;
public void blobTest(Blob b) throws Exception;
public void fooTest() throws Exception;
public void byteArrayTest(byte[] data) throws Exception;

Blob is a "value object" with three members: short s, double d, String str.

Test results:
Format:
test name (method)
3 * "time (in msecs) to make 3000 calls"
Total time, i.e. time0 + time1 + time2
Avg time: i.e. TotalTime/3*3000

--- JavaIDL / IIOP ---
Number of iterations: 3000
Number of runs: 3

Roundtrip (foo) results:
153314521452
Foo total time: 4437 msecs
Foo avg time: 0.493 msecs

Value objects (blob) results:
166215831563
Blob total time : 4808 msecs
Blob avg time : 0.534 msecs

Simple types (basic) results:
210315821542
Basic total time: 5227 msecs
Basic avg time: 0.5806 msecs

kbps (bytes) results:
179216621702
Bytes total time : 5156 msecs
Bytes avg time: 0.5728889
kbps: 1745.5392


--- RMI / JRMP? ---
(rmic -d .. generates JRMP stubs by default?)

Number of iterations: 3000
Number of runs: 3

Roundtrip (foo) results:
102110121031
Foo total time: 3064 msecs
Foo avg time: 0.3405 msecs

Value objects (blob) results:
274421432143
Blob total time : 7030 msecs
Blob avg time : 0.7806 msecs

Simple types (basic) results:
238413821252
Basic total time: 5018 msecs
Basic avg time: 0.5576 msecs

kbps (bytes) results:
223321032023
Bytes total time : 6359 msecs
Bytes avg time: 0.7065
kbps: 1415.3168

The test result seems to match Rickard's comments (see below). Wondering why
the time drops for each test run (i.e. time0 > time1 > time2) - it's the
HotSpot compiler in action ;-)

This test doesn't show you anything (as I haven't release it source code so
you can't really reproduce my "findings"). However I would appreciate if we
try to stick facts and not hearsay ;-)

IIOP is not necessarily an evil thing or even a slow thing, neither is JRMP.
I think that IIOP has some strength: it's proven that it works and that it's
scalable, it support service contexts (usefully for various things) and it
is actually rather efficient. However I'm not familiar with JRMP so I can't
really comment on that one:-)

My 2 cents ;-)

/Per


> Yeah. One of the most slow things in JRMP, or serialization
> in general, is
> the class descriptors. JRMP does it "the right way" with
> version id's and
> whatnot. It would be possible to make it simply send the name
> of the class
> instead (i.e. more like Externalizable works), but then all
> these nice "you
> have the wrong version" messages would go away, and instead
> we would get
> mysterious errors sometimes because there was a mismatch in classes.
>
> Overall JRMP is pretty ok, and when we get the asynch I/O
> stuff in JDK1.4,
> wow, that will be *seriously cool*...
>
> /Rickard



--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




Re: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-24 Thread Rickard Öberg

Hey

Rick Horowitz wrote:
> > I don't have the sources, as well as info about their availability.
> > But my statement can be "calculated" from the JAAS befavior.
> > When I put both jaas.jar and jboss.jar to lib/ext, they are both
> > loaded by the same classloader (thus, in this case the context class
> > loader is not needed at all), so Class.forName(name) should work, but
> > it causes ClassNotFound exception. Can you propose another explanation
> > of this behavior?
> >
> No, I can't. From my knowledge of classloaders (middling) your logic
> seems right. FYI, the JAAS sources are supposed to be includeed in the
> jdk 1.4 release.

I just decompiled some JAAS classes  and it seems like Oleg was right
:-( I have sent a note about this to the security folks at JavaSoft.
We'll see.

/Rickard

-- 
Rickard Öberg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com



--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




Re: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-24 Thread Rick Horowitz



Oleg Nitz wrote:
> 
> RH> Excuse me for butting in here, but are you referring to code in JAAS?
> RH> Are the JAAS sources available?  If so, where can I get them?
> 
> I don't have the sources, as well as info about their availability.
> But my statement can be "calculated" from the JAAS befavior.
> When I put both jaas.jar and jboss.jar to lib/ext, they are both
> loaded by the same classloader (thus, in this case the context class
> loader is not needed at all), so Class.forName(name) should work, but
> it causes ClassNotFound exception. Can you propose another explanation
> of this behavior?
> 
No, I can't. From my knowledge of classloaders (middling) your logic
seems right. FYI, the JAAS sources are supposed to be includeed in the
jdk 1.4 release.

Rick
> 
> --
> --
> To subscribe:[EMAIL PROTECTED]
> To unsubscribe:  [EMAIL PROTECTED]
> Problems?:   [EMAIL PROTECTED]


--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




Re: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-24 Thread Rickard Öberg

Oleg Nitz wrote:
> I don't have the sources, as well as info about their availability.
> But my statement can be "calculated" from the JAAS befavior.
> When I put both jaas.jar and jboss.jar to lib/ext, they are both
> loaded by the same classloader (thus, in this case the context class
> loader is not needed at all), so Class.forName(name) should work, but
> it causes ClassNotFound exception. Can you propose another explanation
> of this behavior?

Do you know which class loads the module? In that case simply run javap
on it to decompile.. :-)

/Rickard

-- 
Rickard Öberg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com



--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




Re: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-24 Thread Rick Horowitz

Oleg Nitz wrote:
> 
> Rickard Öberg wrote:
> RÖ> Oleg Nitz wrote:
> >> JAAS wouldn't find them. It always uses the system class loader to
> >> load LoginModules. I guess, there are some security reasons for that.
> 
> RÖ> Hm... I'm guessing it's a bug... IMHO it should use the context
> RÖ> classloader...
> There is not just
> 
>Class.forName(name)
> 
> there is
> 
>Class.forName(name, true, ClassLoader.getSystemClassLoader());

Excuse me for butting in here, but are you referring to code in JAAS? 
Are the JAAS sources available?  If so, where can I get them?

Thanks,

Rick Horowitz


--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




Re: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-24 Thread Aaron Mulder

On Tue, 24 Oct 2000, Aaron Mulder wrote:
>   Okay, no problem.  It looks like JRMPContainerInvoker loads its
> content directly from the XML Element in the new MetaData scheme, so that
> should be a trivial fix.  I'll go ahead.  I'll make it default to
> anonymous ports if the tag is not present, so you only specify it if you
> have something to specify.

I remember why this is a bad idea.  standardjboss.xml is still in
a JAR, which means that we can't expect users to change it.  So if you
want to run 2 servers on the same machine, you have to create a jboss.xml
for every EJB JAR, and then make 2 copies with different settings for this
different server.  This is really ugly too.
I guess the solution is to move standardjboss.xml and
standardjaws.xml out of the JARs, which is one of the things on my task
list anyway.  I'll play around with that a little.  I'd really like them
to go in jboss/conf, and since that should already be on the classpath,
this shouldn't be a problem.  Any thoughts?

Aaron



--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




Re: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-24 Thread Rickard Öberg

Hey

Aaron Mulder wrote:
> On Tue, 24 Oct 2000, Rickard Oberg wrote:
> > Nope, I think it would be better to add this to
> > org.jboss.ejb.deployment.JRMPContainerInvokerConfiguration where it belongs.
> > What this corresponds to in the "metadata" package I don't know.
> 
> Okay, no problem.  It looks like JRMPContainerInvoker loads its
> content directly from the XML Element in the new MetaData scheme, so that
> should be a trivial fix.  I'll go ahead.  I'll make it default to
> anonymous ports if the tag is not present, so you only specify it if you
> have something to specify.

Ok, good.

> > Here we begin seeing the problem of having two metadata models. I will not
> > say anything, but you know my opinion on this one...
> 
> Well, you know my opinion on the old model.  Perhaps instead of
> insinuating insults, we could all work together to design a newer, better,
> unified metadata scheme.

Actually I was not insinuating insults. I disagree with the situation in
general, i.e. having two metadata models, and not necessarily "this one
is better than that one". 

But, yes I would very much like to make a third unified model which
could be used for both server and EJX. That would make things so much
easier.

> I like the general approach of the new model better, but I wish
> the metadata classes would hold all the metadata instead of having
> "metadata clients" like the container invoker load their information
> directly from the XML tree.  Perhaps an XML tree is one of the better ways
> of representing an unknown set of tags for the dynamic clients (e.g. the
> instaces loaded by a reference on one tag that then need to process the
> data specific to them in other tags).  On the other hand, it may be better
> to restructure the XML to be more like this:
> 
> 
> 
> 
> 
> 
> That way we can create a fixed metadata object for the container
> invoker, with a class name and a Map of options, and we can have a
> fixed DTD that we can validate against even if you use a previously
> unknown container invoker with different required options.

Ah, I see. Yeah, that could work. Would be fairly easy to do even.

/Rickard

-- 
Rickard Öberg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com



--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




Re: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-24 Thread Aaron Mulder

On Tue, 24 Oct 2000, Rickard Oberg wrote:
> Nope, I think it would be better to add this to
> org.jboss.ejb.deployment.JRMPContainerInvokerConfiguration where it belongs.
> What this corresponds to in the "metadata" package I don't know.

Okay, no problem.  It looks like JRMPContainerInvoker loads its
content directly from the XML Element in the new MetaData scheme, so that
should be a trivial fix.  I'll go ahead.  I'll make it default to
anonymous ports if the tag is not present, so you only specify it if you
have something to specify.

> Here we begin seeing the problem of having two metadata models. I will not
> say anything, but you know my opinion on this one...

Well, you know my opinion on the old model.  Perhaps instead of
insinuating insults, we could all work together to design a newer, better,
unified metadata scheme.
I like the general approach of the new model better, but I wish
the metadata classes would hold all the metadata instead of having
"metadata clients" like the container invoker load their information
directly from the XML tree.  Perhaps an XML tree is one of the better ways
of representing an unknown set of tags for the dynamic clients (e.g. the
instaces loaded by a reference on one tag that then need to process the
data specific to them in other tags).  On the other hand, it may be better
to restructure the XML to be more like this:






That way we can create a fixed metadata object for the container
invoker, with a class name and a Map of options, and we can have a
fixed DTD that we can validate against even if you use a previously
unknown container invoker with different required options.

Aaron



--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




Re: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-24 Thread Rickard Oberg

Hey

> Shall we go ahead with a short-term fix of adding the RMI port
>(the port formerly known as ) to jboss.properties?  While not as
>advanced as configurable socket factories, it's a 30-second fix that would
>provide the requested functionality...


Nope, I think it would be better to add this to
org.jboss.ejb.deployment.JRMPContainerInvokerConfiguration where it belongs.
What this corresponds to in the "metadata" package I don't know.

Here we begin seeing the problem of having two metadata models. I will not
say anything, but you know my opinion on this one...

/Rickard








--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




Re: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-24 Thread Aaron Mulder

Shall we go ahead with a short-term fix of adding the RMI port
(the port formerly known as ) to jboss.properties?  While not as
advanced as configurable socket factories, it's a 30-second fix that would
provide the requested functionality...

Aaron

On Tue, 24 Oct 2000, Rickard [iso-8859-1] Öberg wrote:
> Hey
> 
> Per Bockman wrote:
> > > So, copy jboss.conf and jboss.jcml to whatever.conf and whatever.jcml,
> > > modify as you want, and then run with:
> > > java -classpath "%CLASSPATH%" org.jboss.Main whatever
> > 
> > I'm using jBoss beta prod 2 under jdk1.3 on NT and I've tried to follow the
> > path(s) that you've outlined... and I found a few "issues" (listed below).
> > 
> > 1) One stupid gotcha...
> > run.bat has changed between beta prod 2 and beta prod 3... In beta prod 3
> > you have to add ..\lib\jdbc2_0-stdext.jar;..\lib\jboss-jaas.jar in
> > additition to ..\conf to your classpath.
> 
> True. Not quite sure if this is good. Can the person that moved them
> from /lib/ext to /lib explain why this was done?
> 
> > 1) The reference to the new auth-module in conf\jboss.properties seems
> > strange:
> > (file: conf\jboss.properties)
> > 
> > java.security.auth.login.config==../conf/auth.conf
> > 
> > Why ../conf/...?
> 
> .. because it is in ../conf?
> 
> > 2) How do I specify different deploy directories (assuming that I don't want
> > to use the JMX web-interface for deployment)?
> > If I start two instances of jBoss they'll both scan the same deploy
> > directory. I think that the deploy directory should be configurable. (now
> > the second instance that tries to deploy a jar will fail because of the
> > hardcode  ServerSocket issue...)
> 
> The AutoDeployer constructor takes one argument. Modify the jboss.conf
> accordingly (you'll see what I mean if you look ;-)
> 
> > 3) How do I specify different ports for jnp, assuming that I have my
> > configuration in a directory \jx? I start jBoss with ..\jx
> > placed first in my classpath.
> > It seems like the jBoss code JNP first tries to load jnp.properties from the
> > conf directory.
> 
> The naming provider MBean should be changed so that configuration is not
> done through jnp.properties.
> 
> > > Uhm.. this should probably be in the manual BTW 8-)
> > I agree... but first someone with write access to the CVS should fix the
> > issues outlined above;-)
> 
> Hm.. what needs to be fixed? Are there issues with the above that aren't
> resolved as of this reply?
> 
> /Rickard
> 
> 



--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




Re: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-24 Thread Rickard Oberg

Hi!

>> Almost.  I worked on a production CORBA system with applet client
>> and custom server for intranets (1-5000 users, no tunneling or anything).
>> We did a trial conversion to RMI & EJBs, and found the performance of RMI
>> to be significantly better than CORBA, though that may be due to the fact
>
>As I understand, the idea of IIOP is to be Interoperable, not necessarily
>efficient to serialize in Java.  Apparently JRMP is quite a bit more
>efficient/fast than IIOP, and some third-party RMI protocols (WebSphere's,
>Orion's) are potentially even more efficient/fast.


Yeah. One of the most slow things in JRMP, or serialization in general, is
the class descriptors. JRMP does it "the right way" with version id's and
whatnot. It would be possible to make it simply send the name of the class
instead (i.e. more like Externalizable works), but then all these nice "you
have the wrong version" messages would go away, and instead we would get
mysterious errors sometimes because there was a mismatch in classes.

Overall JRMP is pretty ok, and when we get the asynch I/O stuff in JDK1.4,
wow, that will be *seriously cool*...

/Rickard





--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




Re: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-24 Thread Kyle Cordes

> Almost.  I worked on a production CORBA system with applet client
> and custom server for intranets (1-5000 users, no tunneling or anything).
> We did a trial conversion to RMI & EJBs, and found the performance of RMI
> to be significantly better than CORBA, though that may be due to the fact

As I understand, the idea of IIOP is to be Interoperable, not necessarily
efficient to serialize in Java.  Apparently JRMP is quite a bit more
efficient/fast than IIOP, and some third-party RMI protocols (WebSphere's,
Orion's) are potentially even more efficient/fast.

Kyle Cordes
www.kylecordes.com






--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




Re: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-24 Thread Rickard Öberg

Oleg Nitz wrote:
> JAAS wouldn't find them. It always uses the system class loader to
> load LoginModules. I guess, there are some security reasons for that.

Hm... I'm guessing it's a bug... IMHO it should use the context
classloader...

/Rickard

-- 
Rickard Öberg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com



--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




Re: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-24 Thread Rickard Öberg

Hi!

Oleg Nitz wrote:
> No problem to put them to the manifest.
> I decided to add them to the classpath in the run.bat
> as an example of how to add new JAAS LoginModules.
> I guess we won't force jBoss users to modify the manifest of run.jar.
> Though, if it is so important for you, I can move the mentioned files
> to the manifest.

I see your point.

So, what happens if one simply add them to lib/ext? That seems like the
natural thing to do?

/Rickard

-- 
Rickard Öberg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com



--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




RE: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-24 Thread Per Bockman

*blah blah*
> > 1) The reference to the new auth-module in
> conf\jboss.properties seems
> > strange:
> > (file: conf\jboss.properties)
> > 
> > java.security.auth.login.config==../conf/auth.conf
> >
> > Why ../conf/...?
>
> .. because it is in ../conf?

That's brilliant! Why didn't I think of that! Seriously: jboss.properties is
placed in  \conf, the same directory as auth.conf.
Ehhmmm... now I see: if you load auth.conf relative user.dir
(\bin) it has to be: ..\conf\auth. To conclude: I'm sorry for
bothering you with this!

> > 2) How do I specify different deploy directories (assuming
> that I don't want
> > to use the JMX web-interface for deployment)?
> > If I start two instances of jBoss they'll both scan the same deploy
> > directory. I think that the deploy directory should be
> configurable. (now
> > the second instance that tries to deploy a jar will fail
> because of the
> > hardcode  ServerSocket issue...)
>
> The AutoDeployer constructor takes one argument. Modify the jboss.conf
> accordingly (you'll see what I mean if you look ;-)

I did a "find in files" for 'deploy' and it showed no results (or so I
thought...). d*rn Explorer crashes all the time. bill's fault? nah..
probably mine... I rest my case ;-)

> > 3) How do I specify different ports for jnp, assuming that I have my
> > configuration in a directory \jx? I start jBoss
> with ..\jx
> > placed first in my classpath.
> > It seems like the jBoss code JNP first tries to load
> jnp.properties from the
> > conf directory.
>
> The naming provider MBean should be changed so that
> configuration is not
> done through jnp.properties.

Okie.

> > > Uhm.. this should probably be in the manual BTW 8-)
> > I agree... but first someone with write access to the CVS
> should fix the
> > issues outlined above;-)
>
> Hm.. what needs to be fixed? Are there issues with the above
> that aren't
> resolved as of this reply?

Someone will need to propagate the fixes to CVS. I'm happy with your
explanations:-)
(Here's a bonus issue: I also discovered a bug that corrupted jboss.jcml,
however I think the bug only manifested itself when I misused the
configuration & classpath settings...)

Thanks!
/Per



--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




Re: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-24 Thread Rickard Öberg

Hi!

> 1) One stupid gotcha...
> run.bat has changed between beta prod 2 and beta prod 3... In beta prod 3
> you have to add ..\lib\jdbc2_0-stdext.jar;..\lib\jboss-jaas.jar in
> additition to ..\conf to your classpath.

Regardless of whether they should be in lib or or lib/ext: if lib/ext
then they are added by the ClassPathExtension MBean, but if in lib then
they should be added through the manifest file for run.jar and NOT
through classpath. 

Has it been tested to add these to manifest of run.jar and it failed
or..?

/Rickard

-- 
Rickard Öberg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com



--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




Re: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-24 Thread Rickard Öberg

Hey

Per Bockman wrote:
> > So, copy jboss.conf and jboss.jcml to whatever.conf and whatever.jcml,
> > modify as you want, and then run with:
> > java -classpath "%CLASSPATH%" org.jboss.Main whatever
> 
> I'm using jBoss beta prod 2 under jdk1.3 on NT and I've tried to follow the
> path(s) that you've outlined... and I found a few "issues" (listed below).
> 
> 1) One stupid gotcha...
> run.bat has changed between beta prod 2 and beta prod 3... In beta prod 3
> you have to add ..\lib\jdbc2_0-stdext.jar;..\lib\jboss-jaas.jar in
> additition to ..\conf to your classpath.

True. Not quite sure if this is good. Can the person that moved them
from /lib/ext to /lib explain why this was done?

> 1) The reference to the new auth-module in conf\jboss.properties seems
> strange:
> (file: conf\jboss.properties)
> 
> java.security.auth.login.config==../conf/auth.conf
> 
> Why ../conf/...?

.. because it is in ../conf?

> 2) How do I specify different deploy directories (assuming that I don't want
> to use the JMX web-interface for deployment)?
> If I start two instances of jBoss they'll both scan the same deploy
> directory. I think that the deploy directory should be configurable. (now
> the second instance that tries to deploy a jar will fail because of the
> hardcode  ServerSocket issue...)

The AutoDeployer constructor takes one argument. Modify the jboss.conf
accordingly (you'll see what I mean if you look ;-)

> 3) How do I specify different ports for jnp, assuming that I have my
> configuration in a directory \jx? I start jBoss with ..\jx
> placed first in my classpath.
> It seems like the jBoss code JNP first tries to load jnp.properties from the
> conf directory.

The naming provider MBean should be changed so that configuration is not
done through jnp.properties.

> > Uhm.. this should probably be in the manual BTW 8-)
> I agree... but first someone with write access to the CVS should fix the
> issues outlined above;-)

Hm.. what needs to be fixed? Are there issues with the above that aren't
resolved as of this reply?

/Rickard

-- 
Rickard Öberg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com



--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




RE: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-24 Thread Per Bockman

> Rickard Öberg wrote:
> > That said, I just realized that the configuration MBean
> always stores to
> > "jboss.jcml". Bummer. I'll fix that so it is instead stored to
> > .jcml. Of course.
>
> The above was wrong. The MBean does indeed store into the right JCML
> file in the current code. :-)
Yes, so it seems ;-)

> So, copy jboss.conf and jboss.jcml to whatever.conf and whatever.jcml,
> modify as you want, and then run with:
> java -classpath "%CLASSPATH%" org.jboss.Main whatever

I'm using jBoss beta prod 2 under jdk1.3 on NT and I've tried to follow the
path(s) that you've outlined... and I found a few "issues" (listed below).

1) One stupid gotcha...
run.bat has changed between beta prod 2 and beta prod 3... In beta prod 3
you have to add ..\lib\jdbc2_0-stdext.jar;..\lib\jboss-jaas.jar in
additition to ..\conf to your classpath.

1) The reference to the new auth-module in conf\jboss.properties seems
strange:
(file: conf\jboss.properties)

java.security.auth.login.config==../conf/auth.conf

Why ../conf/...?

2) How do I specify different deploy directories (assuming that I don't want
to use the JMX web-interface for deployment)?
If I start two instances of jBoss they'll both scan the same deploy
directory. I think that the deploy directory should be configurable. (now
the second instance that tries to deploy a jar will fail because of the
hardcode  ServerSocket issue...)

3) How do I specify different ports for jnp, assuming that I have my
configuration in a directory \jx? I start jBoss with ..\jx
placed first in my classpath.
It seems like the jBoss code JNP first tries to load jnp.properties from the
conf directory.

I MIGHT HAVE FOUND THE EVIL ONE: From the manifest file in run.jar:
Class-Path: ../lib/jmxri.jar ../conf/ ../client/jboss-client.jar
../lib/xml.jar ../lib/jaas.jar

I guess that the JNP server gets its configuration file from the
classloader, then ../conf then will be placed before ..\jx 


> Uhm.. this should probably be in the manual BTW 8-)
I agree... but first someone with write access to the CVS should fix the
issues outlined above;-)

/Per



--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




Re: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-24 Thread Rickard Öberg

Hey

*sigh*

Rickard Öberg wrote:
> That said, I just realized that the configuration MBean always stores to
> "jboss.jcml". Bummer. I'll fix that so it is instead stored to
> .jcml. Of course.

The above was wrong. The MBean does indeed store into the right JCML
file in the current code. :-)

So, copy jboss.conf and jboss.jcml to whatever.conf and whatever.jcml,
modify as you want, and then run with:
java -classpath "%CLASSPATH%" org.jboss.Main whatever

Uhm.. this should probably be in the manual BTW 8-)

/Rickard

-- 
Rickard Öberg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com



--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




Re: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-24 Thread Rickard Öberg

Hi!

Per Bockman wrote:
> > When it's done.
> 
> Well, that's pretty obvious... and kinda non-informative...

But extremely accurate. ;-)

> Great! In the final release we'll be able to configure almost every aspect
> of jBoss.
> 
> 1) Is it possible to have different configuration settings for _one_ jBoss
> installation (i.e. host)?  I'd like to be able to swap configuration
> settings without editing / copying files to and from the conf directory. So
> is it possible to do something like this:
> java -Djboss.config.dir=..\testconf org.jboss.Main ?

Indeed it is possible. The startup of jBoss is really:
org.jboss.Main 
but confname happens to default to "jboss" (i.e. "load /conf/jboss.conf
and then apply /conf/jboss.jcml before starting all modules"). 

So, you can have as many configurations as you want within one
installation. 

That said, I just realized that the configuration MBean always stores to
"jboss.jcml". Bummer. I'll fix that so it is instead stored to
.jcml. Of course.

> 2) I'd also like to be able to run several instances of jBoss on one host
> simultaneously (e.g. one EJB Server for production and one for testing).

The above should be helpful in doing this.

I'll fix the conf name thingy.

/Rickard

-- 
Rickard Öberg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com



--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




RE: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-24 Thread Per Bockman

> > No offense but... has anyone used RMI for real systems?
> I've tunneled CORBA
> > traffic through HTTP and run IIOP over SSL - in working,
> real-life systems
> > ;-)
> > Well, I'm a RMI newbie (I've only written one application
> for performance
> > testing) so I'd really like to hear about your
> real-world-RMI experiences!

>   Almost.  I worked on a production CORBA system with
> applet client
> and custom server for intranets (1-5000 users, no tunneling
> or anything).
> We did a trial conversion to RMI & EJBs, and found the
> performance of RMI
> to be significantly better than CORBA, though that may be due
> to the fact
> that we made heavy use of CORBA Anys.  Anyway, we didn't end
> up converting
> at the time (a few months ago) because a major client
> demanded Macintosh
> support, and while we could use a Java 1 client and Java 2 server with
> CORBA, we could not find a good EJB platform that would allow
> that (and
> Mac doesn't have a Java 2 VM yet).

CORBA Anys are slw... don't (mis)use 'em if don't have to;-)
1) if you have a fixed number types that you expect to pass you should
really use unions instead... much faster.. and better type safety...
2) if you're only sending object references, well a general CORBA::Object
will do the job...
3) you might also want to look at value-types (if your ORB supports 'em)

If you compare performance for SUN:s implementation of IIOP (in JavaIDL) and
their implementation of RMI/JRMP you'll see that RMI/JRMP is faster.
However, SUN doesn't have a very good track-record for building CORBA
ORB:s... I you want speed, get hold of a decent CORBA C++ ORB (fancy
implementations can use stuff like shared memory transport for intra-process
communication on one host) or use pure socket communication...

Personally I'm do not think that "performance" should be the only (or even a
very important) criteria for choosing a particular technology or
implementation (there are loads of other aspects which are more interesting
e.g. stability, scalability, ...).

As for running RMI-over-HTTP (or IIOP-over-HTTP) I think it's not the right
way to go anyway... I was just curious to hear if anyone had actually used
it. Stuff like SOAP or OMG:s SCOAP effort might be better approaches, even
though SOAP is 30-60 times (a.k.a. "significantly") slower than both
RMI/JRMP and JavaIDL/IIOP...

Regards,
Per



--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




RE: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-24 Thread Per Bockman

> > The JRMPContainerInvoker will be upgraded eventually to
> allow socket
> > > factories to be plugged in. The primary use for this would
> > > probably be to
> > > have SSL socket factories.
> >
> > Could you be more precise (i.e. will we see pluggable
> Socket Factories in
> > November -00, December -00, January -01, ...)?
>
> When it's done.

Well, that's pretty obvious... and kinda non-informative...

> > > > 2) Which IP-ports does jBoss listen on (e.g. 1099 for
> > > naming, 8082, 8083,
> > > > ... what about the jBoss/RMI counterpart to the CORBA
> > > POAManager...)?
> >
> > 
> > To the FINAL - release?
>
> Setting the port should be in final.

Great! In the final release we'll be able to configure almost every aspect
of jBoss.

1) Is it possible to have different configuration settings for _one_ jBoss
installation (i.e. host)?  I'd like to be able to swap configuration
settings without editing / copying files to and from the conf directory. So
is it possible to do something like this:
java -Djboss.config.dir=..\testconf org.jboss.Main ?

2) I'd also like to be able to run several instances of jBoss on one host
simultaneously (e.g. one EJB Server for production and one for testing).

I guess that a simple solution for 2) would be to make two installations ;-)

Regards,
Per



--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




Re: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-23 Thread Rickard Öberg

Hi!

Per Bockman wrote:
> > The JRMPContainerInvoker will be upgraded eventually to allow socket
> > factories to be plugged in. The primary use for this would
> > probably be to
> > have SSL socket factories.
> 
> Could you be more precise (i.e. will we see pluggable Socket Factories in
> November -00, December -00, January -01, ...)?

When it's done.

> > > 2) Which IP-ports does jBoss listen on (e.g. 1099 for
> > naming, 8082, 8083,
> > > ... what about the jBoss/RMI counterpart to the CORBA
> > POAManager...)?
> 
> 
> To the FINAL - release?

Setting the port should be in final.

/Rickard

-- 
Rickard Öberg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com



--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




Re: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-23 Thread Tom Cook

Rickard Oberg writes:
 > Hey
 > 
 > > I need some basic information for setting up jBoss in a "real"
 > environment.
 > >
 > > 1) How do I set up jBoss to use "JRMP over SSL" (e.g. I want jBoss to use
 > a
 > > SSLServerSocketFactory instead of the standard SocketFactory)? What's the
 > > current and "planned" jBoss-SSL integration story (if any...)?
 > 
 > The JRMPContainerInvoker will be upgraded eventually to allow socket
 > factories to be plugged in. The primary use for this would probably be to
 > have SSL socket factories.
 > 
 > > 2) Which IP-ports does jBoss listen on (e.g. 1099 for naming, 8082, 8083,
 > > ... what about the jBoss/RMI counterpart to the CORBA POAManager...)?
 > 
 >  if I remember correctly. Either that or anonymous, i.e. whatever.
 > Having an anonymous port is good since it allows several jBoss instances to
 > live on the same server, which is useful for clustering. Having an anonymous
 > port is bad since it makes it harder to set up firewalls to let through
 > jBoss traffic (will this be common?). This should probably be configurable
 > further down the road.

I can be useful to let this sort of thing through a firewall in the
case where you have your middleware on an internal network
(192.168.1.3) and your servlet container on a DMZ (201.11.44.7).  Then
you need to be able to let RMI through your firewall, but preferrably
you don't allow everything between the two machines.

Of course, if you had a spare machine you would put your servlet
container inside your firewall too, and just have a vanilla web server
on the DMZ.

Tom
-- 
Tom Cook - Software Operations

"We rarely find that people have good sense unless they agree
 with us."
- Francois, Duc de la Rochefoucauld

LISAsoft Pty Ltd - www.lisa.com.au

--
38 Greenhill Rd.  Level 3, 228 Pitt Street
Wayville, SA, 5034Sydney, NSW, 2000

Phone:   +61 8 8272 1555  Phone:   +61 2 9283 0877
Fax: +61 8 8271 1199  Fax: +61 2 9283 0866
--


--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




RE: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-23 Thread Aaron Mulder

On Sun, 22 Oct 2000, Per Bockman wrote:
> No offense but... has anyone used RMI for real systems? I've tunneled CORBA
> traffic through HTTP and run IIOP over SSL - in working, real-life systems
> ;-)
> Well, I'm a RMI newbie (I've only written one application for performance
> testing) so I'd really like to hear about your real-world-RMI experiences!
> 
> Regards,
> Per

Almost.  I worked on a production CORBA system with applet client
and custom server for intranets (1-5000 users, no tunneling or anything).  
We did a trial conversion to RMI & EJBs, and found the performance of RMI
to be significantly better than CORBA, though that may be due to the fact
that we made heavy use of CORBA Anys.  Anyway, we didn't end up converting
at the time (a few months ago) because a major client demanded Macintosh
support, and while we could use a Java 1 client and Java 2 server with
CORBA, we could not find a good EJB platform that would allow that (and
Mac doesn't have a Java 2 VM yet).
My 2 cents.

Aaron



--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




RE: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-23 Thread Jeremiah Johnson

> > > 3) Has anyone tried to use HTTP-tunneled RMI (the
> > cgi-script that SUN
> > > provides)? Any gotchas or performance problems?
> >
> > No experience there.
> 
> No offense but... has anyone used RMI for real systems? I've
> tunneled CORBA traffic through HTTP and run IIOP over SSL -
> in working, real-life systems

I use RMI for real systems, but RMI over HTTP is not a real-world solution, IMHO.  Use 
the socket factories.  We implemented RMI over SSL and use the socket factory to also 
lock on a single port.  It is fast and we only need to forward two ports through the 
firewall (one for look-ups and one for communication).

- jeremiah

---
FREE! The World's Best Email Address @email.com
Reserve your name now at http://www.email.com




--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




RE: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-22 Thread Per Bockman

Thanks for your responses! I've inlined a few follow-up questions below.

> > 1) How do I set up jBoss to use "JRMP over SSL" (e.g. I
> want jBoss to use
> a
> > SSLServerSocketFactory instead of the standard
> SocketFactory)? What's the
> > current and "planned" jBoss-SSL integration story (if any...)?
>
> The JRMPContainerInvoker will be upgraded eventually to allow socket
> factories to be plugged in. The primary use for this would
> probably be to
> have SSL socket factories.

Could you be more precise (i.e. will we see pluggable Socket Factories in
November -00, December -00, January -01, ...)?

> > 2) Which IP-ports does jBoss listen on (e.g. 1099 for
> naming, 8082, 8083,
> > ... what about the jBoss/RMI counterpart to the CORBA
> POAManager...)?



To the FINAL - release?

> > 3) Has anyone tried to use HTTP-tunneled RMI (the
> cgi-script that SUN
> > provides)? Any gotchas or performance problems?
>
> No experience there.

No offense but... has anyone used RMI for real systems? I've tunneled CORBA
traffic through HTTP and run IIOP over SSL - in working, real-life systems
;-)
Well, I'm a RMI newbie (I've only written one application for performance
testing) so I'd really like to hear about your real-world-RMI experiences!

Regards,
Per



--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




RE: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-20 Thread marc fleury

ok make it configurable and give us a diff, it will go in

amrc


|-Original Message-
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of Scherr Gerolf
|Sent: Friday, October 20, 2000 3:18 AM
|To: jBoss
|Subject: AW: [jBoss-User] jBoss, firewalls & SSL/TLS
|
|
|
|
|> -Ursprüngliche Nachricht-
|> Von: Rickard Oberg [SMTP:[EMAIL PROTECTED]]
|> Gesendet am: Freitag, 20. Oktober 2000 11:54
|> An:  jBoss
|> Betreff:     Re: [jBoss-User] jBoss, firewalls & SSL/TLS
|>
|   [...]
|
|> > 2) Which IP-ports does jBoss listen on (e.g. 1099 for naming, 8082,
|> 8083,
|> > ... what about the jBoss/RMI counterpart to the CORBA POAManager...)?
|>
|>  if I remember correctly. Either that or anonymous, i.e. whatever.
|> Having an anonymous port is good since it allows several jBoss instances
|> to
|> live on the same server, which is useful for clustering. Having an
|> anonymous
|> port is bad since it makes it harder to set up firewalls to let through
|> jBoss traffic (will this be common?). This should probably be
|configurable
|> further down the road.
|>
|   I mentioned this problem already in
|
|http://www.mail-archive.com/[email protected]/msg03873.html
|   but I have got no response in that issue
|
|   since the  is hardcoded, it is not possible to have two
|instances of jboss running on the same machine (without applying my
|change)...
|
|   gerolf.
|
|
|
|--
|--
|To subscribe:[EMAIL PROTECTED]
|To unsubscribe:  [EMAIL PROTECTED]
|Problems?:   [EMAIL PROTECTED]
|
|



--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




RE: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-20 Thread marc fleury

| if I remember correctly. Either that or anonymous, i.e. whatever.
|Having an anonymous port is good since it allows several jBoss instances to
|live on the same server, which is useful for clustering. Having an
|anonymous
|port is bad since it makes it harder to set up firewalls to let through
|jBoss traffic (will this be common?). This should probably be configurable
|further down the road.

good question... I sorta assume that jboss will leave embedded under
tomcat/resin/apache/jetty for real WEB usage so that firewall setting should
not be a problem for jboss.

marc

|
|> 3) Has anyone tried to use HTTP-tunneled RMI (the cgi-script that SUN
|> provides)? Any gotchas or performance problems?
|
|No experience there.
|
|/Rickard
|
|
|
|
|--
|--
|To subscribe:[EMAIL PROTECTED]
|To unsubscribe:  [EMAIL PROTECTED]
|Problems?:   [EMAIL PROTECTED]
|
|



--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




Re: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-20 Thread Dan Kearns

>  if I remember correctly. Either that or anonymous, i.e. whatever.
> Having an anonymous port is good since it allows several jBoss instances
to
> live on the same server, which is useful for clustering. Having an
anonymous
> port is bad since it makes it harder to set up firewalls to let through
> jBoss traffic (will this be common?).

This should be pretty common. Appservers tend to live close to the databases
and require lots of network connections to various other systems, while the
main clients (webservers...) tend to live in some flavor of DMZ, so there is
often at least a router in between if not a full firewall.

So totally anonymous is bad, a configurable port range (ala dce) would be
better, and individually configurable ports would make the network folk
happiest.

-d
--
Dan Kearns <[EMAIL PROTECTED]>




--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




Re: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-20 Thread Rickard Oberg

Hey

> I need some basic information for setting up jBoss in a "real"
environment.
>
> 1) How do I set up jBoss to use "JRMP over SSL" (e.g. I want jBoss to use
a
> SSLServerSocketFactory instead of the standard SocketFactory)? What's the
> current and "planned" jBoss-SSL integration story (if any...)?

The JRMPContainerInvoker will be upgraded eventually to allow socket
factories to be plugged in. The primary use for this would probably be to
have SSL socket factories.

> 2) Which IP-ports does jBoss listen on (e.g. 1099 for naming, 8082, 8083,
> ... what about the jBoss/RMI counterpart to the CORBA POAManager...)?

 if I remember correctly. Either that or anonymous, i.e. whatever.
Having an anonymous port is good since it allows several jBoss instances to
live on the same server, which is useful for clustering. Having an anonymous
port is bad since it makes it harder to set up firewalls to let through
jBoss traffic (will this be common?). This should probably be configurable
further down the road.

> 3) Has anyone tried to use HTTP-tunneled RMI (the cgi-script that SUN
> provides)? Any gotchas or performance problems?

No experience there.

/Rickard




--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




Re: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-20 Thread Julian Gosnell


This doesn't go all the way, but it may help...

I have already posted the list about Jetty-3
(WebServer/ServletContainer), which I am integrating,
intra-vm, with JBoss.

Jetty comes with SSL (may not help...)
Jetty comes with a CGI servlet (calls CGI scripts)

To learn more about Jetty : jetty.mortbay.com
To learn more about jboss-jetty, mail me !

Hope this helps,


Jules


--- Per Bockman <[EMAIL PROTECTED]> wrote: > Hi all,
> 
> I need some basic information for setting up jBoss
> in a "real" environment.
> 
> 1) How do I set up jBoss to use "JRMP over SSL"
> (e.g. I want jBoss to use a
> SSLServerSocketFactory instead of the standard
> SocketFactory)? What's the
> current and "planned" jBoss-SSL integration story
> (if any...)?
> 
> 2) Which IP-ports does jBoss listen on (e.g. 1099
> for naming, 8082, 8083,
> ... what about the jBoss/RMI counterpart to the
> CORBA POAManager...)?
> 
> 3) Has anyone tried to use HTTP-tunneled RMI (the
> cgi-script that SUN
> provides)? Any gotchas or performance problems?
> 
> Regards,
> Per
> ___
> Per Böckman
> ENEA Business Software
> ___
> 
> 
> 
> --
>
--
> To subscribe:   
> [EMAIL PROTECTED]
> To unsubscribe: 
> [EMAIL PROTECTED]
> Problems?:   [EMAIL PROTECTED]
> 


__
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/


--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]




Re: [jBoss-User] jBoss, firewalls & SSL/TLS

2000-10-20 Thread Julian Gosnell


This doesn't go all the way, but it may help...

I have already posted the list about Jetty-3
(WebServer/ServletContainer), which I am integrating,
intra-vm, with JBoss.

Jetty comes with SSL (may not help...)
Jetty comes with a CGI servlet (calls CGI scripts)

To learn more about Jetty : jetty.mortbay.com
To learn more about jboss-jetty, mail me !

Hope this helps,


Jules


--- Per Bockman <[EMAIL PROTECTED]> wrote: > Hi all,
> 
> I need some basic information for setting up jBoss
> in a "real" environment.
> 
> 1) How do I set up jBoss to use "JRMP over SSL"
> (e.g. I want jBoss to use a
> SSLServerSocketFactory instead of the standard
> SocketFactory)? What's the
> current and "planned" jBoss-SSL integration story
> (if any...)?
> 
> 2) Which IP-ports does jBoss listen on (e.g. 1099
> for naming, 8082, 8083,
> ... what about the jBoss/RMI counterpart to the
> CORBA POAManager...)?
> 
> 3) Has anyone tried to use HTTP-tunneled RMI (the
> cgi-script that SUN
> provides)? Any gotchas or performance problems?
> 
> Regards,
> Per
> ___
> Per Böckman
> ENEA Business Software
> ___
> 
> 
> 
> --
>
--
> To subscribe:   
> [EMAIL PROTECTED]
> To unsubscribe: 
> [EMAIL PROTECTED]
> Problems?:   [EMAIL PROTECTED]
> 


__
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/


--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:   [EMAIL PROTECTED]