dragon ji

Ranch Hand
+ Follow
since Oct 31, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by dragon ji

I did some modification as following:

1: modify jboss.xml, add one container configuration as following:

<container-configurations>
<container-configuration extends="Instance Per Transaction CMP 2.x EntityBean">
<container-name>Optimistic CMP EntityBean</container-name>
<locking-policy>org.jboss.ejb.plugins.lock.JDBCOptimisticLock</locking-policy>
<commit-option>B</commit-option>
</container-configuration>
</container-configurations>

then shift the special bean to this configuration.

2: configure locking policy for the special bean in jbosscmp-jdbc.xml.

<load-groups>
<load-group>
<load-group-name>wo</load-group-name>
<field-name>statusDicId</field-name>
<field-name>plannedStartDateTime</field-name>
</load-group>
</load-groups>

<optimistic-locking>
<group-name>wo</group-name>
</optimistic-locking>
</entity>

3: add synchronize in some places which shouldn't be concurrent invoking.

then my system passed the test of loadrunner.
19 years ago
May I configure find & get methods to no lock, set methods to pessimistic lock?

in standardjboss.xml, we can configure the locking policy, but it's for all ejb. Can I configure for special methods?
19 years ago
I change the lock to JDBCOptimisticLock by modify standardjboss.xml, the deadlock disappear. but new error happend. the exception is:
2005-01-12 10:44:49,147 ERROR [org.jboss.ejb.plugins.LogInterceptor] RuntimeException:
java.lang.reflect.UndeclaredThrowableException
at $Proxy189.getId(Unknown Source)
......
Caused by: java.lang.InterruptedException
at java.lang.Object.wait(Native Method)
at org.jboss.ejb.plugins.lock.NonReentrantLock.acquire(NonReentrantLock.java:81)
at org.jboss.ejb.plugins.lock.NonReentrantLock.attempt(NonReentrantLock.java:105)
at org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInterceptor.java:82)
at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:163)
at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:89)
at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:54)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:267)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:128)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:118)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:489)
at org.jboss.ejb.Container.invoke(Container.java:700)
at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:375)
at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38)
... 94 more
19 years ago
jboss3.2.3 sql server 2000

I have a timertask, run in background regularly. it will visit an entity bean, suppose A.

And also there are other places visit that bean.

all the methods are 'required' configuration. the isolation level is pessimistic

now I often met deadlock exception.

How do I resolve this problem?
19 years ago
EA is for validation architecture,decrease risk of project.
According to some theory, we should cover 20% critical of all use cases,but in fact,customer hope to get an executable program.For that object,sometime we have to add other use cases in EA ,but those use case are useless for validation architecture.

so,how to identify scope of EA?
thanx,Tommy Greenberg
I will try it.
20 years ago
Hi,Tommy Greenberg

I did that but it still doesn't work.

what shall I do?
20 years ago
Hi, guys,

I want to make a label using 3 images,two for top and tail,one for middle.and I want to tile the middle image.

How can I get it?

thanx a lot

Best Regards

Dragon
20 years ago
Hi,guys,

I want to set an icon on each tab,so my code is as follows:



But the tab size is bigger than the img's size,How can I change it to the same as the image?

thanx a lot .

Best Regards

Dragon
20 years ago
Hi,guys

We have a presentation problem in our project,I want to describe it using Analysis mechanism.Following is my draft:
9.2 Analysis Mechanisms
Presentation:
For all need to display chart,we need identify:
Demension: How many dimensions should be displayed?
Style:How many kinds of chart used?
Refresh frequency: Are the chart more or less refresh?
Precision: How to define the precision of the coordinates' value?
Volume: Number of charts to display in one page.
Synchronicity: Does the chart changing dynamicly according to the database updated?
Reliability: Shall the objects survive a crash of the process; the processor; or the whole system?
Usability: Developed by ourselves or use other open source project? Use applet or servlet?
9.3 Design Mechanisms
Presentatiion:
We utilize third party open source project as the way to resolve the above analysis mechanism.
Demensiion:2 dimensions,use series as the different value of color.
Style: 3 kinds of chart.columnarity,pie,coordinate.
Refresh frequency: utilize token as the way to avoid frequency refresh.
Precision: decimal places:2
Synchronicity: not synchronicity when data changed,get the newest result by refresh .

but I don't know if it is right,Please help me checking it and tell me how to correct it.thanx a lot.
Do you know Together?

You can get that easily by use Together.
The code it generated as followed:
Architect must be a designer,but designer needn't be an architect.
add:
I use jakata regexp1.3 ,and if have some text as follows:
asdfasdfasf<Quote>alskdjfpaoist;aoisejt</quote>aslidjfasi<Quote>asldkaoisent;aosiet;aioset</quote>a;lsidjfa;iset
and I want find all text in <Quote> and <quote>,How do I wirte that pattern?
please help me,thanx.
20 years ago
I want to search some string in a file,that string have special head and tail,and it's body can have any random character.There maybe have many string like that in the file. How do I define pattern using regexp?
thanx.
20 years ago
I want send a object creaded by javascript to a javabean,and don't submit page.
my web browser is IE,it doesn't support that function of LiveConnect.
what shall I do?