[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: truncation of data in entity bean

2008-03-28 Thread nitros
Would it not be better if you use a setter method to truncate the data if 
longer than 100?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139802#4139802

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139802
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - truncation of data in entity bean

2008-03-28 Thread cesar_takaide
Hello again.
I'm trying to use a entity bean to maintain a table, but i want to truncate 
data if it's longer than column's table definition.  The annotation i'm using 
in the entity bean is :
@Column(name = "descripcion", length=100)
private String descripcion;

In theory, Jboss should truncate the data to 100 characters if longer, but it 
didnt.  Jboss isnt truncating anything. I dont know if the attribute of length 
must be used for that, for size limitations or is intended for another thing. 
Thank you very much for your help.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139800#4139800

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139800
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: How to - Portal 2.6.4 and Rich Faces integration

2008-03-28 Thread wesleyhales
This usually happens when the ajax request cannot access the resource on the 
servlet side. Is your page located under WEB-INF? If so, move it outside of 
that folder.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139799#4139799

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139799
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: How to - Portal 2.6.4 and Rich Faces integration

2008-03-28 Thread [EMAIL PROTECTED]
Hello there,

I'm trying to run sample richfaces-basic: echo application on Portal 2.6.4.  It 
did work when I deployed it as per the instructions given in Maven Archetype. 

When I compiled the app again and deployed it, it's giving following 
error/message on the browser as soon as I type anything in the text box.


  | type Status report
  | 
  | message 
  | 
  | description: The requested resource () is not available.
  | 

I put following code in my echo.xhtml and it did work fine. it's in fact 
showing me a beautiful calendar.

  | 

Please let me know what could be the reason my echo app is not working.
Thanks a lot.
Regards,
-Amol


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139789#4139789

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139789
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] more info on JGroups problem i'm having ...

2008-03-28 Thread John Zorko


Hello, all ...

I also see the following message in the log of the node that won't  
communicate:


2008-03-28 16:44:30,180 ERROR [org.jgroups.protocols.pbcast.GMS]  
merge_id ([216.239.XXX.XXX:9900|1206745285182]) or this.merge_id  
(null) is null (sender=10.15.XXX.XXX:9900).


... I XXXed out the last 2 octets of the IP addresses.  Does this  
additional message help at all?


Regards,

John

Falling You - exploring the beauty of voice and sound
http://www.fallingyou.com











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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - identity fields in Entity beans

2008-03-28 Thread cesar_takaide
Hello, I'm new in EJB3 technology. I'm working with an entity bean that has a 
identity field, so i wrote this on the field declaration:

@Id
@Column(name = "codigo", nullable = false)
@GeneratedValue(strategy=GenerationType.IDENTITY)
private Long codigo;

But, when the entity is persisted, Jboss warns me with a message :

16:42:52,947 WARN  [WrappedConnection] Closing a result set you left open! Pleas
e close it yourself.
java.lang.Throwable: STACKTRACE
at org.jboss.resource.adapter.jdbc.WrappedStatement.registerResultSet(Wr
appedStatement.java:617)
at org.jboss.resource.adapter.jdbc.WrappedStatement.getGeneratedKeys(Wra
ppedStatement.java:533)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
.. etc...

Why is this happening? Is something wrong in my code? Thank you very much for 
your help.





View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139787#4139787

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139787
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] Hello, and a question (of course) :-)

2008-03-28 Thread John Zorko


Hello, all ...

I'm new to JBoss -- i'm a longtime C++ developer who has just  
inherited a J2EE codebase when the developer left.  I've done some  
Java before, so I volunteered to maintain it (mistake #1), but the  
last time I did Java was 2001 and it wasn't using beans or anything.   
I'm hopeful that i'll learn a lot more about this as I work with it  
more.


That being said, i've an issue i'm trying to solve.  I have 2 JBoss  
apps (called RMs) that talk to a central JBoss app (a broker) via  
JGroups.  RM #1, running on one host, successfully talks to the broker  
app.  RM #2, running on another host, does not.  The error messages in  
RM #2s log look like this:


2008-03-28 15:29:11,881 WARN  [org.jgroups.protocols.pbcast.GMS] merge  
responses from subgroup coordinators <= 1 ([]). Cancelling merge
2008-03-28 15:29:11,881 ERROR [org.jgroups.protocols.pbcast.GMS]  
coords or merge_id == null
2008-03-28 15:29:11,881 ERROR [org.jgroups.protocols.pbcast.GMS]  
coords or merge_id == null


I've done a lot of searching and haven't found much that describes how  
to fix this.  I've also gone through a lot (though not all, there are  
dozens of them, many with dozens of params / attributes) of the beans  
via the jmx-console, comparing the RM that does talk to the broker  
with the RM that does not.  So far, i've not found any differences.


Any help would be _greatly_ appreciated :-)

Regards,

John

Falling You - exploring the beauty of voice and sound
http://www.fallingyou.com











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


[jboss-user] [Messaging, JMS & JBossMQ] - Re: Initialization failed DLQHandler Error on JON

2008-03-28 Thread rmokrane
Sorry about the confusion by jon-agent I mean jon server.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139783#4139783

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139783
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - jboss developer studio

2008-03-28 Thread fedup
hi all

i'm trying to create a simple app in jboss developer studio, but having big 
trouble getting it to work

i created a dynamic web project
then created a helloworld servlet in the src folder


  | public class HelloWorldServlet extends HttpServlet
  | {   
  | protected void service(HttpServletRequest request, HttpServletResponse 
response)
  |throws ServletException, IOException 
  | {   
  |ServletOutputStream out = response.getOutputStream();
  |out.println("Hello World!");
  | }
  | }

In webContent -> WEB-INF -> web.xml i added this 


  |   
  | HelloWorldServlet
  | test.HelloWorldServlet
  |   
  |   
  |   
  | HelloWorldServlet
  | /Hello
  |   
  | 

I then right-click on the folder and select Debug As - debug on server

jboss start up and i get the error - Bad version number in .class file

in the broswer address bar i put http://localhost:8080/Test/Hello but i get a 
404 error


What am i doing wrong

using jboss developer studio
java 1.5



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139780#4139780

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139780
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Deadlock on TIMERS table with EJB 2.1 timers

2008-03-28 Thread karoberts
Jboss version: 4.05
DB: SQL Server 2005
OS: Windows Server 2003

We've been having a problem with EJB2.1 timers.  Specifically single-shot (run 
once) timers.  

First, our application creates single shot timers, and at the end of the 
ejbTimeout method for those timers, they create a new single shot timer with a 
start time in the future.  We do this so that the timers execute with a fixed 
interval between invocations, regardless of how long they take to actually 
execute.

This appears to work just fine, except that eventually (depending on the 
interval we choose), the whole timer service will stop.  Investigation using 
SQL server shows two transactions that are locking each other out of the TIMERS 
table that jboss uses to persist the timers in its DatabasePersistencePolicy.  
The deadlock seems to occur when one timer is deleting the now used single shot 
timer, and another is creating the next single shot timer.  (DELETE, INSERT).   

Since this is a DB deadlock, I assume that it is SQL Server specific.  I 
examined the jboss code where this occurs, but I couldn't fix it with simple 
synchronization, since that would synchronize all ejbTimeout calls.

Has anyone seen this behavior before?  Is there a better way to use the timer 
service to achieve what we need?

Also, we've seen the same locking when one timer creates another timer to run a 
task asynchronously.

Right now, our only options seem to be to turn off timer persistence, 
(NoopPersistencePolicy), or to write our own timer service using mbeans and 
threads (horrible).

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139774#4139774

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139774
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Create timer -

2008-03-28 Thread jcstaff
You say your schedule works, but nowhere are you specifically stating you are 
interacting with an @Entity that would cause the XA transaction issue. The post 
a few back specifically showed the actions occurring in the same transaction. 
The following would not work without XA support.
anonymous wrote : 
  | public void firstMethod(){
  |
  |entyManager.persist(something);
  |schedule();
  | }
  | 

If you only interact with EJBTimers and other session beans, then there is no 
problem since you only have a single resource (the one supporting EJBTimers) 
involved in the transaction.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139773#4139773

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139773
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: Automatically assign ports?

2008-03-28 Thread Oberiko
That seems like quite a bit of effort, especially for large development teams 
where not everyone has admin privilages on their machine.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139772#4139772

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139772
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Cahnaging the application context

2008-03-28 Thread PeterJ
Is myapp the only application you will be serving? In that case, you need to:

1) Register the URL myapp.dev.xxx.xxx with a domain authority
2) Use port 80 instead of 8080: 
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossOnPort80
and http://www.jboss.com/index.html?module=bb&op=viewtopic&t=104203
3) Set myapp to be the root context: 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126782

If the app server will server multiple applications, you will also need to know 
about virtual hosts: http://wiki.jboss.org/wiki/Wiki.jsp?page=VirtualHosts
and http://www.jboss.com/index.html?module=bb&op=viewtopic&t=127907



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139771#4139771

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139771
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Errors when trying to edit JSF admin pages with custom c

2008-03-28 Thread jl7791
I should also add that I get the same exception if I replace this:


  | public List getCustomerNames() {
  | if (customerNames == null) {
  | customerNames = initNames();
  | }
  | 
  | return customerNames;
  | }
  | 

with this:


  | public List getCustomerNames() {
  | customerNames.add(new SelectItem("1", "Red Hat"));
  | customerNames.add(new SelectItem("2", "Apple"));
  | return customerNames;
  | }
  | 

What could my issue be?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139769#4139769

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139769
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Messaging, JMS & JBossMQ] - Symptoms of too frequently connecting/disconnecting from jms

2008-03-28 Thread aazaroff
Does anyone know what the symptoms are of having your message providers connect 
and disconnect very frequently when posting messages to a queue?

The documentation states that:
"Continually connecting/disconnecting to/from the server"

is a JBossMQ Anti-Pattern.

I just want to know how frequent is too frequent?

and

What typically are the affects on the queue and any backing MDBs that may be 
processing messages on the queue.

Thanks in advance

Andre

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139768#4139768

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139768
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: Running JbossAS

2008-03-28 Thread PeterJ
According to the output you posted, you should be able to see the home page 
using http://localhost:8080. Note this line of the output:

17:39:08,866 INFO [Http11Protocol] Arrancando Coyote HTTP/1.1 en puerto 
http-127.0.0.1-8080

Are you sure you are using htpp://localhost:8080 and not http://myhostname:8080?

What is this about ANT_HOME? For the JBossAS binary you downloaded, the entire 
set of installation steps are:

1) Unzip the binary zip file to a directory of your choice
2) Make sure JAVA_HOME is set to a JDK

