[jboss-user] [JBoss jBPM] - How to activate log in jbpm (3.2.GA)

2007-06-23 Thread sparklehorse
I can't find out how to see what jbpm is doing
When i use jbpm-enterprise.ear and test my process i see log detailed
on stdout, but when i embed the engine in my ear jbpm
does not log nothing.

I have unpacked jbpm-enterprise.ear to find some
log4j.xml or whatever without luck

any hints?



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

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


[jboss-user] [JBoss jBPM] - Why my condtion doesn't get evaluated?

2007-06-23 Thread sparklehorse
I have this snippet process definition


  |  
  |  
  | #{JBpmService.status=='DELETED'}
  |   
  |   
  |  #{JBpmService.status=='READY'}
  |
  |
  |   #{JBpmService.status=='UNDEF'}
  |   
  | 
  |   #{JBpmService.status=='NOT_LOGGED'}
  |  
  | 
  | 

I've set in contextinstance the object JBpmService in an action prior to the 
decision ( which has a status property ) with this code


  | ContextInstance contextInstance =  processInstance.getContextInstance();
  | contextInstance.setVariable("JBpmService",jbpms);
  | processInstance.signal();
  | 

What 's wrong?
I get always the first (default) transition.
Is there a simple way to debug this?


I've tried to change the expression in several ways with always the same 
result: default transition taken. for example


  | 
#{contextInstance.variables['JBpmService'].status=='READY'}
 
  | or 
  | 
#{contextInstance.variables.JBpmService.status=='READY'} 
  
  | 
i've tried also to set a simple String var status  to simplify : always default 
transition

  | #{status=='READY'}  
  | or
  | #{contextInstance.variables.status=='READY'} 
  
  | 

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

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


[jboss-user] [JBoss Seam] - Re: Seam performance concerns

2007-06-23 Thread liudan2005
Thanks for your reply. I am using server side states saving, and we don't have 
hashmap lookup in our pages.

We can't migrate to MyFaces 1.1.5 and Tomahawk 1.1.6 due to compatibility 
problem with seam 1.2.1. Also, MyFaces 1.1.5 doesn't work well with Seam 1.3. 
So basically we can't change our environment just yet.  Sad!

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

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


[jboss-user] [JBoss jBPM] - Timers get cancelled in TimerServiceBean.ejbTimeout even Run

2007-06-23 Thread justin.zhou
Hi, 

In a processdef, one fork leads to several states, each state has a timer 
attached. The idea is to do concurrent async executions through the 
TimerServiceBean. However, get exceptions, when those states changing to join 
node. 

anonymous wrote : Caused by: org.jbpm.graph.def.DelegationException: Row was 
updated or deleted by another transaction (or u
  | nsaved-value mapping was incorrect): [org.jbpm.graph.exe.Token#177]
  | at 
org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:367)
  | 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:585)
  | at 
org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.jav
  | a:173)
  | at 
org.jbpm.graph.def.ProcessDefinition_$$_javassist_98.raiseException(ProcessDefinition_$$_javass
  | ist_98.java)
  | at 
org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:358)
  | 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:585)
  | at 
org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.jav
  | a:173)
  | at 
org.jbpm.graph.node.State_$$_javassist_89.raiseException(State_$$_javassist_89.java)
  | at org.jbpm.job.Timer.execute(Timer.java:66)
  | at 
org.jbpm.scheduler.ejbtimer.ExecuteTimerCommand.execute(ExecuteTimerCommand.java:23)
  | at 
org.jbpm.ejb.impl.CommandServiceBean.execute(CommandServiceBean.java:90)
  | ... 42 more
  | 

This is acceptable if things can rollback. However when this happens, timers 
still been cancelled, so the actions will never been retried and the process 
sitting dead:



anonymous wrote : 2007-06-23 02:05:15,627 996227 DEBUG [org.jbpm.svc.Services] 
(EJB-Timer-7[target=jboss.j2ee:jndiName=local
  | /[EMAIL PROTECTED],service=EJB]:) closing service 'persistence': 
org.jbpm.persistence.jta.JtaDbPer
  | [EMAIL PROTECTED]
  | 2007-06-23 02:05:15,627 996227 DEBUG 
[org.jbpm.persistence.db.DbPersistenceService] (EJB-Timer-7[target=jb
  | oss.j2ee:jndiName=local/[EMAIL PROTECTED],service=EJB]:) committing 
hibernate transaction
  | 2007-06-23 02:05:15,628 996228 DEBUG 
[org.hibernate.transaction.CMTTransaction] (EJB-Timer-7[target=jboss.
  | j2ee:jndiName=local/[EMAIL PROTECTED],service=EJB]:) commit
  | 2007-06-23 02:05:15,628 996228 DEBUG [org.jbpm.svc.Services] 
(EJB-Timer-7[target=jboss.j2ee:jndiName=local
  | /[EMAIL PROTECTED],service=EJB]:) closing service 'scheduler': 
org.jbpm.scheduler.ejbtimer.EjbSche
  | [EMAIL PROTECTED]
  | 2007-06-23 02:05:15,628 996228 DEBUG 
[org.jbpm.scheduler.ejbtimer.EjbSchedulerService] (EJB-Timer-7[target
  | =jboss.j2ee:jndiName=local/[EMAIL PROTECTED],service=EJB]:) removing the 
timer service session bea
  | n
  | 2007-06-23 02:05:15,631 996231 DEBUG [org.jbpm.svc.Services] 
(EJB-Timer-8[target=jboss.j2ee:jndiName=local
  | /[EMAIL PROTECTED],service=EJB]:) closing service 'tx': [EMAIL PROTECTED]
  | 2007-06-23 02:05:15,632 996232 ERROR [org.jboss.ejb.plugins.LogInterceptor] 
(EJB-Timer-8[target=jboss.j2ee
  | :jndiName=local/[EMAIL PROTECTED],service=EJB]:) 
TransactionRolledbackLocalException in method: pu
  | blic abstract java.lang.Object 
org.jbpm.command.CommandService.execute(org.jbpm.command.Command), causedBy
  | :
  | org.jbpm.JbpmException: couldn't execute [EMAIL PROTECTED]
  | at 
org.jbpm.ejb.impl.CommandServiceBean.execute(CommandServiceBean.java:92)
  | 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:585)
  | at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
  | at 
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.j
  | ava:237)
  | at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterce
  | ptor.java:158)
  | at 
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterc
  | eptor.java:169)
  | at 
org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
  | at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
  | 

Should 

[jboss-user] [JBoss Seam] - Re: Strange things happen with seam security

2007-06-23 Thread amitev
Yes. I render a page with a login form on it. Idea for workaround of this - to 
show a page after session invalidation?

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

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


[jboss-user] [JBoss Seam] - Re: Strange things happen with seam security

2007-06-23 Thread amitev
I guess i have to force a redirect but how?

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

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


