[jboss-user] [JBoss Portal] - Re: Url : how to define MyPortal as the default portal.

2008-07-19 Thread Antoine_h
Hello,

I don't remember exactly what I did for the class in the jira.
I surely modified it to provide it to the portal.
mine is a little bit different, for specific thing of my portal.

however, here the main part of the code of it, that must be changed.
this is working in my portal, with JBP 2.6.4.

// orginal code : Portal portal = 
ctx.getDefaultPortal();
  | PortalObject portalObject = 
ctx.getChild(getDefaultPortalName());
  | if (portalObject == null) {
  | throw new IllegalStateException(
  | "PortalObject as Default Portal 
is not found. Default Portal name is defined to : "
  | + 
getDefaultPortalName());
  | }
  | Portal portal = null;
  | if (portalObject instanceof Portal) {
  | portal = (Portal) portalObject;
  | } else {
  | throw new IllegalStateException(
  | "Can't find PortalObject with 
default portal name : "
  | + 
getDefaultPortalName());
  | }
  | // ( here the rest of the code of the method)
  | 

The whole class is quite simple.
the thing to do (modify) is to find the default portal from the name you want, 
and then make the same process as the original class, with that "portal" 
instance.

look at the code and make it work your way.
that the most simple thing I believe I can tell for helping you do it.

hope it helps.


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

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


[jboss-user] [Clustering/JBoss] - [b]Is there a platform for multi-agent systems based mobile

2008-07-19 Thread hou84
Hello,
I used JBoss AOP for aspect oriented programming. Now, I would like to use a 
multi-agent platform.
I would like to know if JBoss has a multi-agent platform based mobile agents?
Any answer please?

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

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


[jboss-user] [JBoss Cache: Core Edition] - Re: cache not flushed as often as expected

2008-07-19 Thread yangju
Sorry the xml quoto was missing. It is 
 
  | 
  | 0
  | 1800
  | 1800
  | 
 
"yangju" wrote : I am running jboss 4.2 and hibernate with jboss treecache 
(deployed as mbean) as hibernate cache provider. I have the following default 
region evict policy defined in the treecache-service.xml :
  | org.jboss.cache.eviction.LRUPolicy
  | 
  | 
  | 0
  | 1800
  | 1800
  | 
  | 
  | In my code I save my query cache into a region called "/myregion". However, 
I don't have region "/myregion" configured. I thought if myregion is not 
defined in treecache-service.xml, it falls back to _default_ region. So I 
expected that every 30 mins my cache is flushed. However, I found that the 
cache is flushed every 3 or 4 hours, not 30 mins as specified in the _default_ 
region.
  | 
  | Do I have to define myregion? Doesn't treecache uses default cache policy 
if it cannot fine myregion? 
  | 
  | Thanks.
  | 
  | 
  |  
  | 
  | 0
  | 1800
  | 1800
  | 
  | 

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

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


[jboss-user] [JBoss Cache: Core Edition] - cache not flushed as often as expected

2008-07-19 Thread yangju
I am running jboss 4.2 and hibernate with jboss treecache (deployed as mbean) 
as hibernate cache provider. I have the following default region evict policy 
defined in the treecache-service.xml :
org.jboss.cache.eviction.LRUPolicy


0
1800
1800


In my code I save my query cache into a region called "/myregion". However, I 
don't have region "/myregion" configured. I thought if myregion is not defined 
in treecache-service.xml, it falls back to _default_ region. So I expected that 
every 30 mins my cache is flushed. However, I found that the cache is flushed 
every 3 or 4 hours, not 30 mins as specified in the _default_ region.

Do I have to define myregion? Doesn't treecache uses default cache policy if it 
cannot fine myregion? 

Thanks.



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

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


[jboss-user] [Beginners Corner] - Re: ERROR [MainDeployer] could not create deployment: file:/

2008-07-19 Thread search4u2003
im getting the same error mentioned below can any one help me im new to jboss

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

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


jboss-user@lists.jboss.org

