[jboss-user] [Beginner's Corner] - Problems with isCallerInRole()

2010-07-08 Thread Breako Beats
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

Re: [jboss-user] [Beginner's Corner] - Trying a very simple WebService

2010-06-10 Thread Breako Beats
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

Re: [jboss-user] [Beginner's Corner] - Trying a very simple WebService

2010-06-10 Thread Breako Beats
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.

[jboss-user] [Beginner's Corner] - Trying a very simple WebService

2010-06-09 Thread Breako Beats
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

Re: [jboss-user] [Beginner's Corner] - Where does org.jboss.security.ClientLoginModule get usernames and passwords from?

2010-06-09 Thread Breako Beats
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

Re: [jboss-user] [Beginner's Corner] - Where does org.jboss.security.ClientLoginModule get usernames and passwords from?

2010-06-09 Thread Breako Beats
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

Re: [jboss-user] [Beginner's Corner] - Where does org.jboss.security.ClientLoginModule get usernames and passwords from?

2010-06-09 Thread Breako Beats
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

[jboss-user] [Beginner's Corner] - Where does org.jboss.security.ClientLoginModule get usernames and passwords from?

2010-06-08 Thread Breako Beats
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

Re: [jboss-user] [Beginner's Corner] - Having major problems setting up a user on JNDI Security

2010-06-08 Thread Breako Beats
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 --

[jboss-user] [Beginner's Corner] - Having major problems setting up a user on JNDI Security

2010-06-07 Thread Breako Beats
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,

[jboss-user] [JBoss Seam] - Re: Transaction recovery

2008-01-30 Thread breako
"[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

[jboss-user] [JBoss Seam] - Transaction recovery

2008-01-25 Thread breako
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

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Observing connection usage

2008-01-17 Thread breako
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

[jboss-user] [JBoss Seam] - Seam transactions

2008-01-04 Thread breako
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

[jboss-user] [JBoss Seam] - Connection usage for Seam Managed Entity Manager

2008-01-04 Thread breako
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

[jboss-user] [JBoss Seam] - Can a Seam managed EntityManager join a transaction?

2008-01-03 Thread breako
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

[jboss-user] [JBoss Seam] - Re: Propagation of Persistence Context in Seam

2008-01-03 Thread breako
"[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

[jboss-user] [JBoss Seam] - Re: Propagation of Persistence Context in Seam

2008-01-02 Thread breako
"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

[jboss-user] [JBoss Seam] - Re: Determining Database Type.

2008-01-02 Thread breako
"[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

[jboss-user] [JBoss Seam] - Propagation of Persistence Context in Seam

2008-01-02 Thread breako
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

[jboss-user] [JBoss Seam] - Determining Database Type.

2008-01-02 Thread breako
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

[jboss-user] [JBoss Seam] - Re: One Seam component calling another

2008-01-02 Thread breako
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 ___

[jboss-user] [JBoss Seam] - Re: One Seam component calling another

2007-12-31 Thread breako
"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

[jboss-user] [JBoss Seam] - Re: Creating several objects in one transaction.

2007-12-31 Thread breako
"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

[jboss-user] [JBoss Seam] - One Seam component calling another

2007-12-31 Thread breako
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

[jboss-user] [JBoss Seam] - Creating several objects in one transaction.

2007-12-28 Thread breako
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

[jboss-user] [JBoss Seam] - JTA transactions

2007-12-21 Thread breako
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,

[jboss-user] [JBoss Seam] - Re: JBoss Seam JTA transactions

2007-11-28 Thread breako
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"; |

[jboss-user] [JBoss Seam] - Re: JBoss Seam JTA transactions

2007-11-28 Thread breako
"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

[jboss-user] [JBoss Seam] - JBoss Seam JTA transactions

2007-11-27 Thread breako
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

[jboss-user] [JBoss Seam] - Having more than one Seam EntityManager

2007-11-27 Thread breako
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

[jboss-user] [JBoss Seam] - ELResolver - exception at start up.

2007-11-26 Thread breako
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.

[jboss-user] [JBoss Seam] - Re: Persistence Context propagation between Seam Components

2007-11-26 Thread breako
"[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

[jboss-user] [JBoss Seam] - Persistence Context propagation between Seam Components

2007-11-23 Thread breako
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

[jboss-user] [JBoss Seam] - Transactions without EJB

2007-11-23 Thread breako
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

[jboss-user] [EJB/JBoss] - Re: Problem deploying Session Bean

2007-11-22 Thread breako
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

[jboss-user] [EJB/JBoss] - Problem deploying Session Bean

2007-11-22 Thread breako
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

[jboss-user] [EJB 3.0] - Re: Driver problems with Persistence.XML

2007-11-22 Thread breako
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

[jboss-user] [EJB 3.0] - Problem instantiating an EntityManagerFactory

2007-11-20 Thread breako
Hi, I have configured a JTA datasource in my persistence.xml | |java:DefaultDS | | | | | | | | | | A simple JSP tries to look it up | EntityManagerFactory

[jboss-user] [EJB 3.0] - Driver problems with Persistence.XML

2007-11-20 Thread breako
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