[JBoss-user] Transactions in XPetstore

2003-02-03 Thread Alex Loubyansky
Transaction configurations in XPetstore-2.2 aren't spec 2.0 compliant.
CMP beans can have only Required, RequiresNew or Mandatory tx
attrs, while in XPetstore we can meet Supports and even NotSupported
(Account.getUserId()).

I didn't run the XPetstore on 3.0 but I ran it on JBoss-3.2RC2 and
HEAD.
In RC2 I was able to browse the catalog but something's wrong with
the shopping cart: the state is just not stored.
In HEAD, I couldn't even browse the catalog due to the exception saying
there is not tx associated with the current thread.

Changing tx attributes to Required fixes the problem.

PS: below is the relevant excerpt from the spec.

alex

17.4.1 Transaction attributes
...
For entity beans that use EJB 2.0 container-managed persistence, only the Required,
RequiresNew, or Mandatory transaction attributes should be used for the methods 
defined in the
bean’s component interface and all the direct and indirect superinterfaces of the 
component interface,
excluding the getEJBHome, getEJBLocalHome, getHandle, getPrimaryKey, and isIdentical
methods; and for the methods defined in the bean’s home interface and all the direct 
and
indirect superinterfaces of the home interface, excluding the getEJBMetaData and 
getHomeHandle
methods specific to the remote home interface. Containers may optionally support the 
use of the
NotSupported, Supports, and Never transaction attributes for the methods of entity 
beans with
container-managed persistence. However, entity beans with container-managed 
persistence that use
these transaction attributes will not be portable.




---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Say No to NetBeans

2003-02-03 Thread Tony Tortallini
Blah blah blah ... but you still never rebutted my point about NetBeans
screwing up Java IDE revenue models. Thanks for reminding me that JBoss and
NetBeans are both open source. As for open source app servers, we already
got one. It's called the Sun ONE app server. It's certified. Put that in
your JBoss pipe 'n smoke it.

http://www.oetrends.com/cgi-bin/page_display.cgi?77


- Original Message -
From: "Curt Johnson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 02, 2003 11:24 PM
Subject: Re: [JBoss-user] Say No to NetBeans


> Tony Tortallini wrote:
>
> >I recommend against using the NetBeans IDE for application development. I
> >think it's important to have a community process, open specs, and choice
for
> >the customer, absolutely. How that gets implemented, I don't particularly
> >care. I actually think we need more revenue in the Java IDE space, so
that
> >they can do more advertising to get the message out, because right now
the
> >world is getting blitzed with Microsoft advertising, and promotion and
> >branding and propaganda, and big lies, and that's why they're going, not
> >because it's a better product.
> >
> >So, potentially you could make an argument that the open source IDE thing
is
> >just screwing up all the revenue models and they aren't getting the
> >advertising, because it isn't the best technology that always wins, it's
who
> >advertises more. You could make a very strong argument that says, "No
that's
> >messing with it." And in fact Bill Gates may be sitting up there laughing
> >his butt off because the open source IDE community is cutting the legs
out
> >from under all the R&D and promotion efforts of all the open interface
> >strategies -- not open implementation, but open interface strategies.
> >NetBeans is ruining it for everyone and don't even get me started on that
> >while Apache thing.
> >
> >
> >
> Sorry, but the shortsightedness and ignorance of this post compels me to
> reply. I don't know if this is a troll or very subtle sarcasm, but in
> any case I can't let it sit out there without a rebuttal.
>
> Personally, I don't like NetBeans, I prefer IntelliJ for my IDE. I like
> how IntelliJ gets in my way less than other IDE's and stays out of my
> way when I use it's features. I don't have to change my development
> style to match the IDE, nor am I tied in any way to the IDE. That's what
> I want out of an IDE and that's what I feel that IntelliJ currently
> delivers the best.
>
> Now, will I always use IntelliJ? That is always up for debate, Eclipse
> may provide better integration with my tools, or NetBeans might get rid
> of the 'virtual filesystem' stupidity that turned me off the first time
> I used it. The second I think I will be more productive, you can bet I'm
> jumping ship. I use JBoss for the same reason. I've been writing J2EE
> apps for several years now and JBoss is by far the least brain-damaged
> of all the J2EE app servers. I don't want to tie myself to WebSphere or
> pay through the nose for a less stable platform like WebLogic. However,
> my loyalty to JBoss only continues because the JBoss team continues to
> deliver a product that meets my needs (My gratitude goes much farther
> though, thanks guys).
>
> So what does JBoss or NetBeans, or most Open Source apps have in common?
> They provide infrastructure services, the basic building blocks of the
> system. Quite frankly, Sun's brain damage has done a lot more to hurt
> the Java community than any Open Source project could dream to do. If it
> wasn't for the Open Source implimentations do you have any question that
> J2EE would be a niche technology today? Like Linux, Apache, Sendmail and
> Bind, JBoss and NetBeans provide the basic tools to use these
> environments. They all are the most popular because they are the most
> cost effective solution and provide the most value to the majority of
> the infrastructure's users.
>
> Given the choice between a Sun workstation and a RedHat box for my
> desktop, I'd take the RedHat box, why? Does Solaris scale better? Yes.
> Does Solaris have a more proven track-record? Yes. Minus hardware costs,
> are they the same price? Yes. Why would I choose RedHat? With RedHat I
> get every app I need with a 20 minute install and most of the others are
> an 'rpm -ivh' away. I don't have to hand install bash, or make, or gcc,
> it comes preinstalled. Perl is already there, as is Apache and Gnome. It
> makes me more productive.
>
> Back to my comment about Sun causing more damage to the Java community.
> Why doesn't my RedHat install have a working JDK, or a J2EE library
> preinstalled? Because Sun thought it would be a good idea to charge
> RedHat ~$2million for the privilege of doing compliance testing and
> signing a distribution agreement. I got this from several RH employees
> at the last ALS in Atlanta. Sun has also never released an Open Source
> implementation of the JVM, they always cite 'predatory companies' in the
> marketplace as the 

Re: [JBoss-user] basic clustering question

2003-02-03 Thread Brian McSweeney
Thanks Sacha,

> in this case, use a hardware or software loadbalancer that uses sticky
> sessions.

what exactly are sticky sessions? And how if it's a hardware load
balancer could you do this?

Eg, say we're running a web app.
We have two boxes A and B both running the web and ejb tiers.
Each box has a stateful session bean as a facade and also with a
stateless session bean as a facade between the web and ejb tiers.

In front of them is a little hardware load-balancer that randomly
picks between A and B. If a client uses the stateful session bean
does it have to always have to go back to the same box? Or
can we cluster the stateful session bean too?

thanks,
Brian

- Original Message -
From: "Sacha Labourey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, February 01, 2003 2:45 PM
Subject: RE: [JBoss-user] basic clustering question


> > this makes sense if the client is a heavyweight app (say swing). But
> > if the client is the web tier and the app is basically an internet site,
> > then
> > the ultimate client is a web browser. Now, you could have the "proxy"
> > being the code in the web tier - ie, a servlet, which could pick which
of
> > the ejb tiers to hit, as you say.
>
> in this case, use a hardware or software loadbalancer that uses sticky
> sessions.
>
> > However I would have thought it would be better to let this proxy be a
> > little hardware device that just selects which of the boxes to
> > hit, and then
>
> if it is a web app, yes. If it is a java app, no.
>
>
>
> ---
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>




---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] [ANN] Tammi 1.0 Released - a JMX Application Framework

2003-02-03 Thread Marketta Priha




 

Hello 

 
This message is relevant to JBoss users interested in applying JBoss'  JMX
capabilities also in servlet development and business logic  implementation. 

 
The Norther Organization has released Tammi 1.0 open source development framework
for web applications at http://tammi.sourceforge.net/. Downloads,
a demo with an on-line manual, extensive tech spec and API docs are available. 

 
Tammi is a Java component based development framework and run-time container
for applications supporting web browsers, mobile terminals and/or Swing based
user interfaces. 
 
The key technologies applied include service proxy architecture with Java
Management Extensions (JMX), dynamic configuration with Dynamic Java, MVC
filters and filter chains with Java Servlets, template processing with Apache
Velocity and Freemarker, and general design derived from Apache Turbine.
The architecture allows effortless integration of additional libraries when
needed. 
 
Tammi, as well as applications built with it, can be executed either as a
servlet or filter chain under a J2EE compatible servlet container, the recommended
approach for JBoss users. In addition, it contains an internal HTTP(S) 1.1
capable connector with competent performance. 
 
Separate notes on how to build and deploy Tammi to JBoss are in Sourceforge
under Docs-section. 
http://sourceforge.net/docman/display_doc.php?docid=15052&group_id=62554 

 
Tammi application components are JMX MBeans meant for implementing independent
business logic themselves or to act as proxies to native libraries, remote
programs and other kinds of manageable systems. 
 
In Tammi, we have chosen to exploit a template engine instead of JSP. The
localization and customization of look-and-feel, as well as the RAD support
for HTML forms, is based on that approach. 
 
Tammi implements an MBean administration interface with templates. Under
JBoss you'll have two options for administration: the JMX Console  and Tammi
administration pages. In both interfaces, you can view all the  MBeans in
the JBoss and Tammi domains. 
 
Regards, 
Marketta 
mpriha at users.sourceforge.net 

 
 




Re: [JBoss-user] [ANN] Tammi 1.0 Released - a JMX Application Framework

2003-02-03 Thread Andreas Mecky



Hi,
 
maybe I am the only one but I don't think that this 
is the right place for this kind
of shameless self commercial.
Or if nobody else agrees then I can also start 
using JBoss as my mailing list
for my open source projects?
 
WBR
 
Andreas
 

  - Original Message - 
  From: 
  Marketta Priha 
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, February 03, 2003 11:18 
  AM
  Subject: [JBoss-user] [ANN] Tammi 1.0 
  Released - a JMX Application Framework
  
  
  Hello This message is 
  relevant to JBoss users interested in applying JBoss' JMX capabilities also in 
  servlet development and business logic implementation. The Norther 
  Organization has released Tammi 1.0 open source development framework for web 
  applications at http://tammi.sourceforge.net/. 
  Downloads, a demo with an on-line manual, extensive tech spec and API docs are 
  available. Tammi is a Java component based development framework and 
  run-time container for applications supporting web browsers, mobile terminals 
  and/or Swing based user interfaces. The key technologies applied 
  include service proxy architecture with Java Management Extensions (JMX), 
  dynamic configuration with Dynamic Java, MVC filters and filter chains with 
  Java Servlets, template processing with Apache Velocity and Freemarker, and 
  general design derived from Apache Turbine. The architecture allows effortless 
  integration of additional libraries when needed. Tammi, as well as 
  applications built with it, can be executed either as a servlet or filter 
  chain under a J2EE compatible servlet container, the recommended approach for 
  JBoss users. In addition, it contains an internal HTTP(S) 1.1 capable 
  connector with competent performance. Separate notes on how to build 
  and deploy Tammi to JBoss are in Sourceforge under Docs-section. http://sourceforge.net/docman/display_doc.php?docid=15052&group_id=62554 
  Tammi application components are JMX MBeans meant for implementing 
  independent business logic themselves or to act as proxies to native 
  libraries, remote programs and other kinds of manageable systems. In 
  Tammi, we have chosen to exploit a template engine instead of JSP. The 
  localization and customization of look-and-feel, as well as the RAD support 
  for HTML forms, is based on that approach. Tammi implements an MBean 
  administration interface with templates. Under JBoss you'll have two options 
  for administration: the JMX Console and Tammi administration pages. In both 
  interfaces, you can view all the MBeans in the JBoss and Tammi domains. 
  Regards, Marketta mpriha at users.sourceforge.net 