[jboss-user] [JBoss Seam] - Re: Strange things happen with seam security

2007-06-23 Thread amitev
The problem is that when the page is redisplayed after logout and i the submit 
button simply rerenders the page without invoking the login action

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

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


[jboss-user] [JBoss jBPM] - Re: Timers get cancelled in TimerServiceBean.ejbTimeout even

2007-06-23 Thread justin.zhou
jbpm.cfg.xml


  | 
  |   
  | 
  |   
  |   
  |   
  | 
  | 
  | 
  | 
  | 
  | 
  |   
 


hibernate.cfg.xml


  | 
  | 
  | org.hibernate.dialect.Oracle9Dialect
  | 
  | 
  | 
  | org.hibernate.cache.EhCacheProvider
  | 
  | 
  | java:/XAJbpmDS
  | 
  | 
  | 
  | 
  | 
  | org.hibernate.transaction.CMTTransactionFactory
  | org.hibernate.transaction.JBossTransactionManagerLookup
  | 

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

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


[jboss-user] [JBoss Seam] - Re: [1.3 CVS]Tomcat users getting the shaft?

2007-06-23 Thread [EMAIL PROTECTED]
OK, I had time to sit down and do this properly and actually test it this time. 
Its now working fine. What this means is that Seam now no longer needs a JTA or 
JNDI implementation to run (though you will still need the jta api jar in your 
classpath). Instead, Seam can delegate to EntityTransaction or Hibernate 
Transaction via an adaptor that implements UserTransaction.

So, the question is, is this a good thing to do? Is it better to run Seam in 
Tomcat with just the Hibernate jars, and resource-local transaction management, 
or is it better to go to the effort of installing JBoss Embedded on Tomcat?

Well, if you go the resource-local route you are totally on your own when it 
comes to:

* connection pooling (last time I checked, Tomcats connection pool was still a 
PoS and not usable in production)
* JMS
* Mail
* REQUIRES_NEW or NOT_SUPPORTED transaction propagation
* transactions across multiple datasources
* Enterprise-level security
* WebServices

Now, to me these features are kind of non-optional. I simply can't imagine 
building an application that doesn't need to send and receive email, for 
example.

Sure, you can certainly find solutions to each of these problems and integrate 
them into the environment yourself, but it seems to me that this is a fucking 
lot more work than editing two files in Tomcat's conf/ directory and copying 
some jars across!

But, you object, before you used to be able to deploy everything in the WAR and 
not have to futz with Tomcat configuration at all. Well, yes, thats true, and 
when Bill explained this redesign to me, I knew immediately that there would be 
lots of complaints about that. But its not like the old way was perfect, not by 
a long shot. Sure, you didn't have to "reconfigure" Tomcat, but what you did 
have to do was add additional configuration in components.xml, and add 
additional jars in your WAR, which made it impossible to create a WAR that 
deployed on both Tomcat and JBoss (or GlassFish/WLS/WAS). Oh, and you probably 
didnt see the awful crap code I had to write to workaround the problem of two 
JNDI trees in Tomcat deployments (I will never understand the reasoning behind 
a read-only JNDI implementation - it makes about as much sense as a read-only 
JPA implementation).

Did I make a mistake by removing the MC-only support? I dunno, but my feeling 
is that there are a lot more people currently using Embeddable EJB3 than plain 
Microcontainer, and I really wanted to narrow the choice-space of deployment 
options. We need one or two well-documented options for deploying Seam, not 3 
or 4 subtly different permutations of similar things!

Nevertheless its a huge problem for me that people can't now deploy the Seam 
examples to Tomcat just by typing "ant deploy.tomcat" in the directory. And so 
I will probably end up using my new resource-local transactions for the Tomcat 
examples in future releases of 1.3. 

OTOH I don't really consider it a good or useful feature for people building 
serious applications. Unfortunately, one of the things I know about the tech 
industry is that there are some things you simply can't change people's opinion 
of, no matter how strong your arguments and evidence. This whole 
quasi-religious "lightweight" nonsense is one of those things. It used to refer 
to a meaningful distinction between technologies like Hibernate/Pico/Spring/etc 
versus the screwed-up IBM-and-Oracle-designed programming models in J2EE. Now 
it's degenerated to a general vacuous point of FUD directed at anything which 
depends upon more than 3 jars, or happens to implement standards instead of 
reinventing boring, well-understood things like transaction management in a 
proprietary way. The idea that Tomcat=lightweight but JBoss/GlassFish=heavy is 
simply absurd. JBoss is easier to develop/debug on and easier to deploy into 
production. And it's a strict superset of Tomcat, that can run Tom!
 cat applications with no code changes. 

But, you have to sometimes give people what they think they want, even when it 
makes little sense. We'll have more success trying to lead people gradually to 
EE5 by letting them adopt a little piece at a time, as they feel comfortable 
with it, than we will by telling them to ditch the thing they feel safe and 
comfortable with.

(Aside: "POJO" is another one that's got totally out-of-hand: I like to believe 
that I wrote one of the "first" POJO frameworks, certainly people point to the 
success of Hibernate as validation of the concept. But what I was looking for 
was just a simpler, more practical programming model, that emphasized the 
business problem. Now you got guys on TSS arguing that ORM is fundamentally 
broken because objects need id attributes and hence aren't POJOs. WTF! An 
identifier attribute is making you unproductive? Your users are complaining 
that your objects aren't POJO enough? This is not a software development 
problem, this is pure religion. Man, these guys crack me up...)


View the origi

[jboss-user] [EJB 3.0] - protocol used in invoing ejb by local interface?

2007-06-23 Thread adamzrk
Hi
  When we communicate with session bean by remote interface, jboss uses 
rmi-iiop, but which protocol is used in communication with local interface?

Regards

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

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


[jboss-user] [JBoss Seam] - Re: Read only transactions or entityManagers

2007-06-23 Thread [EMAIL PROTECTED]
just set the flushmode to MANUAL

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

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


[jboss-user] [JBoss Seam] - Re: [1.3 CVS]Tomcat users getting the shaft?

2007-06-23 Thread [EMAIL PROTECTED]
anonymous wrote : Seam configuration could have been made simple by writing to 
the jboss deployment framework. All the gobbledegook in web.xml and tagging ejb 
jar files with a seam.properties file would have been unneeded. Sure, you would 
have to use that extra metadata if you wanted to run in WLS or Websphere, but 
don't you think we should be making things easier in environments where it is 
possible?

You keep saying this Bill, but it just doesn't seem correct.

