[jboss-user] [Performance Tuning] - Re: Thread pools configuration

2008-03-29 Thread vijaychhipa
Hi 
I am having the same problem.
I am running JBoss 4.0.5GA on JDK 1.5 and JBoss Portal 

I have hundreds on threads in the TIMED_WAITING status. Once they get in to 
this status they never come out of it.

  | Thread Group: JBoss Pooled Threads : max priority:10, demon:false
  | 
  | Thread: WorkManager(3)-1 : priority:5, demon:true, threadId:40, 
threadState:WAITING, threadLockName:[EMAIL PROTECTED]
  | 
  | java.lang.Object.wait(Native Method)
  | java.lang.Object.wait(Object.java:474)
  | 
EDU.oswego.cs.dl.util.concurrent.Semaphore.acquire(Semaphore.java:108)
  | 
EDU.oswego.cs.dl.util.concurrent.SemaphoreControlledChannel.take(SemaphoreControlledChannel.java:131)
  | 
org.jboss.resource.adapter.mail.inflow.NewMsgsWorker.run(NewMsgsWorker.java:75)
  | org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
  | org.jboss.
  | 
  | util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
  | 
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
  | java.lang.Thread.run(Thread.java:595)
  | 
  | 
  | 

OR 


  | Thread: UIL2([EMAIL PROTECTED] client=10.1.12.233:52183)#1 : priority:5, 
demon:true, threadId:91, threadState:TIMED_WAITING, threadLockName:[EMAIL 
PROTECTED]
  | 
  | java.lang.Object.wait(Native Method)
  | 
EDU.oswego.cs.dl.util.concurrent.SynchronousChannel.poll(SynchronousChannel.java:353)
  | 
EDU.oswego.cs.dl.util.concurrent.PooledExecutor.getTask(PooledExecutor.java:723)
  | 
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:747)
  | java.lang.Thread.run(Thread.java:595)
  | 
  | 

Only solution I have so far, is to restart JBoss app server. 


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

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


[jboss-user] [JBoss/Spring Integration] - Jboss portal and Spring JTA TransactionManager is not availa

2007-11-11 Thread vijaychhipa
Hello

In my application-context.xml I configure the jtaTransactionManager like this


 bean id=transactionManager 
class=org.springframework.transaction.jta.JtaTransactionManager
  |   property name=transactionManagerName
  | valuejboss:service=TransactionManager/value
  |  /property
  |  /bean
  | 
  | 

However I keep getting this error:

JTA TransactionManager is not available at JNDI location 
[jboss:service=TransactionManager]

I checked if I am loading any other jta.jar in my ear file, and I am not. 
I am using Jboss 4.0.5 GA, JBoss portal 2.6, Spring 2.0.x

I have tried other combinations mentioned here 
http://jboss.org/index.html?module=bbop=viewtopict=69587

All I need is a way to tell Spring that there is a JTA transaction maneger 
instance running in JBoss so it need to find that in the JNDI

According to Spring doc it is supposed to be super easy using the above XML, 
but I am missing something, either the property name is not right or the value.

Or, is there another way to configure this?

Any help is highly appreciated. 

 

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

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


[jboss-user] [JBoss Portal] - Authenticate and redirect/forward to another page in the por

2007-05-04 Thread vijaychhipa
Hello
I have a request from a user of my portal to automatically log in the user into 
the portal and then take them to a particular page say p1.jsp .

The user will pass a param in the request 
next_url=UserManager/UserListPortletWindow?action=2operation=view_reg_code

Since I use a DatabaseLoginModule I am able to to the authenticate the user by 
having his link point to

/portal/j_security_check?j_username=xyzj_password=ynext_url=above  string 

This works fine, the user is logged in, but the user is brought to the home 
page or default page specified in the web.xml. 

How do I redirect or forward the request to the next_url after successfully 
authenticating him. 

I tried to put in the following code in the commit() method of the 
DatabaseLoginModule  in a failed attempt to forward the request


  | public boolean commit() throws LoginException {
  |boolean result = super.commit();
  | 
  | try{
  | HttpServletRequest request = (HttpServletRequest) 
PolicyContext.getContext(REQUEST_CONTEXT);
  | 
  | RequestDispatcher rd = 
request.getRequestDispatcher(/users);
  | HttpServletResponse response = (HttpServletResponse) 
PolicyContext.getContext(javax.servlet.http.HttpServletResponse);
  | rd.forward(request, response);
  | } catch (Exception e) {
  | log.error(Caught Exception while putting 
MyRackspaceUser in session!, e);
  | }   
  |return result;
  | }
  | 

this fails because there is no such context as 
javax.servlet.http.HttpServletResponse

There does not seem to be a way to redirect the request.

Is there any way to redirect/forward the user to a specific page in the portal 
right after login.

Any help is highly appreciated. 
Thank you so much. 

Vijay

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

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


[jboss-user] [JBoss Portal] - Re: Authenticate and redirect/forward to another page in the

2007-05-04 Thread vijaychhipa
Just an update that:

I am using Jboss Portal 2.6 Beta and 

JBoss App Server 4.0.5 

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

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


[jboss-user] [JBoss Portal] - Re: Extending the org.jboss.portal.identity.User class and j

2007-02-27 Thread vijaychhipa
Thank you so much Sohil.

Do you have any examples of code where someone has rolled out their own 
implementation of the User class. I agree, adding columns to the jbp_users 
table could be messy. 

Thanks
Vijay

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

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


[jboss-user] [JBoss Portal] - Extending the org.jboss.portal.identity.User class and jbp_u

2007-02-23 Thread vijaychhipa
I would like to add a new column to jbp_users table and extend the 
org.jboss.portal.identity.User class to read this column. Is this doable? 
recommended? 

I have some attributes that do not necessarily belong in the jbp_user_props 
table

Thanks
Vijay

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

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