[jboss-user] [JBoss jBPM] - Re: Mutiple timers in a task node problem

2009-05-01 Thread trouby
Hello,

I had exactly the same problem with multiple timers in the same task node,

Is there a solution for that problem? is it a known bug?



Thanks,


Asaf.

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

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


[jboss-user] [JBoss jBPM] - Re: Finding process instances by vars

2009-02-04 Thread trouby
Eh,

Sometime too much thinking leads to complicating ideas,


I just performed a select on the variables, each variable references the 
process its attached to so it's easy to fetch the process from the loaded var.



Asaf.

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

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


[jboss-user] [JBoss jBPM] - Re: Finding process instances by vars

2009-01-29 Thread trouby
Yes,
I thought so, but I have no idea how to do that since there is no direct 
association between processinstance-vars, there's a context in the middle that 
is associated with a MAP of vars,



Is there any example or something similar somewhere?



Many thanks,


Asaf.

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

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


[jboss-user] [JBoss jBPM] - Re: Finding process instances by vars

2009-01-28 Thread trouby
I like storing the data in the process itself,
The process itself makes a usage of the process vars (for decisions for 
example) and it makes my programming much easier (instead of loading few domain 
models I just load the process and thats it)

I have thousands of processes, having almost duplicated entries is not fun to 
maintain.


Well, back to this thread, is there a way to retrieve a process by var? are 
there any instructions how to do that?

It seems to be pretty complicated since there is the context between the 
process instance and its vars.


Any clue?


Thanks,

Asaf.

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

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


[jboss-user] [JBoss jBPM] - Finding process instances by vars

2008-12-29 Thread trouby
Hey,

Is there an easy way to find process instances by variable namessvalues?



Thanks,


Asaf.

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

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


[jboss-user] [JBoss jBPM] - Process comments

2008-12-22 Thread trouby
Hey,

I can see that it's possible to add comment(s) to a task instance,


Is there any way to retrieve the list of comments of the entire process 
(comments from all previous tasks?)



I couldn't find any methods related to that,


Thanks,


Asaf.

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

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


[jboss-user] [JBoss jBPM] - Re: Process comments

2008-12-22 Thread trouby
Yeah, sounds good enough,


Thanks,

Asaf.

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

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


[jboss-user] [JBoss jBPM] - Storing process instance creator

2008-12-15 Thread trouby
Hey,

As apart of the identity, I think it is valuable to allow the option to store 
the creator of a process (in case a process was started by a person) and add 
functionality like retrieving all processes that were started of a certain 
person,


It is common to retrieve processes via the creator in order to track process 
instance status,


Currently I store the creator as a variable and perform queries in order to 
load processes by a certain variable value,

I guess this is the only way to do it right now, correct?



Thanks,

Asaf.

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

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


[jboss-user] [JBoss jBPM] - Re: Tying domain objects to JBPM Processes

2008-12-15 Thread trouby
Well,
It depends on your flow,

If you first work with your data models and want to load the process based on 
the active DOs you are working with, store the JBPM key/id in your data model,


If your flow start with working on business processes, and based on the 
business processes you want to load certain DOs, then store the keys of the DOs 
in the business process,







Asaf.


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

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


[jboss-user] [JBoss jBPM] - Re: Storing process instance creator

2008-12-15 Thread trouby
Thanks for the tip,

Well, it depends on the requirements I guess,
I have a system where the requester want to track what's happening with their 
processes and understand where a process stuck, why, etc...

So I have somehow to display the requester only the relevant processes,



Thanks,


Asaf.

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

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


[jboss-user] [JBoss jBPM] - Re: How to define a process definition that has multiples su

2008-12-15 Thread trouby
Where is that example?
I would like to take a look at it as well,



Thanks.

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

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


[jboss-user] [JBoss jBPM] - java.sql.SQLException: You cannot commit during a managed tr

2008-11-26 Thread trouby
Hey,

I have created a very simple seam component that injects the jbpmContext and 
uses it to create the schema, this is the code:



  | @name(workflowManager)
  | public class WorkflowManager {
  | 
  | @In
  | private JbpmContext jbpmContext;
  | 
  | 
  | public void createJbpmSchema() {
  |   jbpmContext.getJbpmConfiguration().createSchema()
  | }
  | }
  | 


When invoked, I get the following exception:

  | 21:13:32,867 ERROR [SchemaExport] schema export unsuccessful
  | java.sql.SQLException: You cannot commit during a managed transaction!
  | at 
org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.jdbcCommit(BaseWrapperManagedConnection.java:581)
  | at 
org.jboss.resource.adapter.jdbc.WrappedConnection.commit(WrappedConnection.java:482)
  | at 
org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.prepare(ManagedProviderConnectionHelper.java:30)
  | at 
org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:180)
  | at 
org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:133)
  | ...
  | 


I looked at the source code of  the createSchema method,
Seems like it's just invoking jbpmContext.close(); at the end.


My JBPM/hibernate configured in the right way not to start/close a transaction 
it didn't start.



What is the reason of the exception?


Thanks,


Asaf.

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

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


[jboss-user] [JBoss jBPM] - Re: java.sql.SQLException: You cannot commit during a manage

2008-11-26 Thread trouby
Hey,
Thanks for the quick reply,

I know that, but according to:
7.1.3. Managed transactions in the manual, JBPM can be configured not to commit 
transactions at all when jbpmContext.close() is invoked.

This is also described here:
http://www.jboss.org/community/docs/DOC-11090


So what causes JBPM to commit the transaction by itself and not leave it to the 
container?



Thanks,

Asaf.


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

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


[jboss-user] [JBoss jBPM] - Re: java.sql.SQLException: You cannot commit during a manage

2008-11-26 Thread trouby
Hey,

Not that I'm very familiar with JBPM's source code but here's the code of 
createSchema:


  | public void createSchema(String jbpmContextName) {
  | JbpmContext jbpmContext = createJbpmContext(jbpmContextName);
  | try {
  |   Services services = jbpmContext.getServices();
  |   DbPersistenceServiceFactory persistenceServiceFactory = 
(DbPersistenceServiceFactory) 
services.getServiceFactory(Services.SERVICENAME_PERSISTENCE);
  |   persistenceServiceFactory.createSchema();
  | } finally {
  |   jbpmContext.close();
  | }
  |   }
  | 


I didn't see any JBPM code that commits the transaction, seems like 
persistenceServiceFactory.createSchema(); invokes the schema creation via 
Hibernate's SchemaExport class which probably somewhere perform the commit by 
itself,

I didn't go to deep but if somone is familiar with it then I'll be glad for a 
solution,


Otherwise, I'll try to invoke the method over a non-CMT,


Thanks a lot :)


Asaf.

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

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


[jboss-user] [JBoss jBPM] - Re: java.sql.SQLException: You cannot commit during a manage

2008-11-26 Thread trouby
Yeah,
Probably because it involves of creating tables, so Hibernate commits it just 
after,


Well, I'll find another solution it's not a big deal, I just wanted to make 
sure that this is only for the schema related functionality and JBPM is not 
going to manage the transactions by itself when dealing with processes:-)





Thanks a lot, Salaboy! :-)

Asaf.

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

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


[jboss-user] [EJB/JBoss] - Problem with transaction management.

2008-11-26 Thread trouby
Hey,

I have a stateless EJB3 class that configured with a timer,

When the timer times out, it invokes several methods,
At the end, it perform some modifications via EntityManager and commits the 
transaction,


My problem is that in the middle of that long running method that times out, I 
have a some 'plugins' that loads other EJBs via the InitialContext, 

When one of the methods in the loaded EJBs throw exception, it seems like the 
container rollback the transaction,

When the failure thrown to the original method and tries to perform some 
modifications in the database via EntityManager, I get the following error:


  | 23:13:38,858 ERROR [TimerImpl] Error invoking 
ejbTimeout:javax.ejb.EJBException: 
javax.persistence.TransactionRequiredException: Entity
  | Manager must be access within a transaction
  | 


If non of the internal ejbs throw exceptions everything works properly and the 
long running method succeed to perform database modifications



I guess nested transactions are not supported, is there any other way to handle 
such a situation?



Thanks in advanced,


Asaf.

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

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


[jboss-user] [JBoss jBPM] - JBPM and Managed Container Transactions

2008-11-24 Thread trouby
Hey,
I am trying to make JBPM to work smoothly through EJB3 components with no 
success,

After invoking very simple methods through a stateless EJB3 such as:


  | ProcessInstance pi = 
jbpmContext.loadProcessInstance(spmlTask.getWorkflowProcessId());
  | 


I'm getting errors such as:

  | 23:13:38,858 ERROR [TimerImpl] Error invoking ejbTimeout: 
javax.ejb.EJBException: javax.persistence.TransactionRequiredException: Entity
  | Manager must be access within a transaction
  | 


I assumed this is due to the fact that somewhere JBPM commits the transaction 
so invocations after that causes the exception,