I don't see how a JBoss deployer could possibly reduce the web.xml 
gobbledegook, a typical web.xml in 1.3 on AS 4.2 looks like:


  |   
  | 
  | org.jboss.seam.servlet.SeamListener
  | 
  | 
  | 
  | Seam Filter
  | org.jboss.seam.web.SeamFilter
  | 
  | 
  | 
  | Seam Filter
  | /*
  | 
  |  
  | 
  | Faces Servlet
  | javax.faces.webapp.FacesServlet
  | 1
  | 
  | 
  | 
  | Faces Servlet
  | *.seam
  | 
  | 
  | 

I'm not sure which bit of that you find offensive, nor do I really see how 
using a deployer would help.

Oh, and in 1.3, you don't need faces-config at all unless you are using 
facelets.

As for the seam.properties file: BFD! It's an empty file. Who cares? I would 
rather require it in all environments than have to document which environments 
it is required in and which it is not, and make Seam applications more 
unportable.

The only other bit of required metadata is ejb-jar.xml, which yes, we could 
eliminate using a deployer, but again, it would reduce portability for little 
obvious gain in simplicity. It looks exactly the same in every Seam 
application, and you simply never have to open it or think about it.




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

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


[jboss-user] [JBoss Seam] - Re: Strange things happen with seam security

2007-06-23 Thread [EMAIL PROTECTED]
Add a navigation rule in pages.xml, of course:


  |
  | 

Or maybe just:


  |
  | 

If you want to stay on the current page.


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

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


[jboss-user] [JBoss Seam] - Read only transactions or entityManagers

2007-06-23 Thread Kruno
I am using seam 1.2.1 EJB 3.0 in JBOSS 4.0.5 
Application that I am making has a need that every change is historically 
saved. It is a bit of a pickle, but I have managed to make a system, actually 
every entity has its historical counter part through which every change on 
original entity is saved so you can later browse entities throw time. To 
achieve that functionality I use @postload method in which I load historical 
version of entity and copy its attributes on real one so that user can see what 
some entity looked like in past on certain date.

That all works fine but now comes the problem because I have changed original 
attributes the entity is now dirty, and it is automatically committed to 
database. I can not allow that when conversation is working in past time  there 
can not be any changes to entities. 

I would like to use seam managed persistence because it is a complicated 
application and many statefull beans work together in one conversation. But 
here comes the problem of transactions that I can not actually control them. 
I allso tried with query.hint(readOnly) but that does not work for entities who 
are eagerly and lazy fetched.
I was wondering is there a way to configure entity manager to mark entities as 
read-only so they would never be persisted, if that is possible then I would 
use 2 managers on for normal behavior and one for looking at entities in the 
past.
Please any ideas on this problem even if they mean some what changing my ideas 
on how to persist historical data
Thanks in advance Kruno.

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

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


[jboss-user] [JBoss Seam] - Re: Read only transactions or entityManagers

2007-06-23 Thread Kruno
Thanks for prompt responese.
Can flushmode be set at run time ?

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

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


[jboss-user] [JBoss Seam] - Re: Strange things happen with seam security

2007-06-23 Thread amitev
Works like a charm. Thank you!

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

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


[jboss-user] [Beginners Corner] - Re: Try to use jboss 4.2.0GA with MySQL

2007-06-23 Thread frocco
I am a newbie also, but I would try renaming the file to mysql-ds.xml.

HTH

Frank

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

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


[jboss-user] [JBoss Seam] - Re: [1.3 CVS]Tomcat users getting the shaft?

2007-06-23 Thread [EMAIL PROTECTED]
Thanks once again for doing this. 

Believe it or not I'm in the boat of just installing a full EE environment, but 
some decisions (made by less than informed people ^^) you just can't go against.

Thanks

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

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


[jboss-user] [EJB 3.0] - Retrieving data from database

2007-06-23 Thread alexrozario
Hi all,

I have created an entity bean class as Stores.java and Stateless Session bean 
as SearchSession.java.

And i am using Search.xhtml(facelet) file to retrieve data from table Stores in 
my local database.

I am using Seam 1.2.1 GA version to configure them

and i am using a query as 
List details =em.createQuery("select s from Stores s").getResultList(); in my 
Session bean. 

and i am using datatable in my .xhtml file to view the data. 
but it doesn't shows any result. my table has more than 5 records. whats wrong 
in my coding. how to overcome this..

please help me..

thanks in advance..

i am waiting for your valueable help

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

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


[jboss-user] [JBoss Seam] - Retrieving data from database

2007-06-23 Thread alexrozario
Hi all,

I have created an entity bean class as Stores.java and Stateless Session bean 
as SearchSession.java.

And i am using Search.xhtml(facelet) file to retrieve data from table Stores in 
my local database.

I am using Seam 1.2.1 GA version to configure them

and i am using a query as 
List details =em.createQuery("select s from Stores s").getResultList(); in my 
Session bean. 

and i am using datatable in my .xhtml file to view the data. 
but it doesn't shows any result. my table has more than 5 records. whats wrong 
in my coding. how to overcome this..

please help me..

thanks in advance..

i am waiting for your valueable help

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

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


[jboss-user] [EJB 3.0] - Re: Database Connection

2007-06-23 Thread alexrozario
Thank you for your timely help andydale.

Sorry for my belated reply.

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

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


Re: [jboss-user] [JBoss Seam] - Re: Entry Point

2007-06-23 Thread David Radunz

Hi,

   Should the same technique be used to layer xhtml resources like 
EJB's can be (using the @Install annotation)? If so, how would you have 
multiple pages.xml files - and would it conflict?


Say I had a real view: "/product/function.xhtml" and I had customised 
version of it deployed at a particular site called 
"/site/product/function.xhtml". Could (or rather should) I use this 
approach:









And refer to the view generally as only "/product/function.xhtml", but 
actually load "/site/product/function.xhtml". Or should I use something 
like EL at all times and resolve the actual resource via a method call 
or resource bundle?


What methodology have you used to address this in the past?

Cheers,

David



[EMAIL PROTECTED] wrote:


pages.xml for a fake view id is like:


 | 
 | 
 | 
 | 
 | 

or something close to that.

There is no /entryPoint.xhtml file. thats just the URL you want to appear in 
the browser.

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

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

-
Utiba Pty Ltd 
This message has been scanned for viruses and
dangerous content by Utiba mail server and is 
believed to be clean.


 



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


[jboss-user] [JBoss Portal] - Re: Unable to load tag handler

2007-06-23 Thread nishadahiya
Hi,

which jar files are required to be copied in server's lib directory for 
deploying mylayout.war file for our own layout and theme.

please help.

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

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


[jboss-user] [JBoss/Spring Integration] - Re: Problem in spring integration

2007-06-23 Thread astonishingone
alesj thank you for ur reply 

  I added  ejb3 support to my jboss 4.0.5 ,sorry for this silly mistake as i am 
new to jboss.

Now following error is coming 

15:46:28,531 WARN  [ServiceController] Problem starting service 
jboss.j2ee:service=EJB3,
  | module=business.ejb3 
  | java.lang.NoClassDefFoundError: Lorg/jboss/tutorial/spring/WordsCreator;
  | at java.lang.Class.getDeclaredFields0(Native Method)
  | at java.lang.Class.privateGetDeclaredFields(Class.java:2232)
  | at java.lang.Class.getDeclaredFields(Class.java:1715)

Looks like not able to find the spring beans declared in 
spring-pojo.spring/
   beans classes  
  META-INF/
 jboss-spring.xml 

Thanks in advance 

I am new to spring and jboss thank you for understanding and I am converting my 
application  to spring + ejb3 + hibernate  in jboss as it will be an enterprise 
application and want to target 20 thousand + concurrent user  ,so any 
suggestions /advice will be highly appreciated  

 Thanks again for help in advance

  


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

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


[jboss-user] [JBoss Portal] - Re: collabation portlets, tools portlets ...

2007-06-23 Thread nishadahiya
Hi lionel,

can you please share more information on portlet that you are using i.e. 
agenda, office portlet etc. 
and can you please give me some brief about collobration portlet.

thanks 

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

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


[jboss-user] [JBoss Seam] - Re: Retrieving data from database

2007-06-23 Thread Kruno
Please post the source.

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

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


[jboss-user] [JBoss Seam] - Re: Entry Point

2007-06-23 Thread utiba_davidr
Hi,

   Should the same technique be used to layer xhtml resources like EJB's can be 
(using the @Install annotation)? If so, how would you have multiple pages.xml 
files - and would it conflict?

Say I had a real view: "/product/function.xhtml" and I had customised version 
of it deployed at a particular site called "/site/product/function.xhtml". 
Could (or rather should) I use this approach:


  | 
  | 
  | 
  | 


And refer to the view generally as only "/product/function.xhtml", but actually 
load "/site/product/function.xhtml". Or should I use something like EL at all 
times and resolve the actual resource via a method call or resource bundle?

What methodology have you used to address this in the past?

Cheers,

David 

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

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


[jboss-user] [JBoss Seam] - Re: Seam performance concerns

2007-06-23 Thread mgrouch
Try using one transaction per page load (preferably with one EJB call in case 
of CMT). You might have to use wrapper transfer objects (which are considered 
not necessary nowadays) to wrap entities of different types.
This made big difference in my case. Do not forget to cache JNDI lookups. 

See also other people experience here:

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



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

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


[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Adding .jar files to the classpath of a webapp

2007-06-23 Thread Raist_Majere
Try using Class-Path within the EAR manifest like in this example:

  | app3.ear:
  | META-INF/application.xml
  |   ejb1_client.jar
  |   ejb3.jar Class-Path: ejb1_client.jar
  |   webapp.war Class-Path: ejb1_client.jar
  | WEB-INF/web.xml
  | WEB-INF/lib/servlet1.jar
  | 


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

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


[jboss-user] [Installation, Configuration & Deployment] - Re: Which jboss server?

2007-06-23 Thread frocco
I forgot to say, I deploy war files.
I looked at jbossweb and jboss AS

Thanks

Frank

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

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


[jboss-user] [JBoss Seam] - JSF 1.2 parameters and their performance impact on Seam

2007-06-23 Thread mgrouch
There is number of config (context) parameters which can be specified for
JSF 1.2 (which is now included in JBoss app server).

List:

http://wiki.glassfish.java.net/Wiki.jsp?page=JavaServerFacesRI#section-JavaServerFacesRI-WhatContextParametersAreAvailableAndWhatDoTheyDo

Are there any performance tweaks which can be done with those?

Thx



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

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


[jboss-user] [JBoss Seam] - Re: Read only transactions or entityManagers

2007-06-23 Thread [EMAIL PROTECTED]
Or @Begin(flushMode=MANUAL)

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

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


[jboss-user] [JNDI/Naming/Network] - Re: java.rmi.ConnectException

2007-06-23 Thread Malert
Hi,
have you got this error cleared, i am also having the same problem. If you have 
solution please help me.

Thanks,
Malert Jones

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

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


[jboss-user] [JBoss Seam] - Re: Seam performance concerns

2007-06-23 Thread mgrouch
And local EJB interfaces vs remote ones to reduce serialization.

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

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


[jboss-user] [Installation, Configuration & Deployment] - Which jboss server?

2007-06-23 Thread frocco
Hello,
We currently use tomcat and am thinking of trying jboss.
Currently we use JSF & Grails apps.
Database is MySQL
I would like to learn Seam, but am wondering if it is overkill for the apps we 
currently write, mostly CRUD.

Thanks

Frank

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

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


[jboss-user] [JBoss Seam] - Re: Seam performance concerns

2007-06-23 Thread mgrouch
Have you trieed Sun's JSF 1.2? Seam 1.3.0.A is pretty good and 1.3.0 should be 
out soon... You also should use facelets instead of JSPs.
Tomahawk immediate="true" helps a bit too on forms where you do not need 
validation. Hibernate caching should be used. Reduce number of complicated
EL expressions per page (cause they are evaluated using reflexion). Use AJAX, 
bit not over do it (for things which can be done purely on client side you 
should do it on client side). Use client side validation if you can.
Try to find out with http://facestrace.sourceforge.net/
which phase takes longest and try to improve it. Profiling should give better 
picture.
Reduce logging and IO.
Use java StringBuilder instead of StringBuffer. Minimize string concatenation,
and improve other string manipulations.







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

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


[jboss-user] [JBoss Seam] - Re: Configuration of just using seam taglib

2007-06-23 Thread jimmy6
Could you show me where is the ajax code for validation? I cant find on the 
source.

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

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


[jboss-user] [JBoss Seam] - Suggestion

2007-06-23 Thread sergeypk
I think it would be a nice addition to the page actions mechanism if it was 
possible to specify that a certain component is to be instantiated when the 
page is visited, unless the component already exists. This would allow me to 
put some initialization code for a page into that component's @Create method 
and outject variables that the page would then display.

On subsequent requests the creation code would not be executed since the 
component would exist already.

Depending on the component's scope, it would either get recreated every time 
the user revisits the page, or only once per conversation.

This is currently achievable by specifying an empty method of the component as 
the page action, but I think it would be nicer if I this was supported directly.

Does this sound reasonable or am I talking nonsense?

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

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


[jboss-user] [JBoss Seam] - Re: Seam performance concerns

2007-06-23 Thread mgrouch
And more ideas: Native IO on app server, JRockit JVM. Give JVM higher memory 
settings. Use factories for stateless objects such as DAOs (so they are created 
once and not repeteadly created/destroyed).


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

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


[jboss-user] [JBoss Seam] - Re: Read only transactions or entityManagers

2007-06-23 Thread Kruno
I guess this would be the answer:
PersistenceContexts.instance().changeFlushMode(FlushModeType.MANUAL);   

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

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


[jboss-user] [JBoss jBPM] - Re: Timers get cancelled in TimerServiceBean.ejbTimeout even

2007-06-23 Thread justin.zhou
Ok, found the problem.

TimerService.add() does not have interval, so only one execution suppose to 
run. Made a small patch, works fine now.
Still, the concurrent execption is really ugly. Will try tree cache to see if 
any difference. 

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

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


[jboss-user] [JBoss Seam] - Re: Seam Conversations - Best practices?

2007-06-23 Thread [EMAIL PROTECTED]
"Delphi's Ghost" wrote : I did try to seam-gen up an application using my dummy 
dev database (Projects, and Issues per project), and it simply created pages to 
list, view and edit the projects or issues. I'm not sure whether it was 
supposed to pick up on the foreign key and list the issues per project or not, 
but it didn't work with either Seam 1.2.1 or 1.3 Alpha (I'm using mySQL for 
test dev work). 

No, I don't think it does this, though it could be a nice extension.

anonymous wrote : So, with that in mind, I'm not quite sure what you mean by 
nesting CRUDs, but does it handle sharing the persistence contexts between 
multiple nested conversations and only flushing the item you are editing?

Normally, you would have a (SM)PC associated with the outer conversation, which 
would then be used by nested conversations.  If you want to only flush certain 
changes, then you *don't* want to share the PCs.

anonymous wrote : Based on the docs and my experiences, nested conversations 
are about providing multiple continuation points within the same conversation 
as opposed to having the same amount of work in just one conversation.
  | Nesting is fine for browsing (i.e. breadcrumbs), but it seems that only one 
editing page can be involved in one conversation at a time when the flushMode 
is manual.

I sort of follow what you are saying.  If you have one SMPC, then when you 
flush it *any* changes made to entities loaded with it will be saved.

anonymous wrote : I'm trying out a single conversation view page with the edit 
Widget page, and the Widget subDetail editing taking place in new separate top 
level conversations without any nesting involved. This way, the user can open 
editors in new windows, or tabs, without any dire consequences. I pass the Ids 
to the urls in an slink with a propagation of none, and the links are 
bookmarkeable.

That sounds sensible, and sort of what I was trying to say earlier (well, what 
I meant to say at least).

anonymous wrote : Part of the reason for this was the lack of an immediately 
obvious way to click on a subDetail item to edit it which would then POST my 
changes to the currently edited widget , start a new conversation for the 
subDetail editor, and pass over some kind of value from the old conversation 
indicating which subDetail I am supposed to be editing. The s:link with 
propagation and a param does all that, except for the POST, hence it is being 
launched from a view only page.
  | 
  | It feels like the only option left, but at the same time, it feels like I'm 
only using a fraction of the power of Seam to do master/detail editing which is 
the bread and butter of software development. (Generate CRUD which is a close 
second is something Seam excels at). Alternatively, I could be using it exactly 
in the right way it was designed to be used for this particular scenario. It's 
hard to tell without any kind of standard best practices of how to use the 
different elements within seam.  The examples highlight particular parts of the 
framework as opposed to demonstrating how to use them all together. 
  | 

Yes, this is a pattern that isn't quite down yet!  I'll mull it over ;)

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

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


[jboss-user] [EJB 3.0] - weird problem with loading collections of subclasses

2007-06-23 Thread tuxzilla
I have a class Listing with two collections reviews and discussions. Both 
Review and Discussion are subclasses mapped to the same table, distinguished by 
a discriminator column type. I am using Seam 1.2.1 but the problem is most 
likely related to the persistence mapping. Here  are the mappings:

  | @Entity
  | @Name("listing")
  | public class Listing implements java.io.Serializable {
  | ...
  | 
  | @OneToMany(targetEntity = Review.class, cascade = CascadeType.ALL, 
fetch = FetchType.LAZY, mappedBy = "listing")
  | private Set reviews = new HashSet(0);
  | 
  | @OneToMany(targetEntity = Discussion.class, cascade = CascadeType.ALL, 
fetch = FetchType.LAZY, mappedBy = "listing")
  | private Set discussions = new HashSet(0);
  | 
  | }
  | 
  | 

and


  | @Entity
  | @Name("review")
  | @DiscriminatorValue("review")
  | @Indexed(index="review")
  | public class Review extends com.n2.bo.UserContent implements 
java.io.Serializable {
  | ...
  | @ManyToOne(fetch = FetchType.LAZY)
  | @JoinColumn(name = "listingId")
  |  private Listing listing;
  | }
  | 
  | 
  | @Entity
  | @Name("discussion")
  | @DiscriminatorValue("discussion")
  | @Indexed(index="discussion")
  | public class Discussion extends com.n2.bo.UserContent implements 
java.io.Serializable {
  | ...
  | @ManyToOne(fetch = FetchType.LAZY)
  | @JoinColumn(name = "listingId")
  |private Listing listing;
  | }
  | 
  | @Entity
  | @Table(name = "user_content")
  | @Name("userContent")
  | @Inheritance(strategy = InheritanceType.SINGLE_TABLE)
  | @DiscriminatorColumn(name = "type",
  | discriminatorType = DiscriminatorType.STRING)
  | public class UserContent implements java.io.Serializable {
  | ...
  | }
  | 
  | 

The problem I have is that we I load either reviews or discussions of a 
listing, both reviews and discussions are loaded into one collection, without 
checking for discriminator value. I verified this with sql statement there was 
no where type='review' or where type='discussion' clause. Any idea why? 

Thanks.

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

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


[jboss-user] [JBoss/Spring Integration] - Re: Problem in spring integration

2007-06-23 Thread alesj
You are probably missing Spring deployer.
See example for instructions on how to install it.

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

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


[jboss-user] [JBoss Seam] - Re: Configuration of just using seam taglib

2007-06-23 Thread [EMAIL PROTECTED]
The ajax stuff comes from ajax4jsf (or icefaces, or whatever), the validation 
from hibernate-validator/hibernate-annotations, Seam just ties it together.  
Look at org.jboss.seam.faces.Validation (it's in core in a released version).

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

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


[jboss-user] [JBoss Seam] - Seam over JSF 1.2 performance

2007-06-23 Thread mgrouch
I've added tomahawk 1.1.6 and wrapped document using tomahawk
t:document. App is using JSF 1.2 and Seam 1.3.0.A on JBoss 4.2.
The rendering works noticably faster, not sure why though.
Might be Seam development team could look at that and if performance
is indeed better Seam could be improved so no tomahawk is needed (I do not use 
tomahawk for anything else in my app, and no myfaces JSF implementation at all).


anonymous wrote : 
  | http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
  | http://www.w3.org/1999/xhtml";
  |   xmlns:ui="http://java.sun.com/jsf/facelets";
  |   xmlns:h="http://java.sun.com/jsf/html";
  |   xmlns:t="http://myfaces.apache.org/tomahawk";
  |   xmlns:f="http://java.sun.com/jsf/core";
  |   xmlns:s="http://jboss.com/products/seam/taglib";>
  | 
  | 
  | 
  | Seam App
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 

Added into 
web.xml


  | 
  | MyFacesExtensionsFilter
  | 
org.apache.myfaces.webapp.filter.ExtensionsFilter
  | 
  | maxFileSize
  | 20m
  | Set the size limit for uploaded files.
  | Format: 10 - 10 bytes
  | 10k - 10 KB
  | 10m - 10 MB
  | 1g - 1 GB
  | 
  | 
  | 
  | 
  | 
  | 
  | MyFacesExtensionsFilter
  | 
  | Faces Servlet
  | 
  | 
  | 
  | 
  | MyFacesExtensionsFilter
  | /faces/myFacesExtensionResource/*
  | 
  | 
  | 
  | 
  |   
  | org.apache.myfaces.ADD_RESOURCE_CLASS
  | 
org.apache.myfaces.component.html.util.StreamingAddResource
  |   
  | 
  | 
org.apache.myfaces.COMPRESS_STATE_IN_SESSION
  | false
  |  
  | 
  | 
org.apache.myfaces.SERIALIZE_STATE_IN_SESSION
  | false
  |  
  | 
  | 
org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION
  | 20
  | Only applicable if state saving method is "server" (= 
default).
  |  Defines the amount (default = 20) of the latest views 
are stored in session.
  | 
  |  
  | 
  | 
  | 


added commons-fileupload-1.2.jar into WEB-INF/lib


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

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


[jboss-user] [JNDI/Naming/Network] - Re: java.rmi.ConnectException

2007-06-23 Thread dboeckli
Yes -solved. it was a network problem - ports were blocked by firewalls. We 
have a huge network, so perhaps it took so long because the requests went up to 
timbuktu (where the forgot to close those ports) and back sometimes. Take a 
look in the wiki where it is explained which ports must be open and talk to 
your network admin.

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

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


[jboss-user] [EJB 3.0] - Re: Retrieving data from database

2007-06-23 Thread waynebaylor
did you insert the records into the table manually or did you use the 
EntityManager?

i've noticed that when i insert records manually queries made with 
EntityManager don't see them for a while. Not sure yet why that is...

if that's not your problem, then i would try the query as 
em.createQuery("from "+Stores.class.getName()).getResultList();


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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - EJB3 query ?

2007-06-23 Thread mladen.babic
Hi people,

I have four entities and they have ralationship.Example:

product|-1->--*-|property|-1->-*-|productRuleProperty|-<*---1| textRuleProperty|
--
and I have query

"from Product  as p join p.properties  pp join pp.productRuleProperties prp 
join prp.textRuleProperty trp where trp.name='Mono' and  trp.name='Numeric'"

And when I execute query I get  0 result.I'm  sure that one product has both 
values in text rule,but when I remove one of these values ,result is ok.How do 
I resolve this problem?Does anybody know different solution?

tnx,
mb

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

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


[jboss-user] [JBoss Portal] - Re: What is the standard way to include Javascript resources

2007-06-23 Thread [EMAIL PROTECTED]
I used the word "should", I'll try to get something done by GA.

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

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


[jboss-user] [JBoss Seam] - Re: How can I embed label value in validation error message?

2007-06-23 Thread jpviragine
Guys,

Take a look at: 
http://java.sun.com/developer/technicalArticles/J2EE/jsf_12/#customMessages


Joao Paulo

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

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


[jboss-user] [JBoss Seam] - Re: Seam performance concerns

2007-06-23 Thread stu2
I think you would want to run your app with a profiler and find out, 
empirically, where your app is spending its time.  I think most commercial 
profilers have trial versions, and there are a variety of ways to do this.  

Your app design based on Seam/JSF is no doubt quite different than it was with 
Struts.  I suspect that when you compare two very well designed apps built with 
Seam and Struts, the Seam app will be somewhat slower.  But not 10x.  That 
sounds like an application issue.  Beware of blindly trying things that "might 
improve performance."  

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

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


[jboss-user] [JBoss Seam] - Re: Seam performance concerns

2007-06-23 Thread stu2
"mgrouch" wrote :  Use factories for stateless objects such as DAOs (so they 
are created once and not repeteadly created/destroyed).
  | 
  | ...
  | Do not forget to cache JNDI lookups. 
  | 

Again, you can certainly spend time doing this kind of stuff on the off chance 
that it will improve performance.  More likely you'll find that in modern JVMs, 
object creation for short lived objects is essentially free, and JNDI lookups 
(btw, you're using Seam, right?  Where are you directly interacting with JNDI 
anyway?) aren't going to be significant.

Spend some time with a profiler an find out what's going on.  It's irrefutable, 
and will show you where you should spend effort optimizing.  You may find that 
there are performance issues with Seam.  You'll also find that if you can 
clearly show the issue, the Seam team will be extremely responsive in 
addressing these.

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

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


[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Adding .jar files to the classpath of a webapp

2007-06-23 Thread jwiegley
I did try adding "package.jar" to the Class-Path in manifest.mf, but the module 
still comes up missing.

John

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

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


[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu

2007-06-23 Thread demetrio812
I confirm it is the UseJBossWebLoader set to true that make the email fails. I 
have to set to true coz I'm using rich faces drag and drop and it needs to 
import the DropEvent class (org.ajax4jsf.dnd.event.DropEvent).

You suggested to put anything in the WAR, but how can I do with my case?

Is there a solution or I have to wait until the next version of Rich Faces?

Thanks!

Demetrio

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

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


[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu

2007-06-23 Thread [EMAIL PROTECTED]
We aren't planning to spend time making this work with UseJBossWebLoader=true.  
What is your case?  Let us know what jars you have where, and post relevant 
code.

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

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


[jboss-user] [JNDI/Naming/Network] - Re: JBoss 4.2 ejb not bound

2007-06-23 Thread _steph
Thank you for your reply Jaikiran. 


Configuration files and lookup code are generated with Xdoclet 1.2.3.

Bean Xdoclet tags:

 * @ejb.bean name="Calc" description="An EJB named Calc" display-name="Calc"
 *   view-type="both" jndi-name="CalcHome" local-jndi-name =
 *   "CalcLocalHome" type="Stateless" transaction-type="Container"
 * 
 * 
 * @ejb.util generate="logical"
 * 
 * @ejb.home package="calc.interfaces"
 * 
*

generated ejb-jar.xml file:

 Calc

   

  
  
 
 Calc

 Calc

 calc.interfaces.CalcHome
 calc.ejb.Calc
 calc.interfaces.CalcLocalHome
 calc.ejb.CalcLocal
 calc.ejb.CalcSession
 Stateless
 Container

  
...





jboss.xml specific generated file:



   

 

  
 Calc
 CalcHome
 CalcLocalHome

   

  



Server log when I deploy the app:


02:52:21,796 INFO  [EARDeployer] Init J2EE application: 
file:/D:/jboss-4.2.0/server/default/deploy/CalcEAR.ear
02:52:22,015 INFO  [EjbModule] Deploying Calc
02:52:22,390 INFO  [BaseLocalProxyFactory] Bound EJB LocalHome 'Calc' to jndi 
'CalcLocalHome'
02:52:22,406 INFO  [ProxyFactory] Bound EJB Home 'Calc' to jndi 'CalcHome'
02:52:22,406 INFO  [EJBDeployer] Deployed: 
file:/D:/jboss-4.2.0/server/default/tmp/deploy/tmp27268CalcEAR.ear-contents/Calc.jar
02:52:22,421 INFO  [TomcatDeployer] deploy, ctxPath=/CalcWeb, 
warUrl=.../tmp/deploy/tmp27268CalcEAR.ear-contents/CalcWeb-exp.war/
02:52:22,515 INFO  [EARDeployer] Started J2EE application: 
file:/D:/jboss-4.2.0/server/default/deploy/CalcEAR.ear



So the session bean is supposed to be bound to jndi his names.
But in the JNDIView.list() result there is no Calc bean. It's not deployed

...
Ejb Module: Calc.jar

java:comp namespace of the Calc bean:

  +- env (class: org.jnp.interfaces.NamingContext)
...

For me it's a jboss bug and the jboss log is erroneous. The lookup code 
generated by Xdoclet too, I tried your sample lookup code with same result.

Stephane.






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

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


[jboss-user] [JBoss Seam] - Re: javax.el.ELException , unable to localize the error

2007-06-23 Thread gena777
Hi,
is it possible, you are getting some where an uncaught exception (i would say 
null pointer) and seam interceptor rolls back the transaction? In the next step 
your page will rerender and touch a really null (or corrupt) objects. 


Gena
  

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

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


[jboss-user] [JBoss Seam] - entityManager null exception on CVS20070623

2007-06-23 Thread gus888
Hi all,

I just downloaded the new CVS and tested it, but I got entityManager null 
exception in Authenticator. Thank you in advance.
In Authenticator:   @In(create = true)
  | private EntityManager entityManager;
In components.xml   
The exceptions:20:52:21,343 ERROR [SeamLoginModule] Error invoking login method
  | javax.el.ELException: org.jboss.seam.RequiredException: In attribute 
requires non-null value: authenticator.entityManager
  | at 
org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:329)
  | at 
org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:338)
  | at 
org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
  | at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
  | at 
org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
  | at org.jboss.seam.core.Expressions$2.invoke(Expressions.java:177)
  | at 
org.jboss.seam.security.jaas.SeamLoginModule.login(SeamLoginModule.java:104)
  | 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:585)
  | at 
javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
  | at 
javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
  | at 
javax.security.auth.login.LoginContext$5.run(LoginContext.java:706)
  | at java.security.AccessController.doPrivileged(Native Method)
  | at 
javax.security.auth.login.LoginContext.invokeCreatorPriv(LoginContext.java:703)
  | at 
javax.security.auth.login.LoginContext.login(LoginContext.java:575)
  | at org.jboss.seam.security.Identity.authenticate(Identity.java:321)
  | at org.jboss.seam.security.Identity.authenticate(Identity.java:311)
  | at org.jboss.seam.security.Identity.login(Identity.java:227)
  | 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:585)
  | at 
org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:325)
  | at 
org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:338)
  | at 
org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
  | at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
  | at 
org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
  | at 
com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
  | at 
javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
  | at 
com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
  | at javax.faces.component.UICommand.broadcast(UICommand.java:383)
  | at 
javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447)
  | at 
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752)
  | at 
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
  | at 
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
  | at 
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
  | at 
com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:57)
  | at 
com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:45)
  | at 
com.icesoft.faces.webapp.http.core.IDVerifier.service(IDVerifier.java:19)
  | at 
com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.service(BasicAdaptingServlet.java:16)
  | at 
com.icesoft.faces.webapp.http.servlet.ViewBoundAdaptingServlet.service(ViewBoundAdaptingServlet.java:30)
  | at 
com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
  | at 
com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
  | at 
com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:89)
  | at 
com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:35)
  | at 
com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
  | at 
com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
  | at 
com.icesoft.faces.webapp.http.servlet.MainServlet.service

[jboss-user] [JBoss Seam] - Problem with entity in session scope and JSF inputText

2007-06-23 Thread amitdk
I've spent too much time on this so far and am wondering if conceptually I am 
doing something wrong. I would imagine this to be a fairly common use case for 
folks, so here's the issue:
Here's a snippet of my xhtml page - 

  | 
  | Timeline
  | 
  | 
  |   
 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 

The TimelineChangeListener is as follows:

  | @Name("timelinechange")
  | public class TimelineChangeListener implements ValueChangeListener 
  | {
  | @Out(value="selectedTimeline", required = false, scope = SESSION)
  | Timeline timeline;
  | 
  | public void processValueChange(ValueChangeEvent arg0)
  | throws AbortProcessingException {
  | timeline = (Timeline) arg0.getNewValue();
  | 
  | // TODO Auto-generated method stub
  | System.out.println("timeline selection");
  | }
  | }
  | 

The Timeline entity looks as follows:

  | /**
  |  * Timeline generated by hbm2java
  |  */
  | @Entity
  | @Name("timeline")
  | @Role(name="selectedTimeline", scope=SESSION)
  | @Table(name = "timeline", catalog = "statreport", uniqueConstraints = 
@UniqueConstraint(columnNames = "description"))
  | public class Timeline implements java.io.Serializable
  | {
  | private int id;
  | 
  | private String description;
  | 
  | public Timeline()
  | {
  | }
  | 
  | public Timeline(int id, String description)
  | {
  | this.id = id;
  | this.description = description;
  | }
  | 
  | @Id
  | @Column(name = "id", unique = true, nullable = false)
  | @NotNull
  | public int getId()
  | {
  | return this.id;
  | }
  | 
  | public void setId(int id)
  | {
  | this.id = id;
  | }
  | 
  | @Column(name = "description", unique = true, nullable = false, length = 
20)
  | @NotNull
  | @Length(max = 20)
  | public String getDescription()
  | {
  | return this.description;
  | }
  | 
  | public void setDescription(String description)
  | {
  | this.description = description;
  | }
  | 
  | @Transient
  | public Date getStartDate()
  | {
  | Calendar startCal = Calendar.getInstance();
  | // Determine start of week
  | if (getDescription() == null || getDescription().equals("Weekly"))
  | {
  | System.out.println("Weekly timeline");
  | }
  | else if ( getDescription().equals("Monthly"))
  | {
  | System.out.println("Monthly timeline");
  | }
  | // Convert calender to date
  | Date startDate = startCal.getTime();
  | return startDate;
  | }
  | 
  | @Transient
  | public Date getEndDate()
  | {
  | Calendar startCal = Calendar.getInstance();
  | if (getDescription() == null || getDescription().equals("Weekly"))
  | {
  |   ...
  | }
  | return endDate;
  | }
  | }
  | 
  | 

