[jboss-user] [JCA/JBoss] - Re: Can

2008-03-02 Thread vola
Ok. Thanks alot for your advice. I will try these. ^^

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

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


[jboss-user] [JCA/JBoss] - Re: Can

2008-02-22 Thread vola
Because I am working on self-adaptive system. If too many exceptions are 
thrown, I hope the system can self-adapt to solve the problem by itself.



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

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


[jboss-user] [JCA/JBoss] - Can NestedSQLException be counted in the J2EE application?

2008-02-21 Thread vola
Hi everyone,

I am using JBoss AS 4.0.5 + MySQL. And I am trying to test the perfomance of my 
J2EE application under very high workload. Sometimes the standard console will 
printout:

org.jboss.util.NestedSQLException: No ManagedConnections available within 
configured blocking timeout ( 3 [ms] ); - nested throwable: 
(javax.resource.ResourceException: No ManagedConnections available within 
configured blocking timeout ( 3 [ms] ))

I know this is because my system runs out of ManagedConnections, which means I 
probably need to increase the max-pool-size. My question is if there is any 
way I can count how many times this exception is thrown inside my J2EE 
application? 

That is, is there any MBean or any other things record the number of times 
JBoss throws an exception so that my program can access to determine it got a 
problem. Hope I explain my question clearly. 

Thank you



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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Is there any API that can be used for configuration at runti

2007-11-04 Thread vola
Hi everyone,

I am trying to configure the JBoss AS 4.0.5 to see if it is possible to 
increase its capacity when the load is high.

I know that I can modify some xml files (e.g. service.xml, service-config.xml) 
to configure the JBoss AS. These can change the max thread numbers and max 
memory. I am building an autonomic application. So I was wondering if JBoss 
provides any API to configure these parameters?

In addition, will these modifications be effective immediately? Or, the JBoss 
AS has to restart to make the effecting happen? 

I read through the javadoc of 4.0.5. It seems like ServiceConfigurator class is 
used for this purpose. Am I correct? 

Thank you very much


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

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


[jboss-user] [Management, JMX/JBoss] - Re: Can Not run

2007-08-23 Thread vola
Ok, it works.

Thank you very much!

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

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


[jboss-user] [Management, JMX/JBoss] - Can Not run twiddle. Bug of 4.0.5?

2007-08-22 Thread vola
Hello everyone,

I am trying to learn how to use JBoss's JMX funtionalities to monitor my 
application. In the JBoss Application Server Guide, it says to call 
bin\twiddle to get access to the JMX. However, once I run twiddle, there 
will be an exception:

Exception in thread main java.lang.NoClassDefFoundError: org/jboss/util/Nested
Exception
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
...

My JBoss version is: 4.0.5.GA
JDK is: 1.5.0.12

In http://jira.jboss.com/jira/browse/JBAS-3382?page=all, it talks about this 
problem with version 5.0.0. It says add client/jboss-common.jar to classpath. 

First of all, in 4.0.5, jboss-common.jar is in lib not client. So I tried 
to add lib/jboss-common.jar to classpath. But still can not solve the problem.

Does expert know how this problem can be solved? Thank you very much

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - How can packages inside JBoss use libraries outside JBoss?

2007-08-20 Thread vola
Hello all,

JBoss AS: 4.0.5.GA
JBoss AOP: 1.5.5.GA
JDK: 1.5.0.12
OS: XP
J2EE Application I am deploying: TPC-W

I have successfully deployed TPC-W on JBoss AS and it worked perfectly well. 
Then I tried to add a new class called DecisionMaker (DM) into it. The DM 
class will make some self-adaptive decisions at the run-time. Inside the DM 
class, I imported IBM ABLE library and setup the ABLE's classpath as 
Environment Variable. The new TPC-W compiled and deployed with no problems. 

However, at the runtime, once the DM class needs to use ABLE library, the 
console will print out the NoClassDefFoundError exception. The JBoss didn't 
load the ABLE library.

I read through some documentations on the JBoss website. It seems like I got 
the dynamic classloading problem. What configurations should I do to make JBoss 
loads my external libraries? 

Thank you very much!

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

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


[jboss-user] [JBoss AOP] - How to use AOP to simulate an alternative method of a existi

2007-07-18 Thread vola
Hi all,