I have followed section 7.1.3. Managed transactions in the manual:
anonymous wrote : 
  | A stateless session facade in front of jBPM is a good practice. The easiest 
way on how to bind the jbpm transaction to the container transaction is to make 
sure that the hibernate configuration used by jbpm refers to an xa-datasource. 
So jbpm will have its own hibernate session, there will only be 1 jdbc 
connection and 1 transaction. 
  | 

But setting it up is not clear enough, I tried to configure JBPM as follows:


hibernate.cfg.xml

  | ...
  | 
  | property name=connection.datasourcejava:/veloDatasource/property
  | property 
name=transaction.factory_classorg.hibernate.transaction.JTATransactionFactory/property
  | property 
name=transaction.manager_lookup_classorg.hibernate.transaction.JBossTransactionManagerLookup/property
  | 
  | ...
  | 


jbpm.cfg.xml

  | jbpm-context
  | service name=persistence
  |factory
  |   bean class=org.jbpm.persistence.db.DbPersistenceServiceFactory
  |  field name=isTransactionEnabledfalse//field
  |   /bean
  |/factory
  | /service
  | service name=tx factory=org.jbpm.tx.TxServiceFactory /
  | 
  | ...
  | 



where veloDataSource is defined in persistence.xml as follows

  | local-tx-datasource
  |   jndi-nameveloDatasource/jndi-name
  |   connection-urljdbc:mysql://localhost:3306/velo/connection-url
  |   driver-classcom.mysql.jdbc.Driver/driver-class
  |   user-nameroot/user-name
  |   passwordpassword/password
  |/local-tx-datasource
  | 



Seems like JBPM is not using the MC transaction and if I understand correctly, 
JBPM commits the transaction and that what causes the persistence unit to fail 
later on.,



Can anyone give me a hand how to proceed from here?



Man thanks,


Asaf.

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

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


[jboss-user] [JBossMQ] - MessageDriven component stops listening to the queue

2008-10-28 Thread trouby
Hey,

We have a small EJB3 with a method based on timer that sends JMS messages as 
follows:


  | @Stateless()
  | public class ScannerBean implements ScannerLocal {
  | @Timeout
  | public void sendMessages(Timer timer) {
  | InitialContext ctx = new InitialContext();
  | queue = (Queue) ctx.lookup(queue/velo/TasksDefaultQueue);
  | QueueConnectionFactory factory = (QueueConnectionFactory) 
ctx.lookup(ConnectionFactory);
  | connection = factory.createQueueConnection();
  | session = 
connection.createQueueSession(false,QueueSession.AUTO_ACKNOWLEDGE);
  | messageProducer = session.createProducer(queue);
  | messageProducer.setDeliveryMode(DeliveryMode.NON_PERSISTENT);
  | BytesMessage bytesMsg = session.createBytesMessage();
  | bytesMsg.setLongProperty(uniqueId, uniqueId);
  | messageProducer.send(bytesMsg);
  | }
  | }
  | 



This component seems to work just fine and the messages are successfully stored 
on the JMS queue.



We have a very simple MessageDriven bean that listens to a JMS queue as follows:


  | @MessageDriven(name=TaskExecuterMessageBean, activationConfig = {
  | @ActivationConfigProperty(propertyName = acknowledgeMode, 
propertyValue = Auto-acknowledge),
  | @ActivationConfigProperty(propertyName=destinationType, 
propertyValue=javax.jms.Queue),
  | @ActivationConfigProperty(propertyName=destination, 
propertyValue=queue/velo/TasksDefaultQueue)
  | })
  | public class MDBTaskExecuter implements MessageListener {
  | 
  | @EJB
  | public SomeManager someManager;
  | 
  | @Resource
  | private MessageDrivenContext context;
  | 
  | public void onMessage(Message msg) {
  |   long uniqueId = bm.getLongProperty(uniqueId);
  | 
  |  try{
  |   someManager.process(uniqueId);
  |  }catch(Exception e) {
  |context.setRollbackOnly();
  |  }
  | }
  | }
  | 



Seems like this MessageDriven component suddenly stops receiving the messages 
and the queue grows up with not handled messages.

What may cause the MessageDriven bean suddenly stops working? is it a bug? 
there are any opened issues about this problem?




Thanks in advanced,

Asaf.

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

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


[jboss-user] [JBossWS] - Re: communicating with WS in c# thorugh Java - encoding prob

2008-03-25 Thread trouby
Great,

I wouldn't never imagine that this flag is related to WS encoding,


Many thanks,

Asaf.

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

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


[jboss-user] [JBossWS] - Re: communicating with WS in c# thorugh Java - encoding prob

2008-03-17 Thread trouby
Hey,

I performed some tests and now I am sure there's encoding problem but I'm not 
sure on which size,

I've created the simplest WS .NET method with one string parameter and after 
calling the WS method, on the .NET side I see gibberish instead of UTF8 encoded 
string,


Please note, English works fine, the problem occurs only in other languages (in 
my situation it's hebrew)


Is there anything I can do? 
I'm clueless, I'm finding myself encoding/decoding strings in Base64 because of 
this issue :(



Many thanks,

Asaf.

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

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


[jboss-user] [JBossWS] - Re: communicating with WS in c# thorugh Java - encoding prob

2008-03-14 Thread trouby
Hey,

Well, something is wrong,
I have a file saved as unicode, I read the content of the file into a java 
String variable and pass it to the WS,

I see gibberish on the other side (C#), 


Is there any way to investigate it? are there any WS testcases in C#/.NET and 
WS client code in java so I can take a look and see what's wrong ?


I have an assumption that the content gets encoded more than once on the way 
for some reason,


Many thanks,

Asaf.

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

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


[jboss-user] [JBossWS] - communicating with WS in c# thorugh Java - encoding problem

2008-03-13 Thread trouby
Hey,

I have a simple .NET ws based on WCF technology with some simple method which 
expect an object that has few string properties,


I have created the relevant artifacts with wsimport and everything works as 
expected,

The string property is encoded with UTF-8, for some reason, on the .NET ws side 
the strings are not getting decoded correctly. when I dump the strings I see 
gibberish,

I'm not sure why but I was expecting a UTF-8 content on the WS side,


The method calls to the WS are being invoked through Jboss EJB using the WS 
2.0.3 package,


Many thanks,

Asaf.

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

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


[jboss-user] [JBoss jBPM] - Re: Less coding by custom nodes/jrules/etc...

2008-03-04 Thread trouby
Hey,

That what I was looking for,
It doesn't really matter for me if the logic is done via an action or a custom 
node type as long as there's a possibility to create 'different' gui nodes,


Where can I find the example? including the GPD customizations?

and btw, is it also possible to modify the properties of the node via the gui? 
like customizing the parameters of the actions through the gui (properties 
view) instead of typing the parameters in free text?



Many thanks,

Asaf.

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

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


[jboss-user] [JBoss jBPM] - Re: Less coding by custom nodes/jrules/etc...

2008-02-29 Thread trouby
Cool, 

btw, the reason I was trying to do everything through different type of nodes 
is the designer,

At the end, I would like to see a designer with different type of nodes that 
are draggable,  and have different behavior,

With the suggested way here, in the future, the designer will still only have 1 
generic type node (as available now) but with different actions, which is not 
nice as having different guitable nodes :-)


Cool, I'll use actions for now as new nodes seems to be too complicated 

(although I'm pretty sure in the doc it is written that it is possible to add 
new nodes easily)


Thanks for the answers guys, really.

Thanks,

Asaf.



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

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


[jboss-user] [JBoss jBPM] - Re: Less coding by custom nodes/jrules/etc...

2008-02-28 Thread trouby
Hey,

Well, the designer is not so easily extend able, I better leave it for now,


What about extending the default node, but having more tags specified in its 
body? aint there an example for that? I hope there is, I also hope that the 
engine delegates the XML tags to the node execution itself so I can read them, 
if this is possible, then great.

Anyone?


Thanks,
Asaf.

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

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


[jboss-user] [JBoss jBPM] - Less coding by custom nodes/jrules/etc...

2008-02-27 Thread trouby
Hey,

I'm finding myself writing a lot of processes nodes that make a usage of the 
same java code but with very simple modifications,

Then, I think writing custom nodes that will receive information(probably as 
parameters of the custom nodes) when drawing the node will solve the code 
re-write,

Also, I assume Jboss rules can be used with JBPM to simplify rules instead of 
using java code as well,


My mission is that I would really love to see how non-developers can use our 
platform to define processes without the need to write Java code at the backend.


So here are my questions:
1) Is it possible to create custom Nodes and set some parameters when drawing 
the node in the process? In the doc of JBPM it is written that it's easy but I 
couldn't find any samples, etc...
2) After browsing the forum a little bit, I can see that extending the designer 
is currently not an easy task, is it going to be changed? will it be easier in 
the future? what's the plans here?
3) Are there any other usages/samples of using JBPM with jboss rules except the 
small example in the wiki?