[JBoss-user] JBoss-IDE next steps

2003-02-03 Thread Hans Dockter
I've written a next steps proposal for JBoss-IDE available at:

http://www.jboss.org/servlet/JiveServlet/download/162-27873-3763505-1281/JBoss-IDE_next_steps.html

Hans



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] DefaultDS not bound error

2003-02-03 Thread madhu sudhan
Hello,
I am using JBoss-3.0.0 and Mysql database.
In my application i am using MessageDrivenBeans(MDB),
when i am sending messages to server, in my bean it's giving an error (in 
lookup for the datasource) after getting the intial context,
 DataSource not bound why? i followed all the standard instructions to 
configure the DataSource, here the error is

8:34:39,823 ERROR [STDERR] javax.naming.NameNotFoundException: DefaultDS not 
bound
18:34:39,824 ERROR [STDERR] at 
org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
18:34:39,825 ERROR [STDERR] at 
org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
18:34:39,827 ERROR [STDERR] at 
org.jnp.server.NamingServer.getObject(NamingServer.java:509)
18:34:39,828 ERROR [STDERR] at 
org.jnp.server.NamingServer.lookup(NamingServer.java:282)
18:34:39,829 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18:34:39,830 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
18:34:39,831 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
18:34:39,832 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:324)
18:34:39,834 ERROR [STDERR] at 
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
18:34:39,835 ERROR [STDERR] at 
sun.rmi.transport.Transport$1.run(Transport.java:148)
18:34:39,836 ERROR [STDERR] at 
java.security.AccessController.doPrivileged(Native Method)
18:34:39,837 ERROR [STDERR] at 
sun.rmi.transport.Transport.serviceCall(Transport.java:144)

 i created the ejb-jar.xml and jboss-xml as mentioned in JBoss documentaion,
in ejb-jar.xml


The default DS
jdbc/DefaultDS
javax.sql.DataSource
Container

in jboss.xml
/
 
jdbc/DefaultDS
java:/DefaultDS

in Mdb lookup
/
 InitialContext ic = new InitialContext();
DataSource ds = (DataSource) ic.lookup("jdbc/DefaultDS");
can anyone help me? I tried all the ways..but i am unable to do
thanks in advance..

-- 
Madhu Sudhan .A
 M.Tech,MIGS,(MS)
Software Engineer
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
infoGLYPTIC Software (P) Ltd
Ph: 523 4448/49/50, fax: 523 4451 ext: 335
Cell: 98451 05295
[EMAIL PROTECTED]
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Say No to NetBeans

2003-02-03 Thread Curt Johnson
Tony Tortallini wrote:


Blah blah blah ... but you still never rebutted my point about NetBeans
screwing up Java IDE revenue models. Thanks for reminding me that JBoss and
NetBeans are both open source. As for open source app servers, we already
got one. It's called the Sun ONE app server. It's certified. Put that in
your JBoss pipe 'n smoke it.

http://www.oetrends.com/cgi-bin/page_display.cgi?77

 

If you're not seeing the logic, I really can't help you. First of all 
the Sun ONE servers are proprietary. They are not released under an OSI 
approved license. Secondly, they're the old IPlanet (Netscape) servers 
repackaged. I'd tell you to go check this out at Sun's site,but they 
seem to be down at the moment (should've used JBoss). I did rebut your 
point about the revenue models, the sell basic infrastructure for per 
user licenses model is dying. Open Source software is providing more 
value than proprietary stuff for the basic plumbing. The IDE developers, 
app server developers, etc, etc, need to change revenue models. These 
guys are dumb, slow dinosaurs and will either evolve or die.  Do you 
really think they can compete against M$ if they play the same game? M$ 
has mastered the art of beating the snot out of companies who work like 
this. IntelliJ currently has a better value proposition than NetBeans or 
Eclipse for a  lot of developers, so it's still safe, but let me 
reiterate that that situation could change very quickly if IntelliJ hits 
a brick wall in understanding what users need.

BTW, they run their project very much like an Open Source project, they 
have quick beta releases (about one every week and a half), developers 
reply to users on thier message boards, people write Open Source plugins 
using their API. Quite frankly, there are very few proprietary vendors 
who I feel provide better product, support and service than their Open 
Source counterparts, IntelliJ just happens to be one. Netscape's server 
line was another one till about version 4. AOL and Sun managed to kill 
everything good there when they picked the carcass apart.

Let me cover the logic in small simple steps for you:
1. Selling per user licenses for something you release every 6 months 
and doesn't keep up with the needs of the community is a dying business 
model. Microsoft will come clean your clock if you're competing with 
them, it's like picking up dimes in front of a steam roller.

2. The proprietary IDE companies (except JetBrains) are slow, don't 
understand their users' needs, have wasted the R&D money thus far. 
Advertising doesn't work if you can't compete at all on the value 
proposition. Tell me you actually enjoy using IBM's dev environment for 
WebSphere. Everything about WebSphere has gotten in my way as a 
developer, it slows me down.

3. Both Linux and Apache have done what the proprietary Unix vendors 
couldn't do, keep Microsoft at bay and provide a value that could 
actually compete dollar for dollar. Remember the Unix wars? Microsoft 
proved they were a hell of a lot better at the proprietary software game 
than a lot of companies who had been there since the beginning. The only 
reason Microsoft doesn't own the Internet and you can get dynamic 
applications hosted on a fast server for ~$10 a month is Open Source 
software. Guess what, the company I work with has survived where a lot 
of other proprietary vendors have failed, we do this by selling 
value-adds and service for Open Source software. We're Open Source 
everywhere the value propisition is better, which is almost everywhere, 
and our customers are really happy with that. Go read Michael Tiemann's 
essay here http://www.oreilly.com/catalog/opensources/book/tiemans.html 
if you want to see how it's done.

4. Compete on the value-add to open infrastructure. Make your users more 
effecient instead of trying to lock them in. There's a lot of room to 
play here. We recently added SVG mapping support to OpenNMS for a 
client. We got paid to make an Open Source product better for a client 
who needed it. I've done the same with bugfixes and small patches to 
Struts and XDoclet recently and others before that. There's a ton of 
models to use, just don't use the sell user licenses and control the 
environment one that traditional players have used. Sure it's simple and 
easy to understand, but if everything was so obvious we'd all be wealthy.

5. Compete with Microsoft because we have better tools, a better 
environment and more choices to meet a changing business world. We 
should steal the Agile Business line Microsoft is spewing, cause anyone 
who has been doing this long enough, knows what choice really is. My 
customers get more choice and remain agile using Open Source development 
tools, and Open Source infrastructure where they can. Myself and many 
more people make money providing services and support around this. I 
constantly have to counter the .Net claims. I do so with reason and 
logic, history and track records. I haven't ha

[JBoss-user] Problems deploying an EAR on JBoss 3.2

2003-02-03 Thread Christian Neuroth



Hi!
 
Deploying the single 
ejb-jar works... But when I pack them into an ear archive I receive the 
following message:
 
javax.management.InstanceAlreadyExistsException: 
jboss.management.local:EJBModule=Foo-ejb.jar,J2EEApplication= 
,J2EEServer=example.ear,j2eeType=StatelessSessionBean,name=BarHomeRemote 
already registered.
 
I deleted everything from the deploy folder and 
tried again - without success
 
 
The application.xml:




ExampleEAR
blub

Foo-ejb.jar


Bar-ejb.jar


 
Thanks!
    
Christian


Re: [JBoss-user] [ANN] Tammi 1.0 Released - a JMX Application Framework

2003-02-03 Thread Gary S. Cuozzo




You are not the only one.  I totally agree with you.  But, JBoss Group LLC
uses this list (and the dev list) to advertise their training and other services.
 So, where does the line get drawn?  What is ok for one, should be ok for
all.  This has bothered me for some time now.
gary.


Andreas Mecky wrote:

  
  
  
 
  
 

  Hi,
 
   
 
  maybe I am the only one but I don't think
that this  is the right place for this kind
 
  of shameless self commercial.
 
  Or if nobody else agrees then I can also
start  using JBoss as my mailing list
 
  for my open source projects?
 
   
 
  WBR
 
   
 
  Andreas
 
   
 
   
  
-
Original Message - 
   
From:
   Marketta Priha 
   
To:
[EMAIL PROTECTED]
   
   
Sent:
Monday, February 03, 2003 11:18AM
   
Subject:
[JBoss-user] [ANN] Tammi 1.0Released - a JMX Application Framework
   


   
   
Hello 

This message isrelevant to JBoss users interested in applying JBoss'
JMX capabilities also inservlet development and business logic implementation.


The NortherOrganization has released Tammi 1.0 open source development
framework for webapplications at http://tammi.sourceforge.net/.
   Downloads, a demo with an on-line manual, extensive tech spec and API
docs areavailable. 

Tammi is a Java component based development framework andrun-time container
for applications supporting web browsers, mobile terminalsand/or Swing
based user interfaces. 

The key technologies appliedinclude service proxy architecture with Java
Management Extensions (JMX),dynamic configuration with Dynamic Java,
MVC filters and filter chains withJava Servlets, template processing
with Apache Velocity and Freemarker, andgeneral design derived from Apache
Turbine. The architecture allows effortlessintegration of additional
libraries when needed. 

Tammi, as well asapplications built with it, can be executed either as
a servlet or filterchain under a J2EE compatible servlet container, the
recommended approach forJBoss users. In addition, it contains an internal
HTTP(S) 1.1 capableconnector with competent performance. 

Separate notes on how to buildand deploy Tammi to JBoss are in Sourceforge
under Docs-section. 
http://sourceforge.net/docman/display_doc.php?docid=15052&group_id=62554
   

Tammi application components are JMX MBeans meant for implementingindependent
business logic themselves or to act as proxies to nativelibraries, remote
programs and other kinds of manageable systems. 

InTammi, we have chosen to exploit a template engine instead of JSP.
Thelocalization and customization of look-and-feel, as well as the RAD
supportfor HTML forms, is based on that approach. 

Tammi implements an MBeanadministration interface with templates. Under
JBoss you'll have two optionsfor administration: the JMX Console and
Tammi administration pages. In bothinterfaces, you can view all the MBeans
in the JBoss and Tammi domains.

Regards, 
Marketta 
mpriha at users.sourceforge.net 



  






Re: [JBoss-user] Say No to NetBeans

2003-02-03 Thread Keene Hammond


"As for open source app servers, we already
got one. It's called the Sun ONE app server."
SunOne is open source? I don't see any source code...
 
 
 



Re: [JBoss-user] Say No to NetBeans

2003-02-03 Thread Nicholas
Perhaps not, but it's **certified**, so it does not
even matter if it sucks.


--- Keene Hammond <[EMAIL PROTECTED]> wrote:
> "As for open source app servers, we already
> got one. It's called the Sun ONE app server."
> 
> SunOne is open source? I don't see any source
> code...
> 
> 
> 
> >
> 


=
Nicholas Whitehead
Home: (973) 377 9335
Cell: (201) 615 2716
Work: (212) 622 5639
[EMAIL PROTECTED]


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Say No to NetBeans

2003-02-03 Thread Joao Mello
Please let's keep this as an online help. Keep your
opinions and preference. I don't want do know.
Thank you,
Johm
--- Nicholas <[EMAIL PROTECTED]> wrote:
> Perhaps not, but it's **certified**, so it does not
> even matter if it sucks.
> 
> 
> --- Keene Hammond <[EMAIL PROTECTED]> wrote:
> > "As for open source app servers, we already
> > got one. It's called the Sun ONE app server."
> > 
> > SunOne is open source? I don't see any source
> > code...
> > 
> > 
> > 
> > >
> > 
> 
> 
> =
> Nicholas Whitehead
> Home: (973) 377 9335
> Cell: (201) 615 2716
> Work: (212) 622 5639
> [EMAIL PROTECTED]
> 
> 
>
---
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld =
> Something 2 See!
> http://www.vasoftware.com
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/jboss-user


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Problems deploying an EAR on JBoss 3.2

2003-02-03 Thread Demyanovich, Craig - Apogent
Christian,

Feel free to try this very simple test EAR (attached) that I developed for
the jboss-user thread entitled "EAR works in 2.4.10 but not in 3.0.6."  It
deploys for me on 3.2.0RC1.  Please let me know if you have any problems or
questions.

Craig




us_state_service.ear
Description: Binary data


Re: [JBoss-user] Problems deploying an EAR on JBoss 3.2

2003-02-03 Thread James Cleary



Check the other .jar and .ear files in deploy for 
the same BarHomeRemote entry. Clear out everything if possible and deploy this 
ear only.
 
Try removing everything 
in the  $JBOSS_DEPLOY/../tmp/deploy/server/default/deploy/   
directory first.

  - Original Message - 
  From: 
  Christian Neuroth 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, February 03, 2003 10:16 
  AM
  Subject: [JBoss-user] Problems deploying 
  an EAR on JBoss 3.2
  
  Hi!
   
  Deploying the single 
  ejb-jar works... But when I pack them into an ear archive I receive the 
  following message:
   
  javax.management.InstanceAlreadyExistsException: 
  jboss.management.local:EJBModule=Foo-ejb.jar,J2EEApplication= 
  ,J2EEServer=example.ear,j2eeType=StatelessSessionBean,name=BarHomeRemote 
  already registered.
   
  I deleted everything from the deploy folder and 
  tried again - without success
   
   
  The application.xml:
  
  
  
  
  ExampleEAR
  blub
  
  Foo-ejb.jar
  
  
  Bar-ejb.jar
  
  
   
  Thanks!
      
Christian


Re: [JBoss-user] Say No to NetBeans

2003-02-03 Thread Curt Johnson
It does matter. Can you send patches to Sun for any of their servers?
Can you fix problems that are holding up your project with Sun?
You become dependent on Sun, or any proprietary app server vendor for 
that matter.

Has Sun kept up with the pace of development in the community? Nope.
What has Sun done to make developers' lives easier? They gave us a 
complex spec, but not the tools to manage that complexity.
The spec is good, the base is good, but we need more to compete with 
Microsoft solution providers hocking sub-par solutions.
The Open Source Java community has delivered here. It's getting better 
all the time.
My biggest question when I design a project is whether my UML models or 
my database schema are going to be what generates 90% of my code.

I'm more concerned about design, doing new things and offering new 
features that my clients want. Using Open Source tools, I don't have to 
worry about the plumbing, the infrastructure and tedious tasks are done 
for me. I can concentrate on delivering more bang for my client's dollar.

Money talks and that's why my client's don't care so much that JBoss 
isn't certified. They want results, that's what the Open Source Java 
community allows me to deliver.

I'll take any .Net developer on. I can build a better web based solution 
just as quickly as any of them. What we need are the Office doc 
translators like POI and interfaces to Outlook clients. I only lose when 
I have to integrate as well as Microsoft server products with Microsoft 
client products.

If Sun was serious about besting Microsoft, they would concentrate on 
providing those interop tools to Java developers. I still can't find 
good docs on how to integrate the OpenOffice API's into my Java apps to 
generate MS Office docs and I still don't have a Calendar /Groupware 
server that can compete with Exchange+Outlook.

Curt Johnson
Tampa Open Source Java Guru

Nicholas wrote:

Perhaps not, but it's **certified**, so it does not
even matter if it sucks.


--- Keene Hammond <[EMAIL PROTECTED]> wrote:
 

"As for open source app servers, we already
got one. It's called the Sun ONE app server."

SunOne is open source? I don't see any source
code...



   



=
Nicholas Whitehead
Home: (973) 377 9335
Cell: (201) 615 2716
Work: (212) 622 5639
[EMAIL PROTECTED]


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


 




---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Sending and receiving Emails

2003-02-03 Thread Brian McSweeney



Hi guys,
general computer science/Email/J2EE 
question.
 
In sending an email we use an implementation of the 
javax.mail.Session 
class. In JBoss this is tied to java:/Mail

 
Could someone tell me how this works. Does the 
Session implementation 
have to be setup somehow? 
 
As far as I know, In SMTP there are 3 
components.
 
1) User-Agents - normal email clients like outlook, 
eudora etc.
2) Transfer-Agents - which must know where a DNS is 
in order to know 
to which Delivery 
Agent to give the mail.
3) Delivery-Agents - to send the mail to the 
individual client or wait for a 
given amount of time until the client comes 
back.
 