Our team is trying to use JBoss AOP to do effecting on a running J2EE 
application. Let say one class ShoppingCart of the application has a method 
called addItem(). Our goal is to AOP to around the addItem(), and use our 
own addItemAlternative(). Everything works fine, just one question, is that 
possible we can access the private members of ShoppingCart in our AOP 
Interceptor class?

I know that AOP can retrieve the arguments passed into the addItem(). But if 
we don't know the private members of ShoppingCart, we have no way to do the 
similar operation as original method does. So, is that possible? Or, can we use 
any other AOP feature to simulate a method?

Thank you

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

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


[jboss-user] [JBoss AOP] - Re: How to use AOP to simulate an alternative method of a ex

2007-07-18 Thread vola
Thank you for your quick reply. I will try reflection then.

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

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


[jboss-user] [JBoss AOP] - Re: Strange problem of aspectizing EJBs

2007-07-17 Thread vola
Ok...it sounds make sense...Thank you very much

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

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


[jboss-user] [JBoss AOP] - Re: Strange problem of aspectizing EJBs

2007-07-10 Thread vola
Sorry about that, I will be careful next time.

Could anyone kindly help me out with this problem please? ^^

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

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


[jboss-user] [JBoss AOP] - Re: Strange problem of aspectizing EJBs

2007-07-10 Thread vola
Thank you for your quick reply.

My .ear file contains:
bank-ejb.jar
app-client.jar
web-client.war
aopexamplelib.aop

My application.xml:

  | ?xml version=1.0 encoding=UTF-8?
  | application xmlns=http://java.sun.com/xml/ns/j2ee; version=1.4
  | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
  | xsi:schemaLocation=http://java.sun.com /xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/application_1_4.xsd;
  | display-nameJBossDukesBank/display-name
  | descriptionApplication description/description
  | module id=EjbModule_1184078196095
  | ejbbank-ejb.jar/ejb
  | /module
  | module id=JavaClientModule_1184078196048
  | javaapp-client.jar/java
  | /module
  | module id=WebModule_1184078196158
  | web
  | web-uriweb-client.war/web-uri
  | context-rootbank/context-root
  | /web
  |/module
  |module
  |javaaopexamplelib.aop/java
  | /module
  | 
  | security-role
  | role-nameBankAdmin/role-name
  | /security-role
  | security-role
  | role-nameBankCustomer/role-name
  | /security-role
  | /application
  | 

So, I used .aop file to deploy. 

My aopexamplelib.aop file contains:
com/sun/ebank/aop/SimpleInterceptors2.class
META-INF/jboss-aop.xml

The class I want to weave it is in bank-ejb.jar, 
com.sun.ebank.ejb.tx.TxControllerBean.

My situation is:
injbossaop example can be run perfectly. All configuration of JBoss has been 
done.