For the start, I'll be glad to write the custom nodes, and use them in the 
processdefinition xml file manually, later on, when it'll be possible, I'll 
define these custom nodes on the designer as well,


Many thanks guys,

Asaf.

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

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


[jboss-user] [JBoss jBPM] - Re: Less coding by custom nodes/jrules/etc...

2008-02-27 Thread trouby
Hey,
Thanks for answering,

Few reasons:

1) In the future, it'll be easier to customize things visually through nodes, 
selecting handles is not nice as dragging nodes,
2) Customizing parameters of nodes can be done visually, handlers receive info 
as method parameters, which is not nice as visual form fields (btw, I don't use 
handlers at all, I use expressions and invoke Seam components, but it's about 
the same implementation)
3) I have too much information to pass, it'll be easier to pass it via a new 
structure of the node in the processdefinition.xml

So, for the start, is it possible to customize nodes? if so, is it documented? 
somehow? somewhere? samples? :)



Thanks,

Asaf.

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

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


[jboss-user] [JBoss jBPM] - Re: Less coding by custom nodes/jrules/etc...

2008-02-27 Thread trouby
Hey,

I already read the whole doc from top to bottom :)


I'll try to download the source code, hopefully there's a full sample (custom 
node/process that make a usage of the custom node, etc...)

I thought that this is something very common,


Thanks,


Asaf.

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

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


[jboss-user] [Beginners Corner] - Re: IP address

2008-02-27 Thread trouby
Yeah,

Jboss binds itself to localhost by default,

If you want, you must set the binding parameter and specify the IP you would 
like JBOSS to listen to (this is relevant to many JBOSS services, 0.0.0.0 
meaning all available IPs),

I guess this is mainly for security reasons :)


Asaf.

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

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


[jboss-user] [Beginners Corner] - Re: Windows vs Linux

2008-02-27 Thread trouby
Yeah,

Same goes here, I was checking Jboss in Win/Linux(many different kind of 
distributions) and the results were pretty equal,


I still would suggest to go for Linux,
Mainly because it's easier to start it as a service rather than installing 
Native pkg/using external service loaders...


Asaf.

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

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


[jboss-user] [Beginners Corner] - Re: richfaces richTree can't get item.type!

2008-02-27 Thread trouby
Hey,

You have some tree examples that are working perfectly in the samples war file,

If you need more specific help you better ask in Richfaces forum,


Asaf.

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

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


[jboss-user] [Beginners Corner] - Re: Deploying .EAR files fails with [HDScanner] Scan failed

2008-02-27 Thread trouby
I would suggest you to take a look at class: EARStructure.java, line 155,


But Jboss should never throw a NPE anyway,
So you better open a ticket in JIRA :-)




Asaf.

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

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


[jboss-user] [Beginners Corner] - Re: JBOSS SSO Authentication with Windows

2008-02-27 Thread trouby
SSO?

Are you talking about transparent authentication through Windows?


If so, yeah, you can use JCIFS , I used it a lot,


btw, are you using Seam by any chance?


Asaf.



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

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


[jboss-user] [JBoss jBPM] - Re: Less coding by custom nodes/jrules/etc...

2008-02-27 Thread trouby
Hey,

Can't I just have my own node type? maybe extended from the generic node 
available in JBPM

like there's  / task-node I would like to have my own node tag, fully 
described differently, with different tags and parameters?



Thanks,

Asaf.


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

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


[jboss-user] [JBoss Tools (users)] - Re: Seam Validator

2008-02-06 Thread trouby
Well, weird, here it's going through all the files, one after another everytime 
I save a file,


Well, I just noticed I'm using RC1 instead of GA ver, then I'll try to upgrade 
and see the result,


Many thanks,

Asaf.

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

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


[jboss-user] [JBoss Tools (users)] - Re: Add/Remove projects to Server

2008-02-06 Thread trouby
Yeah,

I know what is the System Copy Server for,

I'm using RC1,
btw, it is impossible to uninstall the tools from eclipse nor upgrade,


So I hope it's fixed in GA,


Anyway, according to this:
http://in.relation.to/Bloggers/JBossTools20GAGoesFinal

It seems like the upgrade is much easier with RHDS, so I'll buy it :-)


Many thanks,

Asaf.

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

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


[jboss-user] [JBoss Seam] - Identity Management?

2008-02-06 Thread trouby
Hey,

Seems like the IdentityManagement paragraph does not exist anymore (nor in 
doc/seam-gen/etc...),

Is it deprecated or what?


Thanks,

Asaf.

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

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


[jboss-user] [JBoss Seam] - Restrictions in pages

2008-02-06 Thread trouby
Hey,

I was wondering if it's possible to restrict pages by pattern and use sort of 
exclude for specific pages,

for instance, I would like to do something like:

{code}
page view-id=*
#{s:hasRole('member')}

{code}

but add sort of exclude for the login page/other public pages,

Otherwise I'll have to separate restricted/non-restricted pages in different 
folders...



Many thanks.

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

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


[jboss-user] [JBoss Tools (users)] - Add/Remove projects to Server

2008-02-05 Thread trouby
Hey,

I have configured Jboss AS 4.2 server and associated a seam project to it,
In the association form, I see my EAR projects hierarchically with the web/-ejb 
projects beneath it which good as in deployment time I see under Jboss deploy 
dir 'myproject-ear.ear' dir with both .war/.ejb dirs(projects) beneath it. 

When I try to associate my project to 'Jboss System Copy Server', in the 
association form I see my projects(ear/war/ejb) as flat list and not 
hierarchically, so in deployment time I see under Jboss deploy dir all projects 
(ear/ejb/war) in the same folder level,


Is this the expected behavior?
If so, how do I associate an EAR project with its related projects beneath it 
when using 'Jboss System Copy Server'?


Thanks.

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

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


[jboss-user] [JBoss Tools (users)] - Seam Validator

2008-02-05 Thread trouby
Hey guys,

Everytime I save a file I see in the progress panel:

'Seam Validator, Validating: project myproject; EL in xxx.xhtml'


Is this a normal behavior? I have many facelets files, this validation process 
it takes a lot of time,


Many thanks,

Asaf.

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

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


[jboss-user] [JBoss Tools (users)] - Re: Add/Remove projects to Server

2008-02-05 Thread trouby
Hey,

So first, why there's a difference between Jboss 4.2 server and the 'Jboss 
System Copy Server' projects layout?

Second, then I guess it is not working as expected,

I have created a new seam project through jboss tools packed as an EAR, so I 
got the following projects:

- myproject
- myproject-ear
- myproject-ejb
- myproject-test


under myproject-ear-Properties-J2EE Module Dependencies I see myproject.war 
and myproject.ejb.jar with some other libs selected.


When publishing the project I see under server deploy folder a directory as: 
myproject-ear.ear as expected,

but under this folder I cannot find the other two sub projects folders 
(ejb/war) but only the content of the ear project.



Many thanks,

Asaf.


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

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


[jboss-user] [JBoss Tools (users)] - Re: Seam Validator

2008-02-05 Thread trouby
When I save a file it validates all files within the project,


Asaf.

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

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


[jboss-user] [JBoss Seam] - Project layout suggestion

2008-02-04 Thread trouby
Hey,

Just a suggestion,

I think it could be wise to have the same project layout when generating a new 
Seam project with seam-gen and jboss tools,

seam-gen creates one project while jboss tools creates 4 projects,


I guess both offering about the same functionality but it would be nice if 
there was no difference when using seam-gen / jboss-tools for the same project,


Asaf.

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

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


[jboss-user] [JBoss Seam] - Re: Project layout suggestion

2008-02-04 Thread trouby

Seamgen can also archive the jar/war/ear individually, so I think it's also ok,
but I agree regarding the clean separation and the need,


Thanks for the reply :-)



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

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


[jboss-user] [JBoss Seam] - Re: Dynamic Entity Beans

2008-02-04 Thread trouby
AFAIK it is impossible to generate facelets pages via other storage formats but 
simple files,

Facelets templates/include functionality is very strong, but is only based on 
files,

btw, I also asked these questions in Facelet's forum,



Asaf.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4126177
___
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 - Few first questions

2008-02-04 Thread trouby
Hey,

anonymous wrote : 
  | When the server is running there is a Restart button in the main toolbar. 
Yeah - should probably be in the menu too (report in jira - thanks) 
  | 
  | Note: that besides restart we also have the touch functionallity which 
touches the relevant descriptor depending on your current project type. That 
will result in the app to be redeployed, removing the need for most restarts. 
  | 


This is weird, right-click on the server menu has a restart button, I guess it 
was lately added :)

Did you mean the 'twiddle server' option?


anonymous wrote : 
  | Good question - I'm not much of webservices guy so don't know if WS 2 
requires some special things for the startup. Could you please report it in our 
jira with info on what WS are not working means (e.g. stacktraces, examples, 
screenshots etc.) 
  | 

