[JBoss Tools] New message: "Re: JBoss Maven Problem"
by Gilles Dupont Tagne Tagne
User development,
A new message was posted in the thread "JBoss Maven Problem":
http://community.jboss.org/message/522138#522138
Author : Gilles Dupont Tagne Tagne
Profile : http://community.jboss.org/people/tagnegilles
Message:
--------------------------------------------------------------
Thanks Peter, like i said in the first post, I created the project with jboss Tools( Jboss Maven)
the pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<artifactId>portal-parent</artifactId>
<groupId>de.cimt</groupId>
<version>1.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>de.cimt</groupId>
<artifactId>portal</artifactId>
<version>1.0</version>
<packaging>war</packaging>
<name>portal</name>
<description />
<build>
<finalName>${artifactId}</finalName>
<sourceDirectory>${basedir}/src</sourceDirectory>
<outputDirectory>${basedir}/build/classes</outputDirectory>
<resources>
<resource>
<directory>${basedir}/src</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jboss-maven-plugin</artifactId>
<version>1.4</version>
<configuration>
<jbossHome>/Applications/jboss-5.1.0.GA</jbossHome>
<serverName>default</serverName>
</configuration>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webappDirectory>${basedir}/WebContent</webappDirectory>
<warSourceDirectory>${basedir}/WebContent</warSourceDirectory>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-annotations</artifactId>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
</dependency>
<dependency>
<groupId>org.jboss.seam</groupId>
<artifactId>jboss-seam</artifactId>
</dependency>
<dependency>
<groupId>org.jboss.seam</groupId>
<artifactId>jboss-seam-ui</artifactId>
<exclusions>
<exclusion>
<artifactId>jboss-seam</artifactId>
<groupId>org.jboss.seam</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.jboss.seam</groupId>
<artifactId>jboss-seam-ioc</artifactId>
<exclusions>
<exclusion>
<artifactId>jboss-seam</artifactId>
<groupId>org.jboss.seam</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.jboss.seam</groupId>
<artifactId>jboss-seam-debug</artifactId>
<version>${seam.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.seam</groupId>
<artifactId>jboss-seam-mail</artifactId>
</dependency>
<dependency>
<groupId>org.jboss.seam</groupId>
<artifactId>jboss-seam-pdf</artifactId>
</dependency>
<dependency>
<groupId>org.jboss.seam</groupId>
<artifactId>jboss-seam-remoting</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
</dependency>
<dependency>
<groupId>org.richfaces.ui</groupId>
<artifactId>richfaces-ui</artifactId>
</dependency>
<dependency>
<groupId>org.richfaces.framework</groupId>
<artifactId>richfaces-api</artifactId>
</dependency>
<dependency>
<groupId>org.richfaces.framework</groupId>
<artifactId>richfaces-impl</artifactId>
</dependency>
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-api</artifactId>
</dependency>
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-impl</artifactId>
</dependency>
<dependency>
<groupId>javax.el</groupId>
<artifactId>el-api</artifactId>
</dependency>
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-compiler</artifactId>
</dependency>
<dependency>
<groupId>org.jbpm</groupId>
<artifactId>jbpm-jpdl</artifactId>
</dependency>
<dependency>
<groupId>commons-digester</groupId>
<artifactId>commons-digester</artifactId>
</dependency>
</dependencies>
</project>
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/522138#522138
16 years, 3 months
[JNDI and Naming] New message: "Re: Name lookup fails, reason unknown"
by Peter Johnson
User development,
A new message was posted in the thread "Name lookup fails, reason unknown":
http://community.jboss.org/message/522134#522134
Author : Peter Johnson
Profile : http://community.jboss.org/people/peterj
Message:
--------------------------------------------------------------
If your lookup code is returning a javax.naming.Reference, then you JNDI name is not complete. For example, if the full JNDI name is aaa/bbb/ccc and you look up aaa/bbb, then you will get a Reference. One thing you could do is use the methods on Reference to examine the names within that namespace, that might help suggest a solution.
Did you double-check the JNDIView in 5.1.0 to ascertain the full name of the deployed EJB? How does that name compare to the value of "jndiName" in your example code. (By the way, providing a code example that contains a variable instead of a literal is fairly useless when it comes to debugging problems. Without knowing the value of jndiName, all I can do is make guesses as to what the name is and thus what the problem might be.)
A JNDI name lookup for an EJB always returns a proxy (not entirely true, I think that when accessing the a local EJB you get the actual object). With EJB3, the proxy implements the remote and/or local interface so casting the proxy to the interface is not a problem.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/522134#522134
16 years, 3 months
[JNDI and Naming] New message: "Re: Name lookup fails, reason unknown"
by Timothy Mowlem
User development,
A new message was posted in the thread "Name lookup fails, reason unknown":
http://community.jboss.org/message/522129#522129
Author : Timothy Mowlem
Profile : http://community.jboss.org/people/jvm
Message:
--------------------------------------------------------------
Hello Peter,
Thanks for the help. Unfortunately a combination of:
1. I am a beginner with JBoss and AS/J2EE in general
2. Person with experience for the client is now in US and not easy to ask questions
But the app is running on JBoss 4.0.4 which I can see from logging in and the console output.
The app is using EJB annotations with no deployment descriptors or extending EJBHome etc so that makes it EJB 3 I believe
HOWEVER...
I have switched to use JBoss v5.1.0.GA as you recommended and I am almost there...
JBoss 5.1.0.GA is installed and running and I can connect on localhost.
The app deploys okay I think as I can see all the various beans in the JNDIView listing.
I can access the web interface okay via Safari as well.
Only thing still not working is the client code does a check to see if it can get hold of the remote interface via a name lookup thus:
remoteFacade = (RequestFacade)beanFinder.lookup(jndiName);
This fails because the object returned is a javax.naming.Reference so of course a ClassCastException is thrown.
Please can you explain why this fails?
Is it because the client is requesting a remote resource and so the object is not being returned, only the name of the class that creates it?
Or would I expect to get the remote proxy as an object if it was bound properly?
Maybe if the latter then there is still a binding problem?
Not sure if this means I should start a new thread?
Thank you.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/522129#522129
16 years, 3 months
[JBoss Messaging] New message: "pub/sub design"
by Rocky Triton
User development,
A new message was posted in the thread "pub/sub design":
http://community.jboss.org/message/522127#522127
Author : Rocky Triton
Profile : http://community.jboss.org/people/rockytriton
Message:
--------------------------------------------------------------
Hi, I need some advice on how best to design a system. I want to implement pub/sub to notify users of changes to various mailboxes. These are shared mailboxes, there are about 400 of them in the system total. Some of them tend to be huge, about 20,000+ items in them. I want to have the users subscribe to that specific mailbox topic and get notifications when mails are added or removed, that way I only have to refresh the whole mailbox at startup, after that refresh it will just add/remove on the fly whenever it receives notifications through the subscription.
The question is this, should I go with a topic for each of the 400 mailboxes, the users who share these mailboxes will subscribe to it, so there will be topics such as "/topic/sharedMBX1", "/topic/sharedMBX2", etc... Or should I go with a single topic, say "/topic/MBXUpdates" and use a message selector, so when the user creates a TopicSubscriber, it will be created with the message selector "sharedMBX2" to only get message notifications for that specific mailbox.
I guess what it comes down to is, is it easier to manage 400 topics or just manage one single topic that gets 400 times the messages as it would if there were 400 topics?
Thanks in advance
-- Rocky
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/522127#522127
16 years, 3 months