2008-07-19 Thread kukeltje
- yes (or plain jsf, but I'd certainly not go for struts)
- do the first, seam project
- both, but depending on your needs

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

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


[jboss-user] [JBoss jBPM] - Re: Deploy the jBPM 3.2.3 JBoss 4.2 / 4.3

2008-07-19 Thread kukeltje
I did get your point, sorry for not stating that clearly. I just wanted to add 
that it does not work out of the box for the whole 4.2 series and yes that 
makes things worse.

Regarding the docs, If you have some 'patches' we'd be glad to add them. The 
reason we are not putting effort in it is that 'many things' are undergoing 
changes (there will e.g. most likely be a JBoss AS 4.0 compatible release, and 
a 4.2 compatible release.



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

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


[jboss-user] [JBoss jBPM] - Re: Can we assign mulptiple swimalnes to a task??

2008-07-19 Thread kukeltje
correct

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

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


[jboss-user] [Advanced Documentation] - Re: How to Configure Jboss4.2.2 using Https

2008-07-19 Thread naturei27
Hi Peter,

I was going thru the URL:-http://wiki.jboss.org/wiki/Wiki.jsp?page=SSLSetup 
and in that content they have mentioned how to setup the Jboss ..In the URL 
Mentioned there is a topic called  "1-SSL enabled on the server-the common 
case" in that we are creating the server.cer and client.truststore .Please 
explain the use of that.In  that topic there is a subtopic called as "Run the 
client" java -Djavax.net.ssl.trustStore=client.truststore 
-Djavax.net.ssl.trustStorePassword=123456 acme/ReadHttpsURL2 
https://localhost:8443

I'm having the following problem in this step.

D:\mykeystore\serverkeys>java -Djavax.net.ssl.trustStore=client.truststore -Djav
ax.net.ssl.trustStorePassword=123456 acme/ReadHttpsURL2 https://localhost:443
Exception in thread "main" java.lang.NoClassDefFoundError: acme/ReadHttpsURL2
Caused by: java.lang.ClassNotFoundException: acme.ReadHttpsURL2
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)


Please tell me, where can I get this class...Please do reply me .
 

Thanks in advance


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

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


[jboss-user] [JBoss Messaging] - Re: question about DownCacheSize

2008-07-19 Thread jasonhu919
thanks for the quick response.

"Wellnot exactly, all messages will actually go in to the down cache however 
only non persistent messages will get paged to the database. "

I am so confused by this above line. my understanding was : for non-persistent 
messages, when the DownCache reaches the limit (for example the default 2000), 
it will gets paged to storage (database) as a batch, so to avoid memory leak. 
if server crashes in the middle, only paged ones get saved. Persistent messages 
get paged to storage right away.

if what you said is true, the persistent messages are not paged to database, 
first question is: where does it store the messages then? after the size 
reaches the DownCacheSize limit, what will happen then?



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

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


[jboss-user] [JBoss Tools (users)] - Re: JBossWS-Tools?

2008-07-19 Thread Juergen.Zimmermann
Which perspective is best suited for JBossWS-Tools: JavaEE, Web Developement or 
?
Which menu item should/can be invoked in the beginning?

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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - JNDI bound SessionFactory !!!

2008-07-19 Thread siddharth_2279
Hi All, 
1) Could anyone please tell me the steps to create a JNDI bound Session 
Factory. I am struggling with it for days. Please Help !!! 
2) Is there a difference between JNDI bound SessionFactory and normal JNDI 
connection using Hibernate. 
I am using the following softwares : 

JBoss AS 4.2.2 GA 
MySQL (database)
Hibernate 3.2

The program which I have tried is the following : 

