[jboss-user] [JMX] - Re: Server started notification in JBAS 5.0.1?

2009-09-28 Thread jc7442
I try to do the same. I'd like to be notified when the server is started. I use JBoss 5.1.0. Do you have a sample on how to do that ? Is there an XML to update or create in JBoss AS ? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4257240#4257240 Reply to

[jboss-user] [JBoss jBPM] - Several ProcessInstance version in the same application

2009-06-04 Thread jc7442
Hi, I want to use several ProcessInstance in the same application. I use the Execution service to start my process instance executionService.startProcessInstanceByKey(myProcess); According to the javadoc in starts the ProcessInstance according to the latest version of the process definition.

[jboss-user] [EJB 3.0] - EJB3 MBean does not support NotificationBroadcaster

2009-01-28 Thread jc7442
I use EMBEDDED_JBOSS_BETA3 I deploy a MBean EJB3 @Service(objectName = InstrumentManagerMBean.MDBName) | @Management(InstrumentManagerMBean.class) | public class InstrumentManagerImpl extends NotificationBroadcasterSupport | implements InstrumentManagerMBean {... | When I try to add

[jboss-user] [EJB 3.0] - Re: What's about embeddable EJB3

2008-07-30 Thread jc7442
Thanks for the answer. For me it is acceptable to unit tests some EJB 3 with Jboss microcontainer even if I deploy in JBoss AS 4.2.3. For unit tests I just use basic EJB3 features. I also have integration tests in JBoss AS. I have tried embedded JBoss beta 3 with JDK 1.6 using the magic jvm

[jboss-user] [EJB 3.0] - What's about embeddable EJB3

2008-07-29 Thread jc7442
I try to migrate my EJB3 application from JBoss 4.2.2.GA with JDK1.5 to JBoss 4.2.3.GA with JDK 1.6. Unit tests are executed in standalone with embeddable EJB3. Integration tests are executed within JBoss AS. Integrations tests works fine. Unfortunately, for unit tests I used an old version of

[jboss-user] [Remoting] - JBoss AS and Server sockets

2008-07-28 Thread jc7442
I have a legacy system that uses sockets to communicate with other application. I'm developping an EJB3 based application that will be hosted in JBoss 4.2.3 application server. Communication between my J2EE application and my legacy application uses sockets. Legacy app starts one socket server

[jboss-user] [Remoting] - Re: JBoss AS and Server sockets

2008-07-28 Thread jc7442
Do you know if connectors for socket server already have already been implemented (reusable classes or examples) ? Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4167105#4167105 Reply to the post :

[jboss-user] [Remoting] - Re: JBoss AS and Server sockets

2008-07-28 Thread jc7442
I have found :http://txconnect.sourceforge.net/ I'll try to see if it might be usefull Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4167112#4167112 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4167112

[jboss-user] [Management, JMX/JBoss] - Re: MBean for JDK14 Logger ??

2007-12-28 Thread jc7442
I have started to write the MBean http://wiki.jboss.org/wiki/Wiki.jsp?page=JDKLoggerMBean I'll do some documentation for next year View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4115922#4115922 Reply to the post :

[jboss-user] [Management, JMX/JBoss] - MBean for JDK14 Logger ??

2007-12-26 Thread jc7442
In my application, I uses librairies that using either JDK14 logger and Log4J. For Log4J there is a Log4JService that can be configured via a MBean. For Log4J, this MBean is a nice feature since it is possible to use JBoss properties to specify log file and log4j configuration can be changed at

[jboss-user] [Management, JMX/JBoss] - Re: MBean for JDK14 Logger ??

2007-12-26 Thread jc7442
There is a JMX MBean for JDK logger in the JDK java.util.logging.LoggingMXBean. Unfortunatelly, this class only provides method to change logger level and not features to reload loggers configuration View the original post :

[jboss-user] [EJB 3.0] - How to invoke an Stateless at ear deployment.

2007-09-18 Thread jc7442
I deploy my EJB3 app as an ear. I'd like to execute some initialisation task just after the ear has been fully deployed but without invoking a bean. Is it possible to do such initialization at JBoss AS startup ? View the original post :

[jboss-user] [EJB 3.0] - Re: How to invoke an Stateless at ear deployment.

2007-09-18 Thread jc7442
I was not clear enough :-) I do not want that the init service is invoked atomatically just after server is started. I will investigate that with a JMX service. It should be a solution ... Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4085743#4085743

[jboss-user] [EJB 3.0] - Inheritance and proxy class

2007-09-14 Thread jc7442
I have the following model: A class A has a reference to a class B. B has several subclasses including C. Relation between A and B is Lazy. When I get an A instance from the DB, I invoke the getB() method if A class and then I cast the B instance into C in order to invoke a method that only

[jboss-user] [Security JAAS/JBoss] - Re: JBoss and Windows ACL

2007-09-07 Thread jc7442
It looks like I need to investigate Kerberos+JBoss (http://wiki.jboss.org/wiki/Wiki.jsp?page=NegotiateKerberos) Is it something mature in JBoss ? Can I use that for a production application ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4081970#4081970 Reply

[jboss-user] [Security JAAS/JBoss] - Re: Multiple login modules - LDAP and DB failover

2007-09-07 Thread jc7442
In your login-config.xml you can create a policy with modules flagged sufficient. i do that to authenticate user on several LDAP: | authentication | login-module code=.. LoginModule | flag=sufficient | ... | /login-module | login-module code=..

[jboss-user] [Security JAAS/JBoss] - JBoss and Windows ACL

2007-09-06 Thread jc7442
My JBoss runs on a Windows system. I develop an intranet application. USers are authenticated using the LDAPExtLoginModule plugged on the active directory of my company. Some of the services hosted in JBoss needs to access to windows resources such as file servers, printers, ... Access to

[jboss-user] [EJB 3.0] - Re: @LocalBinding lib

2007-09-04 Thread jc7442
jboss-annotations-ejb3.jar Sur le repository jboss :http://repository.jboss.com/maven2/ jboss jboss-annotations-ejb3 4.2.0.GA Sinon tu l'install dans ton repoistory View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4080901#4080901 Reply to the post :

[jboss-user] [EJB 3.0] - Mail injection with EJB3

2007-09-04 Thread jc7442
I probably have misunderstood the @Resource annotation. I try to inject my mail session in a EJB3. When I write ... Session is not injected | @Resource(mappedname=java:/Mail Session session; If I write ... it works fine | @Resource SessionContext ctx; | public (){ |

[jboss-user] [EJB 3.0] - Re: Mail injection with EJB3

2007-09-04 Thread jc7442
It looks like @Resource(name = Mail, mappedName = java:/Mail) | works fine. What's the difference between @Resource(name = Mail, mappedName = java:/Mail) and @Resource(mappedName = java:/Mail) ? When I inject JMS connectionFactory I jyust do @Resource(name = jmsXA) | View the

[jboss-user] [EJB 3.0] - Stateful Exception

2007-09-03 Thread jc7442
I implement a stateful EJB3. Some of the methods of the session bean return exception. By default, when an exception is thrown in a stateful session bean, bean is destroyed. In my case, exception are declared in the API of the method. I'd like that some excepiotn does not destroy the stateful

[jboss-user] [EJB 3.0] - Re: Stateful Exception

2007-09-03 Thread jc7442
Sorry, ApplicationException works fine for me. I had another error. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4080513#4080513 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4080513

[jboss-user] [EJB 3.0] - Naming for a stateles in an EAR

2007-08-31 Thread jc7442
I have an interface. with several implentation developped as stateless session. In a session bean according to an algorithm I choose one of the implementation. Each implementation as a name and is deployed in the same ear as the invoker my code looks like: | @Resource SessionContext ctx; |

[jboss-user] [Security JAAS/JBoss] - SRPLonginModule and verifier store

2007-08-27 Thread jc7442
I have a standalone application that uses EJB3 services provided by JBoss AS 4.2.0. To guarantee the confidentiality of authentication, I'm investigating the SRPLogin module. In Jboss configuration guide, chapter 8, it is written The org.jboss.security.srp SRPVerifierStoreService is an example

[jboss-user] [Security JAAS/JBoss] - SSL and shockwave fashj animation

2007-08-23 Thread jc7442
I have an index.htm page that include a flash animation: !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; | html | head | meta http-equiv=refresh | content=3;URL=http://localhost:15080/demo/createSample.jsp; / | titleDemo

[jboss-user] [Security JAAS/JBoss] - Re: SSL and shockwave fashj animation

2007-08-23 Thread jc7442
I have this issue only with IE with firefox it works fine ... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4077151#4077151 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4077151

[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: XML conf EAR

2007-08-23 Thread jc7442
Just to explain the context. I use maven2 to build and tests a complete application. It is fully automatic. Tests can be executed on a platform without having to install or configure third party products (except in some cases the database) I have several app that all uses a jboss AS with a

[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: XML conf EAR

2007-08-22 Thread jc7442
Hi, I just forgot to create the jboss-app.xml file: jboss-app | | module | servicetoto.sar/service | /module | | /jboss-app Now with that it works fine. Without jboss-app.xml my MBean was not deployed. Thanks for the help ! View the original post :

[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: XML conf EAR

2007-08-22 Thread jc7442
Next issue. I wrotte tje jboss-service.xml: | server | mbean code=org.jboss.security.plugins.JaasSecurityDomain | name=jboss.security:service=JaasSecurityDomain,domain=LdapPassword | constructor | arg type=java.lang.String value=ServerMasterPassword/ |

[jboss-user] [EJB 3.0] - How to get current security domain from a session bean

2007-08-21 Thread jc7442
I need to get the current security domain from a session bean to be able to read login config options in order not to duplicate this config. Is it possible to get the name of the current security domain ? This domain is defined either in jboss.xml or by the the SecurityDomain annotation. It

[jboss-user] [Security JAAS/JBoss] - Re: Active Directory and LdapExtLoginModule?

2007-08-21 Thread jc7442
I think that you can use the SRPLoginModule with your LDAPLoginModule http://www.ubookcase.com/book/Sams/JBoss.4.0.The.Official.Guide/0672326485/ch08lev1sec5.html I have not tried yet to use it. If you try, i'm interesting in the result :-) View the original post :

[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: XML conf EAR

2007-08-21 Thread jc7442
I have tried to add .sar. Unfortunatelly it does not works. Do I have to update the application.xml file ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4076333#4076333 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4076333

[jboss-user] [Installation, Configuration DEPLOYMENT] - XML conf EAR

2007-08-20 Thread jc7442
I deploy my application as an ear. For that app I need to configure some of JBoss MBeans. When I write this XML file in deploy that works fine. I'd like to add the XML config inside the EAR. I have tried to put it at the root of the EAR of in the META-INF directory, XML config files are

[jboss-user] [Security JAAS/JBoss] - Re: How to reset the authentication cache

2007-08-17 Thread jc7442
Thanks. I have found another solution using the JAASSecurityManager MBean. When I update user rights, I flush the cache using the MBean method. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4075086#4075086 Reply to the post :

[jboss-user] [Security JAAS/JBoss] - Re: How do I get user roles in 2.6?

2007-08-17 Thread jc7442
You can also delegate that to a session bean: | SessionContext ctx = ... | ... | ctx.isCallerInRole(myRole); View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4075087#4075087 Reply to the post :

[jboss-user] [Security JAAS/JBoss] - DynamicLoginConfig configuration issue

2007-08-17 Thread jc7442
I deploy an ear in an existing JBoss 4.2.0. I'd like to be able to deploy the application policy with my ear and without updating the conf/login-config.xml. I have tried to use th DynamicLoginConfig MBean. I have two issues with it: First I wrote a dynamic-service.xml file: server |mbean

[jboss-user] [EJB 3.0] - Re: need help for Transaction Attribute Types

2007-08-16 Thread jc7442
When you use bean manage transaction, you have to begin and commit transaction by yourself: | @Resource UserTransaction ut; | ... | ut.begin(); | ... | ut.commit(); View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4074695#4074695 Reply to the post :

[jboss-user] [Security JAAS/JBoss] - Mixing LDAPExtLoginModule with other login module

2007-08-16 Thread jc7442
I have configured an application policy in JBoss 4.2.0 to use the LDapLoginModule against my active directory. Now my problem is that I'd like to chek user/password against active directory, but I'd like to manage the group using another login module (for example the UsersRolesLoginModule). Is

[jboss-user] [Security JAAS/JBoss] - How to reset the authentication cache

2007-08-16 Thread jc7442
I use a LDAPExtLoginModule in JBoss 4.2.0 1- First I try to connect with a user that is not granted for the application. I have an error mesage 2- I Add the right role to the user and I try to reconnect 3- I have the same error. LoginModule is not accessed. It looks like JBoss have a cache for

[jboss-user] [EJB 3.0] - Re: need help for Transaction Attribute Types

2007-08-14 Thread jc7442
Maybe you can try to use a bean manage transaction: @TransactionManagement(TransactionManagementType.BEAN) | Then you will have to begin and commit transaction by yourself. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4073839#4073839 Reply to the post :

[jboss-user] [EJB 3.0] - Re: EJB3 session bean pool configuration?

2007-08-14 Thread jc7442
For a static conf you can use the annotation org.jboss.annotation.PoolClass View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4073842#4073842 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073842

[jboss-user] [EJB 3.0] - Re: regardig jboss-beans.xml

2007-08-13 Thread jc7442
I do that kind of things for JBoss configuration. I use the SystemProperty service. In your -service.xml file you can use variable. For example: mbean code=org.jboss.naming.NamingService | name=jboss:service=Naming | xmbean-dd=resource:xmdesc/NamingService-xmbean.xml | ... |

[jboss-user] [EJB 3.0] - Re: Transaction is not active after rollback

2007-08-13 Thread jc7442
When an exception is thrown in a session bean, container rollback the transaction. You can change that using the ApplicationException annotation in your Excpetion code. This annotation has an attribute rollback: @ApplicationException(rollback=false) | public class AuditLockException extends

[jboss-user] [EJB 3.0] - Re: Quartz Configuration not read from Properties in quartz-

2007-08-10 Thread jc7442
You can change the property file by setting the system property org.quartz.properties. If add this prop in run.bat it should works (not try) but that's ugly. I don't know hawo to change that in xml. View the original post :

[jboss-user] [EJB 3.0] - Re: EJB3 Interceptor never called - how to debug?

2007-08-10 Thread jc7442
For EJB entities: Use @EntityListener annotation with @PrePersist, @PostPersist, @PreRemove @PostRemove, @PreUpdate, @PostUpdate, @PostLoad @Interceptors works fine for session bean and MDB. I'm not sure it is supposed to works for entity View the original post :

[jboss-user] [EJB 3.0] - Re: EJB3 Interceptor never called - how to debug?

2007-08-10 Thread jc7442
Hibernate interceptor are a little easier to use. But that's not EJB3, that's hibernate specific View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4073031#4073031 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073031

[jboss-user] [EJB 3.0] - EJB3 annotaion and MBean description

2007-08-08 Thread jc7442
I implement an MBean using EJB3 annotation: @Service(objectName = babar:service=auditLock) | @Management(BabarAuditManagerMBean.class) | public class BabarAuditManager implements BabarAuditManagerMBean { Using jmx console, I can see my MBean. Now I'd like to add some description for

[jboss-user] [EJB 3.0] - Re: image to blob

2007-08-07 Thread jc7442
@Lob byte[] image; View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4071549#4071549 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4071549 ___ jboss-user mailing list

[jboss-user] [EJB 3.0] - Microconatiner and @Depends, @Service annotations ...

2007-08-07 Thread jc7442
I implement a service : @Service(objectName = babar:service=auditLock) | @Management(BabarAuditManagerBean.class) | public class AuditLock implements BabarAuditManagerBean { | ... This service is used in a session bean injecting by the annotation depends: @Depends(babar:service=auditLock)

[jboss-user] [EJB 3.0] - Re: Microconatiner and @Depends, @Service annotations ...

2007-08-07 Thread jc7442
Thanks ! That's better. I also have to deploy my MBean. MBeanServer.registerBean(...). If I just add the class in th class to deply in the bootstapr (I do that for session bean for example, it is nt deployed. View the original post :

[jboss-user] [EJB 3.0] - Re: EJB3 and Timeout.

2007-08-07 Thread jc7442
In my case all transaction are required. Tra,saction is open by the container for the MDB but timeout for messagen driven seems not to be used. I move to bean managed transaction for my MDB and I set the timeout before beginning the transaction. It works fine and it solve another problem that I

[jboss-user] [EJB 3.0] - Re: Equals and hashCode on Entities fails due to javassist

2007-08-06 Thread jc7442
I suppose that in your equals you invoke getClass. I had the same problem. There is a Wiki on hibernate about equals and hashcode (http://www.hibernate.org/109.html). For my entites, I never invoke getClass, I use a workaround to be sure not to have proxy. That's ugly, but I did not find

[jboss-user] [EJB 3.0] - EJB3 and Timeout.

2007-08-06 Thread jc7442
I try to set the timeout for only one EJB. I have chack the Wiki (http://wiki.jboss.org/wiki/Wiki.jsp?page=TransactionTimeout). When I change the timeout in the jboss-service.xml, it is ok. When I change the timeout in jboss.xml it is ignored. In my code, I have a MDB that invoke a session

[jboss-user] [EJB 3.0] - Re: Best Practice Pagination with OneToMany Mapping

2007-08-06 Thread jc7442
Query.setMaxResults(int) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4071144#4071144 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4071144 ___ jboss-user mailing list

[jboss-user] [Messaging, JMS JBossMQ] - MDB and long time tasks

2007-08-06 Thread jc7442
I have a MDB that listen on a queue. MDB is in charge to perform a time consuming tasks. It invokes another EJB session. I have two problems: - MDB is transaction required. My task exceed the default timeout. How can I configure by XML the timeout for the MDB ? I have try to add some stuff in

[jboss-user] [EJB 3.0] - Re: Best Practice Pagination with OneToMany Mapping

2007-08-06 Thread jc7442
IN EJBQL, you can force the fetch left join fetch x.ys I don' think you can choose to fetch only some of the element of the collection View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4071229#4071229 Reply to the post :

[jboss-user] [EJB 3.0] - Re: How to Call one EJB from another remotely?

2007-05-23 Thread jc7442
another solution: @Resource SessionContext context; ... context.lookup(...); View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4047893#4047893 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4047893

[jboss-user] [EJB 3.0] - Migration from Embedded RC8 to embedded-jboss-beta2

2007-05-21 Thread jc7442
Hi, I try to migrate my junit testcase from embedded RC8 to beta2. It looks that XML configuration file have change a lot. Using the EJB3StandaloneBootstrap classes I was able to define the jar to scan and only the jar to scan. Consequently before each testcase, I started and shutdown the

[jboss-user] [EJB 3.0] - Embedded ejb3 and multiple bootstrap/shutdown

2007-05-21 Thread jc7442
I use embedded beta 2. My testsuite is made of several testcases. When I write : | Bootstrap.getInstance().bootstrap(); | | Bootstrap.getInstance().shutdown(); | Bootstrap.getInstance().bootstrap(); | ... | I have an exception on the second bootstrap. It looks that on the

[jboss-user] [EJB 3.0] - Asynchronous jboss extension timeout.

2007-05-15 Thread jc7442
There is an extension in JBoss EJB3 to manage asynchronous calls. When invoking a synchronous EJB, there is a timeout for the maximum time allowed to execute the service. What's about JBoss asynchronous calls ? Is there a timeout ? Has the timeout the same delay as for the synchronous call ?

[jboss-user] [EJB 3.0] - Re: one persistence.xml multiple jars with entity beans

2007-05-14 Thread jc7442
I'm afraid it has not been fixed in 4.2. I've just download it. I still have the exception: | 10:25:07,787 WARN [ServiceController] Problem starting service persistence.units:ear=itests-ear-1.0-SNAPSHOT.ear,unitName=audittrail | java.lang.RuntimeException: error trying to scan jar-file:

[jboss-user] [EJB 3.0] - Re: one persistence.xml multiple jars with entity beans

2007-05-14 Thread jc7442
OK, with the workaround it works. Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4045508#4045508 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4045508 ___ jboss-user

[jboss-user] [EJB 3.0] - Re: one persistence.xml multiple jars with entity beans

2007-05-11 Thread jc7442
It is http://jira.jboss.com/jira/browse/EJBTHREE-724. Unfortunately it is not fixed yet. Is there a workaround ??? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4045019#4045019 Reply to the post :

[jboss-user] [EJB 3.0] - Re: embeddedEJB lookup Problem

2007-05-11 Thread jc7442
Maybe a stupid answe but ctx.lookup(/SecuritySBean/local) should be enough View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4045024#4045024 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4045024

[jboss-user] [EJB/JBoss] - Statefull session bean and exception

2007-04-17 Thread 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,

[jboss-user] [EJB 3.0] - Stateful beans and Exception

2007-03-27 Thread jc7442
I use a 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

[jboss-user] [EJB 3.0] - Pesistent entity and Iterable

2007-02-15 Thread jc7442
I write an entity bean: public class AuditSnapshotPE implements IterableMap.EntryString, String | ... All the methods of Iterable are @Transient. When I deploy my EJB in JBoss embedded, I have the following warning. -Original type of property public abstract java.util.Iterator

[jboss-user] [Security JAAS/JBoss] - LdapExtLoginModule PartialResultException

2007-02-08 Thread jc7442
I try to use LdapExtLoginModue to authenticate over a windows active directory. For some of my users I have a very strange exception: [url]Exception in thread main javax.security.auth.login.FailedLoginException: Password Incorrect/Password Required at

[jboss-user] [Security JAAS/JBoss] - LdapExtLoginModule multiple DC

2007-02-08 Thread jc7442
My active directory is made of multiple DC, tree looks like: | dc=mycompany || dc=rd | |--- dc=it || dc=QA | In my jaas config, I've tried to set the URL to ldap://mycompany and the baseCtxDN=dc=mycompany. I do not try to connect with a

[jboss-user] [Security JAAS/JBoss] - Re: Audit Facilities

2007-02-06 Thread jc7442
It looks like a security audit service will be included in JBoss 5; http://wiki.jboss.org/wiki/Wiki.jsp?page=SecurityAuditService View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4011804#4011804 Reply to the post :

[jboss-user] [Security JAAS/JBoss] - Re: Audit Facilities

2007-02-05 Thread jc7442
Did you find a solution to audit login and logout ? The only solution I found is to add a LoginModule in charge to audt. That's not a very good solution. I'm not sure to have logout event. User can kill the client app or the web browser without a logout. Ideas are welcome. View the original

[jboss-user] [EJB 3.0] - Re: ServiceLocator pattern - delegates in the context of EJB

2007-02-01 Thread jc7442
Another thread about service locator: http://www.jboss.org/index.html?module=bbop=viewtopict=97959 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4009246#4009246 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4009246

[jboss-user] [EJB 3.0] - Re: ServiceLocator pattern - delegates in the context of EJB

2007-01-31 Thread jc7442
Sometime I have to use a service locator like because I am in a class that is not a EJB3. A small example: Some of my entities have a @EntityListener. Implementation of the entity listener needs to use a service provided by an EJB3 session. In the source code of the entity listener, I can not

[jboss-user] [EJB 3.0] - Embedded JBoss MBean

2007-01-29 Thread jc7442
I use embedded JBoss alpha8. When I try to deploy an MBean into embedded JBoss, I have an exception: @Service (objectName=trail:service=calculator) | @Management(Calculator.class) | public class CalculatorMBean implements Calculator { | ... java.lang.RuntimeException: Problem registering

[jboss-user] [EJB 3.0] - How to deploy an EJB3 app in production ?

2007-01-29 Thread jc7442
During development it is very convenient to use the create-drop property in the persistence.xml to create the database from the annotation in the persistent entity. For integration tests and in production, that is not usable. First I need to create the database, then I need to perform some

[jboss-user] [EJB 3.0] - Re: How to deploy an EJB3 app in production ?

2007-01-29 Thread jc7442
What I'd like to do is just to validate the schema at each JBoss AS startup. Usually updates required to perform additional tasks (such as SQL statements to initialize new fields). I don't want to redo an update at each boot of JBoss. Problem is just o be able to get the SQL scipt generated to

[jboss-user] [EJB 3.0] - Re: How to deploy an EJB3 app in production ?

2007-01-29 Thread jc7442
Simple but efficient solution ! Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4007987#4007987 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4007987 ___ jboss-user mailing

[jboss-user] [EJB 3.0] - Re: RuntimeExceptions caught, wrapped in EJBException

2007-01-24 Thread jc7442
For me it looks like this: | package fr.toto.interceptor; | | import java.lang.reflect.Method; | import java.lang.reflect.UndeclaredThrowableException; | import java.util.logging.Level; | import java.util.logging.Logger; | | import org.jboss.aop.advice.Interceptor; | import

[jboss-user] [EJB 3.0] - Re: RuntimeExceptions caught, wrapped in EJBException

2007-01-08 Thread jc7442
I don't know if it is the best solution but for catching exception I have added an interceptor in ejb3-interceptor.xml. This interceptor is set for remote session bean. In my case, interceptor catch exception, logg it on server side and throw a new exception without all the chained exception

[jboss-user] [EJB 3.0] - Re: Permanent interceptor

2006-12-14 Thread jc7442
Hi, I'm not sure you can simply add your own domain in the ejb3 interceptors. I just connect on existing one. If your need is to add your own domain check AOP documentation. From what I remenber it is explain but not so simple to implement. It looks like that : ?xml version=1.0

[jboss-user] [EJB 3.0] - Re: History Interceptor

2006-12-12 Thread jc7442
Hi, I've tried to implement that in ejb3. I had some problem with some specific cases such as array. Moreover, with this approach I was quite anxious with the impact on the performance of my application. I stopped to look at that ... but I'm still interesting with that subject. Other

[jboss-user] [EJB 3.0] - Re: Permanent interceptor

2006-12-12 Thread jc7442
I have done something like this to catch unexpected exception and perform some action before sending the exception to the client. I use interceptor taht I have added in ejb3-interceptors-aop.xml. I'm quite happy with that. View the original post :

[jboss-user] [EJB 3.0] - Re: Slow performance of queries and POJO mapping

2006-11-25 Thread jc7442
I prefer using ejbql queries. for queries that returns a lot of elements, i do not retrieve all the elements, i uses pages. My gui is not able to display all the elements in once, so the cost of the query is hide by the time needed by the user to request the next page. It is probably easier to

[jboss-user] [EJB 3.0] - Re: Slow performance of queries and POJO mapping

2006-11-24 Thread jc7442
If you turn hibernate logs off, is it always so slow ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3988441#3988441 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3988441 ___

[jboss-user] [EJB 3.0] - Re: Slow performance of queries and POJO mapping

2006-11-23 Thread jc7442
See http://jira.jboss.com/jira/browse/EJBTHREE-326 and http://www.jboss.com/index.html?module=bbop=viewtopict=68954postdays=0postorder=ascstart=0 Problems is around the flush. If you perform a query with EJB3, a fluish is performed automatically before. It looks like that issues has been fixed

[jboss-user] [EJB 3.0] - Re: @GeneratedValue in mappedSuperclass Problem

2006-11-17 Thread jc7442
Use persist instead of merge. In your case, it looks to be a new instance not a detached one. I use MappedSuperClass in my app and it works fine. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3986982#3986982 Reply to the post :

[jboss-user] [EJB 3.0] - EJB3 RC10

2006-11-08 Thread jc7442
Do you know is there is a approximative date for EJB3 RC10 ? I suppose it will include released GA hibernate stuffs. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3984418#3984418 Reply to the post :

[jboss-user] [EJB 3.0] - Re: Long Deployment

2006-10-25 Thread jc7442
In \server\default\deploy\ejb3.deployer\META-INF\jboss-service.xml, there is a list of ignored jars. It looks like jars not in the list are scanned. You should bea ble to add your own jar in the list. View the original post :

[jboss-user] [EJB 3.0] - Re: Looking for low test tool for EJB3 components

2006-10-25 Thread jc7442
I've tried JMeter+JUnit. I wrote a simple test case with JUnit and then I use JMeter to simulate threads. Last release of JMeter is able to run JUnit test case View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3980702#3980702 Reply to the post :

[jboss-user] [EJB 3.0] - Re: Long Deployment

2006-10-25 Thread jc7442
Yes I think so. I use embedded JBoss or my tests. To be able to start quickly embedded container, I do not perform the automatic scan, and I deploy manually my EJB3. That makes the container faster to run. (listing ignored jars was boring to implement and I risk to miss some of he jars). I've

[jboss-user] [EJB 3.0] - Re: Tables of database deleted when undeploying

2006-10-11 Thread jc7442
Check your persistence.xml, you probably have the create-drop option View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3977670#3977670 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3977670

[jboss-user] [EJB 3.0] - Re: @Service POJO referencing a Session Bean

2006-10-11 Thread jc7442
Use @Stateless or @Stateful annotations There is basic samples in the tutorial View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3977673#3977673 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3977673

[jboss-user] [EJB 3.0] - Re: Embedded EJB3 and .scanClasspath()

2006-10-10 Thread jc7442
Your service is in a jar or in a directory ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3977303#3977303 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3977303 ___ jboss-user

[jboss-user] [EJB 3.0] - Re: Embedded EJB3 and .scanClasspath()

2006-10-10 Thread jc7442
Sorry previous questin was stupid ! Do you have the jar or the dir containg your service in java.class.path ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3977304#3977304 Reply to the post :

[jboss-user] [EJB 3.0] - Re: Embedded EJB3 and .scanClasspath()

2006-09-28 Thread jc7442
I have the same problem using maven. It uses several classpath. To solve this I have implemented a custom class embeddableejb3tools.EmbeddableEJB3Container(). Before starting the container I declare at least one session bean class. It will deploy all the classes deploy in the jar of this

[jboss-user] [EJB 3.0] - Re: EJB3-embed jars in Maven repo?

2006-09-28 Thread jc7442
If you need hibernate, you just need to add a dependency to: | groupIdorg.hibernate/groupId | artifactIdhibernate/artifactId | version3.2.0.cr4/version | Have a look to http://www.ibiblio.org/maven2/org/hibernate/hibernate/3.2.0.cr4/ You don't care about librairies you are not using.

[jboss-user] [EJB 3.0] - Re: EJB3-embed jars in Maven repo?

2006-09-28 Thread jc7442
Right, it is not the rc4 but more probably the rc2. It looks like the last rc for the entitymanager is only compliant with hibernate rc2. That's one of the interest of maven. I just need to know that I want to use embedded EJB3 RC9, I do not have to take care on its dependencies. View the

[jboss-user] [EJB 3.0] - Re: EJB3-embed jars in Maven repo?

2006-09-28 Thread jc7442
I think that mazz is right. When we used a tool that manages dependencies, we don't care about the number of jars. Consequently, with maven, number of jars is not a problem. If you have to do that manually, number of jars is a nightmare ... Having just a list of the jars and their version

[jboss-user] [EJB 3.0] - Re: EJB3-embed jars in Maven repo?

2006-09-26 Thread jc7442
If you have a correct config, you can post it on the forum, ti may have insterest for other peaople. Thxs View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3974186#3974186 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3974186

[jboss-user] [EJB 3.0] - How to map String[]

2006-09-26 Thread jc7442
I have a String[] in a persistent entity. I've tried to add the @Lob annotation. Unfortunattly it does not works, I have the following exception: | Caused by: java.lang.ClassCastException: [Ljava.lang.String; | at org.hibernate.type.StringClobType.nullSafeSet(StringClobType.java:56) |

  1   2   >