Well, this is probably related to some startup configurations, how the tools 
starts Jboss? I guess it does not use the startup shell scripts 
(run.bat/run.sh/conf/etc...)

anonymous wrote : 
  | You can use a deploy only server which does not actually start nor stop the 
server, but just maintains the deployment directory. 
  | 

How do I do that? for now, if the server is stopped any modification to files 
are not being deployed, then I have to use the clean option, etc... to redeploy 
everything.


Thanks for the detailed reply :)

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

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


[jboss-user] [JBoss Tools (users)] - Jboss Tools - Few first questions

2008-02-04 Thread trouby
Hey,

I have few first questions regarding the plugin:


1) Right click on the server - I can't see a way to restart the server, only 
stop/start, is there a restart button somewhere?
2) I upgraded Jboss with Jboss WS ver 2, but for some reason, when starting the 
server through 'Jboss Server View' the WS are not working, when I start  the 
server via default 'run.bat' it works fine, what could be the reason for that?
3) Because of q2, when the server is started not via tools, saving files are 
not being deployed to the server, is it possible to keep deploying files to the 
server when the server is off?
4) Is there any support for Seam's hot deploy with the tools?


Thanks in advanced,
Asaf.

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

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


[jboss-user] [JBoss Seam] - Re: Project layout suggestion

2008-02-04 Thread trouby
Great,

Although I see the current structure of seam-gen much easier,
4 different projects is too complicated and confusing in my opinion,


Well, happy to see the ticket already exist, thanks :)

Asaf.

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

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


[jboss-user] [JBoss Seam] - Re: Wiki - Seems like it's not an example anymore :)

2008-01-31 Thread trouby
Uh? he opened all tickets related to Wiki? there are sooo many,

(Heh, maybe we need to set him his own JIRA :P)






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

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


[jboss-user] [JBoss Seam] - Seam + Ajax4JSF - The conversation ended, timed out or was

2008-01-30 Thread trouby
Hey,

I'm not sure yet why, but sometimes ajax calls are being processed very slowly 
for me,

So if the user press another button while an ajax call is being processed, I 
get:
 The conversation ended, timed out or was processing another request,

It is of course logical, but since sometimes I have very big forms I prefer not 
to break the whole form submission somehow,

I tried the ajax4jsf queues but it didn't have any affect,


Is there anyway to handle ajax calls better than just break the whole page 
submission?



Thanks,

Asaf.

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

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


[jboss-user] [JBoss Seam] - Re: Poll: what JSF framework are you using with Seam?

2008-01-30 Thread trouby
Hey,

In my opinion, Richfaces works best with Seam as it is tested very well, we 
have built a huge application based on Richfaces and it works perfectly,

I think the integration between RF and Ajax4Jsf is best and you can find 
beneficial from both world together and combine nice stuff with RF/a4j, more 
than that, it's all under the same house which is important if you plan to 
purchase support some when,

Regarding your question, I also tested Myfaces / Icefaces with Seam and it 
worked very nice as Seam is not binded in any way to RF or any other specific 
JSF components library, in a matter of fact, I sometimes I use Seam without any 
relationship to the JSF world :-)

Well, check the examples, Icefaces works and it's active, same goes for 
Trinindad,Myfaces (I tested it very long time ago but it might still work),


There are very very nice components library named 'Woodstock',  but I have 
encountered many problems while trying to use them with Seam,

I think Gavin somewhere before a year replied me that they are working on it 
together to make Woodstock work with Seam but I didn't see anything new about 
it(but I might be wrong),


Well, at the end, after all the nice specs and standards, Seam works best under 
Jboss, RF works best with Seam/Jboss, Woodstock works best with Glassfish, 
Oracle goes with Trinidad and thats the way it works,

(I'm not saying they cannot be combined, I just say it's harder)


Well, at least that is from my own experience :-)


Asaf.
 

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

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


[jboss-user] [JBoss Seam] - Wiki - Seems like it's not an example anymore :)

2008-01-30 Thread trouby
Hey,

It seems lately that a lot of Seam tickets related to feature requests for the 
Wiki example,

I think most of the people trying to keep updated with Seam through its 
changelog,

As Seam is very active, it's very hard to keep updated of each ticket when 
there are so many,

Just a suggestion: maybe it's better to create a project for the Wiki as it 
seems like it's very active and many people requesting new features for it,


Asaf.

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

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


[jboss-user] [JBoss Seam] - Re: How to control end of conversations/state of stateful be

2008-01-05 Thread trouby
gus888 wrote : [EMAIL PROTECTED] wrote : Have you taken a look at the way 
seam-gen does it? It produces a pageable, bookmarkable search screen that saves 
the search criteria without using a conversation. 
  | I went through all seam examples, and I found the following search beans:
  |   |   1. booking - HotelSearchingAction: Session bean
  |   |   2. blog - SearchService: default bean 
  |   |   3. dvdstore - FullTextSearchAction: Conversation bean with 
@Begin(join=true)
  |   |   4. wiki - WikiSearch: Conversation bean with begin (join=true) in 
pages.xml
  |   | 
  |   | It seams that the blog-SearchService has bookmarkable but not pagable, 
but the SearchService only has one searchPattern criteria. The dvdstore and 
wiki search pages have pageable. Thanks.


SeamGen makes a usage of Seam framework, you should take a look at it, it has 
all the features you asked for and the implementation is very clean,



Asaf.

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

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


[jboss-user] [JBoss Seam] - Re: How to control end of conversations/state of stateful be

2008-01-04 Thread trouby
[EMAIL PROTECTED] wrote : trouby wrote : Well, sorry for being so annoying 
but I still don't get the point, If I have buttons that should start a 
conversation, propagation='none' is not an option
  | 
  | Normally I find that you don't want to start a new conversation whilst 
another one is running. Post your use case for this.


My case? I think it's any case with buttons that always exist on the template,

Lets make an example:
I have a top menu(that is always with visible) with few options, 
[my items: a, b, c, d]

Pressing on one item should start a conversation, as this item is heavily being 
managed later on.

I have added a 'done' button with propagation='none' but no one is using it : )

Pressing on another item(from the menu) in the middle of the current long 
running conversation causes the error,

I solved it by 'joining' to the current conversation just to fix the error but 
this is not too logical as the last selected item is not being managed by the 
user anymore.



Thanks.

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

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


[jboss-user] [JBoss Seam] - Re: How to control end of conversations/state of stateful be

2008-01-01 Thread trouby
Alright,

Well, sorry for being so annoying but I still don't get the point,
If I have buttons that should start a conversation, propagation='none' is not 
an option,


big part of my buttons start a new conversation, so no matter what, I find 
myself adding join=true, at least for these buttons,


But as it seems most of the people are comfortable with it, I still find it 
really confusing and not exactly correct,


What I think is that it might be useful to have an option to end/start a new 
conversation on the same method/link/etc...


Asaf.

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

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


[jboss-user] [JBoss Seam] - Re: Flex + Seam example not working

2007-12-31 Thread trouby
Hey,

I'm not sure what went wrong for you but I tried the example and it works 
pretty well,


it requires extra code(transferring objects between both sides is not that 
easy) and it's not safe typed with the approach that is used in the example,

If you are planning to  heavily use these both technologies I suggest you to 
take a look at  the link below, I just came across it, it seems to integrate 
Seam and BlazeDS which makes the communication between both sizes very smooth,

