[jboss-user] [EJB 3.0] - Re: Separate JARs for Entity and Session beans

2008-10-12 Thread hipa
Thank you for the tip. It works. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4181729#4181729 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4181729 ___ jboss-user mailing lis

[jboss-user] [EJB 3.0] - Separate JARs for Entity and Session beans

2008-10-07 Thread hipa
Is it possible to separate my entityies and session beans? If I don't add persistence.xml to the JAR with entities hibernate don't see them (no tables will be created). If I add persistence.xml to both session beans JAR and entities JAR hibernate generate IllegalArgumentException: Unknown entity

[jboss-user] [EJB 3.0] - Best practice [referencing from entity to session beans]

2008-10-06 Thread hipa
I have some kind of runtime configuration in my application: entity may contain a reference to the name of some session bean. | public interface MyPolicy | { | public String get(); | } | | @Stateless | @Local(MyPolicy.class) | public class MyPolicy1 implements MyPolicy |

[jboss-user] [Security & JAAS/JBoss] - Optional certificate login

2008-09-18 Thread hipa
Is it possible to support optional certificate login for application in JBoss? I have an application with simple web form login. There are some computers (not users) that must have additional access rights and I want to know on application server what computer is accessing AS. I think using of c

[jboss-user] [EJB 3.0] - Re: Lookup EJB via JNDI

2008-08-27 Thread hipa
I can't modify bean that I want to lookup. | @Local | public interface LookupBeanLocal | { | public Object lookup(String name); | } | | @Stateless | public class LookupBean implements LookupBeanLocal | { | public Object lookup(String name) | { | // Her

[jboss-user] [EJB 3.0] - Lookup EJB via JNDI

2008-08-27 Thread hipa
How can I lookup EJB via JNDI like @EJB annotation do it? I don't know neither application name nor bean name at compile time. | ... | @EJB | private BeanLocal bean; | ... | I tried using InitialContext: | new InitialContext().lookup("BeanLocal/local"); | It doesn't work becaus

[jboss-user] [EJB/JBoss] - Re: Get deployed application archive

2008-08-19 Thread hipa
I want to get path to JAR/EAR/WAR in which current bean is located. I have custom class-level annotation in my application (like @Stateless) and want to process it. So I need all class files from my application archive to pass on tool like Javassist in order to extract all annotated classes. Vi

[jboss-user] [EJB/JBoss] - RMI dynamic class loading

2008-08-19 Thread hipa
Does dynamic class loading really work in JBoss 4.2.2? On server I have a bean: Bean.java | @Stateless | public class Bean implements BeanRemote | { | public void callMe() | { | } | } | BeanRemote.java | @Remote | public interface BeanRemote | { | public

[jboss-user] [EJB/JBoss] - Get deployed application archive

2008-08-06 Thread hipa
Is there any way to get application WAR/EAR in EJB session bean? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169172#4169172 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169172 __

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Pessimistic lock

2008-07-09 Thread hipa
I have the table from which I want to get unique values for some entities. | public class UniqueGenerator | { | @Id | @Column(...) | private String id; | | @Column(...) | private Long currentValue; | ... | } | Then in data access layer I have to wri

[jboss-user] [EJB 3.0] - Re: Stateful bean via RMI

2007-12-02 Thread hipa
"waynebaylor" wrote : if you remove the stateful bean lookup does the code still generate an exception? No, it works properly. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109689#4109689 Reply to the post : http://www.jboss.com/index.html?module=bb&op=post

[jboss-user] [EJB 3.0] - Stateful bean via RMI

2007-11-29 Thread hipa
I can't get access to stateful bean, but can to stateless one. Why? | package org.test.ejb; | | public interface StatelessRemote | { | public void test(); | } | | package org.test.ejb; | | public interface StatefulRemote | { | public void test(); | public