SaveExample.java
-

  | private static Context jndiContext;
  | 
  | public static void main(String[] args) {
  | // TODO Auto-generated method stub
  | 
  | 
  | Session session = null;
  | 
  | try{
  | System.out.println("Before Session Factory 
Configuration. !!!");
  | 
  | SessionFactory sf = new 
Configuration().configure().buildSessionFactory();
  | 
  | 
  | jndiContext = new InitialContext();
  | 
  | sf = (SessionFactory)jndiContext.lookup("java:MySqlDS");
  | 
  | 
  | session = sf.openSession();
  | 
  | System.out.println("After Session Factory 
Configuration. !!!");
  | 
  | 
  | 
  | }catch(Exception e){
  | e.printStackTrace();
  | }finally{
  | session.flush();
  | session.close();
  | }
  | 
  | }
  | 
  | 

hibernate.cfg.xml


  | 
  | 
  | 
  | 
  | MySqlDS 
  | java:Mydatabase
  | 
  | 
  | 
  | 
  | 
  | true
  | true
  | 
  | 
  | org.hibernate.dialect.MySQLDialect
  | update
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 

I have put the lib file mysql-connector-java-5.1.5-bin.jar in the 
server\default\lib folder of JBoss and I have put the mysql-ds.xml file in 
server\default\deploy directory of JBoss. 

mysql-ds.xml 
---

  | 
  | 
  |   
  | MySqlDS
  | jdbc:mysql://localhost:3306/jbossdb
  | 
  | false
  | com.mysql.jdbc.Driver
  | root
  | root
  | 
org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter
  | 
  | 
  | 
  | 
  | 
  | 
  |mySQL
  | 
  |   
  | 
  | 
  | 
  | 

Exception 
---

  | 
  | Before Session Factory Configuration. !!!
  | log4j:WARN No appenders could be found for logger 
(org.hibernate.cfg.Environment).
  | log4j:WARN Please initialize the log4j system properly.
  | org.hibernate.HibernateException: Could not find datasource
  | at 
org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:56)
  | at 
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
  | at 
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)
  | at 
org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:414)
  | at 
org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62)
  | at 
org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
  | at 
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)
  | at com.example.jndi.JNDIExample.main(JNDIExample.java:27)
  | Caused by: javax.naming.NoInitialContextException: Cannot instantiate 
class:  [Root exception is java.lang.ClassNotFoundException: ]
  | at 
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
  | at 
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
  | at javax.naming.InitialContext.init(InitialContext.java:223)
  | at javax.naming.InitialContext.(InitialContext.java:197)
  | at 
org.hibernate.util.NamingHelper.getInitialContext(NamingHelper.java:28)
  | at 
org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)
  | ... 7 more
  | Caused by: java.lang.ClassNotFoundException: 
  | at java.lang.Class.forName0(Native Method)
  | at java.lang.Class.forName(Class.java:242)
  | at 
com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:42)
  | at 
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654)
  | ... 12 more
  | Exception in thread "main" java.lang.NullPointerException
  | at com.example.jndi.JNDIExample.main(JNDIExample.java:44)
  | 
  | 


The problem is that the program (SaveExample.java) in Eclipse is running as a 
standalone Java Application and Jboss server is running in an

[jboss-user] [JNDI/Naming/Network] - Could not find datasource !!!

