Breako Beats [http://community.jboss.org/people/breako] created the discussion
"Problems with isCallerInRole()"
To view the discussion, visit: http://community.jboss.org/message/551667#551667
--
Hi,
I am trying to use pr
Breako Beats [http://community.jboss.org/people/breako] replied to the
discussion
"Trying a very simple WebService"
To view the discussion, visit: http://community.jboss.org/message/547454#547454
--
If I may follow up on th
Breako Beats [http://community.jboss.org/people/breako] replied to the
discussion
"Trying a very simple WebService"
To view the discussion, visit: http://community.jboss.org/message/547438#547438
--
That is absolutely class.
Breako Beats [http://community.jboss.org/people/breako] created the discussion
"Trying a very simple WebService"
To view the discussion, visit: http://community.jboss.org/message/547236#547236
--
Hi,
I am using Jax-ws
Breako Beats [http://community.jboss.org/people/breako] replied to the
discussion
"Where does org.jboss.security.ClientLoginModule get usernames and passwords
from?"
To view the discussion, visit: http://community.jboss.org/message/547
Breako Beats [http://community.jboss.org/people/breako] replied to the
discussion
"Where does org.jboss.security.ClientLoginModule get usernames and passwords
from?"
To view the discussion, visit: http://community.jboss.org/message/547
Breako Beats [http://community.jboss.org/people/breako] replied to the
discussion
"Where does org.jboss.security.ClientLoginModule get usernames and passwords
from?"
To view the discussion, visit: http://community.jboss.org/message/547
Breako Beats [http://community.jboss.org/people/breako] created the discussion
"Where does org.jboss.security.ClientLoginModule get usernames and passwords
from?"
To view the discussion, visit: http://community.jboss.org/message/546
Breako Beats [http://community.jboss.org/people/breako] replied to the
discussion
"Having major problems setting up a user on JNDI Security"
To view the discussion, visit: http://community.jboss.org/message/546900#546900
--
Breako Beats [http://community.jboss.org/people/breako] created the discussion
"Having major problems setting up a user on JNDI Security"
To view the discussion, visit: http://community.jboss.org/message/546570#546570
--
Hi,
"[EMAIL PROTECTED]" wrote : After an exception occurs in the persistence layer,
the transaction is unusable. You need a new transaction at this point. You
should pre validate your data probably.
I have some corner cases where I can't pre validate data. I would therefore
need to start a new trans
Hi,
I am using SEAM Managed EntityManager with FushMode set to Manual for a JTA
datasource.
When I flush the EntityManager for some invalid update, I get a database
exception.
I catch this exception, the entity I am updating is still attached and I try to
correct the invalid data and then try t
Hi,
My application is using an Oracle datasource, which is defined in configuration
file which I name oracle-ds.xml which I drop into JBoss.
I give it the JNDI name: jdbc/OracleDSLocal which my
application then looks up.
I wondering though, is there any way I can information on
1. Is a connec
Hi,
I was just checking through this book, JBoss® Seam Simplicity and Power Beyond
Java? EE by Yuan and Heute.
It states that "the Seam transaction manager uses two transactions per request.
The first spans the beginning of the update model values
phase until the end of the invoke application phas
Hi,
I am using a Seam Managed Entity Manager for a JTA datasource with the Flush
mode set to manual for business use cases, in Seam conversations.
I was just wondering when does Seam actually get a JDBC connection?
1. At the beginning of web request?
2. As soon as EntityManager operations are pe
Hi,
Can a Seam Managed EntityManager which is using a JTA datasource join an active
transaction?
(Note the active transaction may have begun outside Seam!).
Thanks.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116803#4116803
Reply to the post :
http://www
"[EMAIL PROTECTED]" wrote : The scope is conversation. The same Persistence
Context will injected by @In (or via programmatic lookup) during the lifetime
of that conversation. If you inject via @PersistenceContext, it isn't a SMPC.
Thanks for that.
Just to confirm, there is no way to propagate a
"breako" wrote : Hi,
| If Seam managed EntityManagers are being used, the Persistence Context
propagates between the EntityManagers that are in the same conversation. This
is very good and useful.
|
| I am just wondering if another component, for example an EJB is using an
Ent
"[EMAIL PROTECTED]" wrote : Use getDelegate to get the underlying JPA provider.
Thanks for that Peter.
The complete solution just in case anyone is interested is:
| Object localEMObject = ((EntityManagerProxy)em).getDelegate();
| HibernateSessionProxy hsb = (HibernateSessionProxy)localEMObject
Hi,
If Seam managed EntityManagers are being used, the Persistence Context
propagates between the EntityManagers that are in the same conversation. This
is very good and useful.
I am just wondering if another component, for example an EJB is using an
EntityManager in the same transaction as a
Hi,
I have an EntityManager and I want to determine database type. This not part of
the JPA spec, however some JPA vendors e.g. hibernate have a getConnection()
API in their EntityManager implementation.
If you cast to this implementation and get a connection you can determine
database type.
If
Thanks for the replies, you spotted my mistake.
Happy New Year!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116344#4116344
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116344
___
"sdegardin" wrote :
| 1: use @In annotation. (recommended)
|
Thanks for your suggestion. I used the @In annotation but the problem is that
the second Seam component does not get it's Seam managed EntityManager set up
correctly.
Basically, I have two Seam components both involved in the s
"evdelst" wrote : Easiest is to add the persons to a list you store in the bean.
|
| eg.
|
| private Person person;
| |
| | private List list=new ArrayList();
| |
| | void add() {
| |list.add(person);
| | person = new Person();
| | )
|
| Then in y
Hi,
I know it is very easy for a JSP or XHTML to refer to a Seam component through
an EL. However I am wondering how one Seam component refers to another? I do
not wish to have one Seam component instantiating another, I wish one to look
the other up, similar to EJB?
Any ideas?
Thanks in advance
Hi,
I have a simple XHTML page which is a form for a Person object.
I have a create button which will persists the Person and a commit button which
commits the EntityManager by calling the appropriate methods on a Seam backing
bean.
My backing bean has a Person object reference which the XHTML f
Hi,
I am using a Seam managed EntityManaged and configured the persistence unit to
use JTA transactions.
|
| org.hibernate.ejb.HibernatePersistence
| java:/DefaultDS
|
|
|
|
|
|
|
|
My backing bean,
Thanks for that - it makes sens as my components.xml had an entry
|
|
I remove this line and all works fine.
Just to let people know my components.xml is
|
| http://jboss.com/products/seam/components";
| xmlns:core="http://jboss.com/products/seam/core";
|
"breako" wrote : Hi,
| Seam can be used without EJB.
| I was just looking through the examples that come with Seam and in the jpa
example I saw that the persistence unit transaction type was set to
"RESOURCE_LOCAL". My question is it possible to configure a Seam manage
Hi,
Seam can be used without EJB.
I was just looking through the examples that come with Seam and in the jpa
example I saw that the persistence unit transaction type was set to
"RESOURCE_LOCAL". My question is it possible to configure a Seam managed entity
manager to use JTA?
I assume it is ju
Hi,
I know it is possible to have a Seam managed EntityManager. However it is not
possible to set the persistence context for it using the usual JPA annotation.
Instead, the persistence unit is set in the the Seam components XML file.
This is all fine if you only have one persistence-unit, what
Hi,
I get an ELResolver exception at start up.
Here is satck trace?
I haven't a clue what I am doing wrong, any ideas?
18:39:17,573 ERROR [[/ta3g]] Exception sending context initialized event to
listener instance of class
org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
java.lang.
"[EMAIL PROTECTED]" wrote : Assuming you are using Seam Managed Persistence
Contexts, yes.Thanks for that. Is there ever any persistence context classing
problems?
For example in the EJB world if a Stateless Session Bean makes a persistence
context actively associated with the active transactio
Hi,
Suppose I have two Seam components whic both use Seam Managed EntityManagers
i.e. no EJB server.
In a request one Seam component uses the other. Is the persistence context
associiated with the first EntityManager propagated to the second EntityManager
in the second component?
What are the
Hi,
I am just reading through Seam spec, chapter nine, section 9.3.1
I am using Seam without EJB and I was just wondering if I can configure my app
so that it uses a Seam managed EntityManager does that mean the under lying
transactions will JTA User transactions or will they be resorce local
tr
Hi,
I fixed this problem by updated client code to:
|Object ref = ctx.lookup("ta3g/AddressDAOImplBMT/remote");
|System.out.println("ref is : " + ref);
|AddressDAO dao = (AddressDAO)PortableRemoteObject.narrow(ref,
AddressDAO.class);
|
Now I am getting:
| java.lang.ClassCa
Hi,
I have a very simpl ear, test.ear which packages up the following:
test.ear
-enterprise.jar
AddressDAI
AddressDAOImpl
// other java files
-enterprise.war
// usual web stuff
- meta - inf
application.xml
My session bean i
Hi,
I got this working by updating my persistence.xml to include:
and redeploying application.
Rgds
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107014#4107014
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=410701
Hi,
I have configured a JTA datasource in my persistence.xml
|
|java:DefaultDS
|
|
|
|
|
|
|
|
|
|
A simple JSP tries to look it up
| EntityManagerFactory
Hi,
I have a very simple War, which contains a JSP and a pesistence.xml file.
The Persistence.XML defines my persistence unit:
|
|
|
|
|
|
|
|
|
|
|
|
The J
40 matches
Mail list logo