Fórum
Using the bookmark service
I've packaged my own Portlets ( separate war file ) and deployed them to Liferay 5.2.1. They appear an all seems well.
However one of my portlets attempts to us the Bookmark service as follows
final long entryId = BookmarksEntryUtil.countAll();
BookmarksEntry entry = BookmarksEntryUtil.create(entryId+1);
entry.setFolderId(folderId);
entry.setName(p.getTitle());
entry.setUrl(p.getUrl());
entry.setComments(p.getContent());
BookmarksEntryUtil.update(entry, false);
The fails ... having traced through, it seems to be in openSession to the database that fails, is this because I am attempting to access the service from the wrong web context.
What is the best way to integrate with the search modules, bookmarks seemed a quick for me to index and make my firefox bookmarks more searchable.
Any advice?
cheers
p
However one of my portlets attempts to us the Bookmark service as follows
final long entryId = BookmarksEntryUtil.countAll();
BookmarksEntry entry = BookmarksEntryUtil.create(entryId+1);
entry.setFolderId(folderId);
entry.setName(p.getTitle());
entry.setUrl(p.getUrl());
entry.setComments(p.getContent());
BookmarksEntryUtil.update(entry, false);
The fails ... having traced through, it seems to be in openSession to the database that fails, is this because I am attempting to access the service from the wrong web context.
What is the best way to integrate with the search modules, bookmarks seemed a quick for me to index and make my firefox bookmarks more searchable.
Any advice?
cheers
p