When depolying my Duke's Bank application, no any error occurs. When running 
the application, only MyServlets has been woven. (Prints out debug msg). Any 
other beans have not been woven. (Doesn't print out debug msg).

Pleas let me know if you need any other info. Thanks.


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

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


[jboss-user] [JBoss AOP] - Re: Strange problem of aspectizing EJBs

2007-07-10 Thread vola
I have tried moving aopexamplelib.aop to the top of the list of modules. But it 
does not make different.

Also, I just noticed that my servlets haven't been woven. The only thing been 
woven is org.apache.jasper.runtime.HttpJspBase$service.

The debug msg is:
14:12:00,892 INFO  [STDOUT]  Entering SimpleInterceptor 
org.apache.jasper.runtime.HttpJspBase$service_8586428322187484014

And 2 things I can be sure:
1. JBoss can see my .aop, because it would print out error msg when I had bug 
inside jboss-aop.xml. 
2. JBoss can see my com.sun.ebank.aop.SimpleInterceptor2 interceptor class, 
otherwise it would not do any weaving at all.

However, JBoss can NOT see other classes, like bean classes. So it can not bind 
the interceptor to these classes. 

I am wondering why JBoss can not see these classes...

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

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


[jboss-user] [JBoss AOP] - Re: Strange problem of aspectizing EJBs

2007-07-10 Thread vola
Ok...I think I know the reason now

Seems like once my Duke's Bank application deployed into JBoss, it will be 
wrapped up by some proxy class

I change my jboss-aop.xml to:

  |bind pointcut=execution(* $Proxy74-withdraw(..))
  |interceptor class=com.sun.ebank.aop.SimpleInterceptor2/
  |/bind
  | 

instead of 


  |bind pointcut=execution(* 
com.sun.ebank.ejb.tx.TxControllerBean-withdraw(..))
  |interceptor class=com.sun.ebank.aop.SimpleInterceptor2/
  |/bind
  | 

Surprisely, it works...One thing I am really confused is why injbossaop 
example does not have this kind of problem? 

In injbossaop example's jboss-aop.xml:

  |typedef name=MySessionBeans 
expr=class($instanceof{javax.ejb.SessionBean}) AND 
class(org.jboss.injbossaop.ejb.*) / 
  |bind pointcut=execution(* $typedef{MySessionBeans}-getValue(..))
  |interceptor class=org.jboss.injbossaop.lib.SimpleInterceptor/
  |/bind
  | 

Could anyone tell me how to avoid the proxy?

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

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


[jboss-user] [JBoss AOP] - Re: Strange problem of aspectizing EJBs

2007-07-10 Thread vola
Yes, you are correct. The name of the proxy can be changed each time the AS 
starts.

I was using TPTP to monitor my application and guess what is the proxy name for 
each bean class. 

Thank you very much for your help...I will send my ear to you. Just please take 
a look at it when you are not busy. This is also an very important project for 
me for cascon.  The deadline is close...Aug 16

Anyways, thanks again.


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

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


[jboss-user] [JBoss AOP] - Can JBoss AOP do dynamic weaving on J2EE application?

2007-07-08 Thread vola
Hi all,

I've just done injboss example of the tutorial. In this example, the weaving 
for the J2EE application happens at loadtime. 

And in the dynamic AOP example of the tutorial, I learned that JBoss can do 
dynamic weaving on normal JAVA application.

So, my question is if JBoss AOP can do dynamic weaving on J2EE application?

If it is possible, what should I do to let my J2EE application be prepared to 
be weaved? (using prepare like in dynamic AOP example?) And, is that 
anything I need to be aware to make the weaving go through?

If it is not possible, does JBoss AOP have any other feature that can let me 
effect my J2EE application at runtime? That is, change the AOP aspect at 
runtime.

Thank you very much!

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

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


[jboss-user] [JBoss Portal] - Possible to run JBoss 3.0.1 on Eclipse 3.2.1?

2007-05-25 Thread vola
Hi all,

I try to use TPTP to monitor J2EE application Petstore 1.3.2 on JBoss. JBoss 
3.0.1RC1 is the only version of JBoss I sucessfully run Petstore 1.3.2

However, Eclipse 3.2.1 seems not support JBoss 3.0.1 (It just can select
JBoss 3.2.3 or 4.0) Is there any way I can run JBoss3.0.1 on Eclipse3.2.1?

Thank you very much! 

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

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


[jboss-user] [JCA/JBoss] - Problem when using cloudscape on JBoss 3.2.3

2007-05-25 Thread vola
Hi All,

I try to run Petstore 1.3.2 on JBoss 3.2.3. I used a patch for Petstore 1.3.2 
to  run on JBoss 3.0.1 RC1. The patch works on 3.0.1 well. Using database 
cloudscape, provided by j2eesdk 1.3.1. But doesnt work in 3.2.3.
link to the patch and doc:
http://docs.huihoo.com/jboss/petstore.html

I changed two things of JBoss 3.2.3:

First, I changed C:\jboss-3.2.3\server\default\conf\login-config.xml
add following lines into it:
---
application-policy name = CloudscapeDbRealm
  |authentication
  |   login-module code = 
org.jboss.resource.security.ConfiguredIdentityLoginModule flag = required
  |  module-option name = principal/module-option
  |  module-option name = userNameestoreuser/module-option
  |  module-option name = passwordestore/module-option
  |  module-option name = 
managedConnectionFactoryNamejboss.jca:service=LocalTxCM,name=EstoreDataSource/module-option
  |   /login-module
  |/authentication
  | /application-policy
  | 
  | application-policy name = CloudscapeDbRealmInventory
  |authentication
  |   login-module code = 
org.jboss.resource.security.ConfiguredIdentityLoginModule flag = required
  |  module-option name = principal/module-option
  |  module-option name = userNameestoreuser/module-option
  |  module-option name = passwordestore/module-option
  |  module-option name = 
managedConnectionFactoryNamejboss.jca:service=LocalTxCM,name=InventoryDataSource/module-option
  |   /login-module
  |/authentication
  | /application-policy



Second, I copy a file called client-deployer-service.xml into 
C:\jboss-3.2.3\server\default\deploy
The content of this file:
-
server
  | 
  |   mbean 
code=org.jboss.resource.connectionmanager.LocalTxConnectionManager 
name=jboss.jca:service=LocalTxCM,name=EstoreDataSource
  | 
  | attribute name=SecurityDomainJndiNameCloudscapeDbRealm/attribute
  |
  | 
  | depends optional-attribute-name=ManagedConnectionFactoryName
  |   !--embedded mbean--
  |   mbean code=org.jboss.resource.connectionmanager.RARDeployment 
name=jboss.jca:service=LocalTxDS,name=EstoreDataSource !--DS--
  | 
  | 
  | attribute name=JndiNameEstoreDB/attribute
  | 
  | attribute name=ManagedConnectionFactoryProperties
  |   properties
  | config-property name=ConnectionURL 
type=java.lang.Stringjdbc:rmi://localhost:1099/jdbc:cloudscape:EstoreDB;create=true/config-property
  | config-property name=DriverClass 
type=java.lang.StringCOM.cloudscape.core.RmiJdbcDriver/config-property
  | !--set these only if you want only default logins, not through 
JAAS --
  | config-property name=UserName 
type=java.lang.Stringestoreuser/config-property
  | config-property name=Password 
type=java.lang.Stringestore/config-property
  |   /properties
  | /attribute
  | !--hack--
  | depends 
optional-attribute-name=OldRarDeploymentjboss.jca:service=RARDeployment,name=JBoss
 LocalTransaction JDBC Wrapper/depends
  |   /mbean
  | /depends
  | 
  | 
  | depends optional-attribute-name=ManagedConnectionPool
  |   !--embedded mbean--
  |   mbean 
code=org.jboss.resource.connectionmanager.JBossManagedConnectionPool 
name=jboss.jca:service=LocalTxPool,name=EstoreDataSource
  | 
  | attribute name=MinSize0/attribute
  | attribute name=MaxSize50/attribute
  | attribute name=BlockingTimeoutMillis5000/attribute
  | attribute name=IdleTimeoutMinutes15/attribute
  | attribute name=CriteriaByContainer/attribute
  |   /mbean
  | /depends
  | depends 
optional-attribute-name=CachedConnectionManagerjboss.jca:service=CachedConnectionManager/depends
  | 
  | depends 
optional-attribute-name=JaasSecurityManagerServicejboss.security:service=JaasSecurityManager/depends
  | 
  | attribute 
name=TransactionManagerjava:/TransactionManager/attribute
  | !--make the rar deploy! hack till better deployment--
  | dependsjboss.jca:service=RARDeployer/depends
  | 
  |   /mbean
  | 
  | 
  |   mbean 
code=org.jboss.resource.connectionmanager.LocalTxConnectionManager 
name=jboss.jca:service=LocalTxCM,name=InventoryDataSource
  | 
  | !--uncomment out this line if you are using the Informix DbRealm above 
--
  | attribute 
name=SecurityDomainJndiNameCloudscapeDbRealmInventory/attribute
  |
  | 
  | depends optional-attribute-name=ManagedConnectionFactoryName
  |   !--embedded mbean--
  |   mbean code=org.jboss.resource.connectionmanager.RARDeployment 

[jboss-user] [JCA/JBoss] - Re: Problem when using cloudscape on JBoss 3.2.3

2007-05-25 Thread vola
Thank you for your reply.

The reason why I using 3.2.3 is the project I am working on need to use TPTP 
BTM to monitor Petstore.

But eclipse seems just support JBoss 3.2.3 and JBoss 4.0. 
I have the same problem with JBoss 4.0.5 GA.


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

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


[jboss-user] [Testimonials] - Re: Petstore implemented on JBOSS and MYSQL

2007-05-25 Thread vola
I have the same question as above. Could anyone tell me where to get the 
instruction and patch?

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

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