[Beginners Corner] - Re: problem starting server when using my .war
by kdr
This is how the connection factory is setup in weblogic in config.xml .
| <JMSConnectionFactory JNDIName="AlarmMgrConnectionFactory"
| Name="AlarmMgrConnectionFactory" Targets="myserver"/>
| <JMSConnectionFactory DefaultDeliveryMode="Non-Persistent"
| JNDIName="EventConnectionFactory" Name="EventConnectionFactory" Targets="myserver"/>
| <JMSConnectionFactory
| JNDIName="mydomain.JMSTestQueueConnectionFactory"
| Name="JMSTestQueueConnectionFactory" Targets="myserver"/>
| <JMSConnectionFactory
| JNDIName="mydomain.JMSTestTopicConnectionFactory"
| Name="JMSTestTopicConnectionFactory" Targets="myserver"/>
| <JMSConnectionFactory JNDIName="NotificationConnectionFactory"
| Name="NotificationConnectionFactory" Targets="myserver"/>
| <JMSConnectionFactory DefaultTimeToLive="15000" Name="TLIConnectionFactory"/>
| <JMSConnectionFactory DefaultDeliveryMode="Non-Persistent"
| DefaultTimeToLive="15000" JNDIName="TLIConnectionFactory"
| Name="TLINotifyConnectionFactory" Targets="myserver"/>
| <JMSConnectionFactory DefaultDeliveryMode="Non-Persistent"
| DefaultTimeToLive="15000" JNDIName="CacheConnectionFactory"
| Name="CacheConnectionFactory" Targets="myserver"/>
Can you tell how i can configure this in jboss
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962697#3962697
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962697
18 years, 5 months
[JBoss Seam] - Re: WebRemote inconsistencies
by ZeddMaxim
Here are the two stubs, the first set is when it does not work, the second, when it does. All I do inbetween is rebuild the ear and redeploy it via MyEclipse IDE. I am using JBoss 4.0.4GA (installed via the JEMS installer) and Seam 1.0.1 GA if that helps any.
Seam.Remoting.type.modelbuilder = function() {
| this.__callback = new Object();
| }
| Seam.Remoting.type.modelbuilder.__name = "modelbuilder";
|
| Seam.Component.register(Seam.Remoting.type.modelbuilder);
Seam.Remoting.type.modelbuilder = function() {
| this.__callback = new Object();
| Seam.Remoting.type.modelbuilder.prototype.findGL = function(p0, callback) {
| return Seam.Remoting.execute(this, "findGL", [p0], callback);
| }
| Seam.Remoting.type.modelbuilder.prototype.getDefaultPOD = function(p0, callback) {
| return Seam.Remoting.execute(this, "getDefaultPOD", [p0], callback);
| }
| Seam.Remoting.type.modelbuilder.prototype.getPriceFactors = function(p0, callback) {
| return Seam.Remoting.execute(this, "getPriceFactors", [p0], callback);
| }
| Seam.Remoting.type.modelbuilder.prototype.validateModelDescription = function(p0, p1, p2, callback) {
| return Seam.Remoting.execute(this, "validateModelDescription", [p0, p1, p2], callback);
| }
| }
| Seam.Remoting.type.modelbuilder.__name = "modelbuilder";
|
| Seam.Component.register(Seam.Remoting.type.modelbuilder);
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962695#3962695
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962695
18 years, 5 months
[JBoss Seam] - still javax.el.PropertyNotFoundException on glassfish
by liqusha
hi, i try my own simple example which is like registration example, i mean there is only a saving thing but i really just can't solve this problem:
javax.el.PropertyNotFoundException: /student.xhtml @15,69 value="#{student.name}": Target Unreachable, identifier 'student' resolved to null
what's all about? seam, jsf, facelets or session bean? i read about same problem but not any single useful answer
i used what exactly Roger Kitain uses on his very last example. i also adapted conf files to my simple project which are in his patch ... i have tested this both on glassfish(v2 b11) and on SJASPE9 ... always same problem.
P.S: I really liked seam and the idea behind. ejb3 seems simplified blah blah ... but it sometimes sounds as what they say "eating the elephant again???". I didn't eat before, because i was a hibernate fan, also on web tier i like nextapp echo not other stuff like jsf etc. Seam can make me think different but still a lot to learn.
It's 6:00 am here in my country and i still try for a simple example. If it becomes complicated for a guy who is open to new technologies like me then be sure there is a problem right here. Maybe i am too sleepy and testy but please somebody prepare some blank projects for eclipse or netbeans(5.5). And some notes on conf files for help. because i want to go on my way, not copy-paste engineering, ok? Is it really too hard? But not just like hibernate tools seam application skeleton thing, i mean not jboss specific. i dont have any problem with jboss, but for politic reasons you have to prove that, it works fine on glassfish too.
Anyway thanks already
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962694#3962694
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962694
18 years, 5 months
[Persistence, JBoss/CMP, Hibernate, Database] - ResultSet getBlob or getBinaryStream Throws an Exception
by emwamba
I have an application which stores PDF documents in a longblob column of a MySQL 5 table. A standalone Java application writes to the table and persists the documents to the table. The documents can be downloaded via a web application. The code to retrieve the documents is straight forward:
...
rs = stmt.executeQuery();
if (rs.next()) {
Blob blob = rs.getBlob(1);
InputStream in = blob.getBinaryStream();
}
The code works in Tomcat 5 but in JBoss 4.0.2 the call to rs.getBlob(1) throws the following exception:
java.lang.reflect.UndeclaredThrowableException
at $Proxy77.getBlob(Unknown Source)
Caused by: java.lang.IllegalAccessException: Method=public abstract java.sql.Blob java.sql.ResultSet.getBlob(int) throws java.sql.SQLException does not return Serializable
...
..
Replacing rs.getBlob(1) with rs.getBinaryStream(1) also throws the same exception.
This problem and a few other JDBC related problems are beginning to raise a lot of doubts in my head about JBoss. The application works on Geronimo and Tomcat, but I hate Geronimo and Tomcat has no EJB container. Help!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962693#3962693
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962693
18 years, 5 months