2008-07-19 Thread siddharth_2279
Hi All. 
I am stuck in a peculiar problem and struggling with it. I have a created a 
standalone program in Java that accesses a database through a DataSource which 
I have configured in JBoss AS. I am trying to access the database using JNDI. 
I have a program by the name of SaveExample 


  | private static Context jndiContext;
  | 
  | public static void main(String[] args) {
  | // TODO Auto-generated method stub
  | 
  | 
  | Session session = null;
  | 
  | try{
  | System.out.println("Before Session Factory 
Configuration. !!!");
  | 
  | SessionFactory sf = new 
Configuration().configure().buildSessionFactory();
  | 
  | 
  | jndiContext = new InitialContext();
  | 
  | sf = (SessionFactory)jndiContext.lookup("java:MySqlDS");
  | 
  | 
  | session = sf.openSession();
  | 
  | System.out.println("After Session Factory 
Configuration. !!!");
  | 
  | 
  | 
  | }catch(Exception e){
  | e.printStackTrace();
  | }finally{
  | session.flush();
  | session.close();
  | }
  | 
  | }
  | 
  | 

hibernate.cfg.xml


  | 
  | 
  | 
  | 
  | MySqlDS 
  | java:Mydatabase
  | 
  | 
  | 
  | 
  | 
  | true
  | true
  | 
  | 
  | org.hibernate.dialect.MySQLDialect
  | update
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 

I have put the lib file mysql-connector-java-5.1.5-bin.jar in the 
server\default\lib folder of JBoss and I have put the mysql-ds.xml file in 
server\default\deploy directory of JBoss. 

mysql-ds.xml 
---

  | 
  | 
  |   
  | MySqlDS
  | jdbc:mysql://localhost:3306/jbossdb
  | 
  | false
  | com.mysql.jdbc.Driver
  | root
  | root
  | 
org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter
  | 
  | 
  | 
  | 
  | 
  | 
  |mySQL
  | 
  |   
  | 
  | 
  | 
  | 

Exception 
---

  | 
  | Before Session Factory Configuration. !!!
  | log4j:WARN No appenders could be found for logger 
(org.hibernate.cfg.Environment).
  | log4j:WARN Please initialize the log4j system properly.
  | org.hibernate.HibernateException: Could not find datasource
  | at 
org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:56)
  | at 
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
  | at 
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)
  | at 
org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:414)
  | at 
org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62)
  | at 
org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
  | at 
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)
  | at com.example.jndi.JNDIExample.main(JNDIExample.java:27)
  | Caused by: javax.naming.NoInitialContextException: Cannot instantiate 
class:  [Root exception is java.lang.ClassNotFoundException: ]
  | at 
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
  | at 
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
  | at javax.naming.InitialContext.init(InitialContext.java:223)
  | at javax.naming.InitialContext.(InitialContext.java:197)
  | at 
org.hibernate.util.NamingHelper.getInitialContext(NamingHelper.java:28)
  | at 
org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)
  | ... 7 more
  | Caused by: java.lang.ClassNotFoundException: 
  | at java.lang.Class.forName0(Native Method)
  | at java.lang.Class.forName(Class.java:242)
  | at 
com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:42)
  | at 
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654)
  | ... 12 more
  | Exception in thread "main" java.lang.NullPointerException
  | at com.example.jndi.JNDIExample.main(JNDIExample.java:44)
  | 
  | 


My problem is that the program (SaveExample.java) in Eclipse is running as a 
Java Application and Jboss server is running in another console window. So how 
could I make them connect to each other so that they the application program 
can recognize the datasource and not give

[jboss-user] [EJB 3.0] - Re: Accessing EJB3 without a home interface

2008-07-19 Thread nbhatia
Answering my own question :-). This is how I was able to do it:


  | 
  | 
  | 
  | 
  | HelloWorldBean
  | HelloWorld
  | 
  | 
  | 
  | 
  | 

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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Problem cloning entity with ClassMetadata

2008-07-19 Thread terryb
I am attempting to write a utility method to clone an entity using Hibernate 
ClassMetadata. my entities extend a EntityBase class which holds few common 
properties and methods. The problem is that the 
classMetadata.getPropertyValues(...) method throws exception when it tries to 
access getter method for property defined in the superclass. 

Any way to resolve this

Exception


  | Caused by: org.hibernate.PropertyAccessException: IllegalArgumentException 
occurred calling getter of au.edu.tisc.entity.EntityBase.insertDate 
  | 
  | Caused by: org.hibernate.PropertyAccessException: IllegalArgumentException 
occurred calling getter of au.edu.tisc.entity.EntityBase.insertDate
  | 
  |   at 
org.hibernate.property.BasicPropertyAccessor$BasicGetter.get(BasicPropertyAccessor.java:171)
  |   at 
org.hibernate.tuple.entity.AbstractEntityTuplizer.getPropertyValues(AbstractEntityTuplizer.java:256)
  |   at 
org.hibernate.tuple.entity.PojoEntityTuplizer.getPropertyValues(PojoEntityTuplizer.java:209)
  |   at 