Also, one warning: JBossAS 4.2.2 is not qualified to run with JDK 6, only JDK 
5. You will run into some glitches, especially with web services. See 
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossWithJDK6

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139767#4139767

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139767
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: No way to write a working client

2008-03-28 Thread rinconmaradona
Hello GenesisD, I'm having the exact same problem, and the exact same mental 
issues, can you help me?

How did you solve this??

Thx!!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139760#4139760

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139760
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering/JBoss] - Re: deploy in farm as a war

2008-03-28 Thread [EMAIL PROTECTED]
This is not supported.  You have to zip anything in farm.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139757#4139757

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139757
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering/JBoss] - deploy in farm as a war "folder"

2008-03-28 Thread datherra
Hi everyone,

The scenario:
jBoss 4.2.2 , jdk 1.6.05
TCP CLuster.

The problem is:

My applicatins are "open context" aplications ( war folder)

When i try deploy it in farm folder, to other nods can pull this applications, 
i recieve this erros:


In local machine:

2008-03-28 15:16:36,687 ERROR 
[org.jboss.ha.framework.server.ClusterFileTransfer] 
java.io.FileNotFoundException: 
/usr/local/jboss-4.2.2.GA/server/all1/farm/foldername.war(Is a directory)
==
In remote machine:
2008-03-28 15:16:37,337 INFO  
[org.jboss.ha.framework.server.ClusterFileTransfer] Start pull of file 
portal.war from cluster.
2008-03-28 15:16:37,338 ERROR [org.jboss.ha.framework.server.FarmMemberService] 
org.jboss.ha.framework.server.ClusterFileTran
sfer$ClusterFileTransferException: An error occured on remote machine trying to 
open file 'farm/foldername.war'.  Check remote ma
chine error log.

Can please anyone help me?

Cya



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139750#4139750

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139750
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Cahnaging the application context

2008-03-28 Thread sgatl2
hi,

I am having an application called 'myapp'. I deployed in the 'deploy' directory 
as myapp.war and when I have to run the application i type in  
http://dev.xxx.xxx/myapp and it runs fine.

But I want to change this setting to http://myapp.dev.xxx.xxx/
where dev.xxx.xxx is the vanity url.

Where do I edit inorder to change the default context of the application.

Regards

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139749#4139749

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139749
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: upgrade to WTP 2.0.2 breaks EAR deployment in JBoss Tool

2008-03-28 Thread Oberiko
I've tried the latest WTP patch and am still having the same issues with 
Eclipse Europa JEE Winter.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139747#4139747

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139747
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Messaging, JMS & JBossMQ] - Initialization failed DLQHandler Error on JON

2008-03-28 Thread rmokrane
I am getting this error on jon-agent every few second and I have no idea why 
this is happening.
any help is appreciated.

here is the error
WARN  [org.jboss.ejb.plugins.jms.JMSContainerInvoker] JMS provider failure 
detected: 
  | javax.naming.NameNotFoundException: XAConnectionFactory not bound
  | at org.jnp.server.NamingServer.getBinding(NamingServer.java:491)
  | at org.jnp.server.NamingServer.getBinding(NamingServer.java:499)
  | at org.jnp.server.NamingServer.getObject(NamingServer.java:505)
  | at org.jnp.server.NamingServer.lookup(NamingServer.java:278)
  | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610)
  | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
  | at javax.naming.InitialContext.lookup(InitialContext.java:347)
  | at 
org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:151)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:238)
  | at 
org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:165)
  | at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:597)
  | at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:922)
  | at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.run(JMSContainerInvoker.java:1492)
  | at java.lang.Thread.run(Thread.java:534)
  | 2008-03-28 05:52:31,753 ERROR [org.jboss.ejb.plugins.jms.DLQHandler] 
Initialization failed DLQHandler
  | javax.naming.NameNotFoundException: XAConnectionFactory not bound
  | at org.jnp.server.NamingServer.getBinding(NamingServer.java:491)
  | at org.jnp.server.NamingServer.getBinding(NamingServer.java:499)
  | at org.jnp.server.NamingServer.getObject(NamingServer.java:505)
  | at org.jnp.server.NamingServer.lookup(NamingServer.java:278)
  | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610)
  | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
  | at javax.naming.InitialContext.lookup(InitialContext.java:347)
  | at 
org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:151)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:238)
  | at 
org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:165)
  | at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:597)
  | at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:922)
  | at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.run(JMSContainerInvoker.java:1492)
  | at java.lang.Thread.run(Thread.java:534)

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139746#4139746

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139746
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Wrong tx on thread in UserModule

2008-03-28 Thread [EMAIL PROTECTED]
I know of a similar issue which has been fixed in 2.6.4.GA which is our latest 
stable release. Can you see if your problem is resolved there?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139742#4139742

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139742
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - Re: Upload and Download to/from JBoss AS through JMX

2008-03-28 Thread lafbarbosa
Hi Mazz,

Thanks  for your answer!

If JBossON could provide a way to Servlets can put and get .esb archives 
into/from server/default/deploy, for me that's ok. I just wanna do it 
programatically through a Servlet or any other way to access JBoss AS remotely.

I'll take a look in it to find a sample.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139741#4139741

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139741
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - Re: Upload and Download to/from JBoss AS through JMX

2008-03-28 Thread lafbarbosa
Hi Frank,

Thanks for your answer.

You said that the archives I copy into server/default/deploy are not deployed 
on restart.

As I will make this copy (hot-deploy) when the JBoss AS is running, I think 
this is not a problem. Isn't it? Or you would like to say that, after a reboot 
of JBoss AS, these archives won't be deployed?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139739#4139739

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139739
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Errors when trying to edit JSF admin pages with custom compo

2008-03-28 Thread jl7791
I have successfully added an attribute to the user profile object, but I want 
to be able to pull a list from a database and display it back to the user so 
that they may select from it.


  | 
  | 
  | 
  | 

Backing bean:


  | package com.mycompany.ui;
  | 
  | import java.util.ArrayList;
  | import java.util.List;
  | 
  | import javax.faces.model.SelectItem;
  | 
  | import com.mycompany.data.Customer;
  | import com.mycompany.service.CustomerManager;
  | 
  | public class CustomerBean {
  | 
  | private List customerNames;
  | 
  | public void setCustomerNames(List customerNames) {
  | this.customerNames = customerNames;
  | }
  | 
  | public List getCustomerNames() {
  | if (customerNames == null) {
  | customerNames = initNames();
  | }
  | 
  | return customerNames;
  | }
  | 
  | private List initNames() {
  | List custNamesSelectItem = new 
ArrayList();
  | try {
  | List customerListFromDb = 
CustomerManager.getAllCustomers();
  | for (Customer c : customerListFromDb) {
  | custNamesSelectItem.add(new 
SelectItem(c.getId(), c.getName()));
  | }
  | } catch (Exception e) {
  | // TODO Auto-generated catch block
  | e.printStackTrace();
  | }
  | 
  | return custNamesSelectItem;
  | }
  | }
  | 

When I access the page, I get the following exception.  What causes this, since 
I am returning a list of SelectItem objects?


  | Caused by: java.lang.IllegalArgumentException: Collection referenced by 
UISelectItems with binding '#{customerManager.customerNames}' and 
Component-Path : {Component-Path : [Class: 
javax.faces.component.UIViewRoot,ViewId: 
/WEB-INF/jsf/admin/editProfile.xhtml][Class: 
javax.faces.component.html.HtmlForm,Id: 
_id26jbpns_2fadmin_2fMembers_2fIdentityAdminPortletWindowsnpbj][Class: 
javax.faces.component.html.HtmlPanelGrid,Id: 
_id43jbpns_2fadmin_2fMembers_2fIdentityAdminPortletWindowsnpbj][Class: 
javax.faces.component.html.HtmlSelectOneMenu,Id: company][Class: 
javax.faces.component.UISelectItems,Id: 
_id85jbpns_2fadmin_2fMembers_2fIdentityAdminPortletWindowsnpbj]} does not 
contain Objects of type SelectItem
  | at 
org.apache.myfaces.shared_impl.util.SelectItemsIterator.next(SelectItemsIterator.java:184)
  | at 
org.apache.myfaces.shared_impl.renderkit.RendererUtils.internalGetSelectItemList(RendererUtils.java:451)
  | at 
org.apache.myfaces.shared_impl.renderkit.RendererUtils.getSelectItemList(RendererUtils.java:428)
  | at 
org.apache.myfaces.shared_impl.renderkit.html.HtmlRendererUtils.internalRenderSelect(HtmlRendererUtils.java:294)
  | at 
org.apache.myfaces.shared_impl.renderkit.html.HtmlRendererUtils.renderMenu(HtmlRendererUtils.java:267)
  | at 
org.apache.myfaces.shared_impl.renderkit.html.HtmlMenuRendererBase.encodeEnd(HtmlMenuRendererBase.java:59)
  | at 
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:539)
  | at 
org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:419)
  | at 
org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:229)
  | at 
org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:101)
  | at 
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:539)
  | at 
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:242)
  | at 
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
  | at 
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
  | at 
com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:540)
  | at 
org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
  | at 
org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:498)
  | ... 236 more
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139738#4139738

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139738
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: How to - Portal 2.6.4 and Rich Faces integration

2008-03-28 Thread [EMAIL PROTECTED]
thank you!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139736#4139736

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139736
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Security & JAAS/JBoss] - Client Certificate using Keytool and OpenSSL

2008-03-28 Thread sunnym_a
Environment:

JBoss-4.2.1.GA
Java 1.5.0_11
OpenSSL 0.9.8g

Is there a way to set Netscape Cert Type property to SSL Client while exporting 
it to PKCS12 certificate using OpenSSL? 

I created a client certificate using the following steps:  
   a. Generated key pair using Keytool
b. Generated CSR and got it signed by the CA (Verisign) 
c. Imported signed certificate and all Root + Intermediate authorities 
in client keystore for proper certificate chaining
d Exported private key from the keystore 
e. Used OpenSSL command  to export pkcs12 certificate:
 openssl pkcs12 - export -out client.p12 -inkey client.pem -in client.cer - 
passout pass:* 

This certificate gets installed in both IE and Firefox successfully, however 
the Netscape Cert Type attribute shows: SSL Server Authentication  This causes 
the following exception on the server side (Sun JVM) when passed through the 
browser: 
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: 
Netscape cert type does not permit use for SSL client 

When I used a another pkcs12 certificate generated by IIS, that worked fine as 
its Netscape Cert Type attribute was set correctly to SSL Client. 

I came across nscerttype attribute but it seems it's only applicable to openssl 
commands: ca, req and x509.  

TIA


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139734#4139734

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139734
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - Re: How to know CURRENT HEAP SIZE USED, FREE HEAP SPACE, TOT

