[Beginner's Corner] New message: "Re: Question about adding a folder with classes to the CLASSPATH"
by null null
User development,
A new message was posted in the thread "Question about adding a folder with classes to the CLASSPATH":
http://community.jboss.org/message/523679#523679
Author : null null
Profile : http://community.jboss.org/people/ranjix
Message:
--------------------------------------------------------------
So are you saying that you are maintaining these statistics in static variables, or that you are using singletons? If so, then you will need to inlcude the common classes in each EAR and define a classloader repository for reach EAR.
The other otpion would be to not maintain any data in static or singleton object - then each EAR would have its own set of data objects maintining their own sets of data even if the command classes were packed in a JAR and placed in common/lib.
thanks for answer, Peter.
I'll try to be more concrete, imagine a Database class which manages the database (what else) operations. This class will create a singleton per app (app1 Database and app2 Database will have different connections and so, to 2 different databases). In the same time, the WAR and the EJBs in each app will have to use the same Database instance (since they do work on the same database).
What I want is an infrastructure which will allow me to add core/classes/../Database to both classpaths of the 2 apps.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/523679#523679
16 years, 2 months
[JBoss Tools] New message: "Composite components support breaks the editor?"
by Ilya Shaikovsky
User development,
A new message was posted in the thread "Composite components support breaks the editor?":
http://community.jboss.org/message/523677#523677
Author : Ilya Shaikovsky
Profile : http://community.jboss.org/people/ilya_shaikovsky
Message:
--------------------------------------------------------------
I'm creating simple JSF project using standar tools wizard. I'm using JSF 2 and deploying to glassfishV3 - so modified application config files and removed all the libs. All goes just fine from the beginning
Later in WebContent folder I created resources folder to add a few composition components. Then created xhtml file in the folder to define component template.
Problems:
* The page in resources folder does not opens in any editor (HTML, Jboss Tools HTML, Web Page editor)
* Icon for the file as for faces-config file in Web Projects view
Errors in log after I cleared it and tried to open file:
> !ENTRY org.eclipse.wst.sse.ui 2 2 2010-02-02 17:16:40.833
> !MESSAGE StructuredTextEditor being used without StructuredDocument
>
> !ENTRY org.eclipse.wst.sse.ui 2 2 2010-02-02 17:16:40.833
> !MESSAGE Input Name: panel.xhtml
>
> !ENTRY org.eclipse.wst.sse.ui 2 2 2010-02-02 17:16:40.833
> !MESSAGE Unexpected IDocumentProvider implementation: org.eclipse.ui.editors.text.TextFileDocumentProvider
>
> !ENTRY org.eclipse.wst.sse.ui 2 2 2010-02-02 17:16:40.833
> !MESSAGE Unexpected IDocument implementation: document was null
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/523677#523677
16 years, 2 months
[jBPM] New message: "Accessing process variables in task form"
by Raji n
User development,
A new message was posted in the thread "Accessing process variables in task form":
http://community.jboss.org/message/523676#523676
Author : Raji n
Profile : http://community.jboss.org/people/raji_126
Message:
--------------------------------------------------------------
Hi All,
In JBPM 3.2.6, I have a main process invoking a subprocess. The subprocess has a task and an associated form.
In the start node of the main process, I am attaching an Action Handler to set an employee object in a process variable. I would like to display the contents of the employee object in the form.
Can you please guide me on how to do this?
I am passing the variables when invoking the subprocess.
In the form (xhtml), I am accessing the values like this :
<h:outputText value="#{employee.firstName}" />
<h:outputText value="#{employee.address.street}" />
But this doesn't seem to work. Nothing gets displayed on the screen.
P.S Both employee and address objects are serializable.
Appreciate any help on this.
thanks
Raji
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/523676#523676
16 years, 2 months
[JBoss Cache] New message: "How to manage empty data with a CacheLoader?"
by Nicolas Filotto
User development,
A new message was posted in the thread "How to manage empty data with a CacheLoader?":
http://community.jboss.org/message/523671#523671
Author : Nicolas Filotto
Profile : http://community.jboss.org/people/nfilotto
Message:
--------------------------------------------------------------
Hi,
We face a big performance issue because we use a CacheLoader behind a JBC instance that doesn't contain a lot of data but this cache is very frequently accessed and rarely modified. As far as I understand, when we try to get a non existing data from a JBC instance with a CL, JBC does globally the following steps:
1. It tries to get the data for the local cache
2. No data cans be found, thus it locks the related fqn
3. It then gets the data from the backend store
4. No data cans be found in the backend store, so it has nothing to put into the local cache
5. It finally releases the fqn
In our case, most of the time there is no data to retrieve from the backend store, so if several threads try to access to the same fqn at the same time we can quickly get a TimeoutExcetion.
For example, if:
1. The lock timeout has been set to 10 seconds
2. We need about 1 second to access the backend store
3. We have 11 threads trying to access the same fqn at the same time
=> The last thread will get a TimeoutException since each thread needs 1 second to do the tasks between step #3 and step #5, so the 10 first threads need 10 seconds to allow the last thread accessing step #3 which won't be possible because the timeout has been set to 10 seconds.
Is there a way to avoid that issue? up to now this is the bottleneck of our entire application.
The only idea that I have so far is to put a fake data into the local cache representing some how "no data", just to avoid accessing the backend store anytime we want to access the value from the cache. But I still have 2 questions which are:
1. What is the best way to implement such mechanism (i.e. loading fake data)?
2. The previous workaround described below, only solve the issue for the 2nd access to the data, the issue remains for the 1st access when the data representing "no data" has not yet been loaded. Is there a way to solve also this part of the problem?
Thank you in advance for your help,
Best Regards,
Nicolas Filotto
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/523671#523671
16 years, 2 months