I think that sendmail is actually both a 
Transfer-Agent and a Delivery-Agent.
 
So my questions:
a) Where does the javax.mail.Session class fit into 
this? It seems logical that it 
should be just a User-Agent. But not sure if this 
is correct.
b) Does it have to be setup to know about a 
Transfer-Agent?
 
Also, this is fine for sending emails, but how is 
receipt of emails generally handled 
in J2EE. I've read a good article on the server 
side about J2EE 1.4 and how it can use 
the JCA to plug into SMTP servers and essentially 
get callbacks when mails arrive, but 
I'm not sure if this is implemented yet etc 

The article link is: http://www.theserverside.com/resources/articles/J2EE1_4/article.html
 
thanks for your time and answers,
Brian
 


Re: [JBoss-user] Say No to NetBeans

2003-02-03 Thread Curt Johnson
In order to preserve the peace on the list, I set up a forum on the 
website, under The Lizzard's Corner...
http://www.jboss.org/forums/thread.jsp?forum=91&thread=27889

If anyone has anything else to say on this topic, please do it there.

Curt Johnson
Tampa Open Source Java Guru

Joao Mello wrote:

Please let's keep this as an online help. Keep your
opinions and preference. I don't want do know.
Thank you,
Johm
--- Nicholas <[EMAIL PROTECTED]> wrote:
 

Perhaps not, but it's **certified**, so it does not
even matter if it sucks.


--- Keene Hammond <[EMAIL PROTECTED]> wrote:
   

"As for open source app servers, we already
got one. It's called the Sun ONE app server."

SunOne is open source? I don't see any source
code...



 

=
Nicholas Whitehead
Home: (973) 377 9335
Cell: (201) 615 2716
Work: (212) 622 5639
[EMAIL PROTECTED]



   

---
 

This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld =
Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]

   

https://lists.sourceforge.net/lists/listinfo/jboss-user


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


 




---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] basic clustering question

2003-02-03 Thread Rod Macpherson
A sticky session keeps a client glued to a particular server. Replicating
session data is expensive while J2EE server crashes are exceptional.  Having
said that, replicating session data to a single fail-over target nets you
low-cost fault tolerance. As a special bonus prize you can purchase a load
balancer with SLL acceleration.

- Original Message -
From: "Brian McSweeney" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 03, 2003 2:23 AM
Subject: Re: [JBoss-user] basic clustering question


> Thanks Sacha,
>
> > in this case, use a hardware or software loadbalancer that uses sticky
> > sessions.
>
> what exactly are sticky sessions? And how if it's a hardware load
> balancer could you do this?
>
> Eg, say we're running a web app.
> We have two boxes A and B both running the web and ejb tiers.
> Each box has a stateful session bean as a facade and also with a
> stateless session bean as a facade between the web and ejb tiers.
>
> In front of them is a little hardware load-balancer that randomly
> picks between A and B. If a client uses the stateful session bean
> does it have to always have to go back to the same box? Or
> can we cluster the stateful session bean too?
>
> thanks,
> Brian
>
> - Original Message -
> From: "Sacha Labourey" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, February 01, 2003 2:45 PM
> Subject: RE: [JBoss-user] basic clustering question
>
>
> > > this makes sense if the client is a heavyweight app (say swing). But
> > > if the client is the web tier and the app is basically an internet
site,
> > > then
> > > the ultimate client is a web browser. Now, you could have the "proxy"
> > > being the code in the web tier - ie, a servlet, which could pick which
> of
> > > the ejb tiers to hit, as you say.
> >
> > in this case, use a hardware or software loadbalancer that uses sticky
> > sessions.
> >
> > > However I would have thought it would be better to let this proxy be a
> > > little hardware device that just selects which of the boxes to
> > > hit, and then
> >
> > if it is a web app, yes. If it is a java app, no.
> >
> >
> >
> > ---
> > This SF.NET email is sponsored by:
> > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> > http://www.vasoftware.com
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
>
>
>
>
> ---
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Say No to NetBeans

2003-02-03 Thread Tony Tortallini
Yo Curt!

Didn't you check out the link I dropped in there as a smiley replacement:

http://www.oetrends.com/cgi-bin/page_display.cgi?77

The comedic material was pulled right out of the comments Scott McNealy made
two weeks before he hooked up with Apache. Pretty much word for word. Tell
you what though, everybody needed to read your comments and that includes
those looking for online help. I thought they were great and hey, you did
note that you thought it was probably a troll or sarcasm. A couple opinion
posts ain't gonna kill nobody.

- Original Message -
From: "Curt Johnson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 03, 2003 9:06 AM
Subject: Re: [JBoss-user] Say No to NetBeans


> In order to preserve the peace on the list, I set up a forum on the
> website, under The Lizzard's Corner...
> http://www.jboss.org/forums/thread.jsp?forum=91&thread=27889
>
> If anyone has anything else to say on this topic, please do it there.
>
> Curt Johnson
> Tampa Open Source Java Guru
>
> Joao Mello wrote:
>
> >Please let's keep this as an online help. Keep your
> >opinions and preference. I don't want do know.
> >Thank you,
> >Johm
> >--- Nicholas <[EMAIL PROTECTED]> wrote:
> >
> >
> >>Perhaps not, but it's **certified**, so it does not
> >>even matter if it sucks.
> >>
> >>
> >>--- Keene Hammond <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >>>"As for open source app servers, we already
> >>>got one. It's called the Sun ONE app server."
> >>>
> >>>SunOne is open source? I don't see any source
> >>>code...
> >>>
> >>>
> >>>
> >>>
> >>>
> >>=
> >>Nicholas Whitehead
> >>Home: (973) 377 9335
> >>Cell: (201) 615 2716
> >>Work: (212) 622 5639
> >>[EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >>
> >---
> >
> >
> >>This SF.NET email is sponsored by:
> >>SourceForge Enterprise Edition + IBM + LinuxWorld =
> >>Something 2 See!
> >>http://www.vasoftware.com
> >>___
> >>JBoss-user mailing list
> >>[EMAIL PROTECTED]
> >>
> >>
> >>
> >https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >
> >__
> >Do you Yahoo!?
> >Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> >http://mailplus.yahoo.com
> >
> >
> >---
> >This SF.NET email is sponsored by:
> >SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> >http://www.vasoftware.com
> >___
> >JBoss-user mailing list
> >[EMAIL PROTECTED]
> >https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >
> >
> >
>
>
>
> ---
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Say No to NetBeans

2003-02-03 Thread Tom Coleman

I needed a development environment for a J2ME component recently.  
The IBM "solution" looked much too involved, so I took a chance and 
downloaded the "Sun One Studio Mobile Edition".

It's apparently based on NetBeans.

The "Mobile Edition" is tightly integrated with Sun's "Wireless toolkit".
It's not perfect (neither is Sun) and it's not Open source, but it was
a free download and I figure it saved me at least a month.  

I'm thinking of giving the "Community Edition" a spin next.

Not that writing my own IDE isn't a great idea.  I just seem to have 
more important things to do.


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] [ANN] Tammi 1.0 Released - a JMX Application Framework

