[EJB/JBoss] - Statefull session bean and exception
by jc7442
I use an EJB3 stateful session bean.
| @Stateful
| public class MyStatefullImpl implements MyStatefull{
|
| public void applyFilter(...) throws MyException {
| ...
| }
|
|
MyException is managed properly in my source code and is declared in the API . Consequently, when this exception is thrown, my stateful bean is still consistent . Unfortunately it looks like if an excetion go through a method of a stateful bean, the stateful bean can not be used (on next invocation of one of its method I got an javax.ejb.EJBNoSuchObjectException: Could not find Stateful bean: a2a3m6o-w94gp-ezsdveoz-1-ezsdvf3b-3)
Is it possible to implement that an exception does not kill the session bean ? (something similar for example with the @ApplicationException for JTA transactions)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037899#4037899
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037899
19 years, 1 month
[Persistence, JBoss/CMP, Hibernate, Database] - ORA-01031: insufficient privileges, grant requirements
by kuruma45
Hi
I have some problems to deploy EJB3 on JBOSS 4..0.5, abd a Oracle8i databse. "DATABASE"
I have one instance of my database, and two schema " SCH1" and "SCH2",
I'm log on SH1 and each Schema has any table.
but I have to create a ejb entity SCH2_TABLE1, TABLE1 is a table of SH2,
in the TABLE1 script :
GRANT SELECT ON TABLE1 TO SCH1;
..
When I try to deploy, I have an Oracle exception : ORA-01031: insufficient privileges
My question is, what are the privileges required to deploy an EJB3 entity on an Oracle database or Schema?
An other question, if I don't declare my entity in the persistence.xml, jboss find my entity and try to deploy it...is it normal??
What is the use of the persistence file?
I know it use to declare the oracle-DS file and the name of the database, and also the mode of persistence (update, create-drop)... but how it can find my entity without any declaration?
Thanks for your answer.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037898#4037898
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037898
19 years, 1 month
[JBoss Portal] - Re: isUserInRole(String role) doesn't work
by Antoine_h
Hello,
an old topic, but I still have the same need.
the spec is nice.
--------------------------------------------------------------------------
it allows that the portlet knows what features it provide, and what it's portlet-roles are needed for thoses.
then the portlet declaration allows to map the application roles (user roles) to theses features specific roles.
example :
Portlet has two features :
delete some record, with role authorization PRoleA
create a business process, with role authorization PRoleB
all other features are allowed to PRoleC
then, mapping of role allow to set, for use of this portlet in any application (portal), to map the users roles to theses three "portlet features roles".
As : URole_Admin to PRoleA, PRoleB, PRoleC
URole_BP_Manager to PRoleB, PRoleC
URole_Editor to PRoleA, PRoleC
and so on...
Advantages :
Decouple of roles, between "portlet features roles" and application user roles,
Allow to provide a portlet to "others" without knowing the user roles in the application/portal.
nice.
--------------------------------------------------------------------------
but, it is quite heavy to manage. It forces to declare explicitly all roles that must be available inside the portlet.
Use Case
--------------------------------------------------------------------------
20 to 30 roles
15 to 30 portlets
to manage either :
- internal users features (admin, manager, editor, data validator, hotliner for user),
- and external user features (visitor, loggued user of customer type A, loggued manager of customer type A, ... for customer type B and C).
and in the situation where portlets are dedicated to this application : ie, there is identity between portlet features roles and application user roles.
Example : they are developped specifically for this application.
--------------------------------------------------------------------------
Then, the decoupling is a heavy overhead.
The descriptors become a huge XML file of repeating the associations of roles, always the same. (30 portlets x 30 role-ref items !).
Maintenance and evolution is heavy, and bug generating.
Proposition :
--------------------------------------------------------------------------
To allow to define identity of role, for a bunch of them.
Using a regular expression, or at least wildcards.
<security-role-ref>
| <role-name>*</role-name>
| <role-link>*</role-link>
| </security-role-ref>
|
--------------------------------------------------------------------------
This would lightened the constraint to declare all explicitly, with preserving the nice decoupling capability (for commercial portlets, etc...).
Questions 1 :
How to send this request to the spec definition group ?
Questions 2 :
How to workaround this for the time being ?
What class is responsible for reading the descriptor and set the role visible in the portlets ?
To overload it, knowing it is not JSR-168 compliant...
Thanks,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037894#4037894
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037894
19 years, 1 month
[JBoss Seam] - Re: Seam CVS now on JBoss AS 4.2 CR1
by avbentem
"shane.bryzak(a)jboss.com" wrote : "avbentem" wrote :
| | - when getting compile errors in GWTRemoteService then [...]
| Which compiler errors are you getting? I don't get any.
I did get errors in Eclipse (actually JBoss IDE 2.2.0.BETA2), all caused by a fewThe import com.google cannot be resolved
| /src/remoting/org/jboss/seam/remoting/gwt/GWTRemoteService.java line 31
But, as petemuir wrote that the libraries in /lib worked fine, I now tested with gwt-servlet.jar (as included in /lib with the Seam download). That solves the problem too, so indeed no need to download anything from Google.
Without adding gw-servlet.jar an Ant build runs fine too, so it just seems to be missing in the Eclipse classpath file.
Thanks,
Arjan.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037889#4037889
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037889
19 years, 1 month