The ajax support tag calls the timelinechangelistener which sets the selected 
timeline and puts it into a session scope. Since the rendered element calls the 
selected timeline getStartDate method, I expected the selected timeline to get 
passed in, however the timeline on which the getStartDate is called is never 
selectedTimeline. Hopefully, made things clear as to what I am trying to 
accomplish. In short, based on the selected timeline, I would like to change 
the start date/end date logic.

Any help is appreciated

Thanks
Amit Karandikar


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

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


[jboss-user] [JBoss Seam] - Re: entityManager null exception on CVS20070623

2007-06-23 Thread gus888
Sorry, I just found the solution from Seam examples. I changed the persisent 
code as followings in components.xml, and exceptions gone. Thank you.

  | 

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

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


[jboss-user] [JBoss Seam] - [solution]: selectOneMenu binding to session object

2007-06-23 Thread joeyxxx
If anyone else needs a solution, this is what I ended up doing.



  | 
  | public class Avatar implements Serializable{
  | 
  | private String nickName;
  | private String style;
  | private int index;
  | /** Creates a new instance of Avatar */
  | public Avatar() {
  | }
  | 
  | public Avatar(String nickName, String style, int index){
  | this.style = style;
  | this.nickName = nickName;
  | this.index = index;
  | }
  | 
  | 
  | public String toString(){
  | return this.index + "";
  | }
  | 
  | public String getNickName() {
  | return nickName;
  | }
  | 
  | public String getStyle() {
  | return style;
  | }
  | 
  | public String getSelectLabel(){
  | return "***"+style + ":"+ nickName;
  | }
  | }
  | 
  | 
  | 
  | @Name("avatarConverter")
  | @Intercept(NEVER)
  | @Converter
  | public class AvatarConverter implements javax.faces.convert.Converter
  | {
  |@In User user;
  |public Object getAsObject(FacesContext context, UIComponent component, 
String value) throws ConverterException
  |{
  |   Integer i = new Integer(value);
  |   User user = (User) Contexts.getSessionContext().get("user");
  |   Avatar currentAvatar = user.getAvatarList().get(i.intValue());
  |   return currentAvatar;
  |}
  | 
  |public String getAsString(FacesContext context, UIComponent component, 
Object value) throws ConverterException
  |{
  |   return value + "";
  |}
  | }
  | 
  | 
  | 
  | @Name("user")
  | @Scope(SESSION)
  | //@Startup
  | public class User implements Serializable{
  | 
  | @Logger private static Log log;
  | private String userName;
  | private Avatar currentAvatar;
  | private List avatarList;
  | /** Creates a new instance of User */
  | public User() {
  | }
  | 
  | public User(String pUserName, List pAvatarList){
  | this.userName = userName;
  | this.avatarList = pAvatarList;
  | 
  | if(avatarList.size()>0){
  | this.currentAvatar = avatarList.get(0);
  | } else {
  | this.currentAvatar = new Avatar("Nick", "3d", 0);
  | this.avatarList = new ArrayList();
  | this.avatarList.add(currentAvatar);
  | }
  | }
  | 
  | public List getAvatarList(){
  | return this.avatarList;
  | }
  | 
  | 
  | @Create
  | public void initialize(){
  | System.out.println("User Initialized");
  | }
  | 
  | public void click(){
  | log.info("User Click Invoked...");
  | }
  | 
  | public String getUserName() {
  | return userName;
  | }
  | 
  | public void setUserName(String userName) {
  | this.userName = userName;
  | }
  | 
  | public Avatar getCurrentAvatar() {
  | return currentAvatar;
  | }
  | 
  | public void setCurrentAvatar(Avatar currentAvatar) {
  | this.currentAvatar = currentAvatar;
  | }
  | 
  | }
  | 

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

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


