Great!!  :-)
I'll try it right now.

Thanks
Bruno

Chad Brandon dijo lo siguiente el 24/01/2005 18:04:

Bruno,

Try using the latest hibernate cartridge, you should now be able to specify
"securityDomain" to enable the Session EJB security (so that you won't have
to use the @ejb.permission.tag).  In fact you can even model which roles
have access to which services (and which service operations) by drawing
dependencies to these services and service operations from an actor
stereotyped as <<Role>>.  This isn't in the docs yet, however it will be
soon.

Chad

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bruno Suárez
Laffargue
Sent: Sunday, January 23, 2005 5:41 AM
To: Andromda User
Subject: Re: [Andromda-user] isCallerInRole error

Thank you very much for your help Chad,
I have it running.

I've added the @ejb.permission tag to the HibernateSessionBean.vsl in each create and bussiness method.
I've seen that in the new hibernate/ejb templates, the methods permission has been set... I'll try it.


Regards
Bruno

Chad Brandon dijo lo siguiente el 21/01/2005 18:52:



If you're using the hibernate cartridge, you'll need to modify your
maven.xml in the core module to include your security realm information.
Check the xdoclet docs.


P.S. very soon xdoclet will be eliminated from the Hibernate cartridge
therefore setting the <securityRealm> will work for it just like it does


for


the Spring cartridge.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bruno


Suárez


Laffargue
Sent: Friday, January 21, 2005 10:43 AM
To: Andromda User
Subject: Re: [Andromda-user] isCallerInRole error

I'm using the hibernate cartridge.

I've added <securityRealm>SeguPruebas</securityRealm> to the the maven-andromda-plugin dependencies (I hadn't set it) in mda/project.xml, and I'm recompiling to test it.
I'll tell you the result.


Thanks

Bruno

Chad Brandon dijo lo siguiente el 21/01/2005 18:21:





By the way: which cartridge are you using for EJBs? The spring cartridge
uses the securityRealm namespace property, but I think hibernate and ejb




use




the one defined by xdoclet.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chad




Brandon




Sent: Friday, January 21, 2005 10:18 AM
To: 'Bruno Suárez Laffargue'; Andromda-user@lists.sourceforge.net
Subject: RE: [Andromda-user] isCallerInRole error

Did you set securityRealm in the maven-andromda-plugin dependency so that




it




used for all cartridges?

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bruno




Suárez




Laffargue
Sent: Friday, January 21, 2005 10:08 AM
To: Andromda-user@lists.sourceforge.net
Subject: [Andromda-user] isCallerInRole error

Hi,

I'm trying to discrimate between roles in the service.

I do _ctx.isCallerInRole("admin") and i get the following error:

javax.ejb.EJBException: ServPruebasBean.guardaDatos:
java.lang.IllegalStateException: isCallerInRole() called with no
security context. Check that a security-domain has been set for the
application.

I've setted the security realm in mda/project.xml, and I succesfully log
to the application through bpm4struts default login page.

I've tryed to pass environment parameters to the
service.getHome(environment) method as follows:
Hashtable environment = new Hashtable();
environment.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
environment.put(Context.URL_PKG_PREFIXES,
"org.jboss.naming:org.jnp.interfaces");
environment.put(Context.PROVIDER_URL, "jnp://localhost:1099");


but I still getting the same error. If I use the getServPruebas() of the controller, I get the same...

What am I missing? Where can I set this environment parameters to be
used as default for all the services?

Best regards
Bruno



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user




------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Andromda-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user




------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Andromda-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user








------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Andromda-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user




------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Andromda-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user








------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Andromda-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user




------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Andromda-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user






------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Andromda-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to