[jboss-user] [EJB 3.0] - EJB3 deployment problem - javax.naming.NoInitialContextExcep

2008-12-31 Thread zilbi
persistence.xml files. what am i doing wrong, it is a mystery for me? your help is appreciated, zilbi View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4199052#4199052 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4199052

[jboss-user] [EJB 3.0] - Re: EJB3 deployment problem - javax.naming.NoInitialContextE

2008-12-31 Thread zilbi
anonymous wrote : Are you using JBoss-4.2.x -- YES! (4.2.2.GA) and anonymous wrote : does your other jar have a MDB -- YES again and i was sure i am doing something wrong... thanks mate! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4199097#4199097 Reply to

[jboss-user] [EJB 3.0] - Re: EJB3 transaction / lazy loading issue

2008-08-27 Thread zilbi
solved it! it turns out that sorting the collection returned from one of the entity's getters (using collections.sort) make hibernate think i changed the entity. i cloned the collection before sorting and it is solved - no more update query when the transaction exits. cool! View the

[jboss-user] [EJB 3.0] - EJB3 transaction / lazy loading issue

2008-08-13 Thread zilbi
? is there a way to prevent it (since i know for sure i do not need it)? is there a way to enjoy lazy load without opening a transaction? (a sort of a read only trx..) thanks, zilbi View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4170384#4170384 Reply to the post

[jboss-user] [EJB 3.0] - controlling MDB pool size

2008-08-13 Thread zilbi
-nameimodeConnectionFactory/connection-factory-jndi-name |/message-driven-descriptor |jndi-namePcUpdateMDB/jndi-name | /weblogic-enterprise-bean is there a way to do something similar in jboss 4.2 using annotations? looked for it and could not find it... your help is appreciated, zilbi View

[jboss-user] [EJB 3.0] - Re: EJB3 transaction propagation

2008-08-13 Thread zilbi
thatYourLocalSession localRef = context.getBusinessObject( YourLocalSession.class ); | for... | { | localRef .update(); | } // end for hope it helps, zilbi View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4170434#4170434 Reply to the post : http

[jboss-user] [Security JAAS/JBoss] - Re: combination of JAAS

2008-03-24 Thread zilbi
live with that... thanks again to everyone... Zilbi View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4138500#4138500 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4138500 ___ jboss-user

[jboss-user] [Security JAAS/JBoss] - Re: combination of JAAS

2008-03-17 Thread zilbi
thanks for the help man! got some new extremely urgent pressured feature to take care of, so i'll get back to this in a few days... thanks, it is appreciated. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4137019#4137019 Reply to the post :

[jboss-user] [Security JAAS/JBoss] - Re: combination of JAAS

2008-03-13 Thread zilbi
thanks, i think that you are right in understanding the general concept. however, in my servlet i do: | WebAuthentication webA = new WebAuthentication(); | boolean flag = webA.login(user, pass); | which if i understand correctly is intended exactly for this problem. also note that

[jboss-user] [EJB 3.0] - Re: EJB3 Lazy Load problem

2008-03-13 Thread zilbi
there you go: | @Stateless | @Remote(ContactsInviter.class) | @SecurityDomain(jinni) | public class ContactsInviterImpl implements ContactsInviter | { | private static final Log log = LogFactory.getLog(ContactsInviterImpl.class); | | @EJB | private

[jboss-user] [EJB 3.0] - Re: EJB3 Lazy Load problem

2008-03-13 Thread zilbi
both: @Stateless | @Local(CollectionDao.class) | @Remote(CollectionDao.class) | public class CollectionDaoImpl extends DaoImplCollection, Long | { | | } View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136366#4136366 Reply to the post :

[jboss-user] [EJB 3.0] - Re: EJB3 Lazy Load problem

2008-03-13 Thread zilbi
Mary Mother of GOD you are RIGHT!!! thanks man. would never think of it by my self... so the conclusion here is that in jboss 4.2: if your local and remote interface are actually one; and your SLSB implements both; and you use injection rather than a lookup to retrieve it, you will get the

[jboss-user] [EJB 3.0] - Re: EJB3 Lazy Load problem

2008-03-13 Thread zilbi
thanks, the reason i'm having the remote for now is for my JUnits, i plan to remove them at production. as for seam, my web developer just doest like JSF so i will stick to simple EJBs for now. cheers View the original post :

[jboss-user] [Security JAAS/JBoss] - Re: combination of JAAS

2008-03-13 Thread zilbi
both, and none. :) i tried all 3 combinations (only web, only jaas and both) and i get the same result always. there must be something else wrong... but i am quite lost here my friend View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136456#4136456 Reply to the

[jboss-user] [Security JAAS/JBoss] - Re: combination of JAAS

2008-03-13 Thread zilbi
yes thanks, i read it before. but from reading: http://wiki.jboss.org/wiki/Wiki.jsp?page=WebAuthentication and http://roneiv.wordpress.com/2008/02/19/perform-a-jaas-programmatic-login-in-jboss-try-to-solve-the-empty-remote-user-problem/ I was thinking that it will solve the problem. going back

[jboss-user] [EJB 3.0] - EJB3 Lazy Load problem

2008-03-12 Thread zilbi
Hi, i am new to this, so i apologize if this question is stupid... have 2 entities with 1 to many relations: @Entity | @Table(name = contents) | public class Content implements Serializable | { | private Long id; | private Integer version; | ... some more simple fields

[jboss-user] [Security JAAS/JBoss] - combination of JAAS

2008-03-09 Thread zilbi
Hi Guys, am trying to develop a website with the regular login feature and also to enable programmatic login to be used by affiliates via API. working with jboss-4.2.2.GA i got the first part (using the FORM login) done fast enough. but i cannot complete the second part... :( also added a