[jboss-user] [JNDI/Naming/Network] - Re: JBoss 4.2 ejb not bound

2007-06-23 Thread jaikiran
 CalcHome
  | CalcLocalHome 
  | 

anonymous wrote : 02:52:22,390 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 
'Calc' to jndi 'CalcLocalHome'
  | 02:52:22,406 INFO [ProxyFactory] Bound EJB Home 'Calc' to jndi 'CalcHome' 
  | 

Your EJB is deployed and bound to the JNDI name CalcHome for the remote 
interface and CalcLocalHome for the local interface in the *global jndi 
namespace*.

So your lookup should look like:

Context ctx = new InitialContext();
  | //remote home lookup
  | Object obj = ctx.lookup("CalcHome");
  | CalcHome home = (CalcHome) PortableRemoteObject.narrow(obj,CalcHome.class);
  | //create the remote bean
  | bean = home.create();
  | 
For local interface

Context ctx = new InitialContext();
  | //local home lookup
  | Object obj = ctx.lookup("CalcLocalHome");
  | CalcLocalHome localhome = (CalcLocalHome) obj;
  | //create the local bean
  | bean = localhome.create();
  | 

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

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


[jboss-user] [JBoss Seam] - Re: selectOneMenu binding to session object

2007-06-23 Thread joeyxxx
The issue with this solution is that the converter is coupled to the User class 
and so will only work if the list being displayed by selectOneMenu is the one 
in the user class. It isn't an issue in my particular application though. 

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

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