2008-03-28 Thread [EMAIL PROTECTED]
http://wiki.jboss.org/wiki/Wiki.jsp?page=HowCanIDisplayTheMemoryPoolUsage

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139732#4139732

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139732
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Wrong tx on thread in UserModule

2008-03-28 Thread rcarmichael
Could it be that because it throws an exception when the user does not exist 
you never get to the ut.commit() and  that's why that particular exception is 
being thrown? Just a wild shot in the dark.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139731#4139731

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139731
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: JBoss Tools AS 1.0.0.GA update for JBoss 5 AS ?

2008-03-28 Thread dlmiles
"[EMAIL PROTECTED]" wrote : anonymous wrote : I agree with the issue on the 
other error being due to not using the rest of the nightly build, I did not 
download and take apart the nightly build to see why it did not gel.  Also why 
does Content Assist require access to IJBossRuntime (when I've not runtimes 
setup) and also why does Type Hierachy fail to work at all when IJBossRuntime 
class is apparently missing!  So what!
  |   | 
  | You need to explain that to me a bit better ;)
  | 
  | What kind of content assist is failing ?

All kinds, in all contexts I tried, on all artifacts I tried.  Simply unzip 
JBossTools-AS-*-nightly over your GA installation and bootup and try to do some 
Java work.

I really would not be so concerned about it, I'm pretty sure the issue is not 
with JBoss Tools but the way in which Eclipse hunts/looks/finds things.

anonymous wrote : anonymous wrote : < rant > Gee it would be really good when 
you booted eclipse and it detected a change in plugins if it diagnosed problems 
an tell you which things were new and which things have become 
disconnected/disabled < / rant >
  | 
  | start eclipse with -debug and you get the disconnected/disabled info in the 
Error Log view.
  | 

G-r-e-a-t   A-d-v-i-c-e   T-h-a-n-k   Y-o-u!

< sarcasm >Hey with that content assist problem (if you really wanna knock 
yourself out on that bug), try attaching GDB to the process and looking a look 
at the disassemble view.< /sarcasm >

G-rr-eee--t-!


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139730#4139730

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139730
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - Re: How to know CURRENT HEAP SIZE USED, FREE HEAP SPACE, TOT

2008-03-28 Thread csaldanh
Doesn't this MBean give all the information such as memory used , total memory 
etc.

jboss.system:type=ServerInfo

You could use the jmx-console to access the information of this mbean.



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139729#4139729

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139729
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Running JbossAS

2008-03-28 Thread gregory.carlin
I'm a newbie in Jboss, and I have problems to run it :

I've download Jboss-4.2.2.GA.zip and follow the online installation guide. The 
problem is nothing appears on http://localhost:8080...

JDK 1.6 is installed. JAVA_HOME and JBOSS_HOME are defined. Java and Jboss are 
both in /usr. I'm working under Red Hat Linux Entreprise 4.5.

I have some remarks : is that normal that i have to put ANT_HOME if ant isn't 
on my computer... ? It seems that just Java DK is needed. 

Hope u'll be able to help me :)


I let you the log :


[EMAIL PROTECTED] bin]# ./run.sh
=

  JBoss Bootstrap Environment

  JBOSS_HOME: /usr/jboss

  JAVA: /usr/java/bin/java

  JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m 
-Dsun.rmi.dgc.client.gcInterval=360 -Dsun.rmi.dgc.server.gcInterval=360 
-Djava.net.preferIPv4Stack=true

  CLASSPATH: /usr/jboss/bin/run.jar:/usr/java/lib/tools.jar

=

