List Info

Thread: blojsom newbie w/ working install - howto change: NAME YOUR BLOG




blojsom newbie w/ working install - howto change: NAME YOUR BLOG
country flaguser name
United States
2007-04-17 18:26:58
Hello blojsom dev, users, gurus, ranters and ravers, I have
a new install of blojsom working on my Linux box. I am
really impressed but I would like something other than: NAME
YOUR BLOG. Also, I was able to edit the index.html such that
the page would redirect as requested but I do not get any
further than: NAME YOUR BLOG. If I must work with the web
page: NAME YOUR BLOG I need to understand better the myriad
of XML config files. I successfully changed:
blojsom-helper-beans-include.xml for the URL property value
such that the index.html page would redirect to my public
Linux box instead of "localhost". I am a Java
Coder for a living and I have successfully imported the
entire source into eclipse. I can compile a local:
blojsom.war and I simply deploy on the Jboss4.0.4. I would
rather not start hacking away at blojsom until I get a much
better working knowledge of this very impressive and clean
web app. Particulars follow. All rants and raves welcomed.
Please advise, David.

------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers

Re: blojsom newbie w/ working install - howto change: NAME YOUR BLOG
user name
2007-04-17 18:38:00
Hi David,

You can login as admin, and go to Weblog Settings -> Properties.
Change the value of name field and replace "NAME YOUR BLOG" with the name you want.

HTH,
Cliff.

On 4/18/07, david < daviddavidwbrown.name">daviddavidwbrown.name> wrote:
Hello blojsom dev, users, gurus, ranters and ravers, I have a new install of blojsom working on my Linux box. I am really impressed but I would like something other than: NAME YOUR BLOG. Also, I was able to edit the index.html such that the page would redirect as requested but I do not get any further than: NAME YOUR BLOG. If I must work with the web page: NAME YOUR BLOG I need to understand better the myriad of XML config files. I successfully changed: blojsom-helper-beans-include.xml for the URL property value such that the index.html page would redirect to my public Linux box instead of "localhost". I am a Java Coder for a living and I have successfully imported the entire source into eclipse. I can compile a local: blojsom.war and I simply deploy on the Jboss4.0.4. I would rather not start hacking away at blojsom until I get a much better working knowledge of this very impressive and clean web app. Particulars follow. All rants and raves welcomed. Please advise, David.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net"> Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-users

Re: blojsom newbie w/ working install - howto change: NAME YOUR BLOG
user name
2007-04-17 23:44:51
Hey there!
Blojsom 3 onwards uses Spring & Hibernate, which is why there is a paraphernalia of XML config files
Well the ones that you see with names like something.hbm.xml are the files that map a POJO to a database table(s).. so you don't really need to worry about those. The blojsom.xml, blojsom-helper-beans.xml and blojsom-plugins.xml are used by the spring framework.


This entry in the blojsom-helper-beans defines the data source

&nbsp;  <bean id="dataSource&quot; class=&quot; org.apache.commons.dbcp.BasicDataSource&quot; destroy-method="close">
   ; &nbsp; &nbsp; <property name=";driverClassName" value=&quot;com.mysql.jdbc.Driver"/>;
 &nbsp; &nbsp; &nbsp;  <property name=";url" value=&quot;jdbc:mysql://localhost/blojsom?autoReconnect=true&;amp;useUnicode=true&amp;amp;characterEncoding=utf-8&quot;/>
  ; &nbsp; &nbsp;  <property name=";username&quot; value=&quot;"/&gt;
 &nbsp; &nbsp;   ; <property name=";password&quot; value=&quot;"/&gt;
 &nbsp;  </bean&gt;

which you would have understood when you installed blojsom and you probably can change this to use one from JNDI too...(spring allows this)

&nbsp;   <bean id="hibernateSessionFactory" class=&quot;org.springframework.orm.hibernate3.LocalSessionFactoryBean">
   ; &nbsp; &nbsp; <property name=";dataSource" ref="dataSource&quot;/>
 &nbsp; &nbsp; &nbsp;  <property name=";mappingResources";>
 ; &nbsp; &nbsp; &nbsp; &nbsp;   <list&gt;
 &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp; <value&gt;Blog.hbm.xml</value>
&nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp;  <value&gt;Entry.hbm.xml</value>
&nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;  <value&gt; Category.hbm.xml&lt;/value&gt;
 &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp; <value&gt;Comment.hbm.xml</value>
  ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; <value&gt;Trackback.hbm.xml&lt;/value>;
 &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; <value&gt;Pingback.hbm.xml<;/value>
 &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp; <value&gt;User.hbm.xml</value>
&nbsp; &nbsp; &nbsp;   ; &nbsp;  </list&gt;
 &nbsp;   ; &nbsp; </property>


describes the session factory that will be used to create an object of the SessionFactory when interacting with the Database using Hibernate. Also, you can see that the hbm.xml files have been defined as the Mapping Files.

&nbsp; &nbsp;   ;  </property>
&nbsp; &nbsp; &nbsp;   <property name=";hibernateProperties&quot;>
&nbsp; &nbsp;   ; &nbsp; &nbsp;  <props&gt;
 &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   <prop key="c3p0.min_size "&gt;10</prop>
&nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp;  <prop key="c3p0.max_size">;50</prop>
 ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp;  <prop key="c3p0.timeout">1800</prop>
&nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp;  <prop key="c3p0.max_statements &quot;>100</prop&gt;
 &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   <prop key="show_sql&quot;>false</prop&gt;
 &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   <prop key="hibernate.dialect";>org.hibernate.dialect.MySQLInnoDBDialect</prop&gt;
 ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp;  <!-- <prop key="hibernate.cache.provider_class&quot;>org.hibernate.cache.EhCacheProvider&lt;/prop> -->
&nbsp; &nbsp; &nbsp;   ; &nbsp;  </props>
   ; &nbsp; &nbsp; </property>
&nbsp; &nbsp; </bean&gt;

describes other Hibernate related parameters like cache, show_sql (Hibernate generates SQL statements) etc....



What is really great is that the Bean Injection part of Spring has been used beautifully. All the spring related XML files have entries for various beans and other beans reference these beans in their 'property' elements, where the property elements actually represent private variables of the bean; and all that is needed in the code is a setter method for the private variable [Just like the session factory been above, references the data source bean.]

I hope this helped you atleast a wee bit & the gurus must please correct me where i went wrong...

Regards,
~ S
http://www.theessenceoftech.blogspot.com/






On 4/18/07, david < daviddavidwbrown.name">daviddavidwbrown.name> wrote:
Hello blojsom dev, users, gurus, ranters and ravers, I have a new install of blojsom working on my Linux box. I am really impressed but I would like something other than: NAME YOUR BLOG. Also, I was able to edit the index.html such that the page would redirect as requested but I do not get any further than: NAME YOUR BLOG. If I must work with the web page: NAME YOUR BLOG I need to understand better the myriad of XML config files. I successfully changed: blojsom-helper-beans-include.xml for the URL property value such that the index.html page would redirect to my public Linux box instead of "localhost". I am a Java Coder for a living and I have successfully imported the entire source into eclipse. I can compile a local: blojsom.war and I simply deploy on the Jboss4.0.4. I would rather not start hacking away at blojsom until I get a much better working knowledge of this very impressive and clean web app. Particulars follow. All rants and raves welcomed. Please advise, David.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net"> Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-users



--
YesterdayI played a blank tape at full blast. The mime next door went nuts.
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )