[JBoss-user] jboss-web nested depends does not seem effective

2004-06-08 Thread Julien Viet
This seems not to be used during the deployment to add the required dependencies from the web container to the target MBean. In the code WebMetaData#getDepends is not used anywhere (unless I miss something) julien --- This SF.Net email is

Re: [JBoss-user] deployment question

2004-03-11 Thread Julien Viet
in that case your component in A using the session bean in B just needs to get it through JNDI and use it either by local reference or by global reference (simpler) in A : BeanLocalHome home = (BeanLocaLHOME)new InitialContext().lookup(MySessionBeanInB); simply that julien On Mar 11, 2004, at

Re: [JBoss-user] MBean questions

2004-03-11 Thread Julien Viet
On Mar 11, 2004, at 11:42 AM, Sternagel Annegret (MPI/ADB) wrote: Hello, I have 2 questions about MBeans: We have an MBean that looks every 30 seconds in the database if there is an action to perform. If there is an entry for an action, the action will be performed, this may take several

Re: [JBoss-user] deployment question

2004-03-10 Thread Julien Viet
what kind of access ? On Mar 10, 2004, at 3:08 PM, [EMAIL PROTECTED] wrote: Hi all, I have two ear files. In EAR A i need to access a sessionbean which is in EAR B. How can this be achieved? Thanks in advance, Regards, Harm de Laat Informatiefabriek The Netherlands

[JBoss-user] test from www.jboss.org

2004-02-03 Thread julien viet
test from www.jboss.org --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn

[JBoss-user] test

2004-02-03 Thread julien viet
test --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn

[JBoss-user] test from my account

2004-02-03 Thread Julien Viet
test from my account --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn

Re: [JBoss-user] Death of the deadlock

2003-12-11 Thread julien viet
The jury is still out on that one. :-) I would say that using EntityLockMonitor helps give you an impression of whether things are locking the way you think they are. If you see bigger numbers in the monitor than you would expect, then this gives you an indication that things are going

Re: [JBoss-user] Caching issue?

2003-11-13 Thread julien viet
what as is the transactionnal attribute of doSomething() ? is the getItems() method tagged as readonly in jboss.xml ? Hi, I have an issue that I want to understand before I try and fix it... JBoss 3.2.2, Commit Option A... I have a SLSB method something like... public void

Re: [JBoss-user] Read only CMR Collections?

2003-11-11 Thread julien viet
yes it works well. What about using filters to begin/commit transactions? Neal Sanche wrote: Hi Alexey, Oh, I am definitely using the servlet container in the same VM, and although it's probably a really bad idea, I've been using Local objects in my web view layer instead of

Re: [JBoss-user] getting multiple JMX attributes

2003-11-09 Thread julien viet
You will assign a string array with : attribute name=UsedParamsjohn,doe,foo,bar/attribute see org.jboss.util.propertyeditor.StringArrayPropertyEditor Hi, When developping a MBeanService component, how to get multiple attributes from a -service.xml file ? for example, how to do something

Re: [JBoss-user] MBean persistence

2003-10-22 Thread julien viet
You need to use model mbeans to have the attributes persisted. Most of the time we use XMBeans in Jboss which are a model mbean implementation. The JMX specification talks about it in the model mbean chapter. Otherwise you can have a look in the testsuite at

Re: [JBoss-user] Filewriter and EJB

2003-10-16 Thread julien viet
I think you are not supposed to access the file system directly in an EJB. I suppose this is a session bean ? julien We have some code in a EJB someone else wrote. When I pull it into my IDE (IntelliJ), it tells me that FileWriter is not allowed in EJB? Any ideas? NOTICE: This

Re: [JBoss-user] How to check commit option ?

2003-10-16 Thread julien viet
You can try the JMX console and look at the EJB instance cache to see how many instance it contains. After the optiond-refresh-rate has been reached, the number of instances in the cache should be zero. julien AFAIK, it is not logged anywhere. But you could play with optiond-refresh-rate.

Re: [JBoss-user] No hair left, help is needed on$Proxy23.clinitNoSuchMethodError

2003-08-26 Thread julien viet
You can figure it out by going in the JMX agent view and on the UnifiedLoaderRepository mbean you can give it the name of the class and it will return the URL from which it was loaded. JMImplementation:name=Default,service=LoaderRepository The operation name is displayClassInfo Hi Alex,

Re: [JBoss-user] Message to User about JBoss Startup Complete

2003-07-24 Thread julien viet
The started field could be added as an attribute on the ServerImplMBean mbean. Actually there is no way to know, though it is possible to know when the server starts because it sends a JMX notification at this moment. julien MR Hi Gurus, MR Objective MR MR Since my web server and all

Re: [JBoss-user] ApplicationDeadlockException on read-only methods

2003-07-23 Thread julien viet
with QueuedPessimisticEJBLock, read-only shorten the duration of the lock, it does not remove it. it locks the bean for the duration of the call instead of the duration of the transaction. julien CM As I understand it, methods marked as read-only on an entity bean shouldn't try and lock the

Re: [JBoss-user] problem in deploying MBean via mBean-service.xml

2003-07-11 Thread julien viet
you need to use the depends tag : mbean code=... name=... dependsdomain:name=something/depends ... /mbean MMnc hi all, MMnc i am trying to deploy a standalone MBean by MMnc using myMbean-service.xml MMnc i drop the jar file in the jbossdir\server\default\lib directory MMnc

Re: [JBoss-user] How to get reference to XMBean

2003-07-10 Thread julien viet
I agree, but that would be specific to the xmbean implementation. usually a managed resource is not aware of the surrounding model mbean. That might be done with a specific interface in jboss mx, like interface XMBeanAware { void setXMBean(XMBean xmbean); } julien Thursday, July 10, 2003,

Re[2]: [JBoss-user] How to get reference to XMBean

2003-07-10 Thread julien viet
and you can have the xmbean name by implementing the MBeanRegistration interface on the managed resource. SMS Querying the MBeanRegistry should work: SMS import javax.management.ObjectName; SMS import org.jboss.mx.server.ServerConstants; SMS import org.jboss.mx.server.registry.MBeanEntry; SMS

Re: [JBoss-user] JBoss and Lucene search engine

2003-07-03 Thread julien viet
you could simply wrap it in an mbean, having a background thread peeriodically optimizing the index. you can have a look at : http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/applications/forums/src/main/org/jboss/forums/lucene/LuceneService.java julien PB Has anyone integrated Apache

[JBoss-user] http session cookie

2003-04-02 Thread julien viet
Hi, I am facing this problem : when an anonymous user connect to the web site and get its session. This one is persisted through a Cookie (JSESSIONID) with a maxage of -1. on subsequent calls if I want to change this maxage to another value let's say 1000 for instance, it does not work and the

Re: [JBoss-user] Authentication for JMX management browser

2003-04-02 Thread julien viet
yes, uncomment security-constraint web-resource-collection web-resource-nameHtmlAdaptor/web-resource-name descriptionAn example security config that only allows users with the role JBossAdmin to access the HTML JMX console web application /description

Re: [JBoss-user] Query optimization

2003-04-01 Thread julien viet
k Hello I've one simple question: k I want to optimize a query to return pages of 10 elements x page (and k here no problem). k Problems are these: k 1) Can I use Collection.size() to calculate the total page number , k without loosing in performance? yes, all keys are already fetched and

Re: [JBoss-user] jboss website

2003-03-28 Thread julien viet
soon, I forgot lot of things in that area. My fault, I'm guilty ! tonight probably. JMF the website seems not to be setting it's Content-type, so my proxy is JMF defaulting it to text/plain and my browser shows me the source. JMF any chance of getting the Content-type set? -- Best regards,

Re[2]: [JBoss-user] cache question?

2003-03-20 Thread julien viet
AFAIK finder always get pk from the db and then can retrieve other fields from cache or db according your commit option. finder + cache would require load all data from table + having an in memory finder algorithm. julien RK hi, RK I've tested caching outside of this routine and this is

Re[2]: [JBoss-user] Using my Custom MBean to monitor my application

2003-03-17 Thread julien viet
Hello Marco, Monday, March 17, 2003, 3:11:49 PM, you wrote: There is no dtd for the *-service.xml file format, it would need to be a schema anyway. I can never remember the constructor argument format, but if you look in the system module at org.jboss.system.ServiceCreator it is not

Re[2]: [JBoss-user] Velocity, Servlets, and Local EJBs

2003-03-06 Thread julien viet
I commited such a filter for nukes, for the same usage. In cvs /nukes/nukes/src/main/org/jboss/nukes/servlet/TransactionFilter.java In fact you have to wrap local calls in a transaction unless you don't want to iterate on cmr collections. If you have ideas on the same topic, please share them.

Re: [JBoss-user] Element type auto-increment must be declared.

2003-02-26 Thread julien viet
your dtd is not the good one, your cmp file doctype must reference the 3.2 dtd and not the 3.0 julien RP Hi, RP I'm using jboss-3.2.0RC2 and I want to auto-increment RP my PK in MySql. I followed the format in RP jbosscmp-jdbc.xml: RP cmp-field RPfield-namejsCode/field-name RP

[JBoss-user] Nukes going live

2003-02-17 Thread julien viet
JBoss.org powered by Nukes on JBoss is going to be soon. julien ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com --- This

Re[2]: [JBoss-user] jboss_3_1.dtd

2003-02-13 Thread julien viet
I tried 3.2RC2 yesterday, I couldn't deploy because I was using 3.2 specific features for cmp that are not in 3.0 dtd. In addition xdoclet was generating 3.0 dtd in xml instances. So I think xdoclet should generate files with system id that refer to 3.2 dtd and jboss must also have the 3.2 dtd

Re[2]: [JBoss-user] Application Deadlock Exception - only happens on JBoss

2003-01-27 Thread julien viet
numbers are only even : 3.0, 3.2, 3.4, etc BM Blatant newbie question: BM what is the structure of jboss releases. I can't see a jboss 3.1 anywhere. Has this been skipped? BM thanks, BM Brian BM - Original Message - BM From: Bill Burke BM To: [EMAIL PROTECTED] BM Sent:

Re[2]: [JBoss-user] unable to deploy my application to JBoss-Jetty: java.lang.ClassNotFoundException: org.mortbay.j2ee.session.JGStore

2003-01-20 Thread julien viet
try http://www.mail-archive.com julien HT jboss-dev has ~16000 messages and there is no seach facility on sf for HT mailing lists. HT Can you jsut tell me how to fix that prob? HT thanx HT -Original Message- HT From: Jules Gosnell [mailto:[EMAIL PROTECTED]] HT Sent: 20 January 2003

Re: [JBoss-user] OT: J2EE Blog Software?

2003-01-19 Thread julien viet
I will adapt jounal module for nukes on jboss soon. julien HH Is there any good Open Source J2EE based blog software out there? HH Sorry that this is offtopic... HH Hunter HH --- HH This SF.NET email is sponsored by: Thawte.com - A 128-bit

Re: [JBoss-user] CMP 2 - 2 Questions

2002-12-21 Thread julien viet
I am currently working on jboss forum application and we try to get rid of value object by using local directly in web layer. On that purpose we have two interceptors that allow bulk retrieval of value of a cmp bean though it local interface. For instance with a local : local l =

Re[2]: [JBoss-user] CMP 2 - 2 Questions

2002-12-21 Thread julien viet
mbn On Sat, Dec 21, 2002 at 02:23:04PM +0100, julien viet wrote: I am currently working on jboss forum application and we try to get rid of value object by using local directly in web layer. On that purpose we have two interceptors that allow bulk retrieval of value of a cmp bean though

Re[2]: [JBoss-user] CMP 2 - 2 Questions

2002-12-21 Thread julien viet
mbn On Wed, Dec 18, 2002 at 01:33:27PM -0800, Nicholas wrote: I am using JBoss 3.0.4 and developing a large number of CMP 2 beans in a preliminary proof of concept. Based on the new Local interfaces in EJB 2, can anyone recommend a source for an updated pattern implementation for Session

Re[2]: [JBoss-user] Jetty - access custom JAAS Principal

2002-11-28 Thread julien viet
you can do : if you are LoginContext explicitely to get authentication you can do : LoginContext lc = new LoginContext(my-context); lc.login(); // authenticate here lc.getSubject().getPrincipals(); (used in forums application) otherwise : SecurityAssociation.getSubject().getPrincipals() that

Re: [JBoss-user] Does CMR Collections have to be accessed (iterated) inside a transaction?

2002-11-05 Thread julien viet
yes they have. --- Victor Batista [EMAIL PROTECTED] a écrit : Hello! I am developing two entity beans which have a relatinship 1-N (One User can have Many Roles). I have also a Facade session bean to handle the business operations. I have declared the Transaction property of

[JBoss-user] (no subject)

2002-11-03 Thread julien viet
forum people, I have updated forums with security concerns. If you are using 3.0.4 : It are using a login-config that you have to set up before running it. The snippet is in the class forum_home/src/main/org/jboss/forums/security/SecurityService.java. If you are using HEAD : 1.You can use

Re: [JBoss-user] lookup java:comp/env/

2002-10-27 Thread julien viet
java:comp/env/-- is private to each ejb and is defined by the ejb-ref and ejb-local-ref in the bean, what you should do instead is : in your ejb-jar.xml for the bean that references CompanyUser bean through java:comp/env/ejb/CompanyUser session ... ejb-local-ref

Re: [JBoss-user] Can my ant-task wait for JBoss to deploy?

2002-10-25 Thread Julien Viet
I don't know if such ant task exists but you can code it by invoking the MainDeployer mbean to deploy your deployment (because it's synchronous). - Original Message - From: Thorbjørn Ravn Andersen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 25, 2002 4:22 PM Subject:

Re: [JBoss-user] Port 8082

2002-10-24 Thread julien viet
try http://localhost:8080/jmx-console --- Joao Pedro Clemente [EMAIL PROTECTED] a écrit : I have the same behaviour, with 3.0.3... -- Joao Pedro Clemente jpcl @ rnl.ist.utl.pt On Thu, 24 Oct 2002, Kazandjian Erik wrote:

Re: [JBoss-user] JUnitEE and test local interfaces

2002-10-22 Thread Julien Viet
no you can't, what you have to do is to propagate testcase in a bean that's in the same deployment unit of your other beans. we do such test in forum application, you can have a look to org.jboss.forum.test.BasicTest. it extends EJBTestCase and use a bean from jboss.blocks to do that. -

Re: [JBoss-user] Rading a file from Ejb

2002-10-19 Thread julien viet
Once I've used a JNDI impl over file system. that works and it is simple. --- Dmitri Colebatch [EMAIL PROTECTED] a écrit : Why not have a environment parameter that contains the directory from which to load the file? That way you could put the file whereever it suits, without having to put

[JBoss-user] problem using an destination in an application

2002-10-09 Thread Julien Viet
Hi, I am working on an application that uses a JMS destination specified in jboss-app.xml Deploying is fine : creates destination (in jboss-app.xml) creates another service (in jboss-app.xml) creates beans (in jars) startsdestination starts another service starts beans Undeploying

Re: [JBoss-user] remote deploy

2002-09-11 Thread Julien Viet
you can use the mbean MainDeployer MBean and ivoke it with an URL (it's JMX way) - Original Message - From: Emerson Cargnin - SICREDI Serviços [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 11, 2002 1:31 PM Subject: [JBoss-user] remote deploy is there a way to

Re: [JBoss-user] EJB/MBean communication

2002-09-05 Thread Julien Viet
you could use maybe the NonSerializableFactory and bind your mbean into it. - Original Message - From: Herve Tchepannou [EMAIL PROTECTED] To: JBoss User Group [EMAIL PROTECTED] Sent: Thursday, September 05, 2002 10:31 AM Subject: [JBoss-user] EJB/MBean communication What is the best

Re: [JBoss-user] EJB/MBean communication

2002-09-05 Thread Julien Viet
communication What's that? is there any doc available about NonSerializableFactory? Julien Viet wrote: you could use maybe the NonSerializableFactory and bind your mbean into it. - Original Message - From: Herve Tchepannou [EMAIL PROTECTED] To: JBoss User Group [EMAIL PROTECTED

Re: [JBoss-user] EJB/MBean communication

2002-09-05 Thread Julien Viet
Subject: Re: [JBoss-user] EJB/MBean communication Seems to be a propriatary approach... I don't want my EJB to contains proprietary core, which will make them non portable. Is there any standard way to access JMX from EJB? Julien Viet wrote: look in the jboss sources : server/src/main/org

Re: [JBoss-user] EJB/MBean communication

2002-09-05 Thread Julien Viet
servers have JMX. Herve Tchepannou wrote: Seems to be a propriatary approach... I don't want my EJB to contains proprietary core, which will make them non portable. Is there any standard way to access JMX from EJB? Julien Viet wrote: look in the jboss sources : server

Re: [JBoss-user] Serializable inner classes as CMP fields

2002-08-21 Thread Julien Viet
I got the same problem once with 3.00, I checked the code and it comes from the fact that the JBossCMP can't do the work because of distincts class definitions. Once your application is reloaded your classes are not compatible with what see cmp engine. At this time I was not very aware about

Re: [JBoss-user] Serializable inner classes as CMP fields

2002-08-21 Thread Julien Viet
that's it. even if you have the same class (serialID didn't change) it will fail because Class won't have the same identity. Maybe the problem comes from tehe fact that the engine deals with not the deployment classloader. - Original Message - From: Ole Husgaard [EMAIL PROTECTED] To:

Re: [JBoss-user] Launching Swing Applications from JBoss 3.0.0

2002-08-16 Thread Julien Viet
it would be funny to have my login session as a SFSB and my files as Entity CMP ;-) - Original Message - From: Holger Baxmann [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 16, 2002 2:19 PM Subject: Re: [JBoss-user] Launching Swing Applications from JBoss 3.0.0 for my

Re: [JBoss-user] unbinding with a federated context

2002-08-15 Thread Julien Viet
expect. What type of naming service is bound under "A"? Scott StarkChief Technology OfficerJBoss Group, LLC - Original Message - From: Julien Viet To: jboss-user Sent: Wednesday, August 14,

[JBoss-user] unbinding with a federated context

2002-08-14 Thread Julien Viet
Hi all, I have on question about naming. I am using a federated context through ExternalContext service. My issue is about unbinding something in my federated context via NamingContext : For instance, if my context is bound underA and in my context I have an object bound under B The

Re: [JBoss-user] CMR local interfaces

2002-07-31 Thread Julien Viet
You can't use relationship outside the deployment (i.e ejb-jar.xml) scope which has defined it. The common solution is to use value objects to export data for client : simple java classes that reflects beans class DogVO { ... } class OwnerVO { ... DogVo dog;...} and usually you put an

[JBoss-user] topic service within an ear

2002-07-08 Thread Julien Viet
I want to packa topic service within my ear. The problem is that the topic is created and registered in JNDI after my MDB checks forits existence. The Topic service bindsin startService() and MDB check existence of topic in createService(). Therefore MDB creates a temporary topic and

Re: [JBoss-user] topic service within an ear

2002-07-08 Thread Julien Viet
within an ear MDB shouldn't rely on the existence of outside objects until the start step. How hard would this be to change? david jencks On 2002.07.08 14:57:17 -0400 Julien Viet wrote: I want to pack a topic service within my ear. The problem is that the topic is created

Re: [JBoss-user] Template Application: no /servlet directory

2002-06-27 Thread Julien Viet
on sourceforge.net : http://prdownloads.sourceforge.net/jboss/JBoss.3.0QuickStart.pdf?download - Original Message - From: John Hogan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 27, 2002 9:01 AM Subject: Re: [JBoss-user] Template Application: no /servlet directory

[JBoss-user] sharing bean parent class deployment unit

2002-06-27 Thread Julien Viet
Whenever a ejbean in an application has a class which extends a class packaged in a .jar : .ear |--foo.jar - FooBean extends SommeClass |--util.jar - SomeClass is there something special to have this working ? I know that using the classpath manifest shouldfine forthat but I've read

[JBoss-user] Transaction object is null in JDBCStoreManager

2002-06-22 Thread Julien Viet
Hi, I have a NullPointerException in JDBCStoreManager because of a null transaction returned by the transaction manager line 213 of JDBCStoreManager : int status = tx.getStatus(); here tx object is null I am using jboss Branch_3_0. any ideas ?

Re: [JBoss-user] Question about B2B and ejb-ref

2002-06-18 Thread Julien Viet
Ejb-ref is bound to java:comp/env so getting an ejbHome is ctx.lookup(java:comp/env/ + name); where name is enclosed in ejb-ref-name tag. But you can retrieve an ejbHome from global jndi without prefixing with java:comp/env/ in your caller : home = ctx.lookup(name); for the called in jboss.xml

Re: [JBoss-user] CMR

2002-06-14 Thread Julien Viet
I have had a similar problem but it was in an ejbPostCreate method. I fixed it yesterday and cvs has been updated in head and jboss3.0.0. The problem might come from the findByPrimaryKey which trigger a synchronisation and the synchronisation for cmr is lost after that he consequence is that the

Re: [JBoss-user] CMR

2002-06-14 Thread Julien Viet
, June 14, 2002 2:13 PM Subject: Re: [JBoss-user] CMR Julien, You are right; this is the same problem. The problem you were having, could happen in any business method. -dain Julien Viet wrote: I have had a similar problem but it was in an ejbPostCreate method. I fixed it yesterday

[JBoss-user] Adding a context programmatically in Jetty Service

2002-06-04 Thread Julien Viet
Hi all, I would like to add programmatically a Context to the Jetty Web server in my MBean. I see a method addContext(..,..) in jboss.web:Jetty=0 MBean but I don't see some methods to remove that context later when my MBean will unregister. I don't want to create a .war on the disk and