org.hibernate.persister.entity.AbstractEntityPersister.getPropertyValues(AbstractEntityPersister.java:3576)
  |   at au.edu.tisc.session.CloneEntity.clone(EntityCloner.java:48)
  |   
  |   
  | 


  | Snippet from my EntitCloner utility class   
  | 
  | ...
  | ClassMetadata classMetadata = 
sessionFactory.getClassMetadata(course.getClass());
  | 
  | String[] propertyNames = classMetadata.getPropertyNames();
  | /* this works ok and lists all the properties, including those in the 
EntityBase(mappedSuperclass), as below: */
  | [insertDate,lastUpdateDate,code...]
  | 
  | 
  | Object[] propertyValues = 
classMetadata.getPropertyValues(this.sourceEntityClass, EntityMode.POJO);
  | /* this throws exception ?? as it tries to find/access/trace/? 
getter method for insertDate property */
  | ...
  | 
  | 
  | @Entity
  | @Table(name = "Course")
  | public class Course extends EntityBase implements java.io.Serializable {
  | 
  | private String code;
  | private CourseStatus courseStatus;
  | private Set preferences = new HashSet(0);   
  | ...
  | 
  | public Course() {}
  | 
  | public Course(String id, String code, CourseStatus courseStatus, Date 
lastUpdateDate, Date insertDate, Set preferences ...) {
  | 
  | super(id, lastUpdateDate, insertDate);
  | this.courseStatus = courseStatus;
  | this.code = code;
  | this.preferences = preferences;
  | ...
  | }
  | 
  | @Column(name = "Code", nullable = false, length = 20)
  | @NotNull
  | @Length(min = 5, max = 5)
  | public String getCode() {
  | return this.code;
  | }
  | 
  | public void setCode(String code) {
  | this.code = code;
  | }
  | 
  | @ManyToOne(fetch = FetchType.LAZY)
  | @JoinColumn(name = "CourseStatusID")
  | public CourseStatus getCourseStatus() {
  | return this.courseStatus;
  | }
  | 
  | public void setCourseStatus(CourseStatus courseStatus) {
  | this.courseStatus = courseStatus;
  | }
  | 
  | @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy 
= "course")
  | public Set getPreferences() {
  | return this.preferences;
  | }
  | 
  | public void setPreferences(Set preferences) {
  | this.preferences = preferences;
  | }   
  | ...
  | }   
  | 
  | 
  | @MappedSuperclass
  | public abstract class EntityBase {
  | private String id;
  | private Date lastUpdateDate;
  | private Date insertDate;
  | 
  | public EntityBase () {
  | super();
  | }
  | 
  | public EntityBase (String id) {
  | super();
  | this.id = id;
  | }
  | 
  | public EntityBase(String id, Date lastUpdateDate, Date insertDate) {
  | super();
  | this.id = id;
  | this.lastUpdateDate = lastUpdateDate;
  | this.insertDate = insertDate;
  | }
  | 
  | @Id
  | @GenericGenerator(strategy="au.edu.tisc.session.OnlineKeyGenerator", 
name="onlineKeyGen")
  | @GeneratedValue(generator="onlineKeyGen")
  | @Column(name = "ID", unique = true, nullable = false, length = 20)
  | public String getId() {
  | return id;
  | }
  | 
  | public void setId(String id) {
  | this.id = id;
  | }
  | 
  | @Column(name = "LastUpdateDate", length = 23)
  | public Date getLastUpdateDate() {
  | return lastUpdateDate;
  | }
  | 
  | public void setLastUpdateDate(Date lastUpdateDate) {
  | this.lastUpdateDate = lastUpdateDate;
  | }
  | 
  | @Column(name = "InsertDate", length = 23)
  | public Date getInsertDate() {
  | return insertDate;
  | }
  | 
  | public void setInsertDate(Date insertDate) {
  | this.insertDate = insertDate;
  | }
  | ...
  | }
  | 