2003-02-03 Thread JD Brennan



Since this is a JBoss list, it seems 
appropriate for advertising
JBoss services and not appropriate for 
non-JBoss related services.  
Seems like a 
reasonable place to draw a line.
 
JD
 
-Original Message-From: Gary S. Cuozzo 
[mailto:[EMAIL PROTECTED]]Sent: Monday, February 03, 2003 
7:28 AMTo: [EMAIL PROTECTED]Subject: Re: 
[JBoss-user] [ANN] Tammi 1.0 Released - a JMX Application 
FrameworkYou are not the only one.  I totally agree 
with you.  But, JBoss Group LLC uses this list (and the dev list) to 
advertise their training and other services.  So, where does the line get 
drawn?  What is ok for one, should be ok for all.  This has bothered 
me for some time now.gary.Andreas Mecky wrote:

  
  

  Hi,
   
  maybe I am the only one but I don't think that 
  this is the right place for this kind
  of shameless self commercial.
  Or if nobody else agrees then I can also start 
  using JBoss as my mailing list
  for my open source projects?
   
  WBR
   
  Andreas
   
  
- 
Original Message - 
From: 
Marketta Priha 
To: 
[EMAIL PROTECTED] 

Sent: 
Monday, February 03, 2003 11:18 AM
Subject: 
[JBoss-user] [ANN] Tammi 1.0 Released - a JMX Application Framework


Hello This message 
is relevant to JBoss users interested in applying JBoss' JMX capabilities 
also in servlet development and business logic implementation. The 
Norther Organization has released Tammi 1.0 open source development 
framework for web applications at http://tammi.sourceforge.net/. 
Downloads, a demo with an on-line manual, extensive tech spec and API docs 
are available. Tammi is a Java component based development framework 
and run-time container for applications supporting web browsers, mobile 
terminals and/or Swing based user interfaces. The key technologies 
applied include service proxy architecture with Java Management Extensions 
(JMX), dynamic configuration with Dynamic Java, MVC filters and filter 
chains with Java Servlets, template processing with Apache Velocity and 
Freemarker, and general design derived from Apache Turbine. The architecture 
allows effortless integration of additional libraries when needed. 
Tammi, as well as applications built with it, can be executed either 
as a servlet or filter chain under a J2EE compatible servlet container, the 
recommended approach for JBoss users. In addition, it contains an internal 
HTTP(S) 1.1 capable connector with competent performance. Separate 
notes on how to build and deploy Tammi to JBoss are in Sourceforge under 
Docs-section. http://sourceforge.net/docman/display_doc.php?docid=15052&group_id=62554 
Tammi application components are JMX MBeans meant for implementing 
independent business logic themselves or to act as proxies to native 
libraries, remote programs and other kinds of manageable systems. In 
Tammi, we have chosen to exploit a template engine instead of JSP. The 
localization and customization of look-and-feel, as well as the RAD support 
for HTML forms, is based on that approach. Tammi implements an MBean 
administration interface with templates. Under JBoss you'll have two options 
for administration: the JMX Console and Tammi administration pages. In both 
interfaces, you can view all the MBeans in the JBoss and Tammi domains. 
Regards, Marketta mpriha at users.sourceforge.net 


RE: [JBoss-user] Problems deploying an EAR on JBoss 3.2

2003-02-03 Thread James Higginbotham
Title: Message



Wow! 
I've been seeing this on 3.0.6 as well but thought it was our complex build 
system.. I end up having to delete the tmp, db, and log directories (just be be 
sane and clear the logs for my sake) and things deploy fine.. This didn't happen 
on 3.0.4, so something has changed in the deployer - its getting confused and 
picking up both old deployments and new or something.. Only way I can explain 
this oddity.. Anyone from Jboss-dev have any ideas about this? Its really 
slowing down my development. 
 
Thanks,
James

  
  -Original Message-From: Christian 
  Neuroth [mailto:[EMAIL PROTECTED]] Sent: Monday, February 03, 2003 
  9:17 AMTo: [EMAIL PROTECTED]Subject: 
  [JBoss-user] Problems deploying an EAR on JBoss 3.2
  Hi!
   
  Deploying the single 
  ejb-jar works... But when I pack them into an ear archive I receive the 
  following message:
   
  javax.management.InstanceAlreadyExistsException: 
  jboss.management.local:EJBModule=Foo-ejb.jar,J2EEApplication= 
  ,J2EEServer=example.ear,j2eeType=StatelessSessionBean,name=BarHomeRemote 
  already registered.
   
  I deleted everything from the deploy folder and 
  tried again - without success
   
   
  The application.xml:
  
  
  
  
  ExampleEAR
  blub
  
  Foo-ejb.jar
  
  
  Bar-ejb.jar
  
  
   
  Thanks!
      
Christian


RE: [JBoss-user] [ANN] Tammi 1.0 Released - a JMX Application Framework

2003-02-03 Thread Lucas McGregor
>From their webpage, Tammi is an open source project that could be of
interest to many JBoss users. The user mailing list seems like a good place
as any to start. I find out about a lot of useful technologies by seeing
them mentioned on this list first. 
 
I agree, I don't want to see this mailing list turn into another billboard
for commercial use. But open source development doesn't have an advertising
budget, and they are just trying to reach members of the open source JBoss
community to GIVE them something that may be useful. 
 
I sure hope that negative mailings don't cause the three developers of Tammi
to just give up on trying to give back to to OS community.
 
just my $0.02,
lucas mcgregor

-Original Message-
From: Gary S. Cuozzo [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 03, 2003 7:28 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] [ANN] Tammi 1.0 Released - a JMX Application
Framework


You are not the only one.  I totally agree with you.  But, JBoss Group LLC
uses this list (and the dev list) to advertise their training and other
services.  So, where does the line get drawn?  What is ok for one, should be
ok for all.  This has bothered me for some time now.
gary.


Andreas Mecky wrote:


Hi,
 
maybe I am the only one but I don't think that this is the right place for
this kind
of shameless self commercial.
Or if nobody else agrees then I can also start using JBoss as my mailing
list
for my open source projects?
 
WBR
 
Andreas
 

- Original Message - 
From: Marketta Priha   
To: [EMAIL PROTECTED]
  
Sent: Monday, February 03, 2003 11:18 AM
Subject: [JBoss-user] [ANN] Tammi 1.0 Released - a JMX Application Framework


Hello 

This message is relevant to JBoss users interested in applying JBoss' JMX
capabilities also in servlet development and business logic implementation. 

The Norther Organization has released Tammi 1.0 open source development
framework for web applications at http://tammi.sourceforge.net/
 . Downloads, a demo with an on-line manual,
extensive tech spec and API docs are available. 

Tammi is a Java component based development framework and run-time container
for applications supporting web browsers, mobile terminals and/or Swing
based user interfaces. 

The key technologies applied include service proxy architecture with Java
Management Extensions (JMX), dynamic configuration with Dynamic Java, MVC
filters and filter chains with Java Servlets, template processing with
Apache Velocity and Freemarker, and general design derived from Apache
Turbine. The architecture allows effortless integration of additional
libraries when needed. 

Tammi, as well as applications built with it, can be executed either as a
servlet or filter chain under a J2EE compatible servlet container, the
recommended approach for JBoss users. In addition, it contains an internal
HTTP(S) 1.1 capable connector with competent performance. 

Separate notes on how to build and deploy Tammi to JBoss are in Sourceforge
under Docs-section. 
http://sourceforge.net/docman/display_doc.php?docid=15052

&group_id=62554 

Tammi application components are JMX MBeans meant for implementing
independent business logic themselves or to act as proxies to native
libraries, remote programs and other kinds of manageable systems. 

In Tammi, we have chosen to exploit a template engine instead of JSP. The
localization and customization of look-and-feel, as well as the RAD support
for HTML forms, is based on that approach. 

Tammi implements an MBean administration interface with templates. Under
JBoss you'll have two options for administration: the JMX Console and Tammi
administration pages. In both interfaces, you can view all the MBeans in the
JBoss and Tammi domains. 

Regards, 
Marketta 
mpriha at users.sourceforge.net 
 






---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] [ANN] Tammi 1.0 Released - a JMX Application Framework

2003-02-03 Thread Rod Macpherson
I doubt this message list will be impacted by a handful of J2EE open source
announcements. Seems like some people have a low-threshold for jumping on
these non-events but then perhaps they see it as a slippery slope to
spam-like usage. I do not believe for-pay solutions are inherently evil nor
do I believe that open-source is just a euphemism for dot-communism. Where's
Rodney King when you need him:)

- Original Message -
From: "Lucas McGregor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 03, 2003 11:45 AM
Subject: RE: [JBoss-user] [ANN] Tammi 1.0 Released - a JMX Application
Framework


> From their webpage, Tammi is an open source project that could be of
> interest to many JBoss users. The user mailing list seems like a good
place
> as any to start. I find out about a lot of useful technologies by seeing
> them mentioned on this list first.
>
> I agree, I don't want to see this mailing list turn into another billboard
> for commercial use. But open source development doesn't have an
advertising
> budget, and they are just trying to reach members of the open source JBoss
> community to GIVE them something that may be useful.
>
> I sure hope that negative mailings don't cause the three developers of
Tammi
> to just give up on trying to give back to to OS community.
>
> just my $0.02,
> lucas mcgregor
>
> -Original Message-
> From: Gary S. Cuozzo [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 03, 2003 7:28 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] [ANN] Tammi 1.0 Released - a JMX Application
> Framework
>
>
> You are not the only one.  I totally agree with you.  But, JBoss Group LLC
> uses this list (and the dev list) to advertise their training and other
> services.  So, where does the line get drawn?  What is ok for one, should
be
> ok for all.  This has bothered me for some time now.
> gary.
>
>
> Andreas Mecky wrote:
>
>
> Hi,
>
> maybe I am the only one but I don't think that this is the right place for
> this kind
> of shameless self commercial.
> Or if nobody else agrees then I can also start using JBoss as my mailing
> list
> for my open source projects?
>
> WBR
>
> Andreas
>
>
> - Original Message -
> From: Marketta Priha 
> To: [EMAIL PROTECTED]
> 
> Sent: Monday, February 03, 2003 11:18 AM
> Subject: [JBoss-user] [ANN] Tammi 1.0 Released - a JMX Application
Framework
>
>
> Hello
>
> This message is relevant to JBoss users interested in applying JBoss' JMX
> capabilities also in servlet development and business logic
implementation.
>
> The Norther Organization has released Tammi 1.0 open source development
> framework for web applications at http://tammi.sourceforge.net/
>  . Downloads, a demo with an on-line
manual,
> extensive tech spec and API docs are available.
>
> Tammi is a Java component based development framework and run-time
container
> for applications supporting web browsers, mobile terminals and/or Swing
> based user interfaces.
>
> The key technologies applied include service proxy architecture with Java
> Management Extensions (JMX), dynamic configuration with Dynamic Java, MVC
> filters and filter chains with Java Servlets, template processing with
> Apache Velocity and Freemarker, and general design derived from Apache
> Turbine. The architecture allows effortless integration of additional
> libraries when needed.
>
> Tammi, as well as applications built with it, can be executed either as a
> servlet or filter chain under a J2EE compatible servlet container, the
> recommended approach for JBoss users. In addition, it contains an internal
> HTTP(S) 1.1 capable connector with competent performance.
>
> Separate notes on how to build and deploy Tammi to JBoss are in
Sourceforge
> under Docs-section.
> http://sourceforge.net/docman/display_doc.php?docid=15052
> 
> &group_id=62554
>
> Tammi application components are JMX MBeans meant for implementing
> independent business logic themselves or to act as proxies to native
> libraries, remote programs and other kinds of manageable systems.
>
> In Tammi, we have chosen to exploit a template engine instead of JSP. The
> localization and customization of look-and-feel, as well as the RAD
support
> for HTML forms, is based on that approach.
>
> Tammi implements an MBean administration interface with templates. Under
> JBoss you'll have two options for administration: the JMX Console and
Tammi
> administration pages. In both interfaces, you can view all the MBeans in
the
> JBoss and Tammi domains.
>
> Regards,
> Marketta
> mpriha at users.sourceforge.net
>  
> 
>
>
>
>
>
> ---
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + Linux