(I didn't try it yet, but from first impression it looks good)

http://kristianjokela.blogspot.com/2007/12/flex-blazeds-and-seam.html,


Hope it helps,


Asaf.


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

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


[jboss-user] [JBoss Seam] - Re: How to control end of conversations/state of stateful be

2007-12-31 Thread trouby
Hey,

I still don't get it, what about links that -should- start a new conversation? 
is it possible to combine begin/end annotations together for the same method? 
like ending the current conversation and starting a new one?


btw, I have a seam link which invoke an method that is annotated with @Begin, 
invoking the same link just after the first invocation throws begin method 
invoked from a long-running conversation, try using @Begin(join=true), so what 
should I do in such situation?? I don't want -another- conversation to start in 
this case,

I guess I'm doing something wrong, as in seam booking example the 'setHotel' is 
annotated with @Begin and can be invoked many times without this exception,



Thanks.

Asaf.

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

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


[jboss-user] [JBoss Seam] - Re: How to control end of conversations/state of stateful be

2007-12-31 Thread trouby
So if the same method that is annotated with @begin is invoked within the same 
bean -instance- a new conversation is created without exception? what's the 
difference between a new conversation starting from the same bean instance or 
from different bean instance? why the behavior is different?


Asaf.

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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - OnetoMany - cascade all

2007-12-30 Thread trouby
Hey,

I think I have a very basic confusion regarding cascade,
I have the following simple relationship:


  | public class message {
  | 
  | private SetComment comments;
  | 
  | @OneToMany(mappedBy = message, fetch = FetchType.EAGER, cascade = 
CascadeType.ALL)
  | public SetMessageComment getComments() {
  | return comments;
  | }
  | 
  | //set...
  | }
  | 


And

  | private Message message;
  | 
  | @ManyToOne(optional=false)
  | public Message getMessage() {
  | return message;
  | }
  | 
  | //setter
  | 


I'm trying to persist a new comment by:


  | //assuming a message with id 1 exists in db
  | Message m = entityManager.find(Message.class,new Long(1));
  | Comment c = new Comment();
  | c.setMessage(m);
  | m.getComments.add(c);
  | entityManager.merge(m);
  | 


I don't want to persist the comment directly but through the message,

if 'getComments' is cascaded with ALL, shouldn't the new comments get persisted 
when em.merge(m) is invoked?




Thanks,

Asaf.

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

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


[jboss-user] [JBoss Seam] - Re: persist entities problem

2007-12-26 Thread trouby
Yeah, Hibernate forum is better,

But just to give you directions, what DB type are you using? is your DB 
supports sequences at all? (if you'r using Mysql, better go for 
'@GeneratedValue' which will create the PK column with mysql's auto_incremental.


Asaf.

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

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


[jboss-user] [JBoss Seam] - How to control end of conversations/state of stateful beans

2007-12-26 Thread trouby
Hey,

I find myself using @Begin(join=true) almost anywhere I want to start a 
conversation,
The main reason is that I cannot be sure that I'm out of a conversation,
If a user clicked on some button that started a conversation, how can I control 
the end of the conversation?


I have somehow to force the user to press a button that ends the conversation 
as they never do that :-) (I can think of ways somehow make  to disable all 
other buttons) or wait for the timeout but this is not a solution,


What is the suggestion? or just use @Begin(join=true) anywhere?





Second question is regarding stateful beans,
If I understand correctly, stateful ejbs are bounded to CONVERSATION context by 
default, if that is correct,  I have the following scenario:

1)A stateful bean with a method annotated with @Begin
2)some forms inputs bounded to the statefulbean properties
3)a method in the same stateful bean annotated with @End

What could be the reason that the bounded data posted from the forms is not 
there within the method that is annotated with @End?



Many thanks,

Asaf.

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

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


[jboss-user] [JBoss Seam] - Re: ProcessList in seam

2007-12-26 Thread trouby
Although it could be amazing to integrate Seam/jbpm4jsf/jbpm forms all together 
:-)


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

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


[jboss-user] [JBoss Seam] - Very strange conversation behavior

2007-12-26 Thread trouby
Hey,
I'm having a very very strange conversation behavior,

Following is the scenario:
I have the following stateful bean:

  | @Stateful
  | @Name(personActions)
  | public class PersonActionsBean implements PersonActions{
  | SetAttr attrs = new LinkedHashSetAttr();
  | //getAttrs()
  | //setAttrs()
  | 
  | public void prepareCreatePerson() {
  | //init the attrs set with some elements
  | //init 4 elements!
  | }
  | 
  | public void createPreson() {
  |   //this result 0!
  |   log.debug(Attrs size: + attrs.size());
  | }
  | 



I invoke 'prepareCreateUser' with the following link:

  | s:button id=createPerson value=Create Person 
action=/createPersonFirstPage.xhtml propagation=begin/
  | 

and I have 'createPersonFirstPage.page.xml' with:

  | action execute=#{personActions.prepareCreatePerson}/
  | 

this action inits te 'attrs' list with few elements.


In 'createPersonFirstPage.xhtml I have a form which modifies the some of the 
'personActions.attrs' and a button such as:


  | h:commandButton id=secondPage value=Continue 
action=/createPersonSecondPage.xhtml /
  | 



createPersonSecondPage.xhtml has a button such as:

  | h:commandButton id=save value=Save 
action=#{personActions.createPreson}
  | 

In 'createPersonSecondPage.page.xml' I have:

  | navigation from-action=#{personActions.createPerson}
  |end-conversation/
  |redirect view-id=/Home.xhtml/
  | /navigation
  | 




The strange is that when 'personActions.createPerson' is invoked 'attrs' list 
has NO elements. so even though the conversation has started at the first 
button the data is not available anymore (the conversation Id keeps being the 
same for all pages)


What makes is extremely strange is if I access the 'attrs' list in the second 
page (createPersonSecondPage.xhtml) (even like: h:outputText 
value=#{personActions.attrs}/ I can see the elements and when the 'Save' 
button is pressed the elements are available!



What causes the data not to be kept? and why accessing the 'attrs' list in the 
second page makes seam to keep the elements within the list?



Thanks,

Asaf.

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

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


[jboss-user] [JBoss Seam] - Re: Hibernate + Groovy

2007-12-15 Thread trouby
Yeah, that is for sure the case, sounds good!


thanks.

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

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


[jboss-user] [JBoss Seam] - Forms - JBPM with Seam

2007-12-14 Thread trouby
Hey,

JBPM offers forms functionality (I never used it and it's not so documented but 
it seems that it's available through the jbpm designer)


Is there any integration between JBPM forms and Seam? I would really like to 
keep some of the data within the jbpm process itself (without outjecting 
everything to the process instance) but still have a good integration with seam 
here.


Many thanks,

Asaf.

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

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


[jboss-user] [JBoss Seam] - Re: JBPM and Seam problem

2007-12-13 Thread trouby
For deployment only? what do you mean by that?

So what came out of this ticket? none yet?


So what is the best practice in production use right now?
modify components.xml, deploy, then clean components.xml?, this sounds too 
dirty to me..


Anyway, I would like to deploy processes out of my ear file, thus I'm using 
jbpm.getProcessDefinitionFromXml which works but for the first time it thorugh 
the exception as I mentioned below.

any clue about this issue?


Thanks.



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

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


[jboss-user] [JBoss jBPM] - Re: Assigning a task to pooled-actors via context var

2007-12-13 Thread trouby
huh?
It's just a simple string var I outjected (via seam) into the process instance,


I can see the var within 'variableinstance' table of JBPM

(type string, simple string value... etc...)


there must be an easy way to do this,


isn't ContextInstance somehow available within the process itself?


Thanks.

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

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


[jboss-user] [JBoss Seam] - Re: Injecting Business Process context scoped variables

2007-12-13 Thread trouby
Hey,

Can anyone comment on this?

(I'm having the same problems...)


Thanks

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

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


[jboss-user] [JBoss Seam] - Re: JBPM and Seam problem

2007-12-13 Thread trouby
Alright,

and nah, it's not working, I already tried it,
Jbpm does not load itself when server starts with empty 'bpm:jbpm /' tag,

(jbpm starts at the moment I make a use of it in runtime, but that causes 
transaction exceptions when it's done on later stages)

so as a workaround I just left an empty process in component.xml, but this is 
too dirty as it deploys every restart an unneeded process :-/



many thanks!

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

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


[jboss-user] [JBoss Seam] - Re: Hibernate + Groovy

2007-12-12 Thread trouby
Sure,

Thank you for your answer Emmanuel,


Asaf.

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

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


[jboss-user] [JBoss Seam] - JBPM and Seam problem

2007-12-12 Thread trouby
Hey,

I was wondering why Seam deploys each jbpm process every time I start JBossAS, 
that's the normal behavior? after few restarts JBPM tables looks too dirty, I 
think it would be wise to check the version of the process somehow and only 
deploy when a change occurs,


Anyway, I tried to avoid setting my processes through components.xml and deploy 
them in runtime but I'm having some problems,

Here's my try:
{code}
@In(value=org.jboss.seam.bpm.jbpm)
private Jbpm jbpm;

@In
private JbpmContext jbpmContext;

ProcessDefinition pd = jbpm.getProcessDefinitionFromXml(xmlProcessDefinition);
jbpmContext.deployProcessDefinition(pd);
{code}



At the moment jbpm.getProcessDefinitionFromXml(xmlProcessDefinition); gets 
invoked I see many JBPM lines warming up and then I get the following 
exceptions:


{code}
20:18:16,234 INFO  [SessionFactoryObjectFactory] Not binding factory to JNDI, 
no JNDI name configured
20:18:16,234 INFO  [SchemaUpdate] Running hbm2ddl schema update
20:18:16,250 INFO  [SchemaUpdate] fetching database metadata
20:18:16,250 ERROR [SchemaUpdate] could not get database metadata
java.sql.SQLException: You cannot set autocommit during a managed transaction!
at 
org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.setJdbcAutoCommit(BaseWrapperManagedConnecti
ava:482)
at 
org.jboss.resource.adapter.jdbc.WrappedConnection.setAutoCommit(WrappedConnection.java:322)
at 
org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.prepare(SuppliedConnectionProviderC
ctionHelper.java:36)
at 
org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:127)
at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:314)
at 
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
at 
org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:91
at 
org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:94)
at 
org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:98)
at org.jbpm.JbpmContext.getSession(JbpmContext.java:506)
at 
org.jboss.seam.bpm.ManagedJbpmContext.joinTransaction(ManagedJbpmContext.java:175)
at 
org.jboss.seam.bpm.ManagedJbpmContext.getJbpmContext(ManagedJbpmContext.java:145)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:124)
at org.jboss.seam.Component.callComponentMethod(Component.java:2067)
at org.jboss.seam.Component.unwrap(Component.java:2093)

