[JBoss Seam] - Re: Exadel, JBoss and Seam
by gilsontavares
Hi guys,
I'm from Brazil and I'm really excited with these technologies integration thru Seam. I think you guys are doing a terrific job.
I'm trying hard to understand how everything fits together. As a university professor, I'm introducing the use of JBoss products in my classes.
Right now I'm in a configuration battle with Seam, JBoss 4.0.5, Richfaces, Ajx4jsf and Myfaces / Facelets. All the examples I studied put all of the above jars inside the ear. That is good for examples, but not a good practice. Even considering the examples, I deploy the same set of the above jars for each example I try. It seems to be much more reasonable to install these jars in the container so that any app can use them. I installed my JBoss with class loader isolation configuration. I simply can't make things work, I receive all sorts of error msgs when I try to implement this idea. I tried many different confs in conf/jboss-service.xml, the deploy/jbossweb-tomcat55.sar/conf/web.xml and the deploy/jbossweb-tomcat55.sar/META-INF/jboss-service.xml and all I got is a change in the kind of errors reported. I'm really stuck with that. Of course, as deploying everything as modules in the ear, with the proper confs in application.xml, is the only approach that works, that's what I'm doing. But I really want to know how to configure these jars in JBoss so I don't need to insert them in each application I deploy. I googled a lot and I have a feeling that this problem is related with embedded tomcat class loader configuration 'cause, as far as I was able understand, the root of the problem is the binding of JSF libs/tlds (declared in jsf-libs dir of tc5) with the libs/tlds of Seam, Ajx4jf & Richfaces, since they are in different class loader memory areas when these jars are not inside the ear.
Can anyone help me to solve this puzzle?
Thanks in advance.
Gilson Tavares
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042464#4042464
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042464
17 years, 3 months
[JBoss Seam] - Re: Error selecting object
by laxu
Ok, I went through creating equals and hashcode methods for the Kullanici and Uzman as well. IMHO I have doen a decent implementation with commns-lang hashcode and equals builders.
Yet the problem is still there.
With "message" I mean a JSF message that can be seen by <h:messages/>. And the message is "Error selecting object"
This message is from the source :
| @Name("org.jboss.seam.ui.entityConverter")
| @Scope(ScopeType.CONVERSATION)
| @Install(precedence = BUILT_IN)
| @Converter
| @Intercept(NEVER)
| public class EntityConverter implements
| javax.faces.convert.Converter, Serializable
| {
|
| private ValueBinding<EntityManager> entityManager;
|
| private Log log = Logging.getLog(EntityConverter.class);
|
| private String errorMessage = "Error selecting object";
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042463#4042463
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042463
17 years, 3 months
[JBoss Seam] - Re: asynchasynchronous transactions problem
by Stateless Bean
| @Entity
| @Name("Person")
| @Scope(ScopeType.CONVERSATION)
| @Role(name="currentPerson", scope=ScopeType.PAGE)
| @Table(name="Person")
| public class Person implements Serializable {
| private static final long serialVersionUID = -3067249951570023008L;
| public Person() {}
|
| private Long id;
| private String username;
|
| private List<Planet> planetList = new LinkedList<Planet>();
|
| @OrderBy("idPlanet ASC")
| @OneToMany(mappedBy="planetOwner", fetch=FetchType.LAZY, cascade=CascadeType.ALL)
| public List<Planet> getPlanetList() {
| if(planetList == null)
| planetList = new LinkedList<Planet>();
| return planetList;
| }
| public void setPlanetList(List<Planet> planetList) { this.planetList = planetList;}
|
planet
| Entity
| @Name("Planet")
| @Scope(ScopeType.CONVERSATION)
| @Role(name="currentPlanet", scope=ScopeType.PAGE)
| @Table(name="Planet")
| public class Planet implements Serializable{
| private static final long serialVersionUID = -8781210700646546267L;
| public Planet() {}
|
| private Long idPlanet;
| private String Name;
| private Person planetOwner;
|
| @ManyToOne
| @JoinColumn(name="person_id")
| public Person getPlanetOwner() { return planetOwner; }
| public void setPlanetOwner(Person planetOwner) { this.planetOwner = planetOwner; }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042462#4042462
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042462
17 years, 3 months
[Performance Tuning] - JBoss AS Performance (with EJB 3.0)
by grdzeli_kaci
hi all,
i have topic about this on this forum
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=106866
i want performance tuning of jboss application server and my ejb 3.0 project,
there i post my server parameters
anonymous wrote :
| 1.AS - JBoss Application Server 4.0.4GA
| 2.Database - Oracle 10G 10.2.0.1
| 3.EJB - 3.0 Framework
| 4.OS - SunOS 5.10
| 5.Sun Server - Memory: 16G phys mem, 31G swap, 4 CPU,
|
also i have java performance configuration :
| JAVA_OPTS="-server -Xmx3168m -Xms2144m -Xmn1g -Xss256k -d64 -XX:PermSize=128m -XX:MaxPermSize=256m
| -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
| -XX:ParallelGCThreads=20 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC
| -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=31 -XX:+AggressiveOpts
| -verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -XX:+PrintTenuringDistribution
| -Xloggc:/export/home/jboss/jboss-4.0.4.GA/server/all/log/gc.log"
|
maybe i have something incorrect to achieve best performance can anybody help me ?
if JBoss Application Server could persist 1500 - 2000 entities per second, it will be great,
i have mission critical task, on development time i could not define all business requests for my program, already i wrote so large many application using distributed databases and applications, now i have very bad problem - performance.
and also, we (my company and i, i am a developer for this company) are trying to bye JBoss Application Server support "JBoss Enterprise Middleware Subscriptions" but yet we need to assure that we could resolve this problem,
is it possible to resolve this problem?
maybe we could change some configurations for best performance ?
or maybe Is it necessary to bye support to resolve this problem ?
Regards,
Paata.
Magticom L.T.D
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042459#4042459
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042459
17 years, 3 months
[Installation, Configuration & Deployment] - Re: JMS-Topic-Deployment on JBoss 5 Beta 2
by CarstenRudat
I just want to ask again... but I have to admit that my session bean is a mbean, not a session bean!
Here is the code:
| @Resource(mappedName="topic/myMessageTopic")
| protected Topic messageTopic;
|
My jboss-service.xml (in same JAR-file, as my MBean)
| <?xml version="1.0" encoding="UTF-8"?>
| <server>
| <mbean code="org.jboss.jms.server.destination.TopicService"
| name="jboss.messaging.destination:service=Topic,name=myMessageTopic" xmbean-dd="xmdesc/Topic-xmbean.xml">
| <attribute name="JNDIName">topic/myMessageTopic</attribute>
| <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
| <depends>jboss.messaging:service=PostOffice</depends>
| </mbean>
| </server>
|
As I said, the deployment of the mbean fails. After the deployment of the most of the jar, I see that the topic is startet... I think it is just a problem of timing: my mbean is deployed before jboss starts the topic...
Any ideas?
Carsten
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042457#4042457
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042457
17 years, 3 months