Re: [JBoss-user] [ANN] Tammi 1.0 Released - a JMX Application Framework

2003-02-03 Thread Gary S. Cuozzo




I'm not sure what you mean by "this
is a JBoss list".  Do you mean that it is a list pertaining
to JBoss?  Or that JBoss Group owns the list?  If you are referring to the
latter, then I would have to disagree with you as my jboss-user email comes
from sourceforge.net.  If you are referring to the former, then I guess that
means that anybody can post jboss related items to the list.

That aside, the fact that there is ANY ambiguity about the list usage is
just an indicator that the list needs to have some sort of charter describing
what is/isn't allowed.  Most other lists that I'm on (including those that
we run for the open source community) have strict charters.  My company does,
in fact, own those lists and pays 100% for their very existence.  Yet, we
absolutely refuse to use those lists for our own purposes.

Personally, I am not in favor of muddying the waters between the open source
community and the commercial community.  Nothing good ever comes of it.  I'm
on a user list for another open source project that is all but dead because
the list "owner" was privately emailing users to pay him for answers behind
the scenes and purposely not answering questions.  Needless to say, that
project is dead.

IMO, this is a very important issue that I would like to see addressed.  I've
already been spammed by several commercially-oriented announcements via this
list and don't think ANY of it is appropriate, even from those who are "members"
of the JBoss Group, LLC.  If there was a charter that indicated otherwise,
then at least I could read it and determine if I even want to be on the list.

Again, these are my opinions.  I'm sure there are many on the list that don't
really care either way, but it is a topic that I feel strongly about.  I'd
hate to see commercial aspirations once again ruin a great open source project.

gary.


JD Brennan wrote:
 
 
  
  
   
  
 
  Since this is a JBoss list, it seems
 appropriate for advertising
 
  JBoss services and not appropriate for
 non-JBoss related services.  
 
  Seems like a  reasonable place to draw a line.
 
   
 
  JD
 
   
 
  -Original Message-
  From: Gary S. Cuozzo  [mailto:[EMAIL PROTECTED]]
  Sent: Monday, February 03, 2003  7:28 AM
  To: [EMAIL PROTECTED]
  Subject: Re:  [JBoss-user] [ANN] Tammi 1.0 Released - a JMX Application
 Framework
  
  
You are not the only one.  I totally agree  with you.  But, JBoss Group LLC
uses this list (and the dev list) to  advertise their training and other
services.  So, where does the line get  drawn?  What is ok for one, should
be ok for all.  This has bothered  me for some time now.
gary.
  
  
Andreas Mecky wrote:
 
 

   

Hi,
   
 
   
maybe I am the only one but I don't
think thatthis is the right place for this kind
   
of shameless self commercial.
   
Or if nobody else agrees then I can
also startusing JBoss as my mailing list
   
for my open source projects?
   
 
   
WBR
   
 
   
Andreas
   
 
   
 

  -
 Original Message - 
 
  From:
 Marketta Priha 
 
  To:
 [EMAIL PROTECTED]
 
 
  Sent:
 Monday, February 03, 2003 11:18 AM
 
  Subject:
 [JBoss-user] [ANN] Tammi 1.0 Released - a JMX Application Framework
 
  
  
 
   
  Hello 
  
This message  is relevant to JBoss users interested in applying JBoss'
JMX capabilities  also in servlet development and business logic implementation.
  
  
The  Norther Organization has released Tammi 1.0 open source development
 framework for web applications at http://tammi.sourceforge.net/.
 Downloads, a demo with an on-line manual, extensive tech spec and API
docs  are available. 
  
Tammi is a Java component based development framework  and run-time container
for applications supporting web browsers, mobile  terminals and/or Swing
based user interfaces. 
  
The key technologies  applied include service proxy architecture with
Java Management Extensions  (JMX), dynamic configuration with Dynamic
Java, MVC filters and filter  chains with Java Servlets, template processing
with Apache Velocity and  Freemarker, and general design derived from
Apache Turbine. The architecture  allows effortless integration of additional
libraries when needed.  
  
Tammi, as well as applications built with it, can be executed either
 as a servlet or filter chain under a J2EE compatible servlet container,
the  recommended approach for JBoss users. In addition, it contains an
internal  HTTP(S) 1.1 capable connector with competent performance. 
  
Separate  notes on how to build and deploy Tammi to JBoss are in Sourceforge
under  Docs-section. 
  http://sourceforge.net/docman/display_doc.php?docid=15052&group_id=62554
 
  
Tammi application components are JMX MBeans meant for implementing  independent
bus

Re: [JBoss-user] descriptor and cluster dependency

2003-02-03 Thread David Klimek
David Jencks wrote:


On Sunday, February 2, 2003, at 07:43 AM, David Klimek wrote:


Hello,

as I understand meaning of  tag it specify local dependency 
between two components on one jboss node.

So if A depends on B. B will be deployed on node N at first and A will 
be deployed on node N at second.

My question is is there chance to specify cluster wide dependency?


no.  Why would you want this?  Why wouldn't you run exactly the same app 
on each cluster node?

I don't want to run the same set of apps on each cluster node because it 
will not scale.

Suppose I have a huge "Manager" with big memory footprint and small 
"servlet" that  on that "Manager". I need many small "servlet" 
replicas. Because "servlet" seldom calls "Manager" one replica for 
"Manager" is enought.

So each "servlet" replica should start after "Manager" is somewhere in 
cluster started. 

> I'd want a lot more info on why this is useful
> before thinking about how to do it.

If you have cluster of applications with differend acess patterns, you 
can dynamicaly reconfigure farm to achieve better performance.
Morning your cluster runs with four replicas for news application and 
one replica for chat and evening you reconfigure your farm to one 
replica for news application and four replicas for chat.

Of course for this you will need something like a "clever farming 
service" or "clustered deployer" wich will not simply deploy all apps on 
all server nodes but which will decide how many replicas and where will 
actualy run. I'm trying to implement one. And it would be nice to know 
that apps do not need to care about availablity of component they are 
 as they do not need to care about availability of 
component they are .


Now the "clever farming service" can be "server admin" and cluster wide 
dependecy will be in clustered environment as useful as normal dependency.


When A "depends cluser wide" on B I don't need B to be started before 
A on the same node but on the same cluster. So B can be started on node M
before A is started on node N.

Is there any workaround for this?

Not that I know of.  I'd want a lot more info on why this is useful 
before thinking about how to do it.


thanks
david jencks


Thank's a lot

David





--
http://www.sweb.cz/david.klimek



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user






--
http://www.sweb.cz/david.klimek



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] building from CVS

2003-02-03 Thread Rasputin

Sorry if this is a dumb question.
I've just got the CVS version of jboss, I have ant 1.5.1 installed.
Platform is NetBSD , JVM is he Sun Linux 1.3.1_07-b02

If I cd into build/ and run build.sh, it dies pretty quickly with

common/build.xml:118 Could not create task of type: jmxdoclet


I've tried sticking xdoclet-jmx-module-1.2b2.jar in $ANT_HOME/lib, but it
doesn't help - am I missing something obvious (like build instructions )?
Should this jarfile be somewhere in the source tree, or do I need to setup a
build.properties file?

Full error follows - thanks for any tips.

--
configure:

configure-libraries:

configure-modules:
Overriding previous definition of reference to jboss.naming.classpath

configure-defaults:

configure-tools:

configure-project:
 [echo] groups:  default
 [echo] modules: 
common,jmx,system,aop,cache,j2ee,naming,management,transaction,server,blocks,console,security,messaging,connector,varia,cluster,jetty,jboss.net,iiop

_default:init:

init:

_buildmagic:modules:most:

 == 
 ==
 ==  Executing 'most' in module 'common'...
 ==
 ==

_buildmagic:init:

configure:

configure-libraries:

configure-modules:
Overriding previous definition of reference to jboss.naming.classpath

configure-defaults:

configure-tools:

_default:init:

init:

compile-mbean-sources:

BUILD FAILED

file:/devel/localsrc/anoncvs/jboss-all/common/build.xml:118: Could not create task or 
type of type: jmxdoclet.

Ant could not find the task or a class this task relies upon.

This is common and has a number of causes; the usual 
solutions are to read the manual pages then download and
install needed JAR files, or fix the build file: 
 - You have misspelt 'jmxdoclet'.
   Fix: check your spelling.
 - The task needs an external JAR file to execute
   and this is not found at the right place in the classpath.
   Fix: check the documentation for dependencies.
   Fix: declare the task.
 - The task is an Ant optional task and optional.jar is absent
   Fix: look for optional.jar in ANT_HOME/lib, download if needed
 - The task was not built into optional.jar as dependent
   libraries were not found at build time.
   Fix: look in the JAR to verify, then rebuild with the needed
   libraries, or download a release version from apache.org
 - The build file was written for a later version of Ant
   Fix: upgrade to at least the latest release version of Ant
 - The task is not an Ant core or optional task 
   and needs to be declared using .

Remember that for JAR files to be visible to Ant tasks implemented
in ANT_HOME/lib, the files must be in the same directory or on the
classpath

Please neither file bug reports on this problem, nor email the
Ant mailing lists, until all of these causes have been explored,
as this is not an Ant bug.
at 
org.apache.tools.ant.UnknownElement.getNotFoundException(UnknownElement.java:324)
at org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:240)
at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:115)
at org.apache.tools.ant.Task.perform(Task.java:318)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.jboss.tools.buildmagic.task.Ant.execute(Ant.java:261)
at 
org.jboss.tools.buildmagic.task.module.ExecuteModules$1.run(ExecuteModules.java:329)
at 
org.jboss.tools.buildmagic.task.module.ExecuteModules.executeModule(ExecuteModules.java:342)
at 
org.jboss.tools.buildmagic.task.module.ExecuteModules.execute(ExecuteModules.java:217)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:166)
at org.apache.tools.ant.Task.perform(Task.java:319)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
at org.apache.tools.ant.Main.runBuild(Main.java:610)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)
-- 
Rasputin :: Jack of All Trades - Master of Nuns


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] jbossweb virtual hosts configuration