{code}



It's working, I mean, JBPM starts(many lines appear, all JBPM conf mappings, 
etc...), then the process gets deployed and everything work.

well, after the first deployment time, I don't see this errors again and all 
work perfectly...(unless I restart Jboss again of course)



As a workaround, I just left one process within components.xml so seam starts 
JBPM when the -server starts-, so no error occur that way, but it's ugly...

I guess I'm already in a transaction and then JBPM starts in the middle or 
something... if so, is there a way to start JBPM when the server loads? 
(without setting any processes in components.xml?), if it's another issue then 
fix me :)


Many thanks,

Asaf.


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

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


[jboss-user] [JBoss jBPM] - Assigning a task to pooled-actors via context var

2007-12-12 Thread trouby
Hey,

In creation time of a process instance I set a variable (lets name it 
'username'),

Then in the middle of the process I have a task node with a task which I want 
to assign to an actor based on the value of the 'username' variable which 
available in the context,

I tried something like:


  | task name=usertask
  | assignment actor-id=#{username}/assignment
  | /task
  | 

But I guess this is not the way to extract context vars,


Asaf.

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

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


[jboss-user] [JBoss Seam] - Hibernate + Groovy

2007-12-11 Thread trouby
Hey,
My question is more related to HibernateGroovy but since I mix it all with 
seam / seam provides examples with groovy I felt like it's ok to ask my 
question here :)


I have looked at the hotel booking example with groovy and it seems to work 
fine, but at the moment I'm trying to write an entity with groovy which EXTENDS 
another entity written in java(that annotated with @Inheritance) then I get an 
exception that Hibernate tries to persist column an unknow column type named 
groovy.lang.MetaClass,

indeed there is such a property, but I can't see any way to automatically 
ignore it,

I tried to add to the groovy entity the following:
{code}
@Transient
MetaClass metaClass
{code}

but no luck,


What I'm curious about, if this property available for any groovy object, then 
why hibernate does try to persist it without inheritance as well ?




Many thanks,

Asaf.

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

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


[jboss-user] [JBoss Seam] - Cache problem with Seam EntityQuery

2007-11-28 Thread trouby
Hey,

I have a list of entities(tasks) I manage via a seam component which extended 
from Seam EntityQuery,

These tasks are sometimes gets updated via an EJB (Not seam) method which is 
triggered via EJB's time resource,


Refreshing the task list -sometimes- showing old state of data although some of 
the tasks were already modified by the EJB methods,


What is the default EntityQuery context? is it somehow related to Hibernate 2nd 
level cache? of course the EJB method uses Hibernate (via EM interface) to 
update the entities,


Logoff/logon shows the new data, so I assume this is somehow related to Seam,


Many thanks,


Asaf.

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

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


[jboss-user] [JBoss Seam] - Re: Cache problem with Seam EntityQuery

2007-11-28 Thread trouby
well, if EntityQuery is a pojo then yes, I didn't change the scope,

If I'm in a conversation, then the persistence context is in conversation scope 
although my class inherited from EntityQuery is in event scope? this is 
confusing :-)


Well, back to the question, sometimes it's hard to truck if I'm in a 
conversation or not,
Client sometimes not using the buttons which handles conversation ending 
correctly, so it might be, well, how can I make sure anytime a page is getting 
refreshed I get the most updated data from the DB?

I tried to override the 'getResultList' method of EntityQuery and set some 
hints to hibernate to get the most updated data, but it seems not to be working,

Anyway, probably this problem can be solved by Seam levels as I said and since 
logoff/logon shows the most updated data then I guess I'm in a conversation,


So what is the correct way to solve this issue?


Many thanks,

Asaf

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

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


[jboss-user] [JBoss Seam] - Custom JSF Validator/Converter with EntityManager

2007-11-22 Thread trouby
Hey,

I would like to create a jsf validator/converter that should involve some db 
queries/modifications,


Is it possible elegantly to use Seam's entityManager somehow?


There's entityConverter out of the box coming with Seam which probably make a 
usage of it, not sure how exactly it works,


Thanks,

Asaf.

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

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


[jboss-user] [JBoss Seam] - Re: Custom JSF Validator/Converter with EntityManager

2007-11-22 Thread trouby
Uh damn, missed the validator/converter annotations, it's documented,

Thanks,

Asaf.

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

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


[jboss-user] [JBoss Seam] - Re: Custom JSF Validator/Converter with EntityManager

2007-11-22 Thread trouby
Hey,

Careful of what?

Component.getInstance? what component? where? could you give a little bit more 
details?


Thanks.

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

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


[jboss-user] [JBoss OSGi] - Re: OSGi features

2007-11-16 Thread trouby
Eh, pity, I think that this is strength of OSS over commercial development,

Nuxeo's projects are all LGPL, which exactly the same license Jboss uses,


Seems like they are planning A LOT with their new Runtime environment related 
to OSGI,

Take a look:
http://www.nuxeo.org/sections/about/roadmap/


Anyway, they are going to integrate with JBossAS 5.0 and release their new 
version on dec 2007,



So they are actually working in parallel with you guys but you'r not 
communicating each other? heh, funny,



Anyway I will try to contact them myself, maybe I'll be lucky and get some 
response,



Asaf.

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

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


[jboss-user] [JBoss Seam] - Re: Modular pluggable components application

2007-11-14 Thread trouby
Hah, was my post looks like I'm an embittered developer? :-)

I was curious if there are any known architecture designs which can assist in 
modular pluggable components deployment,


Main points are:
- pluggable components activation/de-activation
- Affect already installed components behaviors in deployment/removal time of 
other components
- Dynamically modifying UI(facelets templates, themes, etc...) in 
deployment/removal of new components,


Thanks ;)

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

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


[jboss-user] [JBoss Seam] - Modular pluggable components application

2007-11-13 Thread trouby
Hey,

I'm trying to build an application platform which all of its layers can be 
affected by pluggable components,


I assume such a design could be achieved if each component (in my example seam 
component) can be affected by some kind of external packages,


There are few problems I see around this design,

First of all, I'm not sure if seam can help here, and if there are any 
assistance for affecting a component behaviors externally,

JavaEE, its packaging design does not support such a model, OSGI model could 
fit here exactly but I can't see how this is done in jboss without using 
external platforms, probably archiving a jar per component can partially solve 
the problem, but I guess these jars must be apart of the application and 
configuration descriptors must be modified when new components being deployed.

Nuxeo (OSS ecm) created a runtime platform which implements an OSGI model for 
JavaEE(especially Jboss app server), but I'm trying to find some more natural 
solution,


Well, I guess this is not only a seam question, but having a discussion about 
how seam can help in designing such an application could be interesting :-)


Thanks,

Asaf

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

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


[jboss-user] [JBoss OSGi] - Re: OSGi features

2007-11-13 Thread trouby
Hey,

As I see the last replies to this post are only month ago so I guess things are 
in progress now :-)


I think OSGI implementation is very important, Geronimo, Jonas/WS/etc.. are 
already there so it'll be great having it in Jboss too!


I have some points which I think could be real helpful:

- Integration with EJB/seam, activating a bundle with EJB/seam components 
easily.
- Extensible components, I think JavaEE is really lacking here, it is very hard 
to build today a platform where external bundles can modify your app 
layers(core/services/gui/etc), as JavaEE packaging is really strict (all the 
descriptors, packing structure/etc...),


I'm not sure the second point is apart of the spec, but it could be real great,

Nuxeo(OSS ECM) took this step forward, they had to deploy their application on 
Eclipse server and Jboss as well, so they have their own OSGI implementation 
with Jboss adpater which hook Jboss j2ee/javaee behaviors with the OSGI model

You guys better take a look, they also have component extensibility where each 
component can declare extension-points and can contribute to other components 
(but yet again, I'm really not sure this is a part of the OSGI spec),

http://www.nuxeo.org/sections/projects/runtime/
It is also LGPL and I think it is well written..



Well, I'd also like to see your plans and help with testing and maybe some 
coding here and there :)


Cheers,

Asaf.

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

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


[jboss-user] [JBoss Seam] - Seam Framework, slow behaviours

2007-11-05 Thread trouby
Hey,

I developed an application that is heavily based on Seam Framework with 
hibernate/oracle server running  under Jboss 4.2.1,

I get very slow behaviors when searching / loading lists of entities by using 
EntityQuery,

I guess this is not directly related to the framework but I rather seeking for 
tips related to performance tuning,


Are there any caching / hibernate tips / anything I can do to make things work 
faster?



One of the most annoying thing is that at the moment the page access the 
entityQuery.resultList of the entityQuery object seam loads the data,

