A WebLogic ConnectionFactory is both a QueueConnectionFactory and a TopicConnectionFactory. Therefore you do not have to create different ones for each.
Furthermore, in most cases you do not even have to configure a ConnectionFactory since you can use the default ConnectionFactory. Its Jndi name is weblogic.jms.ConnectionFactory.
See this link for more info:
WebLogic JMS Connection Factories.