[jboss-user] [JBoss jBPM] - Re: Missing (config) files starters kit?

2007-03-02 Thread Johan.Parent
In the meanwhile I had a chance to try the code too. It works but does not 
solve the problem :(

So I resumed my quest and found the real source of the many SAXParserFactory 
instantiations: JbpmContext.getSession (see below).

Hmmm, I see a solution in caching the configuration in the 
DbPersistenceServiceFactory class. Since it can't be the idea that you can 
change the resource.hibernate.properties file or resource.hibernate.cfg.xml 
file at runtime caching the configuration at this point seems reasonable to me. 
This would be a simple patch to the getConfiguration method.

Gurus, any objection to this?

Regards,

Johan

  newInstance():87, SAXParserFactory.java
  createXMLReader():46, JAXPHelper.java
  createXMLReaderViaJAXP():125, SAXHelper.java
  createXMLReader():75, SAXHelper.java
  createXMLReader():894, SAXReader.java
  getXMLReader():714, SAXReader.java
  read():435, SAXReader.java
  doConfigure():1343, Configuration.java
  configure():1286, Configuration.java
  createConfiguration():84, HibernateHelper.java
  getConfiguration():60, DbPersistenceServiceFactory.java
  getSessionFactory():83, DbPersistenceServiceFactory.java
  getSessionFactory():76, DbPersistenceService.java
  getSession():80, DbPersistenceService.java
  getSession():464, JbpmContext.java


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4024610#4024610

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4024610
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Missing (config) files starters kit?

2007-03-01 Thread Johan.Parent
@Ronald:

How do I go about submitting my patch? Or will this all becoming clear when 
I'll open the issues in JIRA?

Regards,

Johan

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4024246#4024246

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4024246
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Missing (config) files starters kit?

2007-03-01 Thread kukeltje
you can attach them to the jira issue. Tom will review them (I´ll notify him)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4024247#4024247

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4024247

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Missing (config) files starters kit?

2007-03-01 Thread Johan.Parent
Ok, it's done

http://jira.jboss.com/jira/browse/JBPM-858

I don't know how to make a build so I could not test the code but it should do 
the job.

Johan

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4024279#4024279

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4024279
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Missing (config) files starters kit?

2007-03-01 Thread kukeltje
I'll try it out tonight... thanks

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4024309#4024309

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4024309
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Missing (config) files starters kit?

2007-02-22 Thread kukeltje
no progress may also be reported ;-)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4020645#4020645

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4020645
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Missing (config) files starters kit?

2007-02-21 Thread estaub
Johan, 

The usual reason for this is code that creates a new parserFactory every place 
one is needed, instead of reusing one (or more).  

This can add ~100ms or so to the time for each parse, so (if as I suspect) it 
may be worth fixing for performance as well.

I haven't looked at the jBPM code to see whether this theory fits.  (sorry, 
never enough time)

-Ed Staub

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4019911#4019911

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4019911
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Missing (config) files starters kit?

2007-02-21 Thread kukeltje
Johan, so your problem is not that it tries to open the none-existing files, 
but that number of times it tries that I did not interpret your 
'constantly' as to often and certainly not that it was mainly jBPM.

Still afaik it is a specification of java that you can override parsers this 
way and yes in most cases it is xerces doing it since it is one of the most 
used ones...

As Ed states, the solution is kind of obvious and could indeed lead to 
performance gains... We'd appreciate it if you could help out on this one, 
since we have lots of other things to do. File a jira issue and assign it to 
yourself so it does not get lost.


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=401#401

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=401
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Missing (config) files starters kit?

2007-02-20 Thread Johan.Parent
Twice 'yes' and once 'no'. 

Yes, I can see that too that it is default behaviour of the xerces lib (not 
really the JVM as you said).

Yes, it is not jBPM code that causes this. Not directly at least.

But also no, because in the end it is jBPM code that (albeit indirectly) causes 
these stat() calls. So the causal link is very much there, I'm sorry. 

I think jBPM is great stuff. But as you can see from my original post the sys. 
admin. is very picky about the behaviour of the code that goes online on a 
production machine. I was just hoping one of the jBPM gurus would, with a 
sleight of hand, point me toward a solution for this problem. Maybe at the same 
time pointing at this minor problem at the same so everyone can benefit from 
the solution. Well, I'm still hoping a guru may lay eyes on this post.

Best regards,

Johan

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4019271#4019271

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4019271
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Missing (config) files starters kit?

2007-02-19 Thread kukeltje
this is default jdk behavior... you can override parsers per jar file by 
including these files with a reference to other xml implementations.  Nothing 
to do with jBPM

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4018962#4018962

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018962
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user