17:39:01,099 INFO  [Server] Starting JBoss (MX MicroKernel)...
17:39:01,100 INFO  [Server] Release ID: JBoss [Trinity] 4.2.2.GA (build: 
SVNTag=JBoss_4_2_2_GA date=200710221139)
17:39:01,101 INFO  [Server] Home Dir: /usr/jboss
17:39:01,101 INFO  [Server] Home URL: file:/usr/jboss/
17:39:01,102 INFO  [Server] Patch URL: null
17:39:01,102 INFO  [Server] Server Name: default
17:39:01,102 INFO  [Server] Server Home Dir: /usr/jboss/server/default
17:39:01,102 INFO  [Server] Server Home URL: file:/usr/jboss/server/default/
17:39:01,102 INFO  [Server] Server Log Dir: /usr/jboss/server/default/log
17:39:01,102 INFO  [Server] Server Temp Dir: /usr/jboss/server/default/tmp
17:39:01,103 INFO  [Server] Root Deployment Filename: jboss-service.xml
17:39:01,327 INFO  [ServerInfo] Java version: 1.6.0_05,Sun Microsystems Inc.
17:39:01,328 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Server VM 
10.0-b19,Sun Microsystems Inc.
17:39:01,328 INFO  [ServerInfo] OS-System: Linux 2.6.9-55.ELsmp,i386
17:39:01,599 INFO  [Server] Core system initialized
17:39:02,910 INFO  [WebService] Using RMI server codebase: 
http://127.0.0.1:8083/
17:39:02,911 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: 
resource:jboss-log4j.xml
17:39:03,166 INFO  [TransactionManagerService] JBossTS Transaction Service (JTA 
version) - JBoss Inc.
17:39:03,166 INFO  [TransactionManagerService] Setting up property manager 
MBean and JMX layer
17:39:03,267 INFO  [TransactionManagerService] Starting recovery manager
17:39:03,321 INFO  [TransactionManagerService] Recovery manager started
17:39:03,321 INFO  [TransactionManagerService] Binding TransactionManager JNDI 
Reference
17:39:04,711 INFO  [EJB3Deployer] Starting java:comp multiplexer
17:39:04,872 INFO  [STDOUT] no object for null
17:39:04,874 INFO  [STDOUT] no object for null
17:39:04,892 INFO  [STDOUT] no object for null
17:39:04,904 INFO  [STDOUT] no object for {urn:jboss:bean-deployer}supplyType
17:39:04,910 INFO  [STDOUT] no object for {urn:jboss:bean-deployer}dependsType
17:39:05,960 INFO  [NativeServerConfig] JBoss Web Services - Native
17:39:05,961 INFO  [NativeServerConfig] jbossws-native-2.0.1.SP2 
(build=200710210837)
17:39:06,404 INFO  [Embedded] Catalina naming disabled
17:39:06,492 INFO  [AprLifecycleListener] The Apache Tomcat Native library 
which allows optimal performance in production environments was not found on 
the java.library.path: 
/usr/java/jre/lib/i386/server:/usr/java/jre/lib/i386:/usr/java/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
17:39:06,525 INFO  [Http11Protocol] Inicializando Coyote HTTP/1.1 en puerto 
http-127.0.0.1-8080
17:39:06,525 INFO  [AjpProtocol] Initializing Coyote AJP/1.3 on 
ajp-127.0.0.1-8009
17:39:06,525 INFO  [Catalina] Initialization processed in 121 ms
17:39:06,525 INFO  [StandardService] Arrancando servicio jboss.web
17:39:06,526 INFO  [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.1.GA
17:39:06,551 INFO  [Catalina] Server startup in 25 ms
17:39:06,618 INFO  [TomcatDeployer] deploy, ctxPath=/, 
warUrl=.../deploy/jboss-web.deployer/ROOT.war/
17:39:06,952 INFO  [TomcatDeployer] deploy, ctxPath=/invoker, 
warUrl=.../deploy/http-invoker.sar/invoker.war/
17:39:07,034 INFO  [TomcatDeployer] deploy, ctxPath=/jbossws, 
warUrl=.../deploy/jbossws.sar/jbossws-context.war/
17:39:07,103 INFO  [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, 
warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
17:39:07,482 INFO  [TomcatDeployer] deploy, ctxPath=/web-console, 
warUrl=.../deploy/management/console-mgr.sar/web-console.war/
17:39:07,730 INFO  [MailService] Mail Service bound to java:/Mail
17:39:07,806 INFO  [RARDeployment] Required license terms exist, view 
META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
17:39:07,848 INFO  [RARDeployment] Required license terms exist, view 
META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
17:39:07,875 INFO  [RARDeployment] Required license terms exist, view 
META-INF/ra.xml

[jboss-user] [JBossWS] - Re: Problems with multipart/related responses

2008-03-28 Thread [EMAIL PROTECTED]
I believe you are having the problem because Axis2 sends the a "start" 
parameter in the Content-Type and the value is not delimited by < and >.  I.e., 
it should be this:

start="<0.urn:uuid:[EMAIL PROTECTED]>"

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139710#4139710

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139710
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Security & JAAS/JBoss] - Re: Arrggh! JAAS Policy File with JBOSS - Please Help!

2008-03-28 Thread jgilmore
I am not using ejb.  

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139706#4139706

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139706
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - Re: Upload and Download to/from JBoss AS through JMX

2008-03-28 Thread [EMAIL PROTECTED]
That's another subsystem that the new open-source project RHQ is trying to 
address (http://rhq-project.org)

Our Content subsystem will allow us to manage pushing content to managed 
servers.  With a JBossAS plugin, you'll be able to do what you want.

Right now, JBoss ON will give you this functionality (currently in beta, 2.0 to 
be released in several weeks).  JBoss ON will come with a JBossAS plugin. 
(https://network.jboss.com/confluence/display/JON2/Home)

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139702#4139702

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139702
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Re: Problem with Entity Bean

2008-03-28 Thread allanrj
Well,

I using a ejb to persisting the session, when i log in the ejb has been created.
I´m close browser and try log in again, but exception has appeared.

I think jboss doesnt destroy/remove my earlier ejb. This persists on memory
or cache, i dont know

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139701#4139701

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139701

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


[jboss-user] [Management, JMX/JBoss] - Re: Upload and Download to/from JBoss AS through JMX

2008-03-28 Thread FrankTheTank
http://forum.java.sun.com/thread.jspa?threadID=518138&messageID=2477264

http://www.jboss.com/index.html?module=bb&op=viewtopic&t=127272

Note: You do not have to put them in /deploy. If you do so, then remember that 
they are not deployed on restart![/url]

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139699#4139699

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139699
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: JBoss Tools AS 1.0.0.GA update for JBoss 5 AS ?

2008-03-28 Thread [EMAIL PROTECTED]
"dlmiles" wrote : "[EMAIL PROTECTED]" wrote : 
  |   | If the problem still persist then ping us again.
  | 
  | I remember now there was a problem with Hibernate's Eclipse plugin at one 
point in the past.
  | 

That was a mixup with upper/lower casing of the modifier...annoying yes.

anonymous wrote : 
  | Well first you have to choose if a user can be expected to do what I tried. 
 That is use the entire GA suite but also install the nightly for just the AS.  
You may consider this to be unsupported and incorrect use, as each release 
stream might be considered a different domain to each other (nightly, beta, GA).
  | 

Well installing partial parts will definitly rarely work and is definitly not 
supported.

anonymous wrote : 
  | If you decide that it should be possible to do what I tried (all be it, the 
user really is on their own, just like they are on their own when they install 
any or all nightly builds anyway).  There is no major problem with the 
descriptors this time as many of the version constraint simply are not used and 
those that are seem to be setting the lower bound only.  You'll hear no gripes 
from this direction on that policy it sounds good to me.
  | 
  | The issue is simply with the release naming strategy of the GA builds.  The 
letter "G" comes after the number "2".  The version comparison is pretty well 
set in stone for how the eclipse platform works.  So if you want it to work 
then my best/easiest offer is to start using "1.0.0.MMDDHHMM-GA"  format 
for GA releases, and "1.0.0.MMDDHHMM-Beta99" for Beta releases, etc..  you 
can do what the hell you like after the date part. 
  | 
  | Bear in mind that you will need to go to version "1.0.1.MMDDHHMM-GA" 
for the next GA (i.e. at least a patch level bump) from that point on you 
should find nightly components will at least mix/run with GA components.
  | 

yeah I kinda always wanted to add in a timestamp for other reasons too.

anonymous wrote : 
  | I agree with the issue on the other error being due to not using the rest 
of the nightly build, I did not download and take apart the nightly build to 
see why it did not gel.  Also why does Content Assist require access to 
IJBossRuntime (when I've not runtimes setup) and also why does Type Hierachy 
fail to work at all when IJBossRuntime class is apparently missing!  So what!
  | 

You need to explain that to me a bit better ;)

What kind of content assist is failing ?

anonymous wrote : 
  | < rant > Gee it would be really good when you booted eclipse and it 
detected a change in plugins if it diagnosed problems an tell you which things 
were new and which things have become disconnected/disabled < / rant >
  | 

start eclipse with -debug and you get the disconnected/disabled info in the 
Error Log view.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139698#4139698

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139698
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Re: Problem with Entity Bean

2008-03-28 Thread FrankTheTank
Sounds more like you have an entity with two primary keys.
Look if you have @Id defined twice or something like that.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139695#4139695

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139695
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Cache: Core Edition] - Re: basic question on starting a jboss cache

2008-03-28 Thread [EMAIL PROTECTED]
Please use the "code" button when pasting XML and such.  You can click the 
"Preview" button before posting to see if your post will display correctly.

Now guessing what your post was...

Are you specifying:

hibernate.transaction.manager_lookup_class=org.jboss.cache.transaction.GenericTransactionManagerLookup

If so, that's not valid; Hibernate expects 
hibernate.transaction.manager_lookup_class to specify of Hibernate's 
TransactionManagerLookup interface, which is a different thing from the JBC one 
-- different package.

I think there's something else going on as well, since you shouldn't get a 
CNFE.  Make sure the JBC jars are on your classpath.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139694#4139694

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139694
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] swimlanes and group assignment

2008-03-28 Thread Emir Alikadic

hello,

i'm hoping someone could clarify swimlanes for me.  namely, if i have  
a swimlane that is assigned to a group, shouldn't tasks started by one  
user in the group continue to be visible to the group?  if that's not  
default behaviour, is it possible to make it work like that  
(preferably without hacking the jbpm code).


in other words, given swimlane a assigned to group x that includes bob  
and alice, when task is deployed, it is visible to both bob and  
alice.  however, if bob starts an instance, it is no longer visible to  
alice, only bob.  i want alice to be able to take over the task at any  
point, and vice versa.


any help would be greatly appreciated.

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


[jboss-user] [Management, JMX/JBoss] - Upload and Download to/from JBoss AS through JMX

2008-03-28 Thread lafbarbosa
Hi people,

Please, I would like some ideas to make possible the uploading and downloading 
of archives to/from JBoss AS through JMX.

I have an web application that needs to access a JBoss AS remotely or from the 
same machine (the web container into JBoss AS or a separated container in the 
same machine, like a Tomcat running independently).

So, I must create an web interface to:
- list all the archives into JBoss AS (.ear, .jar, .sar, .rar, .war, .esb, etc) 
into server/default/deploy directory;
- make possible to download each of them, by clicking on its URL link;
- upload archives to server/default/deploy directory.

I found something related in http://www.servletsuite.com/jmx/jconsole.htm, but, 
from my requeriments, it only allows the upload of archives into 
server/default/deploy directory and the visualization of archives into this 
directory.

Please, does anybody know where could I find a source code to do this and if it 
is possible to download archives from server/default/deploy directory using 
JMX? If not, which other way could be used?

Thanks  in advance!

Regards,

Luiz

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139692#4139692

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139692
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: w2k3 64-bit jbossas as windows service codepage problems

2008-03-28 Thread rukus
add. info:
jboss as 4.2.2
JBoss Native 2.0.3 win64 AMD64

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139691#4139691

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139691
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - w2k3 64-bit jbossas as windows service codepage problems

2008-03-28 Thread rukus
well when deploying my project under windows 2003 64-bit edition as windows 
service text in some part's of web page displays as ??
but when i starting server as simple application (not windows service) - all ok
any ideas how to fix it?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139688#4139688

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139688
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: basic JBM cluster configuration

2008-03-28 Thread jmesnil
"navjeetc" wrote : I need to install two or more clusters of JBoss AS and JBM 
on a machine(actually the two nodes in each cluster will be on different 
machines). To make cluster work I am using a different port binding for each 
node and also a different server peer Id. We have also deployed JBM bridges on 
each node. Is that all that is needed to separate one cluster from the other 
especially from JBM point of view?
  | 
  | Using JBM 1.4.0 SP3 and JBoss AS 4.2.1
  | 
  | 

You must also configure the GroupName[1] attribute to identify the cluster  the 
node belongs to.

[1] 
http://labs.jboss.com/file-access/default/members/jbossmessaging/freezone/docs/userguide-1.4.1.Beta1/html/configuration.html#conf.postoffice.attributes.groupname
 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139684#4139684

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139684
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Wrong tx on thread in UserModule

2008-03-28 Thread HerQpapa
Hi,

I am using jboss-portal-2.6.2.GA in cygwin env, MySQL backend.

I have the following method which I use to check whether a user already exists:

  | public User findUserByUserName(String userName) throws IdentityException{
  | try {
  |   UserTransaction ut = (UserTransaction) (new InitialContext()
  | .lookup("java:comp/UserTransaction"));
  |   ut.begin();
  |   User user = ((UserModule) (new InitialContext() 
).lookup("java:/portal/UserModule")).findUserByUserName(userName);
  |  ut.commit();
  |  return user;
  | } catch (NamingException ex) {
  |   ex.printStackTrace();
  | } catch (NotSupportedException ex) {
  |   ex.printStackTrace();
  | } catch (SystemException ex) {
  |   ex.printStackTrace();
  | } catch (SecurityException ex) {
  |   ex.printStackTrace();
  | } catch (IllegalStateException ex) {
  |   ex.printStackTrace();
  | } catch (RollbackException ex) {
  |   ex.printStackTrace();
  | } catch (HeuristicMixedException ex) {
  |   ex.printStackTrace();
  | } catch (HeuristicRollbackException ex) {
  |   ex.printStackTrace();
  | } catch (IllegalArgumentException ex) {
  |   System.out.println("B");
  |   ex.printStackTrace();
  | } 
  | return null;
  |   }
  | 

If user does not exists I get the following Exception:


  | 2008-03-28 14:02:20,202 ERROR 
[org.jboss.portal.server.servlet.PortalServlet] Unexpected exception
  | java.lang.IllegalStateException: Wrong tx on thread: expected 
TransactionImple < ac, BasicAction: a28778f:719:47ecf96c:27c status: 
ActionStatus.ABORT_ONLY >, actual TransactionImple < ac, BasicAction: 
a28778f:719:47ecf96c:285 status: ActionStatus.RUNNING >
  | at org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:162)
  | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)
  | at 
org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:262)
  | at 
org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N514360653004530.invokeNext(TransactionInterceptor$invoke_N514360653004530.java)
  | at 
org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java)
  | at 
org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
  | at 
org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
  | at 
org.jboss.portal.server.aspects.LockInterceptor$InternalLock.invoke(LockInterceptor.java:70)
  | at 
org.jboss.portal.server.aspects.LockInterceptor.invoke(LockInterceptor.java:131)
  | at 
org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
  | at 
org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
  | at 
org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:380)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
  | at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
  | at 
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
  | at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
  | at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
  | at java.lang.Thread.run(Thread.java:595)
  | 2008-03-28 14:02:20,202 ERROR 
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/portal].[PortalServletWithPathMapping]]
 Servlet.service() for servlet PortalServletWithPathMapping threw exception
 

[jboss-user] [JBoss Tools (users)] - Re: file extension .jsf ? instead of .jsp and .xhtml

2008-03-28 Thread Antoine_h
done
http://jira.jboss.org/jira/browse/JBIDE-1967
thanks... 


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139682#4139682

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139682
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


Re: [jboss-user] [Management, JMX/JBoss] - How to know CURRENT HEAP SIZE USED, FREE HEAP SPACE, TOTAL H

2008-03-28 Thread Matthew Brasier
You need to use JMX to look up the ServerInfo MBean and use the
attributes on there to get the information you need.
http://docs.jboss.org/jbossas/javadoc/4.0.4/system/org/jboss/system/server/ServerInfo.html

Matt

On Fri, 2008-03-28 at 09:25 -0400, vijayneema wrote:
> I have recently migrated from weblogic to JBoss. I use to have a monitoring 
> tool to show me the current status of memory (size, used, available) in 
> Weblogic. Now since I am using JBoss, I have to update my code to fetch these 
> information from JBoss programatically. 
> 
> Can anyone help me get these information from any API of JBoss.
> 
> View the original post : 
> http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139667#4139667
> 
> Reply to the post : 
> http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139667
> ___
> jboss-user mailing list
> jboss-user@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-user
-- 

Matt Brasier

JBoss Consultant, Red Hat GPS EMEA
e: [EMAIL PROTECTED]


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


[jboss-user] [JBossWS] - How to Define WebService URL?

2008-03-28 Thread rruppel
Well,

the problem is that the Jboss 4.2.2 changed the default webservice url, to:

/ProjectName-JarName/WebserviceName

while at Jboss 4.0.5 tbe default was:

/JarName/WebServiceName

so I want to redefine the Url of my WebServices  

I saw this topic and it seems that its possible, but it doenst explain how:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=52977&view=previous

thanks for any help