2003-02-03 Thread glaive
Is there a faq or a current tutorial that explains how to set up virtual hosts 
in jbossweb/jetty?  I've been going off of the one on the Jetty website, and 
the JBoss/Jetty faq and I've encountered some difficulties.

Thanks.


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] ejb tier security

2003-02-03 Thread Joseph Pelle
I'm a little lost on how authentication and authorization work for ejb level
security when accessing the EJB methods from JSP/JavaBeans.  For now let's
assume that none of my web level stuff is restricted -- just the back end
EJBs.  Do I have to authenticate prior to any EJB call?

I'm lost on the lifecylce of the login module.  I gather it gets created
when I create the login context and login.  It also appears (based on my
tests with a client app, as opposed to a web interface), that the login
context instance can go out of scope and yet the user is still considered
logged in.  eg.

{
LoginContext lc = new LoginContext ("other", cbh);
lc.login();
}
{
// restricted method.
ejbHome.findAll ();
// Provided my cbh returns a valid user/password for 'other', this succeeds.
Note, lc is out of scope.
}

I bring this up because when I use the web interface, I login based on a
form that is processed by a servlet or a JavaBean, then I load up another
JSP that uses a JavaBean to do the (eg.) ejbHome.findAll().  In this case, I
get a security error because it thinks the Principal is null (and a null
Principal doesn't have permission to do a findAll()).  So I figured
something needs to stick around else the Principal is set back to null.
Obviously it isn't the LoginContext, or my client 'example' wouldn't work.

I had thought that once the LoginContext set up the LoginModule, the module
would stick around until logged out explicitly, but I guess not?  

So, to sum up, why does my Principal get set back to null?  How do I set up
my web interface so that a user only has to (explicitly) log in once?  Do I
have to authenticate prior to ejb calls (on different pages/scopes)?


>> >  >   >> >  >   >  HP OpenView Portfolio Partner   >
>  >   >

Joseph PelleVoice:  +1-604-205-9941 x5960
Software Designer   

Altus Solutions Inc.Fax:+1-604-205-9940
250-4190 Still Creek Drive
[EMAIL PROTECTED]
Burnaby, BC, V5C 6C6, Canadawww.altus-solutions.com

>> >  >   >> >  >   > Real Solutions, Real TimeTM >
>  >   >






---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] RE: ejb tier security

2003-02-03 Thread Joseph Pelle
OK, this is what I thought should happen (as from the JBoss online docs,
Ch9):
1. The client first has to perform a login to establish the principal
and credentials that will be used for authentication purposes. This entails
creating a LoginContext and passing the name of the configuration to use. In
the above figure the configuration name is "beanDomain". This is a one time
process that associates the login principal and credentials with all
subsequent EJB method invocations. Note that the login process may not
actually authenticate the user. It depends on the login module
configuration. In Figure 9.6. the beanDomain client side configuration is
using the ClientLoginModule(org.jboss.security.ClientLoginModule) and this
module does not perform client side authentication. It simply binds the
username and password to the JBoss EJB invocation layer for later
authentication on the server.

This seems to work via a client app, but not through a web interface (JSP
scriptlets/servlets/JavaBeans).  So what extra config is necessary?

Btw, I'm using JBoss 2.4.9/Tomcat 4.0.4, if that matters.

>  -Original Message-
> From: Joseph Pelle  
> Sent: Monday, February 03, 2003 5:35 PM
> To:   Jboss-User (E-mail)
> Subject:  ejb tier security
> 
> I'm a little lost on how authentication and authorization work for ejb
> level security when accessing the EJB methods from JSP/JavaBeans.  For now
> let's assume that none of my web level stuff is restricted -- just the
> back end EJBs.  Do I have to authenticate prior to any EJB call?
> 
> I'm lost on the lifecylce of the login module.  I gather it gets created
> when I create the login context and login.  It also appears (based on my
> tests with a client app, as opposed to a web interface), that the login
> context instance can go out of scope and yet the user is still considered
> logged in.  eg.
> 
> {
> LoginContext lc = new LoginContext ("other", cbh);
> lc.login();
> }
> {
> // restricted method.
> ejbHome.findAll ();
> // Provided my cbh returns a valid user/password for 'other', this
> succeeds.  Note, lc is out of scope.
> }
> 
> I bring this up because when I use the web interface, I login based on a
> form that is processed by a servlet or a JavaBean, then I load up another
> JSP that uses a JavaBean to do the (eg.) ejbHome.findAll().  In this case,
> I get a security error because it thinks the Principal is null (and a null
> Principal doesn't have permission to do a findAll()).  So I figured
> something needs to stick around else the Principal is set back to null.
> Obviously it isn't the LoginContext, or my client 'example' wouldn't work.
> 
> I had thought that once the LoginContext set up the LoginModule, the
> module would stick around until logged out explicitly, but I guess not?  
> 
> So, to sum up, why does my Principal get set back to null?  How do I set
> up my web interface so that a user only has to (explicitly) log in once?
> Do I have to authenticate prior to ejb calls (on different pages/scopes)?
> 
> 
> >> >  >   >> >  >   >  HP OpenView Portfolio Partner   >
> >  >   >
> 
> Joseph Pelle  Voice:  +1-604-205-9941 x5960
> Software Designer 
> 
> Altus Solutions Inc.  Fax:+1-604-205-9940
> 250-4190 Still Creek Drive
> [EMAIL PROTECTED]
> Burnaby, BC, V5C 6C6, Canada  www.altus-solutions.com
> 
> >> >  >   >> >  >   > Real Solutions, Real TimeTM
> > >  >   >
> 
> 
> 
> 


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] ejb tier security

2003-02-03 Thread Scott M Stark
An unsecure web component must establish the caller identity on every
call to the component using the login as security is stateless. You have a
multi-threaded environment and you are only setting the caller identity for
the currently executing thread when you do a login. You should logout on
completion of the method, but it is not neccessary as the next login using
that thread will overwrite the previous caller context.


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message - 
From: "Joseph Pelle" <[EMAIL PROTECTED]>
To: "Jboss-User (E-mail)" <[EMAIL PROTECTED]>
Sent: Monday, February 03, 2003 5:35 PM
Subject: [JBoss-user] ejb tier security


> I'm a little lost on how authentication and authorization work for ejb level
> security when accessing the EJB methods from JSP/JavaBeans.  For now let's
> assume that none of my web level stuff is restricted -- just the back end
> EJBs.  Do I have to authenticate prior to any EJB call?
> 
> I'm lost on the lifecylce of the login module.  I gather it gets created
> when I create the login context and login.  It also appears (based on my
> tests with a client app, as opposed to a web interface), that the login
> context instance can go out of scope and yet the user is still considered
> logged in.  eg.
> 
> {
> LoginContext lc = new LoginContext ("other", cbh);
> lc.login();
> }
> {
> // restricted method.
> ejbHome.findAll ();
> // Provided my cbh returns a valid user/password for 'other', this succeeds.
> Note, lc is out of scope.
> }
> 
> I bring this up because when I use the web interface, I login based on a
> form that is processed by a servlet or a JavaBean, then I load up another
> JSP that uses a JavaBean to do the (eg.) ejbHome.findAll().  In this case, I
> get a security error because it thinks the Principal is null (and a null
> Principal doesn't have permission to do a findAll()).  So I figured
> something needs to stick around else the Principal is set back to null.
> Obviously it isn't the LoginContext, or my client 'example' wouldn't work.
> 
> I had thought that once the LoginContext set up the LoginModule, the module
> would stick around until logged out explicitly, but I guess not?  
> 
> So, to sum up, why does my Principal get set back to null?  How do I set up
> my web interface so that a user only has to (explicitly) log in once?  Do I
> have to authenticate prior to ejb calls (on different pages/scopes)?
> 
> 
> >> >  >   >> >  >   >  HP OpenView Portfolio Partner   >
> >  >   >
> 
> Joseph Pelle Voice: +1-604-205-9941 x5960
> Software Designer  
> 
> Altus Solutions Inc. Fax:   +1-604-205-9940
> 250-4190 Still Creek Drive
> [EMAIL PROTECTED]
> Burnaby, BC, V5C 6C6, Canada www.altus-solutions.com
> 
> >> >  >   >> >  >   > Real Solutions, Real TimeTM >
> >  >   >
> 
> 
> 
> 
> 
> 
> ---
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] building from CVS

2003-02-03 Thread Ricardo Argüello
Follow the Developer Quick Start Guide:
http://www.jboss.org/developers/guides/quickstart.jsp

You should checkout the "jboss-head" cvs module, if you want JBoss 4.0 (alpha):
 cvs checkout jboss-head

If you want JBoss 3.2.x:
 cvs checkout -r Branch_3_2 jboss-3.2

If you want JBoss 3.0.x (the stable version): 
 cvs checkout -r Branch_3_0 jboss-3.0

*** Note:
You can read this line in the Quickstart Guide:
"You can get the sources for the jboss-all project from CVS or from a nightly CVS 
snapshot."

That is wrong, the jboss-all module points to JBoss 3.0.x, but if you checkout this 
module without specifying the branch, it won't work.

Also, this page has wrong/outdated information:
http://www.jboss.org/developers/sourcecode.jsp

Somebody should change the docs...


Ricardo Argüello
[EMAIL PROTECTED]
www.freeroller.net/page/ricardo/

-- 
I took the red pill.


- Original Message - 
From: "Rasputin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 03, 2003 3:53 PM
Subject: [JBoss-user] building from CVS


> 
> Sorry if this is a dumb question.
> I've just got the CVS version of jboss, I have ant 1.5.1 installed.
> Platform is NetBSD , JVM is he Sun Linux 1.3.1_07-b02
> 
> If I cd into build/ and run build.sh, it dies pretty quickly with
> 
> common/build.xml:118 Could not create task of type: jmxdoclet
> 
> 
> I've tried sticking xdoclet-jmx-module-1.2b2.jar in $ANT_HOME/lib, but it
> doesn't help - am I missing something obvious (like build instructions )?
> Should this jarfile be somewhere in the source tree, or do I need to setup a
> build.properties file?
> 
> Full error follows - thanks for any tips.
> 
> --
> configure:
> 
> configure-libraries:
> 
> configure-modules:
> Overriding previous definition of reference to jboss.naming.classpath
> 
> configure-defaults:
> 
> configure-tools:
> 
> configure-project:
>  [echo] groups:  default
>  [echo] modules: 
>common,jmx,system,aop,cache,j2ee,naming,management,transaction,server,blocks,console,security,messaging,connector,varia,cluster,jetty,jboss.net,iiop
> 
> _default:init:
> 
> init:
> 
> _buildmagic:modules:most:
> 
>  == 
>  ==
>  ==  Executing 'most' in module 'common'...
>  ==
>  ==
> 
> _buildmagic:init:
> 
> configure:
> 
> configure-libraries:
> 
> configure-modules:
> Overriding previous definition of reference to jboss.naming.classpath
> 
> configure-defaults:
> 
> configure-tools:
> 
> _default:init:
> 
> init:
> 
> compile-mbean-sources:
> 
> BUILD FAILED
> 
> file:/devel/localsrc/anoncvs/jboss-all/common/build.xml:118: Could not create task 
>or type of type: jmxdoclet.
> 
> Ant could not find the task or a class this task relies upon.
> 
> This is common and has a number of causes; the usual 
> solutions are to read the manual pages then download and
> install needed JAR files, or fix the build file: 
>  - You have misspelt 'jmxdoclet'.
>Fix: check your spelling.
>  - The task needs an external JAR file to execute
>and this is not found at the right place in the classpath.
>Fix: check the documentation for dependencies.
>Fix: declare the task.
>  - The task is an Ant optional task and optional.jar is absent
>Fix: look for optional.jar in ANT_HOME/lib, download if needed
>  - The task was not built into optional.jar as dependent
>libraries were not found at build time.
>Fix: look in the JAR to verify, then rebuild with the needed
>libraries, or download a release version from apache.org
>  - The build file was written for a later version of Ant
>Fix: upgrade to at least the latest release version of Ant
>  - The task is not an Ant core or optional task 
>and needs to be declared using .
> 
> Remember that for JAR files to be visible to Ant tasks implemented
> in ANT_HOME/lib, the files must be in the same directory or on the
> classpath
> 
> Please neither file bug reports on this problem, nor email the
> Ant mailing lists, until all of these causes have been explored,
> as this is not an Ant bug.
> at org.apache.tools.ant.UnknownElement.getNotFoundException(UnknownElement.java:324)
> at org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:240)
> at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:115)
> at org.apache.tools.ant.Task.perform(Task.java:318)
> at org.apache.tools.ant.Target.execute(Target.java:309)
> at org.apache.tools.ant.Target.performTasks(Target.java:336)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
> at org.jboss.tools.buildmagic.task.Ant.execute(Ant.java:261)
> at 
>org.jboss.tools.buildmagic.task.module.ExecuteModules$1.run(ExecuteModules.java:329)
> at 
>org.jboss.tools.buildmagic.task.module.ExecuteModules.executeModule(ExecuteModules.java:342)
> at 
>org.jboss.tools.buildmagic.task.module.ExecuteModules.execute(ExecuteModules.java:217)
> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:1