[jboss-user] [EJB 3.0] - Bidirectional Cascade

2007-06-23 Thread thepriz
When you put declare a bidirectional relationship in a OneToMany and ManyToOne 
relationship and put a cascade=CascadeType.ALL on the OneToMany declaration is 
the cascade in both directions or only on the OneToMany relationship? In other 
words if I have a airplane with passangers and I remove a passenger will it 
delete the airplane?

And how do I get it to set a ManyToOne relationship null if the otherside is 
deleted?

I have been working with Cascades but I just can't seem to get it to work right.

Thanks in advance,
Dennis Przybyla

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

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


[jboss-user] [JCA/JBoss] - Building HelloWorld Resource adaptor

2007-06-23 Thread milan321
Hello I am new to JBoss JCA.
I want a simple running example of a JCA resource adapter. With all the 
configuration files needed by jboss.
I would be thankful if anybody help me.

Regards 
Milan


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

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


[jboss-user] [Installation, Configuration & Deployment] - Re: Configuring XAOracleDS

2007-06-23 Thread vikaswarkar
change the package name
org.jboss.resource.adapter.jdbc.xa.oracle.OracleXAExceptionFormatter
to 
org.jboss.resource.adapter.jdbc.vendor.OracleXAExceptionFormatter in 
oracle-xa-ds.xml

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

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


[jboss-user] [JCA/JBoss] - How to expose jndi over http

2007-06-23 Thread milan321
hello I want to expose JNDI over HTTP.
how can I do that.
i read the JBoss admin guide it is talking about 
"jmx-invoker-adaptor-service.sar  " where can i get this file.
I would be thankful if anyboby could tell me the detailed configuration for 
exposing JNDI over http.

Regards 
Milan

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

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