regards

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139681#4139681

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139681
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - Re: How to know CURRENT HEAP SIZE USED, FREE HEAP SPACE, TOT

2008-03-28 Thread [EMAIL PROTECTED]
And yet another possibility is purchase JBoss ON - our 2.0 is currently in beta 
to be released in several weeks.  See our short demo at 
https://network.jboss.com/confluence/display/JON2/Demo-Intro

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139675#4139675

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139675
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - Re: How to know CURRENT HEAP SIZE USED, FREE HEAP SPACE, TOT

2008-03-28 Thread [EMAIL PROTECTED]
Oh, but you can use the RHQ JMX plugin - you should be able to import your 
platform and connect to your JBossAS app server as a "JMX Server" and monitor 
it that way.  I haven't tried that but it may work if you are looking for 
something now.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139671#4139671

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139671
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - Re: How to know CURRENT HEAP SIZE USED, FREE HEAP SPACE, TOT

2008-03-28 Thread [EMAIL PROTECTED]
http://wiki.jboss.org/wiki/Wiki.jsp?page=UseJDK5JConsole

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139670#4139670

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139670
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - Re: Error while shutting down JBoss

2008-03-28 Thread [EMAIL PROTECTED]
http://wiki.jboss.org/wiki/Wiki.jsp?page=UseJDK5JConsole

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139669#4139669

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139669
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - Re: How to know CURRENT HEAP SIZE USED, FREE HEAP SPACE, TOT

2008-03-28 Thread [EMAIL PROTECTED]
Keep your eye on http://www.rhq-project.org - the RHQ Middleware Management 
Tool.  No JBossAS plugin is out in the open yet, but a) you can write your own 
or b) wait and see if the community produces one.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139668#4139668

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139668
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - How to know CURRENT HEAP SIZE USED, FREE HEAP SPACE, TOTAL H

2008-03-28 Thread vijayneema
I have recently migrated from weblogic to JBoss. I use to have a monitoring 
tool to show me the current status of memory (size, used, available) in 
Weblogic. Now since I am using JBoss, I have to update my code to fetch these 
information from JBoss programatically. 

Can anyone help me get these information from any API of JBoss.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139667#4139667

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139667
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: JBoss Tools AS 1.0.0.GA update for JBoss 5 AS ?

2008-03-28 Thread dlmiles
"[EMAIL PROTECTED]" wrote : Dlmiles you are more than welcome to point me to 
how I could fix the versioning issuewithout messing up plugin and feature 
manifest/descriptors ;)
  | 
  | GA in the version string is how we have always done it.
  | 
  | btw. your other error is probably caused by other weird mixing of nightly 
builds ...I recommend you use a clean eclipse install and use link files to 
make sure you only point to a consistent set of plugins.
  | 
  | If the problem still persist then ping us again.

I remember now there was a problem with Hibernate's Eclipse plugin at one point 
in the past.

Well first you have to choose if a user can be expected to do what I tried.  
That is use the entire GA suite but also install the nightly for just the AS.  
You may consider this to be unsupported and incorrect use, as each release 
stream might be considered a different domain to each other (nightly, beta, GA).

I didn't want to install the entire nightly suite as I didn't want to introduce 
known bugs.

If you decide that it should be possible to do what I tried (all be it, the 
user really is on their own, just like they are on their own when they install 
any or all nightly builds anyway).  There is no major problem with the 
descriptors this time as many of the version constraint simply are not used and 
those that are seem to be setting the lower bound only.  You'll hear no gripes 
from this direction on that policy it sounds good to me.

The issue is simply with the release naming strategy of the GA builds.  The 
letter "G" comes after the number "2".  The version comparison is pretty well 
set in stone for how the eclipse platform works.  So if you want it to work 
then my best/easiest offer is to start using "1.0.0.MMDDHHMM-GA"  format 
for GA releases, and "1.0.0.MMDDHHMM-Beta99" for Beta releases, etc..  you 
can do what the hell you like after the date part. 

Bear in mind that you will need to go to version "1.0.1.MMDDHHMM-GA" for 
the next GA (i.e. at least a patch level bump) from that point on you should 
find nightly components will at least mix/run with GA components.


I agree with the issue on the other error being due to not using the rest of 
the nightly build, I did not download and take apart the nightly build to see 
why it did not gel.  Also why does Content Assist require access to 
IJBossRuntime (when I've not runtimes setup) and also why does Type Hierachy 
fail to work at all when IJBossRuntime class is apparently missing!  So what!

< rant > Gee it would be really good when you booted eclipse and it detected a 
change in plugins if it diagnosed problems an tell you which things were new 
and which things have become disconnected/disabled < / rant >


I look forward to the next GA release so that JBoss 5 can be used.  I'm sure 
when the AS is finally released that rolling a new release of JBossTool-AS will 
get done.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139666#4139666

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139666
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Single persistence.xml file with multiple EJB jars

2008-03-28 Thread rruppel
sorry, posted on the wrong topic... you can delete this two posts

thanks for the response

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139664#4139664

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139664
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Create timer -

2008-03-28 Thread rruppel

This way here it worked:



  | 
  | class Parameters{
  | void getInterval();
  | 
  | }
  | 
  | 
  | class Scheduler{
  | 
  | @IgnoreDependency
  | @EJB
  | Executor executor;
  | 
  | 
  | void schedule(){
  |   executor.schedule();
  | }
  | 
  | 
  | }
  | 
  | 
  | class Executor{
  | 
  | @EJB Parameter parameters;
  | 
  | @EJB Scheduler scheduler;
  | 
  | @TransactionAttribute(REQUIRES_NEW)
  | void schedule(){
  | schedule(parameter.getInterval());
  | 
  | }
  | 
  | void schedule(long interval){
  | timerService.createTimer(interval, "myTimer");
  | }
  | 
  | 
  | @Timeout
  | execute(Timer timer){
  | 
  | // do lots of things
  | 
  | scheduler.schedule();
  | 
  | }
  | 
  | 
  | }
  | 
  | 
  | class Servlet{
  | 
  | // not managed by container
  | void contextInitialized(){
  | 
  | Executor executor = lookup(...);
  | executor.schedule();
  | 
  | }
  | 
  | 
  | }
  | 
  | 


what I cant understand is:

why it doesnt work if I call the "schedule" method of Executor inside the 
"execute" method ?

reading again the responses I thought that the answer could be:

anonymous wrote : 
  | You are calling the schedule() method using a raw Java method call

because the "execute" method call the "schedule" method like a raw java method, 
so it wont see the "REQUIRES_NEW" attribute...

but the example I posted above works, and the "REQUIRES_NEW" attribute has to 
be above the "schedule" method (I testes changing it to the other schedule 
method or putting it on both, but only this way at the example works)

and inside the schedule method, I use the datasource1 at "getInterval" and then 
I call the method schedule

so... its strange this behavior for me

someone who knows why can explain it please?

another interesting thing is: I was upset with the fact that I would have to 
use a non-default jar (jboss-annotations-ejb3.jar) which includes the 
IgnoreDependency annotation, but I tested it without this jar and it worked 
(strange)...

thanks again for your help... the problem is solved... I just wanna understand 
now

regards,

RRR

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139662#4139662

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139662
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Single persistence.xml file with multiple EJB jars

2008-03-28 Thread rruppel

This way here it worked:



  | 
  | class Parameters{
  | void getInterval();
  | 
  | }
  | 
  | 
  | class Scheduler{
  | 
  | @IgnoreDependency
  | @EJB
  | Executor executor;
  | 
  | 
  | void schedule(){
  |   executor.schedule();
  | }
  | 
  | 
  | }
  | 
  | 
  | class Executor{
  | 
  | @EJB Parameter parameters;
  | 
  | @EJB Scheduler scheduler;
  | 
  | @TransactionAttribute(REQUIRES_NEW)
  | void schedule(){
  | schedule(parameter.getInterval());
  | 
  | }
  | 
  | void schedule(long interval){
  | timerService.createTimer(interval, "myTimer");
  | }
  | 
  | 
  | @Timeout
  | execute(Timer timer){
  | 
  | // do lots of things
  | 
  | scheduler.schedule();
  | 
  | }
  | 
  | 
  | }
  | 
  | 
  | class Servlet{
  | 
  | // not managed by container
  | void contextInitialized(){
  | 
  | Executor executor = lookup(...);
  | executor.schedule();
  | 
  | }
  | 
  | 
  | }
  | 
  | 


what I cant understand is:

why it doesnt work if I call the "schedule" method of Executor inside the 
"execute" method ?

reading again the responses I thought that the answer could be:

anonymous wrote : 
  | You are calling the schedule() method using a raw Java method call

because the "execute" method call the "schedule" method like a raw java method, 
so it wont see the "REQUIRES_NEW" attribute...

but the example I posted above works, and the "REQUIRES_NEW" attribute has to 
be above the "schedule" method (I testes changing it to the other schedule 
method or putting it on both, but only this way at the example works)

and inside the schedule method, I use the datasource1 at "getInterval" and then 
I call the method schedule

so... its strange this behavior for me

someone who knows why can explain it please?

another interesting thing is: I was upset with the fact that I would have to 
use a non-default jar (jboss-annotations-ejb3.jar) which includes the 
IgnoreDependency annotation, but I tested it without this jar and it worked 
(strange)...

thanks again for your help... the problem is solved... I just wanna understand 
now

regards,

RRR

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139661#4139661

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139661
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Single persistence.xml file with multiple EJB jars

2008-03-28 Thread jaikiran
"rruppel" wrote : 
  | 
  | let me ask a question:
  | 
  | the persistence.xml has the information about the persistence driver (if it 
should use Postgresql or Oracle, for example)
  | 
  | but, if I put this information inside persistence.xml, if I change the 
database, I will have to recompile the jars with the correct persistence.xml
  | 
  | is there a workaround to avoid recompiling the jar?
  | 
  | 

rruppel,

I believe, you would have a build process where you can handle such things. If 
you are changing a DB server vendor, then definitely you would have to rebuild 
the jar (probably not recompile your classes).

P.S: This question is actually not related to what the original poster asked. 
If you have anymore questions on this please open a new topic in the 
appropriate forum. That will help in keeping track of the original topic being 
discussed :)



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139659#4139659

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139659
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Single persistence.xml file with multiple EJB jars

2008-03-28 Thread alex.x
Hi,

I would advice to try it. It have to be possible, to change the old 
persistence.xml to the new persistence.xml. Since  your ejb tries to connect to 
the database or uses an entity-manager, I think the persistence-context will be 
refreshed. It should be similar like patching new compiled java-classes.

I hope it so.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139653#4139653

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139653
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: file extension .jsf ? instead of .jsp and .xhtml