Re: [JBoss-user] Embedded Tomcat/Jetty Servlet threads and JBoss

2003-02-03 Thread Scott M Stark
The web container thread pool is seperate from the other J2EE components.
The EJB container is responsible for enforcing single threaded access to
the bean. The only problem a multi-threaded client has is trying to use a
stateful session bean in more than one thread which is not allowed and will
result in an exception being thrown by the EJB container.

There is no centralized thread pool service in 3.x. This may show up in 4.0.


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message - 
From: "Barlow, Dustin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 29, 2003 5:57 AM
Subject: [JBoss-user] Embedded Tomcat/Jetty Servlet threads and JBoss


> If I have threaded Servlet code running under the embedded Tomcat or Jetty
> service, how does this effect the thread pooling on the J2EE side of JBoss?
> 
> 
> I know that threading code in EJB's is a violation of the spec, but does
> this also apply to services deployed as MBeans (ie Tomcat or Jetty)?  
> 
> Is the thread pool that the J2EE services use also used by the MBeans?  
> 
> Is there a difference in how this is handled in the 2.4, 3.0, 3.2, or 4.0
> series of JBoss?  
> 
> What is the best practice?
> 
> Thanks,
> Dustin Barlow
> 
> 
> 
> 
> 
> ---
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] help clearing a single user from authentication cache

2003-02-03 Thread Scott M Stark
I'll add this ability in the next release. To do it today implement your own 
CachePolicy.


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message -
From: "David Ward" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 29, 2003 7:32 AM
Subject: Re: [JBoss-user] help clearing a single user from authentication cache


I just upgraded from jboss-3.0.4_tomcat-4.1.12 to
jboss-3.0.6_tomcat-4.1.18.  I noticed a LOT more methods in the
JaasSecurityManagerService.  The methods are now:

getPrincipal()
registerSecurityDomain()
isValid()
start()
create()
doesUserHaveRole()
getAuthenticationCachePrincipals()
stop()
getUserRoles()
flushAuthenticationCache()
destroy()

Oh, how I wish there was a removeAuthenticationCachePrincipal() that
took a String username or Principal!

Should I submit an RFE at sourceforge, or can I beg the powers-that-be
(Scott?) to add it to a 3.0.7?  Or maybe there's a way to accomplish
what I want in 3.0.6 that I don't know about?

Thanks,
David

--

Meyer-Willner, Bernhard escribió::
> Very interesting! I would like to do the same. I'm already using the method
> java.util.List getAuthenticationCachePrincipals() which I believe is
> available only since 3.0.5 to get a List of the principals currently in the
> authentication cache. I looked up the JaasSecurityManager directly from the
> MBeanServer since also my lookup of java:/timedCacheFactory failed. I don't
> see a method to evict a single user from the cache, just all by calling
> flushAuthenticationCache. Is there a method like this? Besides...something
> else...would it be possible to show the meanings of the parameters of MBean
> operations in JMX Console. Sometimes it's kind of hard to guess what they
> mean and it's kind of cumbersome to look it up in the Javadocs.
>
> Thanks,
> Bernhard
>
>
> -Ursprüngliche Nachricht-
> Von: David Ward [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 28. Januar 2003 21:12
> An: [EMAIL PROTECTED]
> Betreff: [JBoss-user] help clearing a single user from authentication
> cache
>
>
> Using JDK 1.4.1_01, jboss-3.0.4_tomca-tomcat-4.1.2 on Linux.
>
> I'm trying to clear from the authentication cache JUST a single user.
> Invoking flushAuthenticationCache(String) on the mbean works fine, but
> it flushes *all* users' security infos.
>
> I want to call the CachePolicy's remove(Principal) method, so I tried
> looking up the CachePolicy in JNDI and calling it.  Though I found a
> TimedCachePolicy in jndi under java:/timedCacheFactory/docs (docs is our
> app's security name), and called the remove(Principal) method
> successfully, it doesn't seem to do anything.
>
> Then, I tried extending JaasSecurityManagerService, configuring the use
> of my class in jboss-service.xml.  I see it in the JMX-Console, but for
> some reason my added method isn't showing up there (under list mbean
> operations), and I don't know how to register an MBean interface to
> expose it.
>
> Please help.  Again, my end goal is to flush the authentication cache
> for just a single user.  Unfortunately, there's not a public, exposed
> method in the JaasSecurityManagerService that does this.
>
> Also, below is some output from the jmx console JNDIView.
>
> - What's up with the "Failed to lookup: timedCacheFactory?"
>
> - When I looked up the timedCacheFactory, it's actually a $Proxy class
> (EJB?)
>
> - java:jaas/docs says it's a SecurityDomainContext below, but when I
> look it up in code, I get a ClassCastException saying it's *really* a
> JaasSecurityManager!  Why the descrepency?  If it *was* actually a
> SecurityDomainContext, I could call
> sdc.getAuthenticationCache().remove(new SimplePrincipal("username"))!
>
> Thanks again,
> David
>
> java: Namespace
>
>+- DefaultDS (class:
> org.jboss.resource.adapter.jdbc.local.LocalDataSource)
>+- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
>+- SecurityProxyFactory (class:
> org.jboss.security.SubjectSecurityProxyFactory)
>+- DefaultJMSProvider (class: org.jboss.jms.jndi.JBossMQProvider)
>+- CounterService (class: org.jboss.varia.counter.CounterService)
>+- comp (class: javax.naming.Context)
>+- JmsXA (class: org.jboss.resource.adapter.jms.JmsConnectionFactoryImpl)
>+- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
>+- jaas (class: javax.naming.Context)
>|   +- JmsXARealm (class:
> org.jboss.security.plugins.SecurityDomainContext)
>|   +- jbossmq (class: org.jboss.security.plugins.SecurityDomainContext)
>|   +- docs (class: org.jboss.security.plugins.SecurityDomainContext)
>+- timedCacheFactory (class: javax.naming.Context)
> Failed to lookup: timedCacheFactory, errmsg=null
>+- TransactionPropagationContextExporter (class:
> org.jboss.tm.TransactionPropagationContextFactory)
>+- Mail (class: javax.mail.Session)
>+- StdJMSPool (class: org.jboss.jms.asf.StdServerSessionPoolFactory)
>+- Transaction

Re: [JBoss-user] unathenticatedIdentity and JBoss 3.0.4-tomcat 4.x

2003-02-03 Thread Scott M Stark
The secured ejbs must also be secured under the java:/jaas/secured security-domain
for this to work. You have added:
java:/jaas/secured

to both the jboss-web.xml and jboss.xml descriptors?


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message - 
From: "Panagiotis Korros" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 29, 2003 8:08 AM
Subject: [JBoss-user] unathenticatedIdentity and JBoss 3.0.4-tomcat 4.x


I have a web application with a restricted area and an unrestricted
area.

The structure is the following:

/secure (webapp)
/secure/admin/ (secure area accesible only by the admin role)
/secure/admin/page1.jsp 
/secure/page2.jsp (accesible by everyone)

page1.jsp and page2.jsp call the same ejb (marked us unchecked).
when i call page1.jsp the system authenticates me and then everything
works ok.

when i call page2.jsp directly without being authenticated first I get
the following error:

java.lang.RuntimeException: checkSecurityAssociation; CausedByException
is:
Authentication exception, principal=null

I used the unauthenticatedIdentity property but nothing changed.

Any ideas or solutions about the problem would be very helpful!

Korros Panagiotis.


my login-config.xml contains:

 
  
   
nobody
   
  
 




---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] How to set up LDAP login module?

2003-02-03 Thread Scott M Stark
See the quick start guide on source forge:
http://prdownloads.sourceforge.net/jboss/JBoss.3.0QuickStart.Draft4.pdf?download


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message - 
From: "Artur Jonak" <[EMAIL PROTECTED]>
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Sent: Wednesday, January 29, 2003 2:32 AM
Subject: [JBoss-user] How to set up LDAP login module?


> Hi,
> 
> Do you have any example of LDAP module configuration for JBoss 3.0?
> 
>flag = "required">
> 
>   
> 
> Best regards,
> Artur
> 
> ___
> Artur Jonak
> phone: +48 22 535 88 10
> 
> ___
> 
> 
> 
> ---
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Where should auth.conf go for a client app?

2003-02-03 Thread Scott M Stark
Yes. Use a jar URL to reference the file.


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message - 
From: "Jon Haugsand" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 28, 2003 12:38 AM
Subject: Re: [JBoss-user] Where should auth.conf go for a client app?


> * Scott M. Stark
> > You need to specify a java.security.auth.login.config system
> > property giving the URL or path of the login configuration file.
> 
> Is it possible to include this file (and the policy file) inside the
> client jar file where the client application resides?  This would make
> it easier to write distributable client applications without having to
> either configure each machine with these files or being sure that
> there are reachable url resources.  (And it won't slow down the client
> applications as well having to use http.)
> 
> I mean, the client side does not implement any security enforcement
> anyway, so there is no need to protect these files, is there?
> 
> -- 
>  Jon Haugsand, [EMAIL PROTECTED]
>  http://www.norges-bank.no
> 
> 
> 
> ---
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] login-config.xml

2003-02-03 Thread Scott M Stark
No. See the security unit tests in the testsuite directory for an example of
how this can be done.


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message -
From: "Gabriel Pinto" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 28, 2003 10:59 AM
Subject: [JBoss-user] login-config.xml




Is it possible to have my login-config.xml file deployed with my
application, inside my application.ear ? Instead of having to modify it at
the /conf/login.config.xml

Thanks

Gabriel


--

Gabriel Esteves Marques Pinto

   Diretor de TI
[EMAIL PROTECTED]
  www.brainweb.com.br