This is usually irrelevant when you have thousands of entities on the DB, is 
there a simple way to load the data only after search parameters were set? 
(without modifying the code too much :))


Thanks,
Asaf.

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

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


[jboss-user] [JBoss jBPM] - Re: Emails with pooled-actors assignment

2007-09-07 Thread trouby
Any more information about the addressresolver ?

I could just see that it should extends some interface and resolve the email 
from the actor name,

how do I get the assignment handler,
what about the custom resolver per assignment?

this link:
http://docs.jboss.com/jbpm/v3/userguide/mail.html#addressresolving

is very thin, not much information goes there and I've just installed JBPM for 
the first time :-)


thanks,

Asaf.

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

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


[jboss-user] [JBoss jBPM] - Emails with pooled-actors assignment

2007-09-07 Thread trouby
Hey,

I have many tasks with pooled-actors assignments,

Assuming I have a task within a task-node,
Is it possible to do something like:


  | task name='aaa' notify='yes' /
  |   assignment pooled-actors=#{seamPoolActorResolver()}/assignment
  | /task
  | 


And write an 'jbpm.mail.address.resolver' to return a collection of email 
addresses assigned to this pool?


In short, my question is whether or not 'notify=yes' in task works with 
'assignment pooled-actors' or it only works with specific 'actor' assignment?


Thanks,

Asaf.

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

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


[jboss-user] [JBoss Seam] - SeamGen+EntityQuery - 'argument type mismatch'

2007-08-28 Thread trouby
Hey,

I have a simple entityList class inherited from EntityQuery,

Everything seems to work fine with pagination, search ,etc... as seamGen 
generates this just fine,


but I can't seems to find a way to add a search parameter that is an entity and 
not a primitive datatype,


so here's an example..
lets assume I have a list of person where each person entity has a reference to 
an 'address' entity.


  | public class PersonList extends EntityQuery {
  | private static final String[] RESTRICTIONS = {
  | person.address = #{personList.person.address}};
  | 
  | private Person = new Person();
  | 
  | ...getting of Person...
  | ...etc...
  | 



In my personList.xhtml I have a default datatable that iterates over the 
resultList of the 'personList', etc...

and a search parameter as:

  | h:selectOneMenu id=address value=#{personList.person.address} 
required=false
  | s:selectItems value=#{allAddresses} var=r label=#{r.displayName} 
  | s:convertEntity /
  | /h:selectOneMenu
  | 

(where 'allAddresses' is a resultList of another entityQuery)


last thing is the parameters, I've added the following parameter to the page 
descriptor:

  | param name=address value=#{personList.person.address}/
  | 



Submitting the form results an 'IllegalArgumentException - argument type 
mismatch'


Am I doing something wrong?



Following is the full stacktrace;


  | 17:49:57,671 ERROR [SeamPhaseListener] uncaught exception
  | javax.el.ELException: java.lang.IllegalArgumentException: argument type 
mismatch
  | at javax.el.BeanELResolver.setValue(BeanELResolver.java:116)
  | at 
javax.el.CompositeELResolver.setValue(CompositeELResolver.java:68)
  | at 
com.sun.faces.el.FacesCompositeELResolver.setValue(FacesCompositeELResolver.java:93)
  | at 
org.jboss.el.parser.AstPropertySuffix.setValue(AstPropertySuffix.java:73)
  | at org.jboss.el.parser.AstValue.setValue(AstValue.java:84)
  | at 
org.jboss.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:249)
  | at org.jboss.seam.core.Expressions$1.setValue(Expressions.java:117)
  | at 
org.jboss.seam.navigation.Pages.applyConvertedValidatedValuesToModel(Pages.java:753)
  | at org.jboss.seam.navigation.Pages.postRestore(Pages.java:392)
  | at 
org.jboss.seam.jsf.SeamPhaseListener.postRestorePage(SeamPhaseListener.java:527)
  | at 
org.jboss.seam.jsf.SeamPhaseListener.afterRestoreView(SeamPhaseListener.java:374)
  | at 
org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:211)
  | at 
org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:184)
  | at 
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
  | at 
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:82)
  | at 
org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  | at 
org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  | at 
org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  | at 
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:293)
  | at 
org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  | at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  | at 
org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  | at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:149)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | at 

[jboss-user] [JBoss Seam] - Re: SeamGen+EntityQuery - 'argument type mismatch'

2007-08-28 Thread trouby
Another test of the same thing resulted a 'classCastException',
almost same seam stacktrace, but here are the important lines again:



  | at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
  | at java.lang.Thread.run(Thread.java:619)
  | Caused by: java.lang.IllegalArgumentException: [EMAIL PROTECTED]
  | at sun.reflect.GeneratedMethodAccessor558.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:597)
  | at javax.el.BeanELResolver.setValue(BeanELResolver.java:108)
  | 

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

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


[jboss-user] [JBoss Seam] - Re: SeamGen+EntityQuery - 'argument type mismatch'

2007-08-28 Thread trouby
Well,

I actually tried almost anything possible that is elegant enough,


I also tried to a add  the referenced entity as a property for the EntityQuery 
but nothing,



  | Address address;
  | 
  | getter/setter
  | 

and in the view I have added an EntityConverter for this address via a 
SelectOneMenu/selectItems, then I get a EntityManager is closed exception,



I think the problem is due to the fact that the generated EntityQuery via 
Seam-Gen is not bound to any conv/session contexts, and keeping the search 
parameters/values is done via parameters specified within the page descriptor.


This is -too- basic, I am definitely sure there's a way to add restrictions 
based on -entities- associated to the main entity that being fetched except of 
criteria based on primitive datatypes !


anyone? :)

Asaf.

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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Hibernate with Oracle10g, Inheritance issue

2007-08-14 Thread trouby
Hello,

I have an abstract class (Base) that looks as follows:


  | @Entity
  | @Table(name=MyTable)
  | @Inheritance(strategy=InheritanceType.SINGLE_TABLE)
  | @DiscriminatorColumn(name=OVERRIDE_LEVEL)
  | 
  | class abstract Base {
  |   some properties here
  |   ..
  |   .. 
  | }
  | 


Then I have two classes that inherit from this base class that looks like:

  | @Entity
  | @DiscriminatorValue(Y_INSTANCE)
  | public class YBase extends Baseimplements Serializable {
  | ...
  | }
  | 
and another one as:



  | @Entity
  | @DiscriminatorValue(Z_INSTANCE)
  | public class ZBase extends Baseimplements Serializable {
  |
  |private SomeEntity someEntity;
  | 
  |setter...
  | 
  |@ManyToOne(optional=false)
  | @JoinColumn(name=SOME_ENTITY_ID, nullable=false, unique=false)
  |public SomeEntity getSomeEntity() {
  |   return someEntity;
  |}
  | 
  | }
  | 



With Mysql, When I persist YBase entities, everything work fine, and I see 
under the 'SOME_ENTITY_ID' column a value '0',

I assume hibernate set a default value as 0 automatically although the column 
definition in msql is set as 'NOT_NULL' without a default value.


In oracle, I get an exception as follows:
Caused by: java.sql.BatchUpdateException: ORA-01400: cannot insert NULL into 
(IDM_PREPRD_REPOSITORY.MY_TABLE.SOME_ENTITY_ID)

and in the database I can see that the column is set as NOT NULL, but a default 
value is not set when persisting YBASE entities which has no relationship with 
the SomeEntity entity,


Any idea?
there's a way to fix this issue except annotating the 'getSomeEntity' as 
optional?


thanks,

Asaf.


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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Setting the ID of the entity manually before persist

2007-08-09 Thread trouby
Ye, I figured it out,

I just need it for initial data, and I wanted to keep the IDs synchronized,

Well, thanks :)


Asaf

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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Setting the ID of the entity manually before persist

2007-08-06 Thread trouby
Hello,

I have some simple entities with ID annotated  as:

  | @Entity
  | @Table(name=MY_TABLE)
  | public class MyEntity {
  | private Long id;
  | 
  | @Id @GeneratedValue
  | @Column(name=ID)
  | public Long getId() {
  |return id;
  | }
  | 
  | public void setId(Long id) {
  |   this.id= id;
  | }
  | }
  | 

When I try to create a new entity and set its ID manually I get an exception,

here's a sample code:


  | MyEntity my = new MyEntity();
  | my.setId(new Long(4));
  | my.setSomeMoreMethods(...)
  | ..
  | em.persist(my);
  | 

I get the following exception


23:02:31,281 FATAL [application] Failed to perform the operation, failure 
message: javax.persistence.PersistenceExceptio
n: org.hibernate.PersistentObjectException: detached entity passed to persist: 
velo.entity.ActionLanguage
javax.faces.el.EvaluationException: Failed to perform the operation, failure 
message: javax.persistence.PersistenceExcep
tion: org.hibernate.PersistentObjectException: detached entity passed to 
...