[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - How to replace end-user's IP with server's IP?

2008-07-19 Thread atis
I have an application running on Jboss 4.2.2, implementing some custom 
authentication logic, then displaying a third party application in an iframe. 
The third-party application authenticates based on the request IP, which should 
be the IP of the server running JBoss. However, currently the request contains 
the IP of the client, so the authentication fails. 
Is there some configuration option to override this behavior and use the 
server's IP in the request, or should I set up an apache proxy just for that?


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

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


[jboss-user] [EJB 3.0] - Re: Accessing EJB3 without a home interface

2008-07-19 Thread nbhatia
Thanks Andrew. I was able to use @RemoteBinding to control the JNDI name. Now I 
would like to move this specification only to jboss.xml. However, I could not 
find much documentation around it. I have already looked through the following 
URLs

  | * 
http://docs.jboss.org/ejb3/app-server/reference/build/reference/en/html/jboss_extensions.html
  | * 
http://docs.jboss.org/ejb3/app-server/reference/build/reference/en/html/jboss_deployment_descriptor.html
  | * 
http://docs.jboss.org/ejb3/app-server/reference/build/reference/en/html/partial_deployment_descriptors.html
  | 
Any help would be greatly appreciated.

Thanks.
Naresh

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Error in shutdown using jboss_init_redhat.sh

2008-07-19 Thread thalupula
Hi Peter,

I done with shutdown by following your instructions, Now i'm focusing on the 
exception. How can i resolve below error. Any configurations required at run.sh 
file?

04:03:34,829 ERROR [LogInterceptor] TransactionRolledbackLocalException in 
method: public abstract void 
javax.jms.MessageListener.onMessage(javax.jms.Message), causedBy:
javax.ejb.EJBException: Unexpected Error
java.lang.OutOfMemoryError: PermGen space

at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:237)
at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
at 
org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:109)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
at 
org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:402)
at org.jboss.ejb.Container.invoke(Container.java:960)
at sun.reflect.GeneratedMethodAccessor87.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at 
org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
at 
org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
at 
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
at 
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
at 
org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor.delivery(MessageEndpointInterceptor.java:263)
at 
org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor.invoke(MessageEndpointInterceptor.java:140)
at 
org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
at $Proxy85.onMessage(Unknown Source)
at 
com.ibm.mq.connector.inbound.MessageEndpointWrapper.onMessage(MessageEndpointWrapper.java:124)
at com.ibm.mq.jms.MQSession.run(MQSession.java:1592)
at com.ibm.mq.connector.inbound.WorkImpl.run(WorkImpl.java:142)
at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
at 
org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
at 
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:756)
at java.lang.Thread.run(Thread.java:595)

Regards,
Ravi Thalupula

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

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


[jboss-user] [JBoss Portal] - Re: Order of -object.xml is not guaranteed

2008-07-19 Thread go4nishu
looking for the solution to same problem. any one got the solution?

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

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


[jboss-user] [JBoss Portal] - Re: Url : how to define MyPortal as the default portal.

2008-07-19 Thread go4nishu
hi i am working on jboss-portal-2.6.5.SP1 
the class ConfigurableDefaultPortalCommandFactory mentioned on jira( 
https://jira.jboss.org/jira/browse/JBPORTAL-1324 ), for making a portal 
default, is not working.
i know we can set a portal as default from admin GUI
but could anyone please explain how to do this through code. 
where and how to define attribute in jboss-service.xml for making my portal, a 
defaultportal

thanks in advance

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

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


[jboss-user] [JBoss Portal] - Re: Portal with JOSSO authentication

2008-07-19 Thread ashwincgg
I have the same problem can u plz helpme?

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

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


[jboss-user] [EJB 3.0] - Re: MDB in seperate ejb-jar causes problem during deployment

2008-07-19 Thread vdweij
Talk about timing... 4.2.3GA has just been released. I'll give that a try...

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

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


[jboss-user] [JBoss Messaging] - Re: Not able to connect to remote Queue through Bridge

2008-07-19 Thread shaileshhp
I am also facing the same problem. Have you found the solution for this?

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

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