2008-03-28 Thread [EMAIL PROTECTED]
could you report it in jira with a reference to this forum -then we won't 
forget it.

thanks

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139652#4139652

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139652
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


Re: [jboss-user] [Tomcat, HTTPD, Servlets & JSP] - How to share session across subdomain

2008-03-28 Thread Matthew Brasier
To share the session between two domains, you need to scope the session
cookie to mysite.com, rather than www.mysite.com or secure.mysite.com,
in JBoss 4.0.4 CR2 and above, you can do this with the Tomcat SSO valve,
see http://www.jboss.org/wiki/Wiki.jsp?page=SingleSignOn

I am not sure if you can do it in 4.0.3.

Matt

On Fri, 2008-03-28 at 08:27 -0400, manishrathii wrote:
> Hi Guys,
> 
> I had a problem where I wanted to share session state between http and https 
> pages (example between http://www.mysite.com and https://secure.mysite.com). 
> Naturally, in this case, the webserver will give you a different session id 
> because the session id is bound to the domain.
> 
> How can I share the session across different subdomain or all child domains ?
> 
> Is there way to set cookie domain in jboss
> 
> I am using jboss 4.0.3 version 
> 
> Any help will be highly appreciated. 
> 
> 
> 
> View the original post : 
> http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139643#4139643
> 
> Reply to the post : 
> http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139643
> ___
> jboss-user mailing list
> jboss-user@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-user
-- 

Matt Brasier

JBoss Consultant, Red Hat GPS EMEA
e: [EMAIL PROTECTED]


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


[jboss-user] [JBoss Portal] - sorry

2008-03-28 Thread Thiago do Amaral
I put new topic, and no post reply , how delete this topic ???

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139648#4139648

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139648
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Help JBOSS PORTAL, Thanks friend

2008-03-28 Thread Thiago do Amaral
Hi Peter , thanks for your help , I acessed this files, and saw de tables !! 
I am studing the jboss, and using the jboss 2.4 (version with Pentaho-demo) , 
and I think to create something in tables to portal, i still studing this !! 

Thanks for your Help ,Friend !!! 

_
WBA Developer  


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139647#4139647

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139647
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: HTTP Status 403 - Access to the requested resource has b

2008-03-28 Thread rsdickerson
I think that URL should be /sa/tasks.jsf.

You can post errata you find on the book's support site.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139646#4139646

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139646
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Thanks Friend

2008-03-28 Thread Thiago do Amaral
Hi Peter , thanks for your help , I acessed this files, and saw de tables !!
I am studing the jboss, and using the jboss 2.4 (version  with Pentaho-demo)  , 
and I think to create something in tables to portal, i still studing this !!

Thanks for your Help ,Friend !!!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139645#4139645

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139645
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - How to share session across subdomain

2008-03-28 Thread manishrathii
Hi Guys,

I had a problem where I wanted to share session state between http and https 
pages (example between http://www.mysite.com and https://secure.mysite.com). 
Naturally, in this case, the webserver will give you a different session id 
because the session id is bound to the domain.

How can I share the session across different subdomain or all child domains ?

Is there way to set cookie domain in jboss

I am using jboss 4.0.3 version 

Any help will be highly appreciated. 



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139643#4139643

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139643
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - Re: Error while shutting down JBoss

2008-03-28 Thread FrankTheTank
IIRC 1099 is the RMI connection port and maybe you have some elements 
communicating with each other via this port?

When Jboss goes down it will emit a shutdown message to it's listeners.
That would be a good point for your 'clients' to release their connections and 
prepare to shut down.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139637#4139637

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139637
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Create timer -

2008-03-28 Thread rruppel
in my case, i want keep the Timer at the Hypersonic because:

1. The production database is very busy, and sometimes the database is off (I 
mean, its avaliable "only" 98% of the time, but I cant trust on 98%, and the 
hypersonic is 99,99% avaliable, because it is used only for the timers, in 
fact, untill now the hypersonic is 100% avaliable)

2. I wont need change the default jboss configurations (the DatabaseTimer at 
ejb-deployer.xml)

and I have discovered another thing: 

the suggestion about calling the "shedule" method trough the @Local interface 
does not work!

I thought it had worked, but now I can see the difference:

when the method "contextInitialized" of my servlet class is called, this method 
isnt in a EJB Transaction... thats why it can call the "schedule" method 
without problems

so, now, inside a method managed by the container I want to use two 
datasources, this is the main problem

first, one datasource to get the interval

then, persist the timer

is there a simple way to complete the first transaction before call the 
"schedule" method?

I thought using interceptors to schedule the method after the execution of the 
first method, but then I read the docs and it says that the interceptors use 
the same transaction

I am thinking about just changing the jta aspect to allow multiple 
datasources because I can trust my data wont be corrupted (because they are 
two different transactions in fact)

thanks again for your help

regards,

RRR

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139634#4139634

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139634
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: HTTP Status 403 - Access to the requested resource has b

2008-03-28 Thread rsdickerson
Oops. I left out this change in web.xml:

anonymous wrote : 
  | 
  | 
  | Secure Area
  | /sa/*
  | GET
  | POST
  | 
  | 
  | user
  | manager
  | admin
  | participant
  | administrator
  | 
  | 
  | 

See if that helps.

Scott

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139629#4139629

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139629
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Cache: Core Edition] - custom method to get size of nodes in cache evicts some node

2008-03-28 Thread jorgemoralespou_2
Hi have a cache setup like:
/a/b/node1
/a/b/node2
/a/b/node2
/a/b/node4
...

I have a custom method to get the number of the nodes in cache. Code is as 
follows:


  | public int size(Fqn fqn) {
  |   Node child = cache.getRoot().getChild(fqn);
  |   if (child == null) return 0;
  |   return child.getChildren().size();
  | }
  | 

With this stack trace when I run this method, and step in the: 
cache.getRoot().getChild(fqn) a node gets evicted, even though it has a 
FIFOEvictionPolicy of more nodes than those actually in cache.


  | 2008-03-26 
15:27:59,882-org.jboss.cache.eviction.BaseEvictionAlgorithm.process(BaseEvictionAlgorithm.java:109)-process():
 region: /
  | 2008-03-26 
15:27:59,883-org.jboss.cache.eviction.BaseEvictionAlgorithm.processQueues(BaseEvictionAlgorithm.java:183)-processed
 0 node events in region: /
  | 2008-03-26 
15:27:59,883-org.jboss.cache.eviction.BaseEvictionAlgorithm.emptyRecycleQueue(BaseEvictionAlgorithm.java:482)-Recycle
 queue is empty
  | 2008-03-26 
15:28:00,755-org.jboss.cache.eviction.BaseEvictionAlgorithm.process(BaseEvictionAlgorithm.java:109)-process():
 region: /
  | 2008-03-26 
15:28:00,755-org.jboss.cache.eviction.BaseEvictionAlgorithm.processQueues(BaseEvictionAlgorithm.java:183)-processed
 0 node events in region: /
  | 2008-03-26 
15:28:00,755-org.jboss.cache.eviction.BaseEvictionAlgorithm.emptyRecycleQueue(BaseEvictionAlgorithm.java:482)-Recycle
 queue is empty
  | 2008-03-26 
15:28:00,755-org.jboss.cache.eviction.BaseEvictionAlgorithm.process(BaseEvictionAlgorithm.java:109)-process():
 region: /com.hp.mesims.model.cache.impl.Alumno
  | 2008-03-26 
15:28:00,755-org.jboss.cache.eviction.BaseEvictionAlgorithm.processQueues(BaseEvictionAlgorithm.java:183)-processed
 0 node events in region: /com.hp.mesims.model.cache.impl.Alumno
  | 2008-03-26 
15:28:00,756-org.jboss.cache.eviction.BaseEvictionAlgorithm.emptyRecycleQueue(BaseEvictionAlgorithm.java:482)-Recycle
 queue is empty
  | 2008-03-26 
15:28:00,756-org.jboss.cache.eviction.FIFOAlgorithm.shouldEvictNode(FIFOAlgorithm.java:42)-Deciding
 whether node in queue 
/com.hp.mesims.model.cache.impl.Alumno/com.hp.mesims.model.cache.impl.Alumno/123126
 requires eviction.
  | 2008-03-26 
15:28:01,185-org.jboss.cache.interceptors.InvocationContextInterceptor.invoke(InvocationContextInterceptor.java:40)-Invoked
 with InvocationContext [InvocationContext{methodCall=MethodName: _get; 
MethodIdInteger: 31; Args: 
(/com.hp.mesims.model.cache.impl.Alumno/com.hp.mesims.model.cache.impl.Alumno)transaction=null,
 globalTransaction=null, optionOverrides=Option{failSilently=false, 
cacheModeLocal=false, dataVersion=null, suppressLocking=false, 
lockAcquisitionTimeout=-1, forceDataGravitation=false, 
skipDataGravitation=false, forceAsynchronous=false, forceSynchronous=false}, 
originLocal=true, txHasMods=false, cacheLoaderHasMods=false}]
  | 2008-03-26 
15:28:01,202-org.jboss.cache.interceptors.InvocationContextInterceptor.getTransaction(InvocationContextInterceptor.java:130)-no
 transaction manager configured, setting tx as null.
  | 2008-03-26 
15:28:01,205-org.jboss.cache.interceptors.BaseTransactionalContextInterceptor.setTransactionalContext(BaseTransactionalContextInterceptor.java:49)-Setting
 up transactional context.
  | 2008-03-26 
15:28:01,208-org.jboss.cache.interceptors.BaseTransactionalContextInterceptor.setTransactionalContext(BaseTransactionalContextInterceptor.java:50)-Setting
 tx as null and gtx as null
  | 2008-03-26 
15:28:01,211-org.jboss.cache.interceptors.MethodDispacherInterceptor.invoke(MethodDispacherInterceptor.java:52)-Invoked
 with method call MethodName: _get; MethodIdInteger: 31; Args: 
(/com.hp.mesims.model.cache.impl.Alumno/com.hp.mesims.model.cache.impl.Alumno)
  | 2008-03-26 
15:28:01,214-org.jboss.cache.interceptors.MethodDispacherInterceptor.invoke(MethodDispacherInterceptor.java:57)-Not
 registered for any handlers, or instructed to skip call.  Passing up the chain.
  | 2008-03-26 
15:28:01,218-org.jboss.cache.interceptors.MethodDispacherInterceptor.invoke(MethodDispacherInterceptor.java:52)-Invoked
 with method call MethodName: _get; MethodIdInteger: 31; Args: 
(/com.hp.mesims.model.cache.impl.Alumno/com.hp.mesims.model.cache.impl.Alumno)
  | 2008-03-26 
15:28:01,221-org.jboss.cache.interceptors.MethodDispacherInterceptor.invoke(MethodDispacherInterceptor.java:52)-Invoked
 with method call MethodName: _get; MethodIdInteger: 31; Args: 
(/com.hp.mesims.model.cache.impl.Alumno/com.hp.mesims.model.cache.impl.Alumno)
  | 2008-03-26 
15:28:01,237-org.jboss.cache.interceptors.MethodDispacherInterceptor.invoke(MethodDispacherInterceptor.java:57)-Not
 registered for any handlers, or instructed to skip call.  Passing up the chain.
  | 2008-03-26 
15:28:01,241-org.jboss.cache.interceptors.MethodDispacherInterceptor.invoke(MethodDispacherInterceptor.java:52)-Invoked
 with method call MethodName: _get; MethodIdInteger: 31; Args: 
(/com.hp.mesims.model.cache.impl.Alumno/com.hp.mesims.model.cache.i

[jboss-user] [Security & JAAS/JBoss] - Re: basic authentication cached credential without invalidat

2008-03-28 Thread ryandavid
Also with JBoss 4.2.2 there is the same behaviour.

I tried also setting DefaultCacheTimeout to 0 in jboss-service.xml but I got 
the same result.

Viceversa under JBoss 3.2.3 the test is ok.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139625#4139625

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139625
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Cache: Core Edition] - Re: 2 node in cluster being stuck when GC runs due to JBC?

2008-03-28 Thread mircea.markus
As cache is in SYNC mode I would say that this is 'normal' behavior. The non-GC 
cache waits for acknowledgment from the frozen cache until it received it or 
times out (SyncReplTimeout set to 15secs in your case)
If you cannot tune the GC to avoid "Stop the world" scenarios, here are some 
suggestions from a cache perspective:
1) use ASYNC replication if business allows it. This way the non-GC cache won't 
wait for the frozen cache to ACK 
2) reduce the SyncReplTimeout. If so the non-GC cache will throw an exception 
on operation, and give quicker feedback to the user.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139621#4139621

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139621
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: changing destinations-service.xml does not bound/unbound

2008-03-28 Thread timfox
"subrata_jboss" wrote : Thanks it works.
  | 
  | if several client using several queue , restarting all the queue will cause
  | some problem.

The unit of redeployment is the file. So if you want to redeploy different sets 
of queues separately you can put them in different files.

BTW this is no different from JBoss MQ.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139620#4139620

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139620
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: changing destinations-service.xml does not bound/unbound

2008-03-28 Thread subrata_jboss
Thanks it works.

But i am wondering if it cause any other problem if i move it to deploy 
directory.

and also

if several client using several queue , restarting all the queue will cause
some problem.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139619#4139619

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139619
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Cache: Core Edition] - 2 node in cluster being stuck when GC runs due to JBC?

2008-03-28 Thread jorgemoralespou_2
Hi,
We have a 2 node cluster. The only clustering is done through JBC, with 
configurations like the one below. We are seeing that when in one node there is 
a FullGC with a 10 seconds "Stop the world", requests in the other node get 
delayed by 10 seconds. Since we only have the cache shared between this 2 
nodes, this has to be the cause. 
Have anyone seen behaviour like this before? is it normal? how can I avoid it?



  | 
  | 
  |   jboss:service=Naming
  |   jboss:service=TransactionManager
  |   jboss.jca:name=jdbc/som,service=DataSourceBinding
  |   
  |   jboss:service=DeploymentService
  |   
  |   
  |  org.jboss.cache.JBossTransactionManagerLookup
  |   
  | 
  |   NONE
  |   REPL_SYNC
  |   false
  |   0
  |   0
  |   SOMCoreCache-Cluster
  | 
  |   
  |  
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  |  
  |   
  | 
  |   true
  |   15000
  |   15000
  |   1
  |   true
  |   false
  | 
  |   
  |  
  | false
  | /
  | true
  | 
  |org.jboss.cache.loader.JDBCCacheLoader
  |
  |   cache.jdbc.datasource=java:jdbc/som
  |   cache.jdbc.table.name=core_data
  |   cache.jdbc.table.create=true
  |   cache.jdbc.table.drop=false
  |   cache.jdbc.table.primarykey=jbosscache_pk
  |   cache.jdbc.fqn.column=fqn
  |   cache.jdbc.fqn.type=varchar(255)
  |   cache.jdbc.node.column=node
  |   cache.jdbc.node.type=blob
  |   cache.jdbc.parent.column=parent
  |
  |true
  |true
  |false
  | 
  |  
  |   
  | 
  |
  | 
  | 
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139618#4139618

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139618
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering/JBoss] - How do servlets communicate with session beans across cluste

2008-03-28 Thread yugantshah
Hello,

I  am working on a project wherein I have to access beans that are being 
deployed in different clusters.

Consider Cluster A containing web components.
Cluster B containing EJB components.

How do I lookup the session bean from the servlet.
Is there any specific configuration required.
Is there any document/ebook/website that can give information on this.
Any help on this would be appreciated.

Thanks in advance.
Yugant Shah
   

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139613#4139613

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139613
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - need sample program for web service

2008-03-28 Thread nareshshah
I am new to WS and  using jboss-portal-2.6.3.GA server. Does this server 
support the WS ? Can i get link where i can start with sample WS program ?

Actually i want WS using EJB ...
Thankx in advance.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139614#4139614

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139614
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Security & JAAS/JBoss] - Re: basic authentication cached credential without invalidat

2008-03-28 Thread ryandavid
I saw the same behaviour also with JBoss 4.0.3SP1

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139609#4139609

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139609
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - problem with action and variables

2008-03-28 Thread ice_casa
My problem is :
i had a variable as this :



and and action that set a value of this variable 

  | public class UserOfGroupActionHandler implements ActionHandler  {   
  | public static String actors = "";  
  | public void execute(ExecutionContext executionContext) {
  | ...
  | ..
  | .
  | executionContext.setVariable("varGroup", actors);
  | }
  | 

in my process definition a have this :


  |   
  |
  |
  | 
  | 

in my logging appserver i understand that the action don t call the class and 
the group are not evaluated!


thank you for your help

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139608#4139608

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139608
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - problem with actionhandler and variables

2008-03-28 Thread ice_casa
sorry for my firts post
My problem is :
i had a variable as this :



and and action that set a value of this variable 

  | public class UserOfGroupActionHandler implements ActionHandler  {   
  | public static String actors = "";  
  | public void execute(ExecutionContext executionContext) {
  | ...
  | ..
  | .
  | executionContext.setVariable("varGroup", actors);
  | }
  | 

in my process definition a have this :


  |   
  |
  |
  | 
  | 

in my logging appserver i understand that the action don t call the class and 
the group are not evaluated!


thank you for your help

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139606#4139606

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139606
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - problem with actionhandler and variables

2008-03-28 Thread ice_casa
My problem is :
had a variable as this :




and and action that set a value of this variable 

public class UserOfGroupActionHandler implements ActionHandler  {   
public static String actors = "";  
public void execute(ExecutionContext executionContext) {
...
..
.
executionContext.setVariable("group", actors);
}


in my process definition a have this :



 
   



in my logging appserver i understand that the action don t call the class and 
the group are not evaluated!


thank you for your help

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139605#4139605

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139605
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: How to - Portal 2.6.4 and Rich Faces integration

2008-03-28 Thread jvitor
You can edit java_opts on run.bat to increase your PermGen space, example 
values:

set JAVA_OPTS=%JAVA_OPTS% -Xms512m -Xmx1024m -XX:PermSize=128m 
-XX:MaxPermSize=256m


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139603#4139603

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139603
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - in active Session Timeout problem in Jboss portal

2008-03-28 Thread anil4376
Hi 

   Iam using Jboss portal 2.4 for developing my application..  in my 
application we have two kind of requests like 

 1. portlet request 
 2. servlet request (Ajax Call)

In jboss Application Server i configure portal service , so that iam getting 
portal container, and jboss also has tomcat container for handling servlet 
request.. 

   when iam runing the load test on servlet request(Ajax call) for 1 hr , it is 
failing once 30 min of time is over this is happened because of timeout in 
portal.. 

  can any body tel me the solution how can i set the time out value which is 
applicable for both servlet and portlet requests.. 

   in portal.sar/portal-server.war/WEB-INF/web.xnl has session timeout of 30 
min this is for portlet requests...

  in jbossweb-tomcat55.sar\conf\web.xml has session time value of 30 min.. 

  but session time should not happen for my application when it is accessing 
any one of the request for more than 30 min.. 

here one request is executing more than 30 min but the other guy was sittling 
idle so that , he is timeing out from the application.. 

waiting for your valueble reply.

Thanks in advance 
Anil

  

   

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139601#4139601

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139601
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: file extension .jsf ? instead of .jsp and .xhtml

2008-03-28 Thread Antoine_h
To check better :
 - I create a new file (simple new file), with .jsf extension
 - I copied into it the exact whole content of a .xhtml file that works well.

=> the file is set as a JSP (the icon is jsp, the default editor is JBoss Tool 
JSP editor).

if I open it with "open with", and choose JBoss Tool HTML editor.
idem : no code completion, no code validation etc...
note : the icon of the editor window is "green with htm"... and not "blue with 
jsp"

so, it seems there is something that prevent the editor to run with this file 
as a jsf file.

for the time being, I keep on with .xhtml file, because I need to go on with my 
work.

but I think .jsf files should be better.
xhtml is a great standard... but it now means everything... so it means 
nothing...
I mean : if someone want to search in files... it may be usefull to filter on 
the jsf file from other types of files... with the .jsf.

If I can help with some testing ...
I will try again the .jsf  as soon as it can be possible... 

Thanks,







View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139596#4139596

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139596
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: changing destinations-service.xml does not bound/unbound

2008-03-28 Thread hendra_netm
I believe you can get the automatic behaviour, if you put the 
destinations-service in the deploy directory (MESSAGING_HOME/deploy/), not in 
jboss-messaging.sar directory (MESSAGING_HOME/deploy/jboss-messaging.sar/).

Hope it helps

Regards,
Hendra

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139591#4139591

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139591
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - Error while shutting down JBoss

2008-03-28 Thread vishal_jboss
Hello members,

I am using JBoss eap 4.3 and am starting JBoss using 

./run.sh -c default -b 0.0.0.0

The server starts without any issues, But when I try to shutdown JBoss I get 
the following error:

# ./shutdown.sh -S
Exception in thread "main" javax.naming.CommunicationException: Could not 
obtain connection to any of these urls: localhost:1099 [Root exception is 
javax.naming.CommunicationException: Failed to connect to server localhost:1099 
[Root exception is javax.naming.ServiceUnavailableException: Failed to connect 
to server localhost:1099 [Root exception is java.net.ConnectException: 
Connection refused]]]
  | at 
org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1416)
  | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:596)
  | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:589)
  | at javax.naming.InitialContext.lookup(InitialContext.java:351)
  | at org.jboss.Shutdown.main(Shutdown.java:214)
  | Caused by: javax.naming.CommunicationException: Failed to connect to server 
localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: 
Failed to connect to server localhost:1099 [Root exception is 
java.net.ConnectException: Connection refused]]
  | at 
org.jnp.interfaces.NamingContext.getServer(NamingContext.java:269)
  | at 
org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1387)
  | ... 4 more
  | Caused by: javax.naming.ServiceUnavailableException: Failed to connect to 
server localhost:1099 [Root exception is java.net.ConnectException: Connection 
refused]
  | at 
org.jnp.interfaces.NamingContext.getServer(NamingContext.java:243)
  | ... 5 more
  | Caused by: java.net.ConnectException: Connection refused
  | at java.net.PlainSocketImpl.socketConnect(Native Method)
  | at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
  | at 
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
  | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
  | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
  | at java.net.Socket.connect(Socket.java:520)
  | at java.net.Socket.connect(Socket.java:470)
  | at java.net.Socket.(Socket.java:367)
  | at java.net.Socket.(Socket.java:267)
  | at 
org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:84)
  | at 
org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:77)
  | at 
org.jnp.interfaces.NamingContext.getServer(NamingContext.java:239)
  | ... 5 more
Can somebody explain why is this happening?

Thank you
Vishal




View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139587#4139587

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139587
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Cache: Core Edition] - Basic Question in using Cache Loaders??

2008-03-28 Thread tiroo4u
Hi all,

I am trying to use the RmiDelegatingCacheLoader for my application,

Can any one let me know how do i configure it??? Do i need to create an xml 
file in my deploy directory in JBOSS AS ??Or how do i do it programatically.

Thanks in advance
Tiru

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139586#4139586

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139586
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Cache: Core Edition] - Re: How to communicate between Jboss Appserver and Jboss Cac

2008-03-28 Thread tiroo4u
Hi Manik,

I am trying to use the RmiDelegatingCacheLoader for creating the cache isntance 
remotely.I went through the documentation .I have a basic doubt in the same. 
Can you please let me know how do i do the configuration??

Do i need to put the configuration file in my jBOSS appserver?? if so, how do i 
access the configuration??Or else can you please tell me the basics of how do 
we use the cache loaders??

Looking forward for your response

Thanks,
Tiru

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139584#4139584

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139584
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Database Based Sessions

2008-03-28 Thread vishal_jboss
Dear community members,

I was taking a look at 
http://www.caucho.com/resin-3.0/config/sessions.xtp - a documentary regarding 
sessions in resin.

I was just pondering if JBoss has a Way to store sessions in a/any database..
This could help maintain session data evenif the application server crashes and 
whenever you try to get a session data of a user next-time - it will return the 
users latest session information from the database..

I would appreciate any any discussions/suggestions on this...

Thank you,
Vishal




View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139583#4139583

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139583
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Deployng war file: Using InvokerServlet in JBoss 4.2.2

2008-03-28 Thread dilipmavireddi
"ramboid" wrote : With JBoss 4.2.2, can I use the InvokerServlet in the 
 section of my web.xml? With JBoss 4.0.5GA, I was able to 
create war deployments with a web xml that would map the servlets as follows: 
  | 
  | invoker 
  |  
  | org.apache.catalina.servlets.InvokerServlet 
  |  
  | 2 
  | 
  |  
  | invoker 
  | /servlet/* 
  |  
  | 
  | But in JBoss 4.2.2 I must explicitly add a mapping for each servlet in the 
web.xml file instead of just using the invoker 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139582#4139582

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139582
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Security & JAAS/JBoss] - Jboss login and portlet login

2008-03-28 Thread snon

Hi,

JBoss Portal 2.4.1
JBoss 4.0.4

I have a portal, with portlets containing webapps. I need to be able to use the 
login and password from the jboss portal login page in order to log into my 
other apps.
That's why I'm trying to develop a servlet in order to store the username and 
password in the session while login in my portal. I found something on the wiki 
but I'm having a few problem with the portletlogin :
http://wiki.jboss.org/wiki/Wiki.jsp?page=PortletLogin

1) Why do we have 2 servlets ? (savelogin and autologin servlet)
Can't we do both actions in one servlet ?


2) How the connection between the autologin and savelogin servlet is done ?

String autologinURL = req.getContextPath() + "/auth/";
resp.sendRedirect(resp.encodeRedirectURL(autologinURL));

There is no reference to autologin servlet...

3) In the autologin servlet : where do we put the code ? In which method ?


Thanks for the answers.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139580#4139580

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139580
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Cache: Core Edition] - Re: basic question on starting a jboss cache

2008-03-28 Thread radomehta
Thanks a lot bstansberry. Your post was very useful for me. 

According to what u said , I have now configured my hibernate as:
  
  
  
  


But when I run my application, I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: 
org/jboss/cache/TransactionManagerLookup
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
at java.lang.Class.getConstructor0(Class.java:2671)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at 
org.hibernate.cfg.SettingsFactory.createCacheProvider(SettingsFactory.java:375)
.

So in my configuration file I added another configuration:


Now I get the error:
Exception in thread "main" javax.persistence.PersistenceException: 
org.hibernate.HibernateException: Could not instantiate 
TransactionManagerLookup 
'org.jboss.cache.transaction.GenericTransactionManagerLookup'
at 
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:720)
at 
org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:121)
at 
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:51)
at 
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:33)
at TestPersistence.main(TestPersistence.java:18)
Caused by: org.hibernate.HibernateException: Could not instantiate 
TransactionManagerLookup 
'org.jboss.cache.transaction.GenericTransactionManagerLookup'
at 
org.hibernate.transaction.TransactionManagerLookupFactory.getTransactionManagerLookup(TransactionManagerLookupFactory.java:47)
at 
org.hibernate.cfg.SettingsFactory.createTransactionManagerLookup(SettingsFactory.java:422)
at 
org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:140)
at 
org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2073)
at 
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1298)
at 
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:713)
... 4 more


What could be the problem?

  

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139578#4139578

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139578
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Deployng war file: Using InvokerServlet in JBoss 4.2.2

2008-03-28 Thread dilipmavireddi
"ramboid" wrote : With JBoss 4.2.2, can I use the InvokerServlet in the 
 section of my web.xml? With JBoss 4.0.5GA, I was able to 
create war deployments with a web xml that would map the servlets as follows: 
  | 
  | invoker 
  |  
  | org.apache.catalina.servlets.InvokerServlet 
  |  
  | 2 
  | 
  |  
  | invoker 
  | /servlet/* 
  |  
  | 
  | But in JBoss 4.2.2 I must explicitly add a mapping for each servlet in the 
web.xml file instead of just using the invoker 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139577#4139577

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139577
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Dependency bug with multiple modules in EAR

2008-03-28 Thread dahm
"jaikiran" wrote : Going by what is described here and the exception 
stacktrace, this appears to be the same issue as what has been reported in 
http://jira.jboss.com/jira/browse/JBAS-5049
  | 
  | 

Yes, that's exactly the behavior I noticed. Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139570#4139570

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139570
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [The Lizzard's corner] - Re: binding problem

2008-03-28 Thread jwenting
check your port assignments.
Some IDEs will open ports for things like remote debuggers and autoupdate 
options that can conflict with ports needed by other applications.

See if JBoss will start when Notbeans is shut down, then try to start Notbeans 
with JBoss running.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139562#4139562

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139562
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [The Lizzard's corner] - Re: Ruby versus Java

2008-03-28 Thread jwenting
"treespace" wrote : I bought a Ruby book and flipped through some others. One 
thing struck me was the amount of time they generally spend saying "how great 
the language is" with hardly a word on "how the language is great".  In fact 
they appear to deliberately dodge what's good about it and fail to address 
what's wrong with Ruby. 
  | 

Noticed much the same, but I doubt it's a deliberate oversight.
Rather their conviction is such that they're under the impression that the 
reason for Ruby's greatness is so blatantly obvious it needs no further 
explanation.

anonymous wrote : 
  | Clearly, Groovy and a few MVC generator tools are a better option, Grails 
for example. This way you can cleanly interface with type-safe, tested and 
optimized and reusable Java classes. I don't want to use Groovy for all my code 
and I sure as heck don't want to use Ruby on Rails. 
  | 

Personal preference (mind I agree with you on not wanting either Groovy or 
Rails).

anonymous wrote : 
  | BTW, why does Java have so many more books than Ruby? Poor Ruby! They 
certainly must have all the facilities that the Java books represent, they just 
don't have any darn documentation. Too bad:)
  | 

Ask a Ruby guy and he'll tell you that the large volume of Java books is clear 
evidence that Java is a poor language that's overly complicated to need so much 
documentation for people to know how to use it.
He'll tell you that Ruby is so easy and flexible that really no documentation 
is needed and the fact that you want a book probably shows that you're not 
worthy.

Ruby is a fun little language that has its place, but its advocates are indeed 
religious zealots more than anything (and more than Java advocates ever were).
I've employed Ruby to do work in preparation for Java processes, and it works 
well for that as an alternative to (for example) Perl or Bash scripts.
For some things it's faster to write something in Ruby than Java too.
For example I needed an application that at regular intervals polls an ftp 
server, retrieves all files from there that were not there the last time it 
checked, and passes on those files to a Java process for further work.
I found it easier to write that in Ruby (which I'd not used for serious work 
before) than Java, had the first version working in under 2 hours (which was 
refined over the next few days as requirements became more clear just as a Java 
process would).


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139560#4139560

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139560
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Performance Tuning] - Performance Tuning EJB 3.0 in JBoss

2008-03-28 Thread the666pack
Hello,

so my application uses ejb 3.0 persistent entities. i am doing some simple 
performance studies of different application servers and realized that jboss is 
performing bad, when it is about to write/delete persistent entities. 

I believe it is a configuration issue and as far as i can see, the bottleneck 
is the persistent entity pooling and caching. so my question is how can i tune 
the cache and pool used for 3.0 entity beans to make my jboss server perform 
better? 

according to the documentation i can change these settings:

#

Container-managed persistence entity version 2.0 = Standard CMP 2.x EntityBean
#

Container-managed persistence entity version 1.1 = Standard CMP EntityBean
#

Bean-managed persistence entity = Standard BMP EntityBean

but i did not find a setting for ejb 3.0 beans. By the way i am using JBoss 
4.2.1.

any help is appreciated, thanks a lot!

greetings,

mario

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139561#4139561

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139561
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


  1   2   >