Why is that? The entity is NOT detached, it never got persisted, and I would 
like to set the ID manually sometime before persisting...

btw: If I invoke em.merge(my); it works, but it persist the object with new IDs


So, is that possible? with TopLink it wasn't a trouble,


Thanks,


Asaf.

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

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


[jboss-user] [JBoss Seam] - Re: s:convertEntity - EntityManager is closed.

2007-08-01 Thread trouby
Here:
component.xml

  | factory name=guiSystems  value=#{guiSystemsQuery.resultList} /
  | framework:entity-query name=guiSystemsQuery 
  | ejbql=select s from System s
  | order=s.displayName asc/
  | 

in view:

  | s:decorate template=layout/display.xhtml
  | ui:define name=labelTarget-System/ui:define
  | h:selectOneMenu id=system 
  | value=#{someList.acc.system} required=false 
disabled=true
  | s:selectItems value=#{guiSystems} 
var=s
  | label=#{s.displayName} 
noSelectionLabel=-Select- /
  | s:convertEntity /
  | /h:selectOneMenu
  | /s:decorate
  | 

where 'someList' is a seam component that extends EntityQuery,
in someList I have a restriction such as:

  | lower(acc.system) = #{someList.acc.system}
  | 


I have a viewfile.page.xml file that has the parameters:

  | param name=system value=#{someList.acc.system}/
  | 

When I add this parameter, it result the exception,


Many Thanks!

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

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


[jboss-user] [Beginners Corner] - lo4j levels with Jboss App server

2007-08-01 Thread trouby
Hey,

I have some classes which I've added a static reference to the logger as:

  | private static Logger logger = Logger.getLogger(MyClass.class.getName());
  | 
where MyClass full pkg is rootPkg.subPkg.MyClass

Then I simply use the logger in many places by invoking 
logger.debug(message), etc...


Now assuming I want to have logs for ALL levels -ONLY- for MyClass, how do I do 
it?

I tried to add to jboss-log4j.xml a category such as:


  | category name=rootPkg.subPkg
  |   priority value=TRACE/
  | /category
  | 

but it did not affect anything and I only got messages at INFO level,

In the console appender, I have seen the 

  | param name=Threshold value=INFO/'
  | 

parameter, but when I change this line it affects all loggers in all packages,



any clue?

Thanks,

Asaf.

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

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


[jboss-user] [JBoss Seam] - Seam from CVS with Jboss 4.2.0

2007-07-31 Thread trouby
Hey,

I tried to upgrade seam (from beta to current cvs version), When jboss start, I 
get the following JBPM related exception,

any clue?



  | 11:23:01,671 INFO  [Contexts] starting up: 
  | org.jboss.seam.remoting.remoting
  | 11:23:01,687 INFO  [Contexts] starting up: 
org.jboss.seam.ui.graphicImage.graphicImageResource
  | 11:23:01,687 INFO  [Contexts] starting up: org.jboss.seam.bpm.jbpm
  | 11:23:01,812 ERROR [[/velo]] Exception sending context initialized event to 
listener instance of class org.jboss.seam.s
  | rvlet.SeamListener
  | java.lang.RuntimeException: exception invoking: startup
  | at 
org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:134)
  | at org.jboss.seam.Component.callComponentMethod(Component.java:2067)
  | at org.jboss.seam.Component.callCreateMethod(Component.java:1990)
  | at org.jboss.seam.Component.newInstance(Component.java:1961)
  | at org.jboss.seam.contexts.Contexts.startup(Contexts.java:607)
  | at org.jboss.seam.contexts.Contexts.startup(Contexts.java:555)
  | at 
org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:95)
  | at org.jboss.seam.init.Initialization.init(Initialization.java:533)
  | at 
org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
  | at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
  | at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4359)
  | at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
  | at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
  | at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:597)
  | at 
org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
  | at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
org.apache.catalina.core.StandardContext.init(StandardContext.java:5310)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:597)
  | at 
org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
  | at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
  | at 
org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
  | at 
org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
  | at org.jboss.web.WebModule.startModule(WebModule.java:83)
  | at org.jboss.web.WebModule.startService(WebModule.java:61)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
  | at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:597)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
  | at $Proxy0.start(Unknown Source)
  | at 
org.jboss.system.ServiceController.start(ServiceController.java:417)
  | at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:597)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at 

[jboss-user] [JBoss Seam] - Re: s:convertEntity - EntityManager is closed.

2007-07-31 Thread trouby
Hey,
I upgraded to CVS version and the entityManager error stopped from hapening, 
but I have encountered another issue,

when I add a search parameter to the EntityQuery that has a s:convertEntity 
tag, + the parameter within the myList.page.xml file, 

submitting the form results a argument type mismatch

I assume it is a problem to pass parameters which are entities,
Is there any way to solve this issue? I think it is important to support search 
parameters via entities when using EntityQuery,


here's the stack trace, just in case:


  | 01:15:38,203 ERROR [SeamPhaseListener] uncaught exception
  | javax.el.ELException: java.lang.IllegalArgumentException: argument type 
mismatch
  | at javax.el.BeanELResolver.setValue(BeanELResolver.java:116)
  | at 
javax.el.CompositeELResolver.setValue(CompositeELResolver.java:68)
  | at 
com.sun.faces.el.FacesCompositeELResolver.setValue(FacesCompositeELResolver.java:93)
  | at 
org.jboss.el.parser.AstPropertySuffix.setValue(AstPropertySuffix.java:73)
  | at org.jboss.el.parser.AstValue.setValue(AstValue.java:84)
  | at 
org.jboss.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:249)
  | at org.jboss.seam.core.Expressions$1.setValue(Expressions.java:117)
  | at 
org.jboss.seam.navigation.Pages.applyConvertedValidatedValuesToModel(Pages.java:753)
  | at org.jboss.seam.navigation.Pages.postRestore(Pages.java:392)
  | at 
org.jboss.seam.jsf.SeamPhaseListener.postRestorePage(SeamPhaseListener.java:527)
  | at 
org.jboss.seam.jsf.SeamPhaseListener.afterRestoreView(SeamPhaseListener.java:374)
  | at 
org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:211)
  | at 
org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:184)
  | at 
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
  | at 
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:82)
  | at 
org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  | at 
org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  | at 
org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  | at 
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:293)
  | at 
org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  | at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  | at 
org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  | at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:149)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:82)
  | at 
org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  | at 
org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  | at 
org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  | at 
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
  | at 

[jboss-user] [JBoss Seam] - Re: s:convertEntity - EntityManager is closed.

2007-07-30 Thread trouby
Hmm, anyone? :)

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

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


[jboss-user] [JBoss Seam] - JPDL editor, for pageflow..

2007-07-27 Thread trouby
Hey,

I downloaded jboss tools from:
http://download.jboss.org/jbosstools/builds/nightly/


and created a new Seam Pageflow file,

I can see the visual editor, but there's no way to add any params such as 
redirects/name of pages/transitions/view-id/etc...

so I always find myself edit the xml directly,

Is that a lack of these must features? or there's a way to graphically edit 
these attributes through the designer?


Thanks,

Asaf,


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

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


[jboss-user] [JBoss Seam] - s:convertEntity - EntityManager is closed.

2007-07-26 Thread trouby
Hey,
I generated a list action automatically with seam-gen that seems to work just 
fine,

I'm trying to add to the 'search parameters' in my list which extends 
EntityQuery a parameter that is based on some other entity,

I use h:selectOneMenu + s:selectItems and s:convertEntity tags,

but when I submit the form I get an 'EntityManager is closed' exception,


I guess this is due to the fact that during the form submit the EntityManager 
that is used by s:selectItems is closed,


What is the correct way to fix this issue? I guess having other entities as 
parameters is a must,


Many thanks,
Asaf.

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

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


[jboss-user] [JBoss Seam] - Re: Multiple row selection

2007-07-24 Thread trouby
Ye I know, that is only for facelets, just wanted to avoid constructing the map 
for all of these objects that were not selected,


but I'll wrap the map with a method that creates a list of the selected objects 
only,


thanks

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

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


[jboss-user] [JBoss Seam] - Multiple row selection

2007-07-23 Thread trouby
Hey,

I have created a CRUD actions for a specific entity via Seam-Gen which seems to 
be nice and clean using EntityHome/EntityQuery,

I would like to add to the generated list another column that has a boolean jsf 
tag in order to support multiple row selection,


I thought about adding a map to the EntityQuery seam component such as:

  | MapMyEntity, Boolean rowSelection;
  | 

and in my facelets code (per row):

  | datatable...
  | column
  | h:selectBooleanCheckbox 
value=#{myEntityList.rowSelection[myVarOfDataTable]} /
  | /column
  | 


I was wondering if there's a better way to pass the selected rows to an java 
action since this way is a little bit annoying due to the fact that -all- rows 
are passed but only the selected entities are equal to true,
so iteration + if conditions is required, etc...



Thanks,

Asaf.

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

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


  1   2   >