(19)3287-7060  Ramal:253
 Núcleo SOFTEX-Campinas






---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] help clearing a single user from authentication cache

2003-02-03 Thread David Ward
Thanks, Scott.  I noticed you assigned yourself to the RFE I submitted 
for this.

Just curious - by "next release" do you mean 3.0.7 or when 3.2 goes final?

Also, we tried implementing our own CachePolicy, but had trouble since 
it didn't seem like the CachePolicy interface had all the information it 
needed to know to make the decision to clear a particular user, and 
when.  Anyway, if there's going to be a jboss-3.0.7_tomcat-4.1.18 soon 
that includes the new JaasSecurityManager method, I'm happy enough to 
wait for that.

Thanks again,
David

--

Scott M Stark escribió::
I'll add this ability in the next release. To do it today implement your own CachePolicy.


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message -
From: "David Ward" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 29, 2003 7:32 AM
Subject: Re: [JBoss-user] help clearing a single user from authentication cache


I just upgraded from jboss-3.0.4_tomcat-4.1.12 to
jboss-3.0.6_tomcat-4.1.18.  I noticed a LOT more methods in the
JaasSecurityManagerService.  The methods are now:

getPrincipal()
registerSecurityDomain()
isValid()
start()
create()
doesUserHaveRole()
getAuthenticationCachePrincipals()
stop()
getUserRoles()
flushAuthenticationCache()
destroy()

Oh, how I wish there was a removeAuthenticationCachePrincipal() that
took a String username or Principal!

Should I submit an RFE at sourceforge, or can I beg the powers-that-be
(Scott?) to add it to a 3.0.7?  Or maybe there's a way to accomplish
what I want in 3.0.6 that I don't know about?

Thanks,
David

--

Meyer-Willner, Bernhard escribió::


Very interesting! I would like to do the same. I'm already using the method
java.util.List getAuthenticationCachePrincipals() which I believe is
available only since 3.0.5 to get a List of the principals currently in the
authentication cache. I looked up the JaasSecurityManager directly from the
MBeanServer since also my lookup of java:/timedCacheFactory failed. I don't
see a method to evict a single user from the cache, just all by calling
flushAuthenticationCache. Is there a method like this? Besides...something
else...would it be possible to show the meanings of the parameters of MBean
operations in JMX Console. Sometimes it's kind of hard to guess what they
mean and it's kind of cumbersome to look it up in the Javadocs.

Thanks,
Bernhard


-Ursprüngliche Nachricht-
Von: David Ward [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 28. Januar 2003 21:12
An: [EMAIL PROTECTED]
Betreff: [JBoss-user] help clearing a single user from authentication
cache


Using JDK 1.4.1_01, jboss-3.0.4_tomca-tomcat-4.1.2 on Linux.

I'm trying to clear from the authentication cache JUST a single user.
Invoking flushAuthenticationCache(String) on the mbean works fine, but
it flushes *all* users' security infos.

I want to call the CachePolicy's remove(Principal) method, so I tried
looking up the CachePolicy in JNDI and calling it.  Though I found a
TimedCachePolicy in jndi under java:/timedCacheFactory/docs (docs is our
app's security name), and called the remove(Principal) method
successfully, it doesn't seem to do anything.

Then, I tried extending JaasSecurityManagerService, configuring the use
of my class in jboss-service.xml.  I see it in the JMX-Console, but for
some reason my added method isn't showing up there (under list mbean
operations), and I don't know how to register an MBean interface to
expose it.

Please help.  Again, my end goal is to flush the authentication cache
for just a single user.  Unfortunately, there's not a public, exposed
method in the JaasSecurityManagerService that does this.

Also, below is some output from the jmx console JNDIView.

- What's up with the "Failed to lookup: timedCacheFactory?"

- When I looked up the timedCacheFactory, it's actually a $Proxy class
(EJB?)

- java:jaas/docs says it's a SecurityDomainContext below, but when I
look it up in code, I get a ClassCastException saying it's *really* a
JaasSecurityManager!  Why the descrepency?  If it *was* actually a
SecurityDomainContext, I could call
sdc.getAuthenticationCache().remove(new SimplePrincipal("username"))!

Thanks again,
David

java: Namespace

  +- DefaultDS (class:
org.jboss.resource.adapter.jdbc.local.LocalDataSource)
  +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
  +- SecurityProxyFactory (class:
org.jboss.security.SubjectSecurityProxyFactory)
  +- DefaultJMSProvider (class: org.jboss.jms.jndi.JBossMQProvider)
  +- CounterService (class: org.jboss.varia.counter.CounterService)
  +- comp (class: javax.naming.Context)
  +- JmsXA (class: org.jboss.resource.adapter.jms.JmsConnectionFactoryImpl)
  +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
  +- jaas (class: javax.naming.Context)
  |   +- JmsXARealm (class:
org.jboss.security.plugins.SecurityDomainContext)
  |   +- jbossmq (class: org.jboss.security.plugins.SecurityDom

Re: [JBoss-user] Say No to NetBeans

2003-02-03 Thread Guy Rouillier

- Original Message -
From: "Tony Tortallini" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 03, 2003 4:28 AM
Subject: Re: [JBoss-user] Say No to NetBeans


> Blah blah blah ... but you still never rebutted my point about
NetBeans
> screwing up Java IDE revenue models. Thanks for reminding me that
JBoss and
> NetBeans are both open source. As for open source app servers, we
already
> got one. It's called the Sun ONE app server. It's certified. Put that
in
> your JBoss pipe 'n smoke it.
>
> http://www.oetrends.com/cgi-bin/page_display.cgi?77
>

What point are you trying to make by repeating what McNealy said?




---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Sending and receiving Emails

2003-02-03 Thread Guy Rouillier
Please format your mail as plain text, not HTML.  See other messages
inline.

- Original Message -
From: Brian McSweeney
To: [EMAIL PROTECTED] ;
[EMAIL PROTECTED]
Sent: Monday, February 03, 2003 11:46 AM
Subject: [JBoss-user] Sending and receiving Emails


Hi guys,
general computer science/Email/J2EE question.

In sending an email we use an implementation of the javax.mail.Session
class. In JBoss this is tied to java:/Mail

Could someone tell me how this works. Does the Session implementation
have to be setup somehow?

As far as I know, In SMTP there are 3 components.

1) User-Agents - normal email clients like outlook, eudora etc.
2) Transfer-Agents - which must know where a DNS is in order to know
to which Delivery Agent to give the mail.
3) Delivery-Agents - to send the mail to the individual client or wait
for a
given amount of time until the client comes back.

I think that sendmail is actually both a Transfer-Agent and a
Delivery-Agent.

So my questions:
a) Where does the javax.mail.Session class fit into this? It seems
logical that it
should be just a User-Agent. But not sure if this is correct.
b) Does it have to be setup to know about a Transfer-Agent?
==
Here is working code fragment:

 Session session =
((Session) new
InitialContext().lookup("java:comp/env/mail/Mail"));

 // Construct The Message
 MimeMessage message = new MimeMessage(session);

 // Set The "from" Address
 Address addressFrom = new InternetAddress(sFrom);
 message.setFrom(addressFrom);

 // Set The "to" Address(es)
 Address[] addressArrayTo = InternetAddress.parse(sTo);
 message.setRecipients(Message.RecipientType.TO,
addressArrayTo);

 // Set The "subject & text"
 message.setSubject(sSubject);
 message.setSentDate(new Date());

 // message.setText(sText);
 message.setContent(sText, sContentType);

 // Set The "cc & bcc" Address(es) If Relevant

 if ( sCC != null )
{
Address[] addressArrayCC = InternetAddress.parse(sCC);
message.setRecipients(Message.RecipientType.CC,
addressArrayCC);
}

 if (sBcc != null )
{
Address[] addressArrayBCC = InternetAddress.parse(sBcc);
message.setRecipients(Message.RecipientType.BCC,
addressArrayBCC);
}

 // Send It!
 Transport.send(message);
==

Also, this is fine for sending emails, but how is receipt of emails
generally handled
in J2EE. I've read a good article on the server side about J2EE 1.4 and
how it can use
the JCA to plug into SMTP servers and essentially get callbacks when
mails arrive, but
I'm not sure if this is implemented yet etc
The article link is:
http://www.theserverside.com/resources/articles/J2EE1_4/article.html

==
I'm no expert on email, but from my experience, SMTP is used for
sending.  POP is usually used for receiving.  Receiving, as you alluded,
is more complicated.  I've never had occasion to tackle it.
==

thanks for your time and answers,
Brian




---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Say No to NetBeans

2003-02-03 Thread Tony Tortallini
Sun has been pushing Forte and  NetBeans into the IDE market for years so
McNealy's asinine remarks regarding JBoss were a convenient target for the
company's market place frustration. He pulled the same tantrum when asked
about Linux a few years back and offered Solaris instead. We all know the
punch line to that joke. They canned the effort when it was clear FreeBSD
and Linux was about to rip them a new Van Winkle. Java got its start because
of Sun but it has been wildly successful despite Sun. IMO it can only
continue to dominate without Sun and e-tantrum pitcher Scott McNealy. I
think Sun will be better off focusing exclusively on high-end solutions in
telecom. They are starting to smell like Novell.


- Original Message -
From: "Guy Rouillier" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 03, 2003 9:24 PM
Subject: Re: [JBoss-user] Say No to NetBeans


>
> - Original Message -
> From: "Tony Tortallini" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, February 03, 2003 4:28 AM
> Subject: Re: [JBoss-user] Say No to NetBeans
>
>
> > Blah blah blah ... but you still never rebutted my point about
> NetBeans
> > screwing up Java IDE revenue models. Thanks for reminding me that
> JBoss and
> > NetBeans are both open source. As for open source app servers, we
> already
> > got one. It's called the Sun ONE app server. It's certified. Put that
> in
> > your JBoss pipe 'n smoke it.
> >
> > http://www.oetrends.com/cgi-bin/page_display.cgi?77
> >
>
> What point are you trying to make by repeating what McNealy said?
>
>
>
>
> ---
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] 3.0.6 release notes available

2003-02-03 Thread Scott M Stark
The 3.0.6 release made available via SourceForge on 2003-01-26 here:
https://sourceforge.net/project/showfiles.php?group_id=22866

now has change notes available which may be obtained from here:
http://sourceforge.net/project/shownotes.php?release_id=136135


Scott Stark
Chief Technology Officer
JBoss Group, LLC



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Setting Class-Path for EJB jar breaks WAR classloading(?)

2003-02-03 Thread Panu Hällfors
Hi!

I'm, using a fresh copy of JBoss 3.0 from CVS (JBoss 3.0.7RC1).

This is what I have:
 app.ear
   servlet.war
 WEB-INF/lib/servletlibs.war
   ejb.jar
   ejb-client.jar

If we don't refer to ejb-client.jar from ejb.jar the
servlet finds its libs from servletlibs.war, as it should.

However, if I put Class-Path element in the manifest of
ejb.jar (and specify  in DD, which doesn't
affect this, however) like this:
 Class-Path: ejb-client.jar

...then JBoss does find the interfaces of the beans ejb.jar
from the client jar but for some reason applications in
servlet.war cease to find classes in servletlibs.jar.

I doubt this is what is supposed to happen.
"Or is it just me?"

Thanks,

Panu

-- 
Panu Hällfors, [EMAIL PROTECTED]|CS Student, Helsinki University of Technology
   http://panu.hallfors.com |Chief Software Architect, Viloke Oy


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user