[JBoss-user] [J2EE Design Patterns] - Re: Static Initialization at server startup

2005-08-01 Thread halkw
I strongly advise you to use 'Service Locator Pattern'  by using Singleton 
Pattern. If you had done this methodolgy, you could have make the module more 
efficiency. 

---
reference docs

http://java.sun.com/blueprints/corej2eepatterns/Patterns/ServiceLocator.html

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3887651#3887651

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3887651


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [J2EE Design Patterns] - Re: Static Initialization at server startup

2005-07-27 Thread sgodden
I want to be portable, thus reluctance to use MBean.

I tried also to do a client login in the init() method with hardcoded user id 
and password, and that did not work.  I got no errors from the login but still 
got a authentication failure on EJB invocation due to a null principal.

Because we have encapsulated functionality in different EJBs, even if I created 
a new unsecured EJB, it would need to call the secured ones.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3886845#3886845

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3886845


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [J2EE Design Patterns] - Re: Static Initialization at server startup

2005-07-19 Thread genman

Sounds like you want an MBean.  MBeans/JMX have not much to do with SNMP.  
JBoss services are built around a JMX architecture.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3885614#3885614

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3885614


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [J2EE Design Patterns] - Re: Static Initialization at server startup

2005-07-18 Thread kalyan120
Since you are invoking EJBs from the init method of the Servlet, can I presume 
that your EJBs here are only serving the application requirements, but not the 
end user/client requirements? If that's the case, can you not use different 
credentials to authenticate requests to those specific EJBs that are getting 
called from the init methods? For the normal methods used by the end user, you 
can make use of his/her credentials.

Thanks,
Kalyan.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3885324#3885324

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3885324


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [J2EE Design Patterns] - Re: Static Initialization at server startup

2005-07-13 Thread sgodden
This is a common question for Java EE, and we have solved it in the same way 
described here.

But now comes a problem.  This works as long as the EJBs are unsecured.  
Recently, we have looked at securing our EJBs to prevent unauthenticated access.

But if we do that, then how do we call those EJBs from the init() method of a 
servlet, when no authentication has been established?

Run-as role does not cut it - that just changes the role the servlet is running 
as, and does not actually enable us to have the servlet work authenticated.

So, my question is - if I have secured EJBs, how can I indicated that a servlet 
in a web app in the same EAR is trusted, and can call those EJBs?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3884